Sonic and Sega Retro Message Board: Dreamcast mods for SADX - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 16 Pages +
  • ◄ First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last ►
    Locked
    Locked Forum

Dreamcast mods for SADX DC Branding, textures, level ports, lighting research, etc.

#46 User is offline PkR 

Posted 05 October 2016 - 12:07 PM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening

View PostE-122-Psi, on 30 September 2016 - 06:44 AM, said:

Concerning character lighting, is there any way to reimplement the illuminated effect on Gamma's eyes and head base that were taken out of the remake? I'm not positive but I think it's kept with the other E-Series which may be helpful finding out how the effect is made.

I haven't looked at other E-Series but I'm gonna say yes! There are at least 3 ways to do it:
1. Reconfigure character lighting for Gamma's stages so that the light source comes from above and illuminates Gamma's eyes and head base. You can already do it by hex editing the EXE, it's just a bit tedious at this point. All other characters will also be affected by this change.
2. If palette-based lighting is restored and applied to characters, it might be enough to just get palette lighting to work to achieve this effect.
3. A combination of the above.

On a side note, some near-final notes on the structure of PL files (Dreamcast version):
Each PL file consists of 2 sequences of colors that go like this:
B1 G1 R1 FF B2 G2 R2 FF B1 G1 R1 FF and so on...
B, G and R are blue, green and red values respectively.
FF is kinda like alpha. It's either FF or 00 most of the time, though I think I have seen some other values in there too, very rarely.

The PL file consists of the following sections:
0x0000-0x07FF (palettes 1 and 2) - Level geometry
0x0800-0x0FFF (palettes 3 and 4) - Level objects (springs, rings, jump panels, rockets etc.). Only palette 4 seems to be used.
0x1000-0x17FF (palettes 5 and 6) - Character lighting (player models) and very rarely some miscellaneous objects, such as the meteors in Twinkle Circuit
0x1800-0x1FFF (palettes 7 and 8) - This is really weird, but it seems to affect Tails' shoes and jump ball. Yeah... Only palette 8 seems to be used.
0x2000-0x27FF (palettes 9 and 10) - Unknown for now
0x2800-0x2FFF (palettes 11 and 12) - Used for effects such as the fire in "The Past" cutscenes, probably in other effects too
0x3000 onwards (palettes 13-16) - probably not used in the game


Finally, together with ItsEasyActually we were able to find out which PL file is responsible for what stage. Here goes:
Filename format: PL[Level ID][Stage number]B.BIN
Stage number is a number between 0 and 4. List of level IDs:
_1	Emerald Coast - Egg Carries uses this one too when it's sunk
_2	Windy Valley
_3	Twinkle Park		
_4	Speed Highway		
_5	Red Mountain		
_6	Sky Deck - interestingly PL_60B.BIN (Sky Deck Act 1) is used for character select screen
_7	Lost World
_8	Ice Cap
_9	Casinopolis
_A	Final Egg
_C	Hot Shelter
_F	Chaos 0
_G	Chaos 2
_H	Chaos 4
_I	Chaos 6
_J	Chaos 7
_K	Egg Hornet
_M	Egg Viper
_N	Zero
_O	E-101
_P	E-101R
_Q	Station Square + Egg Walker
_T	Egg Carrier Exterior
_W	Egg Carrier Interior
_X	Mystic Ruins
_Y	The Past
_Z	Twinkle Circuit
1A	Sky Chase
1B	Sky Chase Part 2
1C	Sand Hill
1D	Station Square Chao Garden
1E	Egg Carrier Chao Garden
1F	Mystic Ruins Chao Garden
1G	Chao Race


