Re: Discoveries of my own
Sorry for giant wall of text incoming!
So I'm trying to get the file paths for PackageX just like they used to be. I'm utilizing what PackageX spits out in terms of textures (which is really useful--thanks SANiK) and ingenuity to restore the files.
Now if we could reformat level layouts to get them to LOAD since with some levels the stuff doesn't work.
Here's how the game loads files:
https://www.youtube.com/watch?v=DdDI53VeGAc
The game first looks at QUBIX WORLD (not sure what QUBIX means), which is stuff like what texture for the background, or the layout texture. The layout is something to note since it always loads first. Before anything else, that file loads. Then the game examines the background texture. You have to define it with the textures like when using cubes. So you can't put say, "BACKDROP/COOLLEVEL/2013/BACK.PCX", because the game says "wait thats not a texture. Not doin' this crap". So you would go back and put this for example:
//========================================================================================
// 1_T\Sonicfx\Spring
//========================================================================================
NEW_TEXTURE "1_T\Sonicfx\Spring"
{
Value 001,TXTR_Bitmap //Flags
Value 002,Transparent+AutoTrans+BestQuality //Rendering Flags
Value 003,"PLT0288" //Palette
Value 008,"1_T\Sonicfx\Spring" //PCX FileName
}
(you don't need to put in the double forward slashes, those are just comments for programmers)
This tells the game to go into the 1_T folder, then Sonicfx, then (if the file is there) load SPRING.pcx (or "spring.pcx", just as long as the file name is there and it's spelled right it loads (no grammar needed!)). If there is no SPRING.PCX, it just goes into the folder waiting for a file to load. If a file to load isn't there, then the game goes "poop" and just puts a placeholder.
Now if the file IS there, then yey you defined it.
Now to go to QUBIX WORLD!
//========================================================================================
// QBX0001
//========================================================================================
NEW_QUBIX "QBX0001"
{
Value 001,"Jade2-2" //Layout Texture
Value 002,"SkyTxtr" //Background Texture
Value 005,Color(248,176,000) //Specular Color Range:0 -> 255
Value 006,Color(000,000,032) //Fog Color Range:0 -> 255
HexDump "01000100a6000000000000ea7fef00000800000001000000800400003e0c00003f0800001d0400007e0a0000ed0c0000800400003e0b00007f0b000001000000c71100003e0e000038080000641100007e0c0000e60c0000c71100003e0d0000780b0000010000008a1800003e0c00002400000027180000fe0a0000d20400008a1800003e0b000064030000010000005c1c00007e20000047000000f91b0000be1f0000f50400005c1c00007e1f00008703" //Stored Editor Positions
}
(This is from JADE2-2.DEF BTW)
Ignore all of this crap besides these parts:
//========================================================================================
// QBX0001
//========================================================================================
NEW_QUBIX "QBX0001"
{
Value 001,"Jade2-2" //Layout Texture
Value 002,"SkyTxtr" //Background Texture
I don't know what happens if you load other QUBIXes, and I don't wanna test it. Anyone got a thrown away computer so I can keep mine?
Back to DEF stuff, Value 001 is the layout texture. You can define a path if you want for the layout. Just make sure you type it right (but you don't need grammar again).
Value 002 is the background. Remember. It HAS TO BE DEFINED. I learned this the hard way. Anyway, put that in and you're good to go.
Now back to loading stuff.
So everything is running smoothly, I got placeholders for textures in and whatnot. But apparently the cubes are the wrong color (since it loads cubes by color, I'll specify what I mean another time) so the viewer throws a fit and doesn't load it.
I don't know what's wrong: maybe Sonic doesn't have a starting point, maybe the cubes ARE wrong, maybe it hates me. Whatever it is, I know the levels that don't work are the JADE2-(stuff).DEFs. I don't know why though.
EDIT:I'm an idiot, 1_NEWs files are blank except for some layouts.
insert lyrics here