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: #1Mon Aug 01, 2011 8:47 pm

    avatar

    Brian-1337-

    Senior Member


    Today I'll will teach you how to make your own hooks.

    Example:

    - - - - - - - - - - - - - - - - - - - -

    addiu sp, sp, $fff0 // decrease the stack pointer by 10

    sw ra, $0000(sp) // store ra to stack pointer

    nop // hook 0

    nop // delay slot

    nop // hook 1

    nop // delay slot

    nop // hook 2

    nop // delay slot

    nop // hook 3

    nop // delay slot

    nop // hook 4

    nop // delay slot

    nop // hook 5

    nop // delay slot

    nop // hook 6

    nop // delay slot

    nop // hook 7

    nop // delay slot

    nop // hook 8

    nop // delay slot

    nop // hook 9

    nop // delay slot

    lw ra, $0000(sp) // load ra to stack pointer for the next area

    jr ra // jump to ra

    addiu sp, sp, $0010 // increase the stack pointer by 10 becomes normal again for the next area

    Note: delay slots of Jal command can be use on the area where it will jump.

    - - - - - - - - - - - - - - - - - - - -

    #Create Hooks (Enable)
    #Brian-1337-
    0x00000098 0x0A200300
    0x00000C00 0x27BDFFF0
    0x00000C04 0xAFBF0000
    0x00000C58 0x8FBF0000
    0x00000C5c 0x03E00008
    0x00000C60 0x27BD0010

    #Hook 0
    0x00000C08 0x0E200000

    #Hook 1
    0x00000C10 0x0E200000

    #Hook 2
    0x00000C18 0x0E200000

    #Hook 3
    0x00000C20 0x0E200000

    #Hook 4
    0x00000C28 0x0E200000

    #Hook 5
    0x00000C30 0x0E200000

    #Hook 6
    0x00000C38 0x0E200000

    #Hook 7
    0x00000C40 0x0E200000

    #Hook 8
    0x00000C48 0x0E200000

    #Hook 9
    0x00000C50 0x0E200000

    - - - - - - - - - - - - - - - - - - - -

    Instead using "0x0AXXXXXX = J Command" we will use "0x0EXXXXXX = Jal Command".

    - - - - - - - - - - - - - - - - - - - -

    Example:

    lui t0, $0880
    addiu t0, t0, $3ffc
    sw t0, $0000(t0)
    jr ra
    nop

    - - - - -

    #Code 0
    ;Brian-1337-
    0x00000C08 0x0E200400 ;Hook 0
    0x00001000 0x3C080880
    0x00001004 0x25083ffc
    0x00001008 0xad080000
    0x0000100c 0x03e00008
    0x00001010 0x00000000

    - - - - - - - - - - - - - - - - - - - -

    Done! :D


    https://www.facebook.com/Mips.Brian1337

    Post: #2Fri Jan 27, 2012 10:44 am

    Jicipi

    Jicipi

    Member


    What's a hook? I'm a beginner coder and I saw "hook" several times but I don't know what is it Confused


    Post: #3Fri Jan 27, 2012 4:33 pm

    Vet

    Vet

    Elite Member


    A hook is the most important part of a code. It's what makes the game know to run your code.


    Post: #4Sat Jan 28, 2012 6:43 am

    Jicipi

    Jicipi

    Member


    Ok, but when is the hook useful?
    Wenn I'm coding with nitepr (1 line code) I don't need the hook^^


    Post: #5Sat Jan 28, 2012 8:50 am

    Vet

    Vet

    Elite Member


    No, you always need you're hook when your making a subroutine. Code searching you don't need it.


    Post: #6Sat Jan 28, 2012 2:44 pm

    Jicipi

    Jicipi

    Member


    Oh ok ! I will try to find it, but I must before learn MIPS language^^


    Post: #7Sat Jan 28, 2012 2:46 pm

    StriickeN

    StriickeN

    Admins
    Admins


    Jicipi try out temp ar and learn codetypes Wink it is easier than MIPS


    http://www.psvmods.net

    Post: #8Sat Jan 28, 2012 3:26 pm

    Vet

    Vet

    Elite Member


    ↑that. but it would be a pin in they ass since codetypes is just MIPS but instead not showing what's be hide it.


    Post: #9Sat Jan 28, 2012 3:40 pm

    Jicipi

    Jicipi

    Member


    Juggalo™️Killa wrote:Jicipi try out temp ar and learn codetypes Wink it is easier than MIPS

    So what are codetypes? I have tempar


    Post: #10Sat Jan 28, 2012 3:46 pm

    StriickeN

    StriickeN

    Admins
    Admins


    ask fragon lol he knows more about them than me


    http://www.psvmods.net

    Post: #11Sat Jan 28, 2012 3:54 pm

    Ralph

    Ralph

    Admins
    Admins


    code types are like mips, bu they are a little bit easier to understand. [You must be registered and logged in to see this link.] you can learn about code types here 08


    http://www.*******.com

    Post: #12Sat Jan 28, 2012 4:42 pm

    Vet

    Vet

    Elite Member


    oO Hack3R Oo wrote:code types are like mips, bu they are a little bit easier to understand. [You must be registered and logged in to see this link.] you can learn about code types here 08
    I wouldn't exactly link him there since its confusing to understand what the description for the specific codetype is, I would link him [You must be registered and logged in to see this link.] since most of you're questions would be already told by me. and a better plain in English description for the basic ones.


    Post: #13

    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