There are 4 files that don't fit the above scheme:
PL_9MB.BIN - this is almost identical to PL_91B.BIN (Casinopolis Act 2, Dilapidated Way) except a minor change in one palette, so I'm guessing it's just an alternative palette for Casinopolis Act 2. It doesn't have a corresponding SL file, so it's quite likely this file is just a leftover. Unless the game uses it in a weird way, which I wouldn't be surprised if it did...
PL_MRD.BIN, PL_MRN.BIN and PL_MRE.BIN - those names sort of suggest they are related to Mystic Ruins Day, Evening and Night, but Mystic Ruins already have PL_X...B.bin files for evening, day and night. The PL_MR files do have matching SL files though, so it's quite possible they are actually used somewhere.
A couple notes on Egg Carrier. When you beat the game and Egg Carrier sinks, this stage will always load PL_10B.BIN (Emerald Coast palette) for the exterior area. If Egg Carrier hasn't sunk yet, it will use PL_T0B.BIN for the decks. The game doesn't seem to use PL_T1B and PL_T2B (supposedly Front and Back decks) and loads PL_T0B instead (or PL_10B).
Other than these, I've documented all of the PL files. You can use PLView/PLEdit's level list to see which file is for what.

EDIT: A major PLView update. The tool is now called PLEdit, obviously because now you can do a lot more with it.
Screenshot
Readme and changelog
Download link for PLEdit
This post has been edited by PkR: 01 December 2016 - 06:46 AM

#47 User is offline PkR 

Posted 24 October 2016 - 02:02 PM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening
Hey, bumping the topic with something SADX related (finally!)

This is my first Dreamcast mod for SADX, which injects into BOSSCHAOS0MODELS.DLL and does the following:
1) Restores Chaos 0 Dreamcast landtable and textures, including window reflection effects
2) Restores the Dreamcast model of the police car
3) Restores all Chaos 0-related Dreamcast textures

Download DC_BOSSCHAOS0MODELS

Screenshots album

Thanks MainMemory for your patience and help on the IRC!

P.S. Did you know how they came up with the "updated" Chaos 0 police car model in SADX? If you open the model in SAMDL and look underneath the car, you'll see some weird objects with wrong textures - those are the Dreamcast leftovers. Apparently they just moved the "old" parts (that used separate materials/textures) towards the center of the model so that they aren't visible. This is unbelievably stupid.

EDIT: I managed to rip the original model from the Dreamcast version, download the updated mod for a genuine Dreamcast Chaos 0 experience :specialed:
This post has been edited by PkR: 19 December 2016 - 11:32 AM

#48 User is offline PkR 

Posted 27 October 2016 - 06:08 PM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening
New mod!
Posted Image
Posted ImagePosted Image
More screenshots: http://imgur.com/a/8NSNE
This mod restores shiny Dreamcast cars, icicles in Ice Cap, the helicopter in Speed Highway and the grabber basket (that golden thing that brings Sonic to the next track). Environment mapping is restored by completely replacing the models with their Dreamcast counterparts that I ripped from my copy of SA1.
There may be more objects that are missing environment mapping in the PC version, but these three I think are the most visible. If you know any other model that lacks environment mapping in the PC version (but has it on Dreamcast), let me know and I'll try to restore it.

Download Dreamcast Objects mod version 0.9
I think I'm gonna try cars next. The cars in Station Square and Speed Highway also used environment mapping on Dreamcast, but they were changed in the PC version. Let's see if I can add them to the mod.


EDIT: Speed Highway cars done!
EDIT2: Station Square cars also restored! Download version 0.9 to get them.
EDIT3: The mod has now been discontinued because the objects are incorporated into their respective stage mods. Use those instead.
This post has been edited by PkR: 28 November 2016 - 11:59 AM

#49 User is offline PkR 

Posted 29 October 2016 - 08:27 AM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening
Another Dreamcast mod!

Posted Image Posted Image

This is a hack of ADV00MODELS.DLL that restores Dreamcast Station Square (for the most part).

Known issues and differences from the Dreamcast:

