Login Register
MoHH2 Legendz

Legends of Medal of honor:Heores 2.. Never forgotten RiP in piece


    You are not connected. Please login or register

    View previous topic View next topic Go down  Message [Page 1 of 1]

    Post: #1on Fri Mar 23, 2012 11:43 pm

    avatar

    sdrawkcab

    Senior Member


    what you need
    - a ram dump
    - a hook
    - a controller address
    - a code to joker

    finding your controller address -
    hold down one of the buttons listed bellow and search the corresponding value.
    if this dost work search for an unknown 32 bit value. hold a button and search greater,
    then let go and search less.

    Select button = 0001
    Start button = 0008
    Up D-Pad button = 0010
    Right D-Pad button = 0020
    Down D-Pad button = 0040
    Left D-Pad button = 0080
    Left trigger = 0100
    Right trigger = 0200
    Triangle button = 1000
    Circle button = 2000
    Cross button = 4000
    Square button = 8000

    now we need a hook, finding a hook i quite simple just search in hex
    "03e0008" then copy the results nop them if it freezes you it means its
    an active hook. hooks can be jr ra, jals and j's. but for now we a just
    going to stick with J $.

    finding your hooks value. open up ps2dis and enter "J $" after the $ put the first line of your routine in real addressing.

    here's the mips template.



    lui t0 $First half of controller real addressing
    lw t0 $second half of controller(t0)
    lui t1 $first half of code address real addressing
    ori t2 zero $inc button value
    ori t3 zero $dec button value
    bne t0 t2 $next bne
    nop
    lw t4 $second half of code address(t1)
    ori t5 zero $increase amount
    add t6 t4 t5
    sw t6 $second half of code address(t1)
    bne t0 t3 $jr ra
    nop
    lw t7 $second half of code address(t1)
    ori t8 zero $decrease amount
    sub t9 t7 t8
    sw t9 $second half of code address(t1)
    jr ra
    hook

    understand the mips :

    lui
    lui : load upper immediate
    loads the first 16bits of your controller address in to t0

    lw
    lw : load word
    loads a word in to your register

    ori
    ori : bitwise or immediate
    checks to see if increase/decrease button is being pressed

    bne
    bne : branch on not equal
    branches to the next bne when button is not being pressed

    nop
    nop : no operation
    acts as delay slot

    add
    add : add
    adds value to registers and then stores results

    sub
    sub : subtract
    subtracts value from registers and then stores results


    Post: #2on Sat Mar 24, 2012 5:36 am

    avatar

    Vet

    Elite Member


    Nice, even tho my brain is not the type for MIPS. and its better if you don't give them templates all they'll do is just copy/paste and really not learn anything form it




    ______________________                                                            
                                      [You must be registered and logged in to see this link.]
    ______________________

    Post: #3on Sat Mar 24, 2012 6:58 am

    Brian-1337-

    Senior Member


    Fragon wrote:Nice, even tho my brain is not the type for MIPS. and its better if you don't give them templates all they'll do is just copy/paste and really not learn anything form it
    true, but its hard to teach and explain them manually how the MIPS or Registers works.(I tried it before but dont know what to say Razz) and the template is just the example of what the tutorial is and how it works, they just need to understand the template so they can make it any other way or using Advance MIPS then keep practicing every day. Smile
    and for those who using other coders templates Evil or Very Mad





    Thanks to "Red" in BIH Forum's.

    Thanks to "TyMan202" in PSVMods Forum's.
    http://www.facebook.com/Mips.Brian1337

    Post: #4on Sat Mar 24, 2012 12:21 pm

    avatar

    sdrawkcab

    Senior Member


    Fragon wrote:Nice, even tho my brain is not the type for MIPS. and its better if you don't give them templates all they'll do is just copy/paste and really not learn anything form it

    so do you just want me to make it like :
    first 16 bits of controller
    second half of controller

    with no, mips so that way they need to understand the commands? or atleast no which ones to use


    Post: #5on Sat Mar 24, 2012 2:04 pm

    avatar

    Vet

    Elite Member


    sdrawkcab wrote:
    Fragon wrote:Nice, even tho my brain is not the type for MIPS. and its better if you don't give them templates all they'll do is just copy/paste and really not learn anything form it

    so do you just want me to make it like :
    first 16 bits of controller
    second half of controller

    with no, mips so that way they need to understand the commands? or atleast no which ones to use
    No, I like how you explained the commands in they end just the template but as Brian said it could help people.




    ______________________                                                            
                                      [You must be registered and logged in to see this link.]
    ______________________

    Post: #6

    Sponsored content





    View previous topic View next topic Back to top  Message [Page 1 of 1]

    Permissions in this forum:
    You cannot reply to topics in this forum