Overriding mod files

Overriding mod files

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Overriding mod files

Post by eriatarka »

I'm not sure, but I hope this is the best place to ask this question.

Anyway, is there a way to override specific contents of a mod? I have extracted the mod archive into its own directory and want to modify some of its script files. Is there a way of doing this without having to zip the whole folder up again every time I change something?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Overriding mod files

Post by smoth »

Extract the mod to a folder named modname.sdd
that will allow spring to load it without the repeat compression.

now if you want to make a mod that changes one or two files for another mod and overrides them, you make what we call a mutator.
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Re: Overriding mod files

Post by eriatarka »

smoth wrote:Extract the mod to a folder named modname.sdd
that will allow spring to load it without the repeat compression.
Ah, thanks. What exactly is "modname" here? The name of the archive? Or doesn't it matter?
now if you want to make a mod that changes one or two files for another mod and overrides them, you make what we call a mutator.
No, I just want to mess around with some stuff.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Overriding mod files

Post by smoth »

eriatarka wrote:
smoth wrote:Extract the mod to a folder named modname.sdd
that will allow spring to load it without the repeat compression.
Ah, thanks. What exactly is "modname" here? The name of the archive? Or doesn't it matter?
what is the name of the mod?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Overriding mod files

Post by Argh »

What exactly is "modname" here? The name of the archive? Or doesn't it matter?
It doesn't matter. Just extract the game to a folder, name the folder "something.sdd".
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Re: Overriding mod files

Post by eriatarka »

Argh wrote:
What exactly is "modname" here? The name of the archive? Or doesn't it matter?
It doesn't matter. Just extract the game to a folder, name the folder "something.sdd".
Great, thanks.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Overriding mod files

Post by zwzsg »

Edit the modinfo.tdf of the unpacked mod you're modifying so it bears another name.

Delete ArchiveCacheV6.txt so Spring reload the new modinfos.

You may want to use the tags
NumDependencies=1;
Depend0=some_other_mod.sd7;
in the modinfo.tdf so your mod contains only the changes, and load the rest from some other mod.
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Re: Overriding mod files

Post by eriatarka »

That's neat too, could set myself up a debugging mod...
Post Reply

Return to “Game Development”