1) Minor collision problems in main area and near the pool.
2) Water textures and effects are from PC and GC Preview versions, slightly different in colors from the unmodded PC version. It was a huge pain to get water to work with the modded landtables and I don't feel like touching it ever again.
3) Water textures in the sewers and the pool area are not animated, also the animated waves on the seashore and the shadows at the bottom of the pool were removed (same as in the unmodded PC version) - these may get fixed eventually when I learn how to restore animated textures.
4) In the sewers the floor texture may slightly change color depending on whether it is day, evening or night.
5) Twinkle Park entrance walkway has slightly different reflections. There were transparency glitches with the ported Dreamcast landtable, so the glass tube had to be recreated using level pieces from the PC version landtable.
6) One door in the Casinopolis area is not transparent - I had to remove transparency because otherwise it wasn't showing any textures, probably for the same reason as (5).
7) In the PC version, walking along the edge of the seashore produced water splashes; on Dreamcast it doesn't happen and it looks weird. I tried to preserve the effect from the PC version, however there is an area where it behaves like in the Dreamcast version.
8) The hotel door has broken lighting in the evening and at night. This is due to a bug in SADX code, which needs to be fixed independently. The bug is present in unmodded SADX as well.

Download Dreamcast ADV00MODELS (Station Square) version 0.7
This post has been edited by PkR: 28 November 2016 - 11:57 AM

#50 User is offline PkR 

Posted 30 October 2016 - 06:06 AM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening
Posted Image
Dreamcast Title Screen mod 0.5

So I found a value in RAM that controls the scrolling background in SADX title screen, and wrote a code that disables it. Then I decided to make a "Dreamcast Title Screen" mod with a high-res Sonic Adventure logo taken from SonicSCANF.

This mod works on 800x600 and above. If you run the game at 640x480, it will revert to the SADX title screen. I will probably make a 640x480 version too sometime.

Since the original game was made for 4:3 aspect ratio, the title screen will be stretched on widescreen resolutions.

Unfortunately I couldn't figure out how to move the "Press Enter" text to the left, which is why I couldn't use the "PressStartButton" text from Dreamcast, so a custom "Start" texture was used instead.

This mod is compatible with SADX 99' Edition, just make sure it's listed AFTER 99' Edition in SADX Mod Loader.

Download Dreamcast Title Screen mod
This post has been edited by PkR: 28 November 2016 - 12:00 PM

#51 User is offline PkR 

Posted 01 November 2016 - 10:39 AM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening
Station Square update:

Fixed collision problems in the pool and the main area by copying problematic collision meshes over from the PC version
Restored water behavior from the PC version
Slightly changed the position of the sea bottom to improve the look of the horizon
Fixed a transparency issue with the building next to the Twinkle Park entrance
Fixed seashore transparency issues in the pool area
Improved the look of the water in the pool area
Fixed transparency problems in the sewers; this part of the stage is now using the PC landtable with Dreamcast textures
Fixed the problem with the crosswalk texture overlapping character shadow

Download ADV00MODELS version 0.7

Also, I think I'm getting closer to understanding the motives behind all those horrible graphical regressions in SADX. In general with ported Dreamcast assets I'm running into a lot of transparency issues, such as alpha channels not being handled properly, or objects becoming invisible behind transparent walls. Unfortunately it seems to be an engine limitation of sorts, which apparently was so difficult to fix that the assets had to be remade with this problem in mind. For example, the entire Twinkle Park walkway with glass walls was a single object in the Dreamcast version, but in SADX it was split into several models - large tube, small tube, middle frame and two reflections. Or the crosswalk, which was a solid rectangle that used a texture with an alpha channel on the Dreamcast, while in SADX the object was made into a zebra stripes shape to avoid alpha channel problems.

