Announcement

Collapse
No announcement yet.

Need help on a game that did not get much attention (PS2)

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

  • Need help on a game that did not get much attention (PS2)

    Hey there everyone, I am very new to hacking. That is to say I am not entirely new as I do know about hex editing in save files and memory. However past that point I am pretty much a baby in terms of knowledge.

    Recently I have had the urge to learn about old favourite of mine, Legaia 2: Duel Saga. This game was not known by many people and as a result very little research has gone into it, so a few things are still unknown (like the function of one particular stat). I figured I might as well try to learn somethings about the game and I figured why not try to understand the game mechanics from the game code itself.

    So I looked up how to make codes for PS2 and read about a lot of things and it took a while to get a fundamental grasp on things. From my rudimentary understanding I tried to find one thing that has been personally bugging me about this game and that was the drop rates. Initially I had to think hard about how to go about finding a starting point, and eventually after a couple of hours of experimentation I decided on using a memory search for the post battle rewards. After a while of playing I finally got a random enough value to search that significantly narrowed down the possible addresses and then eventually I found it. From there I decided to watch a huge chunk of memory for what changes after battles, and then I found some things and decided to change them after the battle and eventually I found the memory that determines the item given, and then by pure luck I scrolled a little further down the memory and found the corresponding number of the items given.

    My question then became, so how does the game determine what item it gives me, and I was stuck here for a while again. I decided to make save states to work out if the RNG is advancing per frame or per input. After a number of times of collecting information I decided it was advancing per frame. However all that data collection was for naught because it did not tell me how the game decided which item I got for killing an enemy. So I kept researching and started reading up on breakpoints. I set a breakpoint for when the game would write the item identity and tried to follow the stack. But reading all these commands I have no idea which part of the register corresponds to the drop rate and I do not think I am getting any closer after a few days trying.

    Any help anyone can offer is greatly appreciated. Although I feel this is only one of the many problems I will be facing trying to crack this game open.

  • #2
    Are you using the NTSC version of the game? Post the addresses for the item ID and item count. Post the addresses of the functions that write and read the item ID and count. If possible, post a memory dump as well.

    Make sure the code you want is not already in the archive linked below. I found over 1000 codes just for the NTSC version of the game:
    http://gamehacking.org/game/104135
    Last edited by Harry62; 03-31-2016, 04:15:08 PM.

    Comment


    • #3
      Never mind, I found what I needed. The codes below are for most of the items and some stats at the end of a fight. I'm not going to find the IDs for each item but I'm sure you can search some of the known IDs in memory and find an ID stack or something.

      Code:
      XP earned
      00419B04
      
      Total gold
      00419B0C
      
      Gold received
      00419B10
      
      Number of items dropped
      00419B14
      Note: This must be set to the # of items dropped or the items will not show up.
      
      Item ID Stack
      00419B18 -- item 1
      00419B1C -- item 2
      
      Item Count Stack
      00419C38 -- item 1
      00419C3C -- item 2
      Last edited by Harry62; 03-31-2016, 05:19:56 PM.

      Comment


      • #4
        Hey there Harry, thanks for the reply I really appreciate it. I apologise for being unclear with what I was working towards; while modifying the post battle drops is close to what I want to achieve, I would like to modify the drop rate for each enemy's item if possible as I would like to eventually combine my work into a patch of some kind.

        Plus from what I've gathered from watching the memory the game clears those memory addresses every time you finish a battle, before giving you the item; I am not sure what would happen if you made a constant write to those addresses.

        One of the codes did have the ID for each item which was very helpful. I just have to check those to see if there are any mistakes.

        Quick question though, how do I post a memory dump?
        Last edited by Paladinight; 03-31-2016, 09:59:56 PM.

        Comment


        • #5
          Originally posted by Paladinight View Post
          Hey there Harry, thanks for the reply I really appreciate it. I apologise for being unclear with what I was working towards; while modifying the post battle drops is close to what I want to achieve, I would like to modify the drop rate for each enemy's item if possible as I would like to eventually combine my work into a patch of some kind.

          Plus from what I've gathered from watching the memory the game clears those memory addresses every time you finish a battle, before giving you the item; I am not sure what would happen if you made a constant write to those addresses.

          One of the codes did have the ID for each item which was very helpful. I just have to check those to see if there are any mistakes.

          Quick question though, how do I post a memory dump?
          I misread it. Give me a day or three and I'll decipher the algorithms for drops.

          Comment


          • #6
            An item drop code for this game would be awesome,hope you succeed!
            A Wise Man once said that common sense is really not that common.

            Comment


            • #7
              I know I hacked this game on request back in like 2004, but I'm pretty sure everything I did was posted on the old CMGSCCC forums and nowhere else. I don't suppose anybody archived those forums from back then?

              Comment


              • #8
                Thanks Harry, I appreciate it. If you do get it do you think you could break down how you got to that point? I would really appreciate it since I would like to understand the other RNG based things in the game.

                An item drop code itself shouldn't be too hard to make hawkeyes.

                That's awesome Pyriel, I think most of the codes on the site are from you.

                Comment


                • #9
                  Originally posted by Paladinight View Post
                  An item drop code itself shouldn't be too hard to make hawkeyes.
                  That is good news,hopefully a 100% item steal rate could be made too.
                  I usually spend a lot of time trying to steal items such as the slicing wind scroll early in the game.maybe a code like that could cut the time stealing greatly
                  A Wise Man once said that common sense is really not that common.

                  Comment


                  • #10
                    Hey guys I know this is the wrong topic to ask this on but I don't know where else to go. The people over at Chat told me to come here to the forums and I had to create a username before I could do anything here and now that I'm finally on I have no idea where to go! The only reason I'm here on this thread is because it's the very first one I saw here on forums that could possibly give me any direction at all.

                    To whoever created this thread, I apologize I posted here and I swear I'm not trying to clutter up your place but as I said, I'm totally lost on where to go and just need someone to offer a little guidance.

                    Comment


                    • #11
                      Any news on the item drop code?
                      A Wise Man once said that common sense is really not that common.

                      Comment


                      • #12
                        Hey sorry hawkeyes was super busy with school, I'll try to get back into this now that I'm on break.

                        Comment


                        • #13
                          No problem,Amigo...I am aware of how stressful/time consuming school is.
                          Take your time with the code making;haste makes waste after all!
                          I will wait as long as needed for the code in question.
                          A Wise Man once said that common sense is really not that common.

                          Comment


                          • #14
                            This sounds like an easy fix. I would like to look into it if I knew how to hack my ps2. Can you post a memory dump?

                            Comment


                            • #15
                              Sure, at what points do you want the memory dump? Secondly how do I post a memory dump here.

                              Comment

                              Working...
                              X