Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default Need coders help! Unknown function?

    So, I was playing Star Wars the Clone Wars: Lightsaber Duels earlier, seeing as how the only codes that have been made where:
    Infinite Health (p1) [ZiT]
    &
    Infinite Force (p1) [ZiT]

    And I was like "Comeon zit, you can do better. ;-;"

    So, anyways, I was just messing around, and thought "Oh, let's check out the health", so I found the health of the character, and saw that it was Dynamic. So, I BP'd it, and nopped the lfs instruction that was loading the health. JOKES ON ME, it nops both players health, and gives them both 1 hit k.o.'s. I tried tracing back the function, so that I can make P1 1 hit k.o. and make my dad rage when we played, but I couldn't... I didn't quite understand how I would find what was setting it. So, here's all the information. It's not a normal function, with stacks... it just kind of starts.

    Pre-notes, args, and addys:


    Register info for P2 hitting P1:

    ---------------------------------------------------------------
    Reg infor for p1 hitting p2:

    ----------------------------------------------------------------
    Instruction list:


    Other notes:
    ---------------------------------------------
    Followed LR found at top of function (0x801CFA44) via Dis tab:
    801CFA44: 48000008 b 0x801cfa4c

    Above it held a bl:
    801CFA40: 4BF0D24D bl 0x800dcc8c

    Followed BLR:
    800DCC8C: 1C040014 mulli r0,r4,20

    Erg... HELP? It's bugging me. I've been pondering it all morning. Note: I can't get the Beq- instruction to break above the func.

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  2. #2
    Elite Memory's Avatar
    Join Date
    Dec 2009
    Posts
    4,526
    Points
    12,469
         User Info     Contact     Gamer ID
    Join Date
    Dec 2009
    Posts
    4,526
    Points
    12,469

    Default Need coders help! Unknown function?

    Good work, this is what I like to see from other Coders. Good luck getting help bro.

    0 Not allowed! Not allowed!

  3. #3
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Quote Originally Posted by Tipped OuT View Post
    Good work, this is what I like to see from other Coders. Good luck getting help bro.
    Thank you, Tipped. Made me feel proud. Aha.

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  4. #4
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Infinite heart (1P) [ZiT]
    C21CFAA8 00000004
    833D0014 2C190001
    4182000C D01D0428
    48000008 D3FD0428
    60000000 00000000

    Infinite Force Energy (1P) [ZiT]
    C20CC298 00000004
    821CDB74 2C100001
    4182000C D01C0004
    4800000C 823C000C
    923C0004 00000000

    So, yes, he broke on the same thing as I did. Let me decompile his code to see what he did.

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  5. #5
    Bad Company
    RED 58's Avatar

    Badge

    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658
         User Info     Contact     Gamer ID
    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658

    Default

    Don't fear, Red is here to help you


    0 Not allowed! Not allowed!



    Quote Originally Posted by Iced View Post
    Red 58 = Swoot (Reincarnated)
    Quote Originally Posted by GOOBER View Post
    Terr0r you need a Gecko. Lets go to the Pet store and buy one
    Quote Originally Posted by ABlackGuy View Post
    He may not have a soul but he still has a brain. Unlike Russ who has neither.

  6. #6
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Edit3: Weird, it does hold the player. I thought it was dependent on p1 vs p2 (would make sense for when exceptions occur, I.e. same character,) but it's character dependant. Hmmm... weird... how to progress... perhaps find a pointer type thing.. hmm...

    Edit2: Ugh, no, r29 doesn't hold the player. What was I thinking? ._. Hmm...

    Edit: I re-read the code and found two typos. It works flawlessly when fixed, however, little did I know, r29 holds the character number. ._. Guess I need to find an address that holds specifically player 1 character ID. Won't be that difficult with the breakpoint data. I think I'm going to make a video on this, it was quite the code. Glad I came across it.

    So what I decided to do, was put a cmpw on r25, load r25 with either address, then compare to r29, and beq to the injection, else load normal instruction. This worked perfectly!!! ... Almost. When p2 hits p1, it is a one hit kill. When p1 hits p2, it isn't a one hit kill. When I hit my brother with a box or something with my force power, I froze. I'm thinking that I accidentally over wrote something important in r25, any advice as to how I can clear r25, or a safe register I can use?

    Code:
    Frame:
    Stwu r1,-80(r1)
    Stmw r14,8(r1)
    B inject

    Inject:
    Lis r25,0x8104 #first 16 bits of p1 addy
    Ori r25,r25,0xFF20 #Second 16 of
    P1 addy.
    Cmpw r29,r25
    Beq go
    Cmpw r29,r25
    Beq skip

    Go:
    Lwz r23,1064(r29)
    B skip

    Skip:
    Cmpw r29,25
    Beq end
    Lfs f0,1064(r29)
    B end

    End:
    Lmw r14,8(r1)
    Addi r1,r1,80

    Anyone see any mistakes that can cause the freeze, or is it simply because of the register used?

    0 Not allowed! Not allowed!
    Last edited by Austin .; 10-21-2012 at 03:02 PM.

  7. #7
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Sorry for the double post, however I loaded an address that has a value that shows the character ID for player 1, and compared it to the register holding the characters ID, using the lwz and cmpw instructions. It didn't work, neither person was a one hit kill... Advice?

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  8. #8
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,390
    Points
    7,613
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,390
    Points
    7,613
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

    Youtube Channel: http://www.youtube.com/user/HAXZingTERR0R

    Default

    I hate float registers for some reason. This is the type of shit that I wish I had a gecko for so I can experience it myself. All I can say is backtrack every loaded value you can see. I'm not much help here. :/

    0 Not allowed! Not allowed!
    Last edited by ChumLee; 10-23-2012 at 02:55 PM.


  9. #9
    Wii Coder Mitchell's Avatar
    Join Date
    Nov 2011
    Posts
    137
    Points
    735
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    137
    Points
    735

    Default

    I can help
    i need to have the game, lmao
    Ill download it
    http://hetoan2.com/docs/dcx2/walkstack.html That might also help, read, then follow along with your code, then read, then try again, i didnt get it on my first try either.

    0 Not allowed! Not allowed!
    Folllow Me on Twitter! It motivates me to release more codes!: https://twitter.com/#!/Mitch_CL

  10. #10
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Nah, I've already been there, done that. Found the star bit functions in SMG, however this one is different; as you can see, there is no stack frame, the stack comes from a branch.

    I agree terror, float regs are a pain in the ass. It might help if we had a compiled list of all the float register instructions.

    I don't quite understand why the lwz and cmpw method doesn't work, though. Lwz loads a value at an address; correct? The opposite of a stw?

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 03:45 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.