The reason I thought these changes were made due to an engine limitation rather than aesthetic decisions or whatever is that all of the above problems happen on the GC Preview Prototype in the areas that are still using Dreamcast assets. The Dreamcast GPU was able to do alpha sorting natively so the game code didn't have to take care of it, but this aspect couldn't carry over to other systems where the game was ported. It appears that, rather than fixing the alpha sorting issue, they decided to make all kinds of workarounds or just hide the problem by disabling transparency/removing objects altogether. Pretty much any area in the game that looks noticeably different from DC was most likely made to look that way because there was a transparency issue with original assets. In fact you can still find the problematic areas in the final version - for example, in the beginning of Hot Shelter there are green fish tanks; on DC you're able to see the animated waves if you look high enough, in SADX they just get cut off (but they're actually still there). I guess the reason they didn't bother to fix that was because you wouldn't normally look there anyway (or you wouldn't know what's supposed to be there if you haven't played the DC version).

The transparency issue is a huge obstacle to restoring Dreamcast assets in SADX because the glitchy parts will have to be remade in a way that doesn't make the game look worse. I've already reconstructed the Twinkle Park walkway in Station Square that looks somewhat close to the original, but there are many more areas like that in other levels. Some levels, like Speed Highway or Red Mountain, seem to work pretty well, while other levels, like Hot Shelter, are totally broken. It might be possible to recreate the problematic areas with a negligible loss of quality with some effort, though.

Anyway, since Station Square is now more or less complete, I think I'll leave it for now and start doing other levels. I've almost finished Speed Highway and Red Mountain, but I want to release a pack of at least 3 levels, and I also want to restore some Dreamcast level objects, which takes a lot of time since I have to look for their models manually in STGxx.BIN files.

EDIT: If you run into the problem when Sonic drops to his death at the Emerald Coast entrance, redownload the mod from the same link. The hotfix includes animated water in the sewers as a bonus!
This post has been edited by PkR: 28 November 2016 - 12:00 PM

#52 User is offline Lanzer 

Posted 02 November 2016 - 07:02 AM

  • The saber calls for its master...
  • Posts: 6827
  • Joined: 27-February 09
  • Gender:Male
  • Location:Glendale, AZ
  • Project:Doing Stuff.
  • Wiki edits:1
So you're basically tackling a job that Sonic Team themselves didn't want to do. damn thats going out of the way for just trying to getting this to look like the dreamcast version.

#53 User is offline Saturnine Sable 

Posted 02 November 2016 - 08:14 AM

  • Nectar Hime
  • Posts: 39
  • Joined: 29-October 16
  • Gender:Female
  • Project:SEGA Carnival
Excellent work man, this is something I've wanted to see for ages.

#54 User is offline Kono Mike da! 

Posted 02 November 2016 - 09:03 AM

  • Noodle Limbs
  • Posts: 107
  • Joined: 15-July 16
  • Gender:Male
  • Location:Italy
  • Project:Sonic Millenium: God help us all.
I'm wondering... is it possible to revert the SADX model and animations to the SADC model and animations? I really have no knowledge of SADX hacking whatsoever, so sorry if this is painfully obvious to your eyes.

I'm really impressed by your work, keep it up!

#55 User is offline PkR 

Posted 03 November 2016 - 03:06 AM

  • Posts: 175
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening

View PostKono Mike da!, on 02 November 2016 - 09:03 AM, said:

I'm wondering... is it possible to revert the SADX model and animations to the SADC model and animations?

Depends on what kind of models you're talking about. If you mean character models or anything else in CHRMODELS.DLL, at the moment there's no perfect solution, but the tools may get updated eventually to allow character model ports.
If you mean models of other things (badniks, bosses, level objects etc.), then yes, it's totally possible and you can check out my DC Objects mod which restores a few of them. It's a bit tedious because each model needs to be found in Dreamcast STGxx.BIN files, which takes a long time, so I prefer to replace only the most obvious regressions, such as when the object lacks environment mapping. In most other cases a PVM edit will be enough. Also, I know nothing about animation so I'm not sure, but I think they didn't really change much?

Anyway, I've made some minor updates to DC Objects and Station Square (links in the previous posts), and here's the first level pack that includes Windy Valley, Speed Highway and Red Mountain. It took me a while to fix numerous transparency glitches in Speed Highway, as well as collision bugs and other random problems.
Thanks TheArcadeStriker for your help with PVM edits for Windy Valley 3, although I ended up using Dreamcast landtables for all acts of Windy Valley after all.
Some people will probably wonder why we bothered to do Windy Valley. It's true that this stage hasn't suffered as much from the Dreamcast>Gamecube>PC transition as some other stages, however there are still things about it that I don't like, for example texture quality is quite a bit lower in the PC version, and some objects were removed in Act 1. For those wondering if texture quality was worth the trouble, here's a comparison: before and after. Although technically it was possible to improve texture quality without replacing the landtables, the PC version uses some pretty nasty texturing tricks that made it a pain to work with texture packs and modified PVMs, so I decided to go with Dreamcast landtables after all.

The next level pack will contain Casinopolis, Twinkle Park and Ice Cap.

EDIT: Forgot to say. I've also updated the title screen mod, which now works at 640x480 as well.
This post has been edited by PkR: 28 November 2016 - 12:00 PM

#56 User is offline Kæðer 

Posted 03 November 2016 - 07:39 AM

  • Posts: 28
  • Joined: 26-October 16
  • Gender:Male
  • Location:Washington, United States
Wow! That comparison is like night and day. I had no idea that the PC version was all the bad. I just thought it was glitchy and needlessly shiny. I wish I could help, but I can only offer you my excitement for your phenomenal work. Question, though: IS the PC version as glitchy as the GC version? I remember almost always getting sucked through the wall in the area just before the first loop in Emerald Coast (GC), but it didn't happen when I played it on Steam. Maybe I just got lucky?

#57 User is offline Morph 

Posted 03 November 2016 - 01:08 PM

  • AKA SonicFreak94.
  • Posts: 766
  • Joined: 01-August 08
  • Gender:Male
  • Location:Utah
  • Project:SA1/2 hax
  • Wiki edits:11

View PostKæðer, on 03 November 2016 - 07:39 AM, said:

I remember almost always getting sucked through the wall in the area just before the first loop in Emerald Coast (GC), but it didn't happen when I played it on Steam. Maybe I just got lucky?


That only happens if you're going really slow or not pressing forward, and it happens in every version of SADX. Fixed years ago in SADX Fixed Edition.

#58 User is offline Lanzer 

Posted 03 November 2016 - 03:27 PM

  • The saber calls for its master...
  • Posts: 6827
  • Joined: 27-February 09
  • Gender:Male
  • Location:Glendale, AZ
  • Project:Doing Stuff.
  • Wiki edits:1

View PostMorph, on 03 November 2016 - 01:08 PM, said:

View PostKæðer, on 03 November 2016 - 07:39 AM, said:

I remember almost always getting sucked through the wall in the area just before the first loop in Emerald Coast (GC), but it didn't happen when I played it on Steam. Maybe I just got lucky?


That only happens if you're going really slow or not pressing forward, and it happens in every version of SADX. Fixed years ago in SADX Fixed Edition.


How is Fixed edition btw? are we getting another update soon?

Love to have both this mod and Fixed edition as a single mod someday soon.

#59 User is offline Morph 

Posted 03 November 2016 - 04:31 PM

  • AKA SonicFreak94.
  • Posts: 766
  • Joined: 01-August 08
  • Gender:Male
  • Location:Utah
  • Project:SA1/2 hax
  • Wiki edits:11
I mean, they're mods, so you can just use them both :v:
As for updates, I do have some stuff I've added, but they're decidedly minor; nothing worth posting a release for until I can get some more stuff fixed. But that's enough of that tangent for this thread.

#60 User is offline E-122-Psi 

Posted 03 November 2016 - 04:41 PM

  • Posts: 1764
  • Joined: 29-December 09
  • Gender:Male
  • Wiki edits:41
I've seen some projects that imply inserting the Dreamcast models is possible to SOME degree. It seems to be the newly implemented ligaments such as the extra fingers that seem to be the roadblock:


This post has been edited by E-122-Psi: 03 November 2016 - 04:43 PM

  • 16 Pages +
  • ◄ First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last ►
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users