Sonic 2 Special Stage Editor

Discussion in 'Engineering & Reverse Engineering' started by flamewing, Feb 10, 2011.

  1. flamewing

    flamewing

    Emerald Hunter Tech Member
    1,138
    0
    16
    France
    Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
    Edit: New version released:
    [​IMG]

    Changes:
    • Fully functional undo/redo: you can now undo your mistakes -- whether it is the deletion of a ring group, a segment or even an entire special stage. The undo/redo are also smart, grouping many related actions.
    • WYSIWYG drag/drop of selections.
    • Rings and bombs can now be drawn in lines, loops, triangles and more in a click-and-drag manner, adding several rings and bombs in a WYSIWYG manner.
    • Added a counter showing total rings, bombs and ring/bomb shadows. This can be used to keep them within limits, which would prevent a segment from ever ending.
    • Grid-lock (toggled through toolbar button, defaults to on) constrains the possible angles for ring and bomb placement.
    You can grab the Windows binary or the source code.

    The original content of the post has been wrapped in spoiler tags.

    Edit: New version released. New screenshot: [​IMG]
    The changes are rendering the special stage track to give a better visual guide of what is where and adding constrained object creation (ctrl+left click when inserting rings or bombs).

    Windows version 0.1.1.

    Source tarball 0.1.1.

    The rest of the original post follows:

    I have been working on th past couple of weeks in an editor for the Sonic 2 Special Stages. The result is this:
    [​IMG]
    With it, you can edit the object placement (rings, bombs), how the special stage twists and turns (within S2 engine constraints), how long each special stage is and how many special stages are in the files. For other things (background, palette, ring requirements or actually making any new special stages work in-game, to name a few), you need to edit the disassembly.

    There is a pre-compiled version for Windows (click here for v0.1), which can be extracted anywhere you like.

    There is also a source tarball (click here for v0.1), which can be used to build it for Linux (or for Windows, if you are masochistic enough not to take the binary blob above). To compile, you need libgtkmm-2.4-dev version >= 2.12, and all associated dependencies (see e.g., this for a quick summary).

    In either case, the included readme is essential for using it, but I think the program is user-friendly enough to dispense with it.

    I welcome any suggestions/bug reports.

    Edit: You can also grab the source code on GitHub.
     
  2. theocas

    theocas

    Tech Member
    346
    0
    0
    I suppose I can compile this for OS X too, right? It looks so promising...
     
  3. MarkeyJester

    MarkeyJester

    My predecessors have nothing on me. Resident Jester
    Hah, cool stuff, it's about time we got a Special Stage editor for Sonic 2 (as mentioned many, many times before), I've gotta give this a go soon, see how interesting it'd be to create new special stages.

    Nice work from what I can see so far though!
     
  4. flamewing

    flamewing

    Emerald Hunter Tech Member
    1,138
    0
    16
    France
    Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
    <!--quoteo(post=556864:date=Feb 10 2011, 01:21 AM:name=theocas)--><div class='quotetop'>QUOTE (theocas @ Feb 10 2011, 01:21 AM) <a href="index.php?act=findpost&pid=556864"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->I suppose I can compile this for OS X too, right?<!--QuoteEnd--></div><!--QuoteEEnd-->
    I think so. You may have to use Fink to do it, and some twiddling of configure.ac may be required. If you get it working, I'd appreciate knowing the steps so that I can add them to SVN.
     
  5. Scarred Sun

    Scarred Sun

    Be who you needed when you were younger Administrator
    7,563
    16
    76
    Tower 8 ️
    Welp, this.
    I have been bitching about this for a DECADE.

    You have made my dreams.
     
  6. The special stage no one thought would get an editor GETS AN EDITOR?!

    Awesomesauce. I can only imagine what goodness will come from this!
     
  7. PsychoSk8r

    PsychoSk8r

    HighKnights Oldbie
    2,580
    0
    0
    Walsall, UK
    30 Day Project: Revisited.A New Release!
    It's about time somebody did this! Well done! =P
     
  8. nineko

    nineko

    I am the Holy Cat Tech Member
    Flamewing, I will upload this on the wiki soon if you agree.
    Just a question: does it have a name, or is it just "Sonic 2 Special Stage Editor"?
    Also, the "readme" file included alongside the Windows executable should probably be renamed to "readme.txt" to make it easier to read for people who use Windows and are complete noobs, and it should use CR+LF so that Notepad displays it right. It's just a minor thing, though.
    Bonus points for not using .net
     
  9. Azu

    Azu

    I must be stupid. Member
    This awesome and all, but it would be a nice for a direct rom edit.
    In any event, is it possible to add like a line tool or some type of array creation tool?
     
  10. Azu

    Azu

    I must be stupid. Member
    Edit: Didn't know it when through.
     
  11. flamewing

    flamewing

    Emerald Hunter Tech Member
    1,138
    0
    16
    France
    Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
    <!--quoteo(post=556979:date=Feb 10 2011, 11:26 AM:name=nineko)--><div class='quotetop'>QUOTE (nineko @ Feb 10 2011, 11:26 AM) <a href="index.php?act=findpost&pid=556979"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->Flamewing, I will upload this on the wiki soon if you agree.
    Just a question: does it have a name, or is it just "Sonic 2 Special Stage Editor"?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Agre to Wiki. The name is just that: Sonic 2 Special Stage Editor.

    <!--quoteo(post=556979:date=Feb 10 2011, 11:26 AM:name=nineko)--><div class='quotetop'>QUOTE (nineko @ Feb 10 2011, 11:26 AM) <a href="index.php?act=findpost&pid=556979"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->Also, the "readme" file included alongside the Windows executable should probably be renamed to "readme.txt" to make it easier to read for people who use Windows and are complete noobs, and it should use CR+LF so that Notepad displays it right. It's just a minor thing, though.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Next revision will do both. Here is a screenshot for the Wiki (already for the next revision):
    <img src="http://img824.imageshack.us/img824/8349/ss2editscreen.png" border="0" class="linked-image" />

    <!--quoteo(post=556979:date=Feb 10 2011, 11:26 AM:name=nineko)--><div class='quotetop'>QUOTE (nineko @ Feb 10 2011, 11:26 AM) <a href="index.php?act=findpost&pid=556979"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->Bonus points for not using .net<!--QuoteEnd--></div><!--QuoteEEnd-->
    I have little incentive for doing that seeing as I use Linux myself. Sure, some people are falling all over for Mono, but I just don't like it.
     
  12. nineko

    nineko

    I am the Holy Cat Tech Member
    <a href="http://info.sonicretro.org/Sonic 2 Special Stage Editor" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Sonic 2 Special Stage Editor</a> :)

    I almost labeled it as version 1.1.7 until I realised the .7 comes from the .7z extension :v:
     
  13. minichapman

    minichapman

    I'd like to think I'll be imparting words of wisdo Member
    651
    0
    16
    United Kingdom
    Staying sane.
    What can I say that hasn't been said that hasn't been said before?

    Absolutely fantastic work there.
     
  14. MarkoMan

    MarkoMan

    In memory of Dreds... Member
    294
    0
    0
    Queens, NY
    Sonic 2 Turbo
    Oh boy... this looks like fun.

    I wonder how many special stages one could possibly make...
     
  15. Arctides

    Arctides

    I am a bloated bag of hate. Oldbie
    This is certainly a great tool, as we haven't had a utility to edit the S2 Special Stages before (though ones for S1 and S3K have existed for ages).
    ... Yet I get the feeling that we're going to see penis-shaped ring clusters in a hack because of this.
     
  16. Mr Lange

    Mr Lange

    A wise guy eh. I know how to DEAL with wise guys. Member
    1,286
    0
    16
    The Land of Waldos
    Sonic Utopia, Sonic Overture
    With all the Sonic 2 rom hacks out there, the one part never changed were the special stages. Years later we will finally have some fresh half pipe special stages to play. Awesome.
     
  17. Jimmy Hedgehog

    Jimmy Hedgehog

    Member
    1,724
    0
    16
    England - Slough
    Getting the motivation to continue old projects
    <!--quoteo(post=557172:date=Feb 11 2011, 02:38 AM:name=Arctides)--><div class='quotetop'>QUOTE (Arctides @ Feb 11 2011, 02:38 AM) <a href="index.php?act=findpost&pid=557172"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->This is certainly a great tool, as we haven't had a utility to edit the S2 Special Stages before (though ones for S1 and S3K have existed for ages).
    ... Yet I get the feeling that we're going to see penis-shaped ring clusters in a hack because of this.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Penis Special Stage Sonic 2 Edition anyone? :v:

    This tool looks great! Would love to try it sometime ^^
     
  18. SegaLoco

    SegaLoco

    W)(at did you say? Misfit
    Wow, simply wow. I clap for you my friend. I considered doing something like this a while back, but I could never arse myself to study up on the format. I'm so glad you made this!!! Good work!! :D
     
  19. Eduardo Knuckles

    Eduardo Knuckles

    Not a loved one, but the most hated person. Member
    410
    3
    18
    Someplace somewhere
    Project S.A.M.G.
    Thanks, flamewing. Thanks A LOT. Our dreams are now really a true fact. If we had a Blue Spheres special stage editor, more than one Sonic 1 Special Stage editors, why not a Sonic 2 Special Stage editor? ;)

    <!--sizeo:1--><span style="font-size:8pt;line-height:100%"><!--/sizeo-->Que trabalho fabuloso, fabuloso demais.
    <u>E das mãos de um brasileiro!</u>
    Você realmente realizou meus sonhos, cara. Parabéns pelo feito surpreendente!<!--sizec--></span><!--/sizec-->
     
  20. Mr Lange

    Mr Lange

    A wise guy eh. I know how to DEAL with wise guys. Member
    1,286
    0
    16
    The Land of Waldos
    Sonic Utopia, Sonic Overture
    Maybe someone can help with this.
    I'm using the 2007 Sonic 2 disassembly. I split a clean rom and all the files were put in there proper places.
    I used the latest Sonic 2 Special Stage Editor here, and navigated to the misc folder as instructed.
    The moment I pressed ok, the program consumed tons of memory, and minutes later dropped an error message like:
    "This application has requested the Runtime to terminate it in an unusual way."
    What in the hell. That sounds suspiciously like the program requested too much memory. I have 512 mb ram, is that seriously not enough for this program??