Page 1 of 1

Running defcon at work.

Posted: Fri Oct 06, 2006 1:51 pm
by Pyrostasis
Seems the largest file is sounds.dat
As I have no audio at work... is it possible to simply delete this file and run defcon with out it?

Posted: Fri Oct 06, 2006 2:51 pm
by zhatka
I just renamed the sound.dat to _sounds.dat to test it, and it puked. So looks like you need that file.

Posted: Fri Oct 06, 2006 2:52 pm
by Pyrostasis
damn

Oh well

Posted: Fri Oct 06, 2006 3:00 pm
by Al3xand3r
I'm pretty sure it's been done by someone already. I don't remember specifics but I believe he could delete the sounds and then edit some sort of file that told the game what sound to play when to remove all the entries or something along those lines... I'm sure someone who knows exactly how it went will reply soon :)

Posted: Fri Oct 06, 2006 3:00 pm
by NeoThermic
Hehe, fooled by the simple mistake.

Extract main.dat (it's just a rar file). Inside is a file called sounds.txt Remove that file, then rename sounds_nosound.txt to sounds.txt

Re-pack main.dat (extra space can be obtained by a higher compression, but leaving it at the default is good).

Then create an empty rar file, rename sounds.dat to sounds.large, and name this empty rar file sounds.dat

Finally, take your hacked main.dat and sounds.dat, combine it with defcon.exe and authkey, and you're done! Defcon can now fit on a floppy disk.

NeoThermic

Posted: Fri Oct 06, 2006 3:13 pm
by calacorm
Defcon Micro! A little mod I found on the forums is defcon with the sound striped out in this way:

1. Make a new folder say "Defcon Micro"

2. make a data folder in there and transfer the contents of your original data folder to it. You may have a data/graphics or data/styles folder to move.

3. In the new data folder you need a txt file called "Sounds" in it you need this "# ==============="; a comment line.
That file will tell the game essentially that there are no sounds to load.

4. You also need the main.dat and the exe placed in the Defcon Micro folder.

That should do it! You also need to input your auth key when the game loads.
the whole thing is under 2 MEG!!

The readme in the mod thanks LordSturm and BlueLemon for the method of shrinking defcon.
Seems simpler then Neothermic's technique :P (*bow down to Neothermic in humble respect*)

I could not find the original link to the defcon micro thread.

Posted: Fri Oct 06, 2006 3:16 pm
by Pyrostasis
Ill have to modify that when I get home and then simply email it tomyself.

Posted: Fri Oct 06, 2006 3:43 pm
by NeoThermic
calacorm wrote:Seems simpler then Neothermic's technique :P (*bow down to Neothermic in humble respect*)


No need to bow, but please get the T right ;)

Wtih your technique, though, if the data folder goes missing, Defcon will not like you.

I'm currently working on a version of main.dat that should be about 50% smaller than it is currently...

NeoThermic

Posted: Fri Oct 06, 2006 3:46 pm
by Pyrostasis
Talk about tight coding Im just blown away that you guys were able to do so much with such a small amount of space

Posted: Fri Oct 06, 2006 5:29 pm
by MrBunsy
Coding never takes up much space anyway, it's mostly media that takes up space. Since Defcon only really has music it doens't take up too much space. BTW, UT2004.exe (200kb) is 40% of the size of Defcon.exe (500kb).

Posted: Fri Oct 06, 2006 11:28 pm
by Al3xand3r
UT2004 also has a ton of other files not related to media. You can't make any comparison or get any conclusions from the file size as what's included in a .exe can vary a lot. For some games it's only a launcher for others it can have the whole game compiled within, including the media.