SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion

Reply
 
Thread Tools Search this Thread
Old 05-26-2010   #1
Fawfulfan
The Tortured Planet guy
 
Fawfulfan's Avatar
Default Some interesting stuff I found in the source code...

I found this while combing through "doomdef.h" in the source code. A bunch of disabled stuff, some of it from the past, some of it from the future.

Code:
//#define SLOPENESS // Fun experimental slope stuff!
Let me guess...this was a previous attempt to make slopes supported. I assume you've given up on this now.

Code:
//#define WEAPON_SFX
//#define FISHCAKE /// \todo Remove this to disable cheating. Remove for release!
//#define JOHNNYFUNCODE
//#define SHUFFLE //Incomplete OpenGL sorting code
I don't really understand this stuff...but never mind.

Code:
//#define CHAOSISNOTDEADYET // Pre-1.08 Chaos gametype code
This one's pretty self-explanatory, I guess.

Code:
//#define POLYOBJECTS_PLANES // Polyobject fake flat code
Is this what I think it is? If so, YAYZ.

Code:
//#define BLUE_SPHERES // Blue spheres for future use.
Huh?
__________________
Just another indie game developer...check out my website, Chapman Games!
Fawfulfan is offline   Reply With Quote
Old 05-26-2010   #2
Spazzo
Permanently Banned
Default

#DEFINE simply enables any code wrapped around #IFDEF [descriptor]. // prevents the declaration, so the code is never executed. In other words, if you had a compiling environment, you could revive the long-gone Chaos mode (or enable any of those other trinkets) by simply removing the commenting.

We keep a lot of things in and around the source code, both for archival and posterity. If you think you've uncovered something super secret, you clearly haven't seen anything yet. ;)

JOHNNYFUNCODE actually found its way back in quite recently, although in a "neutered" state, so to speak. True story: AJ and Sonikku used this in the early days of SRB2 to do thing placement in a few levels (Spring Hill Zone was one of them, as I recall).

Last edited by Spazzo; 05-26-2010 at 05:35 PM.
Spazzo is offline   Reply With Quote
Old 05-26-2010   #3
MascaraSnake
aka SpiritCrusher
Moderator
 
MascaraSnake's Avatar
Default

WEAPON_SFX adds custom sounds for the weapon rings. FISHCAKE is DEVMODE without modifying the game. And BLUE_SPHERES replaces special stage rings with blue spheres.
MascaraSnake is offline   Reply With Quote
Old 05-26-2010   #4
K.S.
Formerly Inuyasha
Retired Staff
 
K.S.'s Avatar
Default

From a coding perspective, anything prefixed with # is a compiler operation. Any code surrounded in #IFDEF (whatever) (...) #ENDIF blocks only gets compiled into the EXE if (whatever) is defined first, whether it be through a #DEFINE operation or through paramaters passed to the compiler. We use this all over the source code for code that needs to be specific to the OS/compiler/etc, as well as keeping some outdated things around that we want to keep around, just in case. (Chaos mode, for example.)

WEAPON_SFX gives each weapon their own firing sounds. We commented it out because we couldn't find decent sounds for each weapon in time.

FISHCAKE's comment gives all of its info away.

JOHNNYFUNCODE enables Objectplace in multiplayer -- placing objects, all that jazz. And no, there is no neutered version of this in place now, the spectator movement is actually fundamentally different from Objectplace.

SHUFFLE is... well, look at ShufflarB2, basically. It's OpenGL fixes and other fancy stuff, done by Shuffle and JTE if I recall correctly.

POLYOBJECTS_PLANES is exactly what you think it is. Just one problem -- they leak, very badly, if I do recall correctly.

BLUE_SPHERES is pretty self explanatory. Enable it and all the special stage rings turn into blue spheres. This was supposed to be 2.0's intended behavior but we ended up taking it out a bit before release because they got REALLY laggy at times.

Last edited by K.S.; 05-26-2010 at 05:42 PM.
K.S. is offline   Reply With Quote
Old 05-26-2010   #5
Fawfulfan
The Tortured Planet guy
 
Fawfulfan's Avatar
Default

Wow, I kind of imagined BLUE_SPHERES to be something way cooler and more secret. The real answer turned out to be quite anticlimactic.

And I don't know why I grouped WEAPON_SFX under the ones I didn't understand...it was pretty self-explanatory, too.
__________________
Just another indie game developer...check out my website, Chapman Games!
Fawfulfan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some source code help Conic Editing Help 8 08-14-2008 11:30 PM
SRB2 Source code found. Please lock. A-star SRB2 Discussion 5 05-26-2008 10:04 PM
What is the source code? darkbob1713 Editing Help 7 01-01-2008 11:50 PM
I found something interesting! hotdog003 Help 18 01-17-2005 12:07 AM
Source Code SSNTails Editing 14 03-21-2004 04:19 PM


All times are GMT. The time now is 04:57 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.