Announcement

Collapse
No announcement yet.

[Trials Gold] Modifying tournaments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Trials Gold] Modifying tournaments

    Hey there! Seems like I am a new scholar.

    I am not much of a video-game player (at least since 2001 or so, hehe), although I am finding the Trials (Gold) game quite worthy of being played, especially at the advanced levels. (I am playing v1.0.3, and on a machine that is not even connected to the Internet, by the way). The only thing I feel that they have done wrong, way wrong, with this game is filling the extreme-difficulty warehouse tournament with beginner-, easy-, and medium-difficulty tracks. Hell, they did not even put any extreme-difficulty tracks in!

    It is a shame. This is why I have been motivated in modifying that tournament, because in my mind, it would be way more interesting if it ditched out those easy tracks, and included only, in order or original appearance, all of the hard-and-extreme warehouse tracks. (For those who have not played the game yet, I am recommending it to those who like dexterity-requiring games, which make you learn while playing it, often without being conscious of your achievements in this regard.)

    What I have tried is using the Haoose tools -- from http://forum.xentax.com/viewtopic.php?f=10&t=8861 -- to modify the v1.0.3-untouched data.pak file, which contains the tracks.xml file, in order to change the tracks of this tournament. Here is the tried edit:

    <!-- Around the World Endurance Challenge: 24 tracks: Most beginner, easy and medium tracks -->
    <Track id="1108" mode="endurance" leaderboard_id="177" context_id="7" fullonly="false" difficulty="5" bikes="3">
    <TrackList>
    <Track id="819" />
    <Track id="812" />
    <Track id="806" />
    <Track id="813" />
    <Track id="814" />
    <Track id="821" />
    <Track id="817" />
    <Track id="822" />
    <Track id="811" />
    <Track id="815" />
    <Track id="835" />
    <Track id="823" />
    </TrackList>
    <Limits platinum="16:20:000" gold="20:00:000" silver="40:00:000" platinum_faults="5" gold_faults="30" silver_faults="120"/>
    </Track>

    Doing so, and importing it back to the data.pak archive, successfully modifies the related tournament-selection menu. However, upon going further, the game crashes and on is swung back to desktop.

    Upon diagnosing the source of the problem, it seems it is the published hacking tool which is the culprit, because without modifying anything in the xml file, the internal system of the game is made broken anytime a reimport is effected.

    Perhaps some kind of checksum protection is not fiddled with gently enough? Something is going wrong. I am curious as to the core issue, although I am stagnating in this quest. Things get even more complicated knowing that, game progress seems saved in parallel in the "my documents" folder (track and tournament times), sometimes acquired medals seem written to the "1.save" file, and the talked-about data.pak file seems to change over time (for a reason yet unknown to me).

    EDIT: If this challenge is of any interest to you, my friends, you would be more than welcomed in solving it further.
    Last edited by twipley; 03-21-2014, 08:28:19 PM.

  • #2
    Is there any interest in this? Or, by any chance, is this more of a board where people post their own hacks than request for help? Or else, is the underlying game system just too big for people to reasonably be interested by this? Well, so many questions inside my head!

    Comment


    • #3
      hang on dood, pssst patience is tha key dood:P, just cmeback on fews week nor month to askin again or typin this magicaly word"bump"
      dood
      dood! im a uniter, not a divider dood

      Comment


      • #4
        haha! well, sorry for the impatience, something i must acknowledge.

        you're funny.

        thank you dood.

        Comment


        • #5
          Hey! D00ds, awesomeness has come. quickbms has solved some troubles...

          Code:
          # script for QuickBMS
           
          idstring "\x78\x56\x34\x12"
          get OFFSET long
          get FILES long
          savepos INFO_OFF
           
          # work-around, lame
          for i = 0 < FILES
              get DUMMY long
              get ZSIZE long
              get SIZE long
              get ZIP byte
              get OFFSET long
              savepos TMP
              if ZIP == 0
                  goto OFFSET
                  get XFILES long
                  math XFILES += 1
                  if XFILES == FILES
                      math i = FILES  # break doesn't work
                  endif
                  goto TMP
              endif
          next i
          if XFILES == FILES
              log MEMORY_FILE OFFSET SIZE
              get FILES long MEMORY_FILE  # the original FILES includes also the NAME entry
          else
              math TMP = FILES
              math TMP *= 2
              putvarchr MEMORY_FILE TMP 0
          endif
           
          goto INFO_OFF
          for i = 0 < FILES
              get DUMMY long
              get ZSIZE long
              get SIZE long
              get ZIP byte
              get OFFSET long
              get NAMESZ short MEMORY_FILE
              getdstring NAME NAMESZ MEMORY_FILE
           
              if ZIP == 0
                  log NAME OFFSET SIZE
              elif ZIP == 4
                  comtype xmemdecompress
                  savepos TMP
                  goto OFFSET
                  get SIZE long
                  get ZSIZE long
                  savepos OFFSET
                  clog NAME OFFSET ZSIZE SIZE
                  goto TMP
              else
                  comtype zlib
                  clog NAME OFFSET ZSIZE SIZE
              endif
          next i
          Code:
          <!-- Around the World Endurance Challenge: 24 tracks: Most beginner, easy and medium tracks -->
          <Track id="1108" mode="endurance" leaderboard_id="177" context_id="7" fullonly="false" difficulty="5" bikes="3">
          <TrackList>
          <Track id="819" />
          <Track id="812" />
          <Track id="806" />
          <Track id="813" />
          <Track id="814" />
          <Track id="821" />
          <Track id="817" />
          <Track id="822" />
          <Track id="811" />
          <Track id="815" />
          <Track id="835" />
          <Track id="823" />
          </TrackList>
          <Limits platinum="16:20:000" gold="20:00:000" silver="40:00:000" platinum_faults="5" gold_faults="30" silver_faults="120"/>
          </Track>
          Reimporting works like a treat, and does not crash the game. The game is now rendered more interesting.

          Hope this helps future generations in ten years from now.

          Yours,
          twipley

          Comment

          Working...
          X