Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - Adding to the hex? | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Violent J

Melon Bug
Level: 41

Posts: 514/749
EXP: 479154
For next: 991

Since: 05-05-04
From: The Lotus Pod

Since last post: 8 hours
Last activity: 8 hours
Posted on 08-11-05 08:29 PM Link | Quote
Is it possible to add spaces for new bytes in the hex? Like, for instance, in Mario Land im having touble because when it hits a FE for the level data, it goes to the next chunk or line of the level. (See my other threads pic at the end) So what I need to do is, if I wanted to move the say, first Pipe upwards, I would want to put ground below it. But that is not possible, because a FE is there and goes to the next line! Its hard to explain, but I hope you guys get it. Heres an example....

0xA2BE: 02 53 40 D3 36 60 61 FE

02 is the Sky two tile Y axis position. Increasing or decreasing the 0 shifts the Sky up and down.

53 Tells what the Top half of the skys tile is.
40 Tells what the Bottom half of the sky tile is.

*Now it skips down to the ground*

D3 is the Three Part Grounds X axis position.

36 60 and 61 are the Part of that Pyramid (36)(This is above the ground), Top Half of the ground (60), and the Bottom Half of the ground (61).

Now it hits FE. This FE tells it to go to the next chunk or line, and it starts over again.

So I need to know if it is possible to add bytes so it is possible to add to the chunks...

I need help ASAP so please! Help! In the meantime, Im going to play some Team Fortress Classic.



Jathys

Red Goomba
Level: 11

Posts: 37/48
EXP: 5916
For next: 69

Since: 12-21-04

Since last post: 8 days
Last activity: 8 days
Posted on 08-11-05 09:37 PM Link | Quote
I just woke up and am probably misreading something, but here's what I'd suggest...

Immediately after the level is done (but before the next one begins), you might find unused/empty space . . . This will be represented by a lot of 00's or, more likely, a lot of FF's. You should check how much space you have available, so you don't accidentally overwrite other levels.

Anyway, once you know how many FF's you're dealing with . . . Go to the spot you want to insert data into and you can do just that (with *some* hex editors). Make sure it inserts and doesn't simply overwrite though. Anyway, you'll be able to tell the editor how many bytes you wish to insert at the location.

Finally . . . Since this would have shifted the rest of the rom data by that many bytes, you need to go back to the FF's section you found following the level and remove the same number of FF's as bytes you had inserted earlier (this shifts the rest of the rom back, so no pointers need to be changed).

*NOTE* - This method will only work if the level does has FF's immediately after it (Which it might, though I've never looked... As I said, I just woke up).
Violent J

Melon Bug
Level: 41

Posts: 515/749
EXP: 479154
For next: 991

Since: 05-05-04
From: The Lotus Pod

Since last post: 8 hours
Last activity: 8 hours
Posted on 08-11-05 11:23 PM Link | Quote
Alright, when I go back to my Dads I will look into that. Thanks alot!
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Rom Hacking - Adding to the hex? | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.012 seconds.