Running defcon at work.

General discussion about Defcon

Moderator: Defcon moderators

Pyrostasis
level2
level2
Posts: 152
Joined: Wed Dec 14, 2005 9:55 pm

Running defcon at work.

Postby Pyrostasis » Fri Oct 06, 2006 1:51 pm

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?
User avatar
zhatka
level0
Posts: 1
Joined: Fri Oct 06, 2006 2:49 pm

Postby zhatka » Fri Oct 06, 2006 2:51 pm

I just renamed the sound.dat to _sounds.dat to test it, and it puked. So looks like you need that file.
Pyrostasis
level2
level2
Posts: 152
Joined: Wed Dec 14, 2005 9:55 pm

Postby Pyrostasis » Fri Oct 06, 2006 2:52 pm

damn

Oh well
Al3xand3r
level1
level1
Posts: 51
Joined: Sat Sep 30, 2006 6:06 pm

Postby Al3xand3r » Fri Oct 06, 2006 3:00 pm

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 :)
Mod HQ - http://www.mod-hq.com/
All you need for HL2 & Steam news
User avatar
NeoThermic
Introversion Staff
Introversion Staff
Posts: 6256
Joined: Sat Mar 02, 2002 10:55 am
Location: ::1
Contact:

Postby NeoThermic » Fri Oct 06, 2006 3:00 pm

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
calacorm
level1
level1
Posts: 12
Joined: Sun Oct 01, 2006 2:00 am

Postby calacorm » Fri Oct 06, 2006 3:13 pm

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.
Pyrostasis
level2
level2
Posts: 152
Joined: Wed Dec 14, 2005 9:55 pm

Postby Pyrostasis » Fri Oct 06, 2006 3:16 pm

Ill have to modify that when I get home and then simply email it tomyself.
User avatar
NeoThermic
Introversion Staff
Introversion Staff
Posts: 6256
Joined: Sat Mar 02, 2002 10:55 am
Location: ::1
Contact:

Postby NeoThermic » Fri Oct 06, 2006 3:43 pm

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
Pyrostasis
level2
level2
Posts: 152
Joined: Wed Dec 14, 2005 9:55 pm

Postby Pyrostasis » Fri Oct 06, 2006 3:46 pm

Talk about tight coding Im just blown away that you guys were able to do so much with such a small amount of space
User avatar
MrBunsy
level5
level5
Posts: 1081
Joined: Mon Apr 24, 2006 4:40 pm
Location: Southampton
Contact:

Postby MrBunsy » Fri Oct 06, 2006 5:29 pm

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).
Al3xand3r
level1
level1
Posts: 51
Joined: Sat Sep 30, 2006 6:06 pm

Postby Al3xand3r » Fri Oct 06, 2006 11:28 pm

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.
Mod HQ - http://www.mod-hq.com/

All you need for HL2 & Steam news

Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests