Jump to content

Help with pointers


perhaps
 Share

Recommended Posts

Lets say that I want to expand an array using hex editor. It's done by:

Finding the offset of the data you want to expand

Copying the data

Pasting the data where there is more free space

Replacing the pointers that led to the original offset with those that lead to the new one

Editing the Nightmare modules pertaining to the data so that they work with the new offset. Voila

But what if you are unable to find the offset of the data you wish to change? Is there any way to find it?

Any help is appreciated

Link to comment
Share on other sites

If you're expanding something that has a Nightmare Module, there's an easy way--just open the .NMM in a text file and look at the current offset (it's the thing you end up editing in the future).

If you don't know the original offset though, I find that a little weird in that if you're editing it, you have to know where it is, right? If it's something you don't know the location of in the first place, then it's a bit more difficult. There are various basic hex editing tricks to finding out where data is (such as searching potential hex patterns, looking near data that is similar or relevant to the data you're actually looking for, corrupting the ROM and seeing if it affects what you're looking for, etc.) but one can also use a debugger to locate offsets, though this is a bit more complicated and would require some knowledge of ASM, knowledge of how the game works, and patience. XP

Link to comment
Share on other sites

If you're expanding something that has a Nightmare Module, there's an easy way--just open the .NMM in a text file and look at the current offset (it's the thing you end up editing in the future).

If you don't know the original offset though, I find that a little weird in that if you're editing it, you have to know where it is, right? If it's something you don't know the location of in the first place, then it's a bit more difficult. There are various basic hex editing tricks to finding out where data is (such as searching potential hex patterns, looking near data that is similar or relevant to the data you're actually looking for, corrupting the ROM and seeing if it affects what you're looking for, etc.) but one can also use a debugger to locate offsets, though this is a bit more complicated and would require some knowledge of ASM, knowledge of how the game works, and patience. XP

ASM huh. Guess I'll have to try to look into it. Thanks a lot though :D

Link to comment
Share on other sites

I wish to add Characters into levels/ increase the maximum allotted characters. I'm assuming there's a limit to the data allowed in the game, and I was going to try and repoint the data to a new area in the ROM.

Link to comment
Share on other sites

that would be event editing and not really a repointing/expanding job (well it could be if you're going to be super precise but it'd probably be easier to just muck with the events)

Link to comment
Share on other sites

Makes sense.

Is there any way to change maximum Luck? I'd guess it would take hex editing, but it's one I've never seen anyone bother with.

Thanks a lot for all the help by the way. I'll get better I promise XD

Link to comment
Share on other sites

there is an offset to do it and it could probably be found by people (i'd do it for you but i have too much work to do and debugging is time consuming) who are savvy (ie blazer/zahl/hex/etc)

or it's logged somewhere but i dunno where

Link to comment
Share on other sites

there's a module for it and there's doc on the offsets to edit in Hextator's Doc which you can google

For characters in a chapter it'd be relatively painful to "repoint it", it'd probably be more beneficial to rewrite your events and/or learn how to disassemble events and repoint just the UNIT data or something

Granted the latter isn't something people usually do so I can't really attest to how much help you'd get with this :\

Link to comment
Share on other sites

Haha well thanks a lot for the help guys. Its been A LOT of help actually, since I finally have somewhere to start XD

Just one more rut I literally JUST ran into.

There's a patch to fix the custom animation problem where magic works with physical weapons right? I can't seem to find it anymore, and I've found a sudden need for it. Any idea where it is?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...