Sonic Prototypes (released by Hidden Palace)

Discussion in 'Discussion & Q&A' started by LazloPsylus, Oct 26, 2019.

  1. Kilo

    Kilo Foxy Fren Member

    Joined:
    Oct 9, 2017
    Messages:
    394
    Location:
    A warm and lovely place~
    So here's how collision is loaded in the prototype...
    upload_2021-1-8_16-55-46.png
    This is so noobish I can't help but facepalm. Thankfully it was changed in final for a pointer table. But this seriously reminds me of programming by a certain infamous developer in the present day.
     
  2. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,825
    Location:
    italy
    That looks even worse than the approach I used in my "per-act" music guide, which was bashed just a few days ago (that's why it came to mind).

    It almost looks like someone wanted to mimic the "switch" structure from C (or the "select case" structure from Basic, whichever you prefer), but even then, that's indeed an inefficient way to do it, why do they keep on checking even after they already found the right zone?
     
    Inferno, ProjectFM, Kilo and 2 others like this.
  3. Inferno

    Inferno Rom Hacker Member

    Joined:
    Oct 27, 2015
    Messages:
    69
    Location:
    Hidden Palace Zone, Westside Island
    Thank whatever deity that they switched to a pointer table.
     
    Kilo and RandomName like this.
  4. Pacca

    Pacca Having an online identity crisis since 2019 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,156
    Location:
    Clock Work Zone
    These are the kinds of discoveries I find most heartwarming about the prototype. Silly things like poorly written code and a few object placements that clearly went for looks over gameplay make it feel a little like someones first rom hack. This is one of the first times anyone had ever tried to make a sonic game, and it shows in the prototype almost like it would in any semi serious first rom hack. It brings me back to the time when I was first figuring this stuff out, and I love that.
     
  5. Kilo

    Kilo Foxy Fren Member

    Joined:
    Oct 9, 2017
    Messages:
    394
    Location:
    A warm and lovely place~
    Splats ready for the Hive disasm, go nuts
     

    Attached Files:

    KCEXE, Bluestreak, warr1or2 and 3 others like this.
  6. <user deleted>

    <user deleted> Newcomer Member

    Joined:
    Jul 7, 2016
    Messages:
    24
    Is there a reason why one can't use Hex-Rays Home edition to decompile the ROM image? I contacted their sales department, and they mentioned that their home edition can decompile M68k images for $365. Far cheaper than $1,800 + yearly maintenance fees.

    My other question is what debugger tool do people use to poke around the ROM when it's executing? Is there an emulator with a good built-in debugger, visual VRAM viewer, and anything else that might be handy?
     
  7. Clownacy

    Clownacy Well-Known Member Staff

    Joined:
    Aug 15, 2014
    Messages:
    909
    Regen has a CPU debugger with breakpoint support, RAM and VRAM viewers, and a bunch more. BlastEm seems to have some debugging features as well, but I'm not as familiar with it. I know it has a VRAM viewer at least.
     
    Last edited: Jan 13, 2021
    Pacca and <user deleted> like this.
  8. warr1or2

    warr1or2 I AM CLG Member

    Joined:
    Apr 7, 2008
    Messages:
    400
    Location:
    Town Creek, AL
    [​IMG] [​IMG]
    The glitch, so far, in the final, came from the beta
    [​IMG]
     
    Last edited: Jan 13, 2021
  9. Inferno

    Inferno Rom Hacker Member

    Joined:
    Oct 27, 2015
    Messages:
    69
    Location:
    Hidden Palace Zone, Westside Island
    That bug with the GHZ BG leaking through also exists in final.
     
  10. ValleyBell

    ValleyBell Well-Known Member Member

    Joined:
    Dec 23, 2011
    Messages:
    159
    Sorry, I'm terribly late. But better late then never, so here it is:
    Sonic 1 Proto SMPS rip + sound driver/DAC driver disassembly
    In order to play the proto rips back in SMPSPlay, you need to compile your own version from the SMPSPlay source code, due to a previously unimplemented coordination flag.

    Notes about the SMPS driver
    • It's an SMPS 68k/Type 1b sound driver (same as Golden Axe II / Dragon's Eye / Toki: Going Ape Spit).
    • It's from before they stripped tons of features off, which makes it superior to the final sound driver. (aside from a few bugs with fade-in)
    • It has a list of presets for modulation effects, which are usually set using coordination flag $F0. Some songs (e.g. Green Hill Zone) use modulation effects from that global array, with coord. flag $E3.
      What is really interesting about this is, that
      • Only SMPS 68k/Type 1 games have this feature.
      • Only the Sonic 1 prototype makes use of it. None of the releases games does.
      The syntax is $E3 xx where xx is a 1-based (!) index into the modulation preset array.
    Notes about the DAC driver and the DAC samples
    • It is the typical "generic SMPS 68k DAC driver" and is most similar to the one used by Shadow Dancer.
      That includes the problem with the DAC not being disabled after a sample is finished.
    • The DAC samples are a binary match with the final version of the game.
    • After the rewrote the DAC driver in order to support the uncompressed SEGA speech, they only adjusted the pitch of the kick drum. ($14 -> $17). The pitch of all other sounds was left untouched, which makes the samples higher pitched than originally.
     
    Last edited: Jan 14, 2021
  11. Speems

    Speems Active Member Member

    Joined:
    Mar 14, 2017
    Messages:
    30
    Location:
    Rochester Hills, MI
    Its download already got taken down after like an hour and a half, I was gonna be interested in this :(
     
  12. warr1or2

    warr1or2 I AM CLG Member

    Joined:
    Apr 7, 2008
    Messages:
    400
    Location:
    Town Creek, AL
    It's what I said.
     
  13. ValleyBell

    ValleyBell Well-Known Member Member

    Joined:
    Dec 23, 2011
    Messages:
    159
    Okay, now that is new. I don't think that happened before, even though I have the complete SMPS research pack in the same folder.

    Anyway, I changed the link. The new one shouldn't go down.
     
    Clownacy and KCEXE like this.
  14. Kilo

    Kilo Foxy Fren Member

    Joined:
    Oct 9, 2017
    Messages:
    394
    Location:
    A warm and lovely place~
    So for some reason people tend the think that the 'night time' palette that was found in the prototype was like a night mode for GHZ, or if you're insane enough, an underwater palette for Labyrinth, but uh, nope. It's the ending. I always thought it was the end, and will forever believe it's the ending palette. Just because it's not programmed in, does not mean assets won't be made for it. Note the flowers themselves are not in the ROM, I took the final's ending flowers and matched them up to the palette. And it works pretty perfectly, too perfectly.
    upload_2021-1-21_6-49-4.png
     
  15. <user deleted>

    <user deleted> Newcomer Member

    Joined:
    Jul 7, 2016
    Messages:
    24
    I read the Retro Gamer issue with the article about the Sonic 1 beta is available. I tried buying the issue off their website, but all I got were options to purchase a yearly subscription, which is not something I want. Does anyone know if it's possible to just get a single issue?

    And is it me, or is the Retro Gamer website way out of date? Was the last update around a year ago?
     
  16. NiktheGreek

    NiktheGreek Newcomer Member

    Joined:
    Apr 13, 2008
    Messages:
    4
    <user deleted> likes this.
  17. <user deleted>

    <user deleted> Newcomer Member

    Joined:
    Jul 7, 2016
    Messages:
    24
    Got it. I ordered a copy of the print edition. Question I have now is this: is it possible to buy a digital copy of the issue without having to pay for a subscription? I'd like to check out the article in the meantime while I wait for my print copy.

    EDIT: Found it. Never mind.
     
    Last edited: Jan 29, 2021