Forum archive
Swcustom.txt
- Just wanted to let you know this works like a charm.
I have succesfully converted one of my TC's using this and although it needs future enhancement, it sure does the trick.
No doubt you will get many requests regarding this custom file as more and more create TC's and addons.
TC's work well also with the zip file allowing you to only have one file.
Even the Swcustom.txt goes in the zip file and no other files are needed and you just start your TC with:
Sw.exe -gMyTCname.zip
;) - Now we wait for people to get the banal idea of stacking up multiple mods at once with multiple -g switches, and then wondering why filenames collide. :-)
Jonathon - :lol: :roll:
- Just a request (already) :)
Currently the game will take the sw.def that sits in the folder.
If you delete this file, then add a sw.def to the GRP or ZIP file for your TC it will use that one which is very cool, but as I say if there is one in the folder it will accept that one only.
This needs to change in either it takes the sw.def in the TC ZIP file as preference or it uses a Swcustom.def, I think the Swcustom.def would be a better bet, and if this is present it disregards the original sw.def.
[Edit]
Like so:
if (!loaddefinitionsfile("swcustom.def"))
initprintf("Custom Definitions file loaded.\n");
else
if (!loaddefinitionsfile("sw.def"))
initprintf("Normal Definitions file loaded.\n"); - If I had my way I would require mods to name their base def file the same as the ZIP it's in, ie. funkymod.zip would have funkymod.def. Then, a mod loader would put 'include "funkymod.def"' into a sw.def or duke3d.def and everyone's happy.
Followup:
In fact, if the mod's ZIP includes a sw.def/duke3d.def that has just one line, include "funkymod.def", then we can still play that mod via the /g switch alone. Multiple mods would have to be handled more creatively.
Followup #2:
When I eventually get to writing the mod-handling stuff I've had in the back of my mind, I anticipate having a mod description file which would declare the name of the mod plus the DEF file to load.
Jonathon - Yes I go along with your followups.
In my Duke3dw I look for a .def file thats the same name as the .grp file which works 100% and it replaces the Duke3d.def file.
As I mentioned in a post on the 3drealms forum that using the User.def idea of Parkars was a fair idea but its flawed in that you can override a texture but you cannot override a MD2 or MD3.
Anyways I've added the Swcustom.def to SW in the meantime and its working ok :)