Thread: [Script✓] Pewter Guidepost Man Issue
View Single Post
Old May 19th, 2017 (6:30 PM).
KrustyKong's Avatar
KrustyKong KrustyKong is offline
    Join Date: Feb 2016
    Location: California
    Age: 22
    Gender: Male
    Posts: 75
    Originally Posted by tkim View Post
    the easiest laziest way to do this would be to search for free space and use that free space's offset. For example, you've found free space at 0x800000, then you would replace the 0x165F71 with 0x800000 within the script itself, while adding in your custom movements to that offset. You must end your movement with 0xFE.

    It's actually originally three commands (10, 25, FE). and you were overwriting those three(it doesn't go beyond 0xfe i guess) (in your case, only the first three of your custom movements overwrote those bytes. It became 6 (7 including 0xFE) because you got rid of the 0xFE when you overwrote, so the next set of commands were bridged to yours.

    basically: your entry can't be longer than the original, otherwise you need to use a different offset.
    Forgot to mention that I never overwrote 0xFE. I'm gonna go ahead and do the free space thing, but I still wanna know where the third 0x10 came from where there's supposed to be 0x30. like, I'd think it'd be
    #raw 0x10
    #raw 0x12
    #raw 0x10
    #raw 0x30
    #raw 0x10
    #raw 0x25
    Reply With Quote