[Sonic 1] How to make SonED2 support both GHZ tile binaries

Discussion in 'Tutorials Archive' started by N30member, Jul 11, 2014.

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

    N30member non-pro user btw Member

    Joined:
    Feb 15, 2014
    Messages:
    216
    Location:
    Kazakhstan
    Disclaimer. This guide works with SonED2 projects originally made by Quickman. If you have plans to adding dynamic tilesets, then you NEED to apply the following guide by MKaMeX!

    Some of you may stucked the problem, when you try to edit Green Hill Zone, the main window will be like this:

    [​IMG]
    Then you applied this guide, and you had no problems. But I invented a muuuch easier way to solve it. Okay, let's go!

    Step One. Open GHZ project file(ghz1.sep, ghz2.sep, ghz3.sep) in any text editor. It should be like this:

    Type: 1

    Zone ID: 0
    Act ID: 0

    Object Def: objdefs1obj

    8x8 Tiles: ..artnem8x8ghz.bin

    16x16 Tiles: ..map16ghz.bin

    256x256 Tiles: ..map256ghz.bin

    FG Layout: ..levelsghz1.bin
    BG Layout: ..levelsghzbg.bin

    Objects: ..objposghz1.bin

    Palettes-

    Number of files: 2

    Palette 1-

    Start index: 0
    Number of entries: 16
    File: ..palletsonic.bin

    Palette 2-

    Start index: 16
    Number of entries: 48
    File: ..palletghz.bin

    Angle Array: ..collideanglemap.bin
    Collision Array: ..collidecarray_n.bin
    Rotated Collision Array: ..collidecarray_r.bin

    Collision Index 1: ..collideghz.bin

    -EOF-

    Step Two. Look at this line:


    8x8 Tiles: ..artnem8x8ghz.bin

    and these lines:


    Palettes-

    Number of files: 2

    Palette 1-

    Start index: 0
    Number of entries: 16
    File: ..palletsonic.bin

    Palette 2-

    Start index: 16
    Number of entries: 48
    File: ..palletghz.bin

    Did you get the idea? We edit 8x8 tile load code to get something similar to palette load code.

    Step Three. Change this:

    8x8 Tiles: ..artnem8x8ghz.bin
    To this:

    8x8 Tiles-

    Number of files: 2

    Tile 1-

    File: ..artnem8x8ghz1.bin

    Tile 2-

    File: ..artnem8x8ghz2.bin
    And we get it. Do it with each GHZ projects.

    Step Four. Let's check our new project files in action. Open project in SonED2 again, and you will see...

    [​IMG]
    ...normal Green Hill! Presto!! If you met a new bug after this guide, feel free to comment.

    P.S. I heavily apologize if this topic was made without grammar. If so, sorry.

    EDIT: guideline added to the disclaimer
     
    Last edited by a moderator: Mar 8, 2015
  2. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    This should have been done when SonED2 was first updated to support multiple art files. Somebody should probably update the project files available for download so that this guide isn't necessary though.
     
Thread Status:
Not open for further replies.