News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Error in order of operations?

Started by chozen-one, April 17, 2017, 04:02:21 PM

Previous topic - Next topic

chozen-one

Ok I'm fresh meat noob.  I had an error with smile RF when changing the level data pointer...This needs to be added in level entries txt BEFORE changing the pointer?  I think I missed that step and had to start over because everything went crazy in the editor.   :pwuh:

Quote58

Level entries is literally just a txt file of offsets that smile uses to calculate the amount of bytes for any given room by doing next offset - current offset, so it has no impact of the actual rom, and is only reflective of what you tell it. This is why if you open a heavily modified rom (like redesign) with your own version of smile, some rooms won't show up, others will show vastly more or fewer bytes available in a room, or enemies will show up as the default unknown object image.
When you want to expand the space of a room, you want to first find free space in the rom to put it (usually at the end of the rom, especially if you expand it), then if you want to avoid smile saying you have like -65kb of space, go to where it would be in level entries, and then if it doesn't exist (ex. after expanding the rom you will need to add entries for any space you use there) you add an entry, but always remember to add a final entry after the one for your room, so that smile will know how much space it has there. If you add a room at the end of level entries and you want to give it 1000 bytes of space, make sure you add another entry for 1000 bytes after it, so that smile can do the correct subtraction. Then replace the level data pointer with your new one.

chozen-one

Ok, I think that clarified it..What happened was I added the room  offset but I didn't specify the ending offset, but I'm not sure why that would cause issues since there was still another offset entry after my new room.  In any case, I started the tutorial over and it works now.  On to learning door pointers...