Announcement

Collapse
No announcement yet.

[PS2] Barbarian SLUS-20136 Request

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

  • #31
    Originally posted by Skiller View Post
    The section that herry62 is using is seeming to be the best section .. iv been trying to trace back the ASM a bit but there is a bit of limitations to PCSX2.. Since for some reason Tracing back from the First breakpoints = to much of a pain.

    i made a bit of a mod to Herrys code to check for something different that seems to always be 0x2C from the First HP.. and will work if Life/HP has been upgraded .

    Code:
    Inf HP (Must Have one or more upgrades to life done)
    200A2000 DFB30028
    200A2004 3C083F00
    200A2008 8E29002C
    200A200C 15280009
    200A2014 3C0842C8
    200A2018 8E29000C
    200A201C 0109482A
    200A2020 11200005
    200A2028 3C084361
    200A202C AE280004
    200A2030 10000002
    200A2038 AE240004
    200A203C 03E00008
    2022E75C 0C028800
    2022E760 00000000
    Tested using PCSX2
    Loading Game with Code active
    Aborting Game Mid match from new game (after level 1 were u can upgrade life)
    loaded game Played character with Max life.. all working
    I traced the functions back and it leads to more functions that are seemingly used for everything. I checked the pointers you and lee4 are using and the one you used with the negative offsets is the only consistent one after multiple restarts on pcsx2. I'm sure you already have this information but all 2-4 players are stored in a stack with player 1 at the top. It does not matter if you are player 1 as it may store you as any player #. Not sure why this happens.

    player pointers: 002F2A60
    Offsets:
    -344: player 1 health
    -26C: player 2 health
    -194: player 3 health
    -BC: player 4 health

    Also, where is the E in my name coming from in your posts?
    Last edited by Harry62; 03-25-2016, 11:25:17 PM.

    Comment


    • #32
      Originally posted by Harry62 View Post
      I traced the functions back and it leads to more functions that are seemingly used for everything. I checked the pointers you and lee4 are using and the one you used with the negative offsets is the only consistent one after multiple restarts on pcsx2. I'm sure you already have this information but all 2-4 players are stored in a stack with player 1 at the top. It does not matter if you are player 1 as it may store you as any player #. Not sure why this happens.

      player pointers: 002F2A60
      Offsets:
      -344: player 1 health
      -26C: player 2 health
      -194: player 3 health
      -BC: player 4 health

      Also, where is the E in my name coming from in your posts?
      ya this is the issue with this game even the Max hp swaps around i think they have some bad code in the game Example
      k then maybe the tracing back was not broken after all . :P i kept moving back and back .. but it seem that PCSX2 would jump over a Junk load of code then execute the LW breakpoint that i had set at the end .. it was a headache

      max HP is +50 but yet it swaps 2 bits all the time 4316 and 4361 this games odd for sure .. and yes the - value one he stated did not work.. but it was the only one i seen being Consistent as well

      and sorry about the name thing habit with the another name :P so that probably why i keep messing the name up wont happen again :P

      the code i have posted seems to work and always pick player 1 as long as your life has the first upgrade.

      For If you like what i do

      Comment


      • #33
        just tried harry's tweaked inf hp for everyone code and did the same as before, worked on new game but not on a loaded save. i'm testing skillers new code as i type this. will update asap.

        EDIT: ok, tried skillers new tweaked code and i'm pleased to announce it worked on both a new game and a loaded save for human controlled player one! So here's what i did. I turned on skillers code with the max life code and enable code obviously, then loaded up the game, went to new game and before i went into a match i went to where you can change player attributes and checked to make sure life was max which it was, then i hit done which saved it, then went into a match. I then aborted the match halfway through, then loaded up that save and it worked for both flawlessly!! A Big thanks to everyone who helped find this code (skiller, lee4, harry62, whoever else i missed) It would be cool if we didn't have to use a max life code for this or infinite attributes to raise life first before the code will work, but i'm just grateful and happy that a code was found that worked
        Last edited by tomleiberman; 03-26-2016, 02:46:30 AM.

        Comment


        • #34
          Good to see the code is working. I'm still not sure how this game works or why all players are stored in a single pointer or why all the player data is accessed by a single function.

          Comment


          • #35
            Originally posted by tomleiberman View Post
            just tried harry's tweaked inf hp for everyone code and did the same as before, worked on new game but not on a loaded save. i'm testing skillers new code as i type this. will update asap.

            EDIT: ok, tried skillers new tweaked code and i'm pleased to announce it worked on both a new game and a loaded save for human controlled player one! So here's what i did. I turned on skillers code with the max life code and enable code obviously, then loaded up the game, went to new game and before i went into a match i went to where you can change player attributes and checked to make sure life was max which it was, then i hit done which saved it, then went into a match. I then aborted the match halfway through, then loaded up that save and it worked for both flawlessly!! A Big thanks to everyone who helped find this code (skiller, lee4, harry62, whoever else i missed) It would be cool if we didn't have to use a max life code for this or infinite attributes to raise life first before the code will work, but i'm just grateful and happy that a code was found that worked
            Good to hear..
            ya the code relies on an slt of a value greater then 42C8 (this is Starting point of HP) so as long as you have +1 on your Life this code should always work .. not this completely relies on the enemy always having 42C8 HP i played like 7 stages or more and none were over 42C8..

            out side of using the - pointer that we have consistent and setting up a Slue of joker codes would we be able to fix that even more ..

            Code:
            Inf HP - Credits to code Harry62, Lee4, Skiller 
            200A2000 DFB30028
            200A2004 3C083F00
            200A2008 8E29002C
            200A200C 15280009
            200A2014 3C0842C8
            200A2018 8E29000C
            200A201C 0109482A
            200A2020 11200005
            200A2028 3C084361
            200A202C AE280004
            200A2030 10000002
            200A2038 AE240004
            200A203C 03E00008
            2022E75C 0C028800
            2022E760 00000000
            D0483264 00200001
            20483264 00000001
            that should take out the worry of u needing to upgrade it will just do 1 upgrade if you do not already have one :P
            Last edited by Skiller; 03-26-2016, 02:35:44 PM.

            For If you like what i do

            Comment


            • #36
              well.. i've got some bad news about the new inf hp code skiller posted. it worked on stage 1 of a new game with keela but thats it, i'm currently on stage 4 and its not working, neither did the code work on stage 3. stage 2 required you to hit your opponent 50x before they hit you so health wasnt required. i'm not sure what else can be done unless maybe make a code for each stage which would be a MAJOR pain.

              Comment


              • #37
                Originally posted by tomleiberman View Post
                well.. i've got some bad news about the new inf hp code skiller posted. it worked on stage 1 of a new game with keela but thats it, i'm currently on stage 4 and its not working, neither did the code work on stage 3. stage 2 required you to hit your opponent 50x before they hit you so health wasnt required. i'm not sure what else can be done unless maybe make a code for each stage which would be a MAJOR pain.
                Nah, the stages do not really matter as far as the health goes. The hard part of this is there isn't a known way to differentiate the health between the player and the AI. Normally we'd find the health deduction function, cut it, and be done. If that doesn't work, we find the player pointer and overwrite the health. Since that isn't an option(yet) then there is one last option to resort to but it's not that great. We can create a code that makes all player invulnerable excluding when you attack the AI. This of course will make you vulnerable as well, but only when you're holding the joker(s).

                I don't much care to make the code described above but I do think there is another pointer somewhere else in memory that separates the player from the AI. If there's not then it's the first ps2 game I've come across to not have dedicated player pointers.

                Comment


                • #38
                  Originally posted by tomleiberman View Post
                  well.. i've got some bad news about the new inf hp code skiller posted. it worked on stage 1 of a new game with keela but thats it, i'm currently on stage 4 and its not working, neither did the code work on stage 3. stage 2 required you to hit your opponent 50x before they hit you so health wasnt required. i'm not sure what else can be done unless maybe make a code for each stage which would be a MAJOR pain.
                  if the stage has nothing to do with HP then of course it would not work... it will only work for stages that when attacked your Health gets Depleted . its not for the hit 50 times stages .. i played up to Stage 7 and it worked ..
                  need more information if the Health is actually being depleted .. like stated Stage 7 i tested up to on 4 different people note i only had upgraded HP i did not upgrade any other stats .. so maybe if its not working for HP any more the 0x2C address changes .


                  ------ some thoughts .
                  Harry62 i know when the game First turns on it Writes the - Pointer.. for the game and it stays in the same place for the entire game play until u actually reset the game. it might be as simple as finding the Initial Write for that value and Fix pointing it .. if the Ps2 will alow that .. i know most games dont like when you do this .. i have done this is the past moved Player sections in to 000A0000 sections .. this games just ugly and knowing the luck that were seeing with this HP code moving its going to make bigger issues .

                  also note there is a pointer section and Counters above the Place were HP is stored .. some of the values in there seem to always be the same as well .. i will see if i can use the - Pointer to find a Player pointer from that .. FML :P
                  Last edited by Skiller; 03-26-2016, 08:30:28 PM.

                  For If you like what i do

                  Comment


                  • #39
                    Just to help clarify my comments above on post #36, the only reason i talked about stage 2 was just to let you know that inf hp wasn't applicable on that stage, so I was just trying to be thorough when talking about the different stages that i played. Skiller you said that you only upgraded the life stat for all 7 stages that you played. Well, i actually upgraded several of my stats through stage 4 with damage upgraded almost all of the way.
                    Last edited by tomleiberman; 03-26-2016, 09:04:09 PM.

                    Comment


                    • #40
                      Originally posted by tomleiberman View Post
                      Just to help clarify my comments above on post #36, the only reason i talked about stage 2 was just to let you know that inf hp wasn't applicable on that stage, so I was just trying to be thorough when talking about the different stages that i played. Skiller you said that you only upgraded the life stat for all 7 stages that you played. Well, i actually upgraded several of my stats through stage 4 with damage upgraded almost all of the way.
                      thanks for the Feedback .. i will check and see if this 0x2C address changes if it does .. it still may be a Simple fix but.. ya :P


                      Harry62 here is something of interest . 0011AF88 Break here seems to always be a float value that Just before the Section were HP and stuff is stored . :P now its just a matter of Finding out how to figure out how to tell player :P
                      Last edited by Skiller; 03-27-2016, 02:03:10 AM.

                      For If you like what i do

                      Comment


                      • #41
                        Originally posted by Skiller View Post
                        thanks for the Feedback .. i will check and see if this 0x2C address changes if it does .. it still may be a Simple fix but.. ya :P


                        Harry62 here is something of interest . 0011AF88 Break here seems to always be a float value that Just before the Section were HP and stuff is stored . :P now its just a matter of Finding out how to figure out how to tell player :P
                        I set breakpoints on almost every part of the player pointer trying to find a function that was unique to the player excluding the AI pointers. I found several functions that seemed to do just that, however If I loaded a different instance of the game in pcsx2 those same functions handled other data instead of the player pointer. If you go to the area where the health is stored and scroll down about 20-30 addresses in ps2dis you will find the player pointer for that player. I think you can offset by 5c4+0+8 from the top of the player pointer and that leads back to the area where the health is stored. If we can find something that accesses just our player pointer then we can make this code.

                        I haven't found a single usable pointer to the player pointer yet.
                        Last edited by Harry62; 03-28-2016, 10:42:30 AM.

                        Comment


                        • #42
                          Harry62, Skiller or lee4 or anyone else, is there anything else i can do to help you guys find this true inf hp code for this game? if there is, let me know.

                          Comment


                          • #43
                            Originally posted by tomleiberman View Post
                            Harry62, Skiller or lee4 or anyone else, is there anything else i can do to help you guys find this true inf hp code for this game? if there is, let me know.
                            It won't help. As stated above we don't have a way to identify the player pointer. The pointers inside the player pointers are also changing locations, so this is yet another unexpected factor.

                            Comment


                            • #44
                              This is the only code I've come up with that should work for any game mode. This code disables player damage clipping by default. The only time you or the enemies can attack is whenever you press square, triangle, circle, or R1. You may have to hold the buttons a little longer than normal so the joker doesn't disengage instantly.

                              Code:
                              Disable Damage by default
                              2023914C 00000000
                              D02EBD02 0000F7FF
                              2023914C 5440FFE0
                              D02EBD02 00007FFF
                              2023914C 5440FFE0
                              D02EBD02 0000EFFF
                              2023914C 5440FFE0
                              D02EBD02 0000DFFF
                              2023914C 5440FFE0

                              Comment


                              • #45
                                Originally posted by tomleiberman View Post
                                Harry62, Skiller or lee4 or anyone else, is there anything else i can do to help you guys find this true inf hp code for this game? if there is, let me know.
                                the Sub that gives u Inf HP with the Health update. is best bet
                                just dont upgrade the last stat :P

                                For If you like what i do

                                Comment

                                Working...
                                X