PDA

View Full Version : How do you "hack" SRB2?



GoldenSonic
April 2nd, 2013, 04:23
I can't figure out how to hack SRB2 like have it load different player files at start-up. Can someone help me please?

KitsuneFreak
April 2nd, 2013, 05:13
Loading different player files at start up isn't Hacking
It's Scripting.

Tyson TH
April 2nd, 2013, 06:30
Depends on what you're looking for. I have a file that's compatible with Cheat Engine.

MetalFighter
April 2nd, 2013, 07:41
Is there even a way to hack Srb2? Srb2 itself is an open source fangame, meaning that it's open for anyone to edit it. What would it even mean to hack the game anyways? When someone asks me about hacking Srb2, I imagine someone hacking the Master Server in some way and changing things from there. I myself have imagined someone gaining control over a server and being able to ban/kick the host. I would consider THAT as hacking Srb2(or perhaps exploiting the game in some way, who knows). In the end I'm not quite sure. I'd love to read anyone else's opinions on this matter though.

GoldenSonic
April 2nd, 2013, 19:17
Well how would you script it to load different player wads at start-up?

Steel Titanium
April 2nd, 2013, 20:33
You can do this two ways.


Autoexec
Edit the source code so it always load the files.

TaskBarR
April 2nd, 2013, 20:47
Hmm...both of those are hard...
I've never really tried hacking it.
(By the way, you seem familiar, do you get on the Runouw boards? It's me, sonicfan253.)

Zhire'El
April 2nd, 2013, 20:53
First you get a knife, preferably a machete.
Then you run SRB2 make sure the console is on.
THEN YOU REPEATEDLY STAB THE SCREEN AS YOU CRY TO YOURSELF, " WHY DOES MY LIFE SUCK, YYYYYYY111111111111."

Tyson TH
April 2nd, 2013, 21:15
I'm just going to further explain the autoexec method Steel mentioned.

First off, autoexec is basically a text file under the file extension of .cfg
The game will always attempt to load autoexec.cfg upon start up hence the name autoexec.cfg (auto execution).

So here's how it works, take mine for example:



color "yellow"
playersforexit "all"
bind = "cheats on"
bind / "skin "Knuckles""
bind . "skin "Tails""
bind , "skin "Sonic""
bind m "setlives 69"
bind n "setrings 1337"

You could also do the same with addfile "filename.wad".
If you're going to add a music WAD you can just modify music.dta, it won't crash or anything as long as the lump is SFX or music.

Colby
April 2nd, 2013, 21:17
Ways to start up srb2 with preloaded wads and socs
1. autoexec.txt file (srb2 wiki can explain it)
2. a batch file
3. going out of your way to edit the source code (not recommended)

Ways to "hack" srb2:
1. Cheat Engine + Practice (or download from a friend) but don't do it on netgames, it's uncool.

Thread closed, since the question was answered.