don't click here

Sonic 1 Special Stage Editor

Discussion in 'Engineering & Reverse Engineering' started by Oerg866, May 28, 2008.

Thread Status:
Not open for further replies.
  1. So I tried ESE and ESE II and both won't save. So what's the alternatives? I can't find anything except the Maze-O-Matic which is old and stuff.

    Yeah so ESE and ESE II just ignore my export, open and save commands in the Special Stage editors.

    Help would be appreciated, thanks :D
     
  2. nineko

    nineko

    I am the Holy Cat Tech Member
    6,316
    489
    63
    italy
    Told you on AIM, ms-dos editor

    Decompress the layout with TSDC (enigma compression) and open it with EDIT /64
    [​IMG]
     
  3. The problem would be that I don't know the objects in ASCII / the way how to comfortably get them in that thing.
     
  4. saxman

    saxman

    Oldbie Tech Member
    What's wrong with using Maze-O-Matic? I still use old stuff to this day! Some programs, even DOS programs, never lose their usefulness.
     
  5. The problem is... it edits SAVE STATES, not the ROM / Layout file itself :/ But if you say so, I'll give it a shot, even though I'm on vista.... :/ (DOSBox should do the trick then.)
     
  6. Tweaker

    Tweaker

    Banned
    12,387
    2
    0
    You can compress the savestate data in Enigma and replace the data from the disassembly, though. It's not terribly difficult.
     
  7. Hivebrain

    Hivebrain

    Administrator
    3,049
    163
    43
    53.4N, 1.5W
    Github
    I imagine you could open a decompressed special stage in Paint Shop Pro (or some other image editor) as a raw image file and edit it like that.
     
  8. Cinossu

    Cinossu

    Administrator
    2,832
    44
    28
    London, UK
    Sonic the Hedgehog Extended Edition
    I just use a hex editor, personally. It takes time and effort, but it works.

    <!--quoteo(post=197720:date=May 28 2008, 06:12 PM:name=nineko)--><div class='quotetop'>QUOTE (nineko @ May 28 2008, 06:12 PM) [​IMG][/quote]

    This is just awesome.
     
  9. But how do I know what data from the Savestate to compress?
     
  10. roxahris

    roxahris

    Everyone's a hypocrite. Take my word for it. Member
    1,224
    0
    0
    Doing anything at all
  11. ...All due respect HiveBrain, has it ever been that simple to do anything around here? =P I mean if he was editing the graphics, sure he could do that. But I don't think he can change the layout.
     
  12. saxman

    saxman

    Oldbie Tech Member
    Doesn't anyone know the location and size of the special stage data in a savestate? If he knew that, he'd be good to go.
     
  13. nineko

    nineko

    I am the Holy Cat Tech Member
    6,316
    489
    63
    italy
    8192 bytes, starting from $3498, but the actual special stage data are only 4096 bytes. For some reasons they are interleaved with chunks of 64 empty bytes.
    [64 bytes of data][64 x $00][64 bytes of data][64 x $00] etc
     
  14. Hivebrain

    Hivebrain

    Administrator
    3,049
    163
    43
    53.4N, 1.5W
    Github
    <!--quoteo(post=197859:date=May 29 2008, 03:36 PM:name=Spex Bluefox)--><div class='quotetop'>QUOTE (Spex Bluefox @ May 29 2008, 03:36 PM) [​IMG]
     
  15. nineko

    nineko

    I am the Holy Cat Tech Member
    6,316
    489
    63
    italy
    Well, yes, this works, but it's not much different than opening it in ms-dos editor.
    Since 1 byte = 1 block, you can either see that byte as ascii text or as a pixel in an 8-bit image.
    You can probably edit it also in Goldwave (yes, I once used Goldwave to edit the data into Snow Bros and Mean Bean ROMS)
     
  16. Nemesis

    Nemesis

    Tech Member
    Have a look at the command line options for my enidec and enicmp programs:

    Code (Text):
    1. Decompresses data compressed in the Enigma compression format.
    2.  
    3. ENIDEC infile outfile offset [<options>]
    4. infile:      The file that contains the compressed data.
    5. outfile:        The name of the file to create containing the decompressed
    6.                 data.
    7. offset:      The location of the compressed data in the file. Can be
    8.                 prefixed by 0x or written as a regular number. All offsets in
    9.                 hex.
    10.  
    11. <options>
    12. -p    Add padding to file. Use if you want to convert a S1 special stage to
    13.         the form it's stored in when in a savetate.
    Code (Text):
    1. Compresses a file using the Engima compression format.
    2.  
    3. ENICMP infile outfile [<options>]
    4. infile:      The file that contains the uncompressed level.
    5. outfile:        The name of the file to create containing the compressed level.
    6.  
    7. <options>
    8. -p    Strip padding from file. Use if compressing a special stage that's in
    9.         the extended 16kb form.
    You can use that magical -p option to take the special stage data from a savestate, and compress it back into the form its stored in when in the actual ROM, or vice versa. I know there's something out there that can edit S1 special stages in a savestate. Just extract the data from the savestate after you've edited it, and use the -p option to convert it directly to a compressed archive you can load back into the ROM.
     
  17. Puto

    Puto

    Shin'ichi Kudō, detective. Tech Member
    2,013
    0
    16
    Portugal, Oeiras
    Part of Team Megamix, but haven't done any actual work in ages.
    <!--quoteo(post=197704:date=May 28 2008, 05:14 PM:name=Oerg866)--><div class='quotetop'>QUOTE (Oerg866 @ May 28 2008, 05:14 PM) [​IMG]
     
  18. nineko

    nineko

    I am the Holy Cat Tech Member
    6,316
    489
    63
    italy
    Holy shit, this is
    [​IMG]
     
  19. saxman

    saxman

    Oldbie Tech Member
    Hey that image brings me back to the special stage I created way back called "Saxuality", and it literally had the word "SAXUALITY" written. I'd like to dig that up if I knew where to look...

    Nice looking editor by the way. I'm sure it works swell!
     
  20. Ayla

    Ayla

    I shat on your desk ^^ Oldbie
    1,759
    1
    16
    West Linn, OR
    Hacking Contest, StH Overlooked, Personal Indie game
    Prettiest one I've seen since Cyan's. I always loved Cyan's though...

    "WHOA!! MAJOR FENDER BENDER!!"
     
Thread Status:
Not open for further replies.