Free space in SonMapEd...?

Discussion in 'Discussion and Q&A Archive' started by Ashuro, Oct 30, 2014.

Thread Status:
Not open for further replies.
  1. Ashuro

    Ashuro Anti-Cosmic Metal Of Death Member

    Joined:
    Sep 27, 2014
    Messages:
    550
    Location:
    France
    HE-LLO! (i've a bad english).

    I need your help!

    In SonMapEd, with Sonic spindash sprites, there was some yellow free space, but i've imported so many new sprites and the yellow free space is filled.

    Please, tell me how i can extend the yellow free space? 

    Sorry for my bad english.
     
  2. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    I'm assuming by "yellow free space" you mean after filling VRAM with FF's. In which case, you cannot extend the space. The available VRAM space is from 0000 to FFFF, and cannot expand any further. You will need to sacrifice something that's in VRAM taking up space (basically, taking something out to give you the free space you need). There is however a method of allowing twice the amount of VRAM, and assigning the individual name tables to one or the other, however, from what I recall it'll require some additions to the cartridges, and I don't believe emulators are suited to the task of supporting this, so it looks like you're stuck using VRAM allocated from 0000 to FFFF.

    If you're not talking about VRAM, and you're just talking about Sonic's sprite art file (to be stored in the ROM), then I'd suggest using a hexadecimal editor.

    Download Site Dear moderators, forgive me for sharing the site, the reason is due to the distribution of the hex editor, I'm allowed to provide a download for the installer provided I share a link to their site.
    Using this, you can open the file in it's binary (hexadecimal) form, scroll to the end of the file, and then insert more bytes. Inserting 32 bytes will give you space for 1 extra tile, so if you need an extra 100 tiles, then 100 x 32 = 3200, so you'll insert 3200 bytes to get 100 tiles.

    Now, I don't recall which game you're adding art for, and that can be important. For sonic 1 you can get away with expanding this way, there-as Sonic 2 or above you must be careful to ensure the sprites do not overflow the boundaries (and multiples) of 0x20000. You should get away with it though.
     
  3. Ashuro

    Ashuro Anti-Cosmic Metal Of Death Member

    Joined:
    Sep 27, 2014
    Messages:
    550
    Location:
    France
    Using this, you can open the file in it's binary (hexadecimal) form, scroll to the end of the file, and then insert more bytes. Inserting 32 bytes will give you space for 1 extra tile, so if you need an extra 100 tiles, then 100 x 32 = 3200, so you'll insert 3200 bytes to get 100 tiles.


    Now, I don't recall which game you're adding art for, and that can be important. For sonic 1 you can get away with expanding this way, there-as Sonic 2 or above you must be careful to ensure the sprites do not overflow the boundaries (and multiples) of 0x20000. You should get away with it though.
    Thank you!!


    Yeah okay, i will try the 2nd method. 


    Yes, my hack is Sonic 1!
     
Thread Status:
Not open for further replies.