( search forums )
Loading Mods (Running soldat through a batch file)
Soldat Forums - Misc - Soldat Beta Testing
Deleted User
June 14, 2005, 10:38 am
I was testing the new -mod parameter and I made a .bat file to run soldat with a test mod folder. Whenever I run soldat with the .bat, though, the sound doesn't work.

Is this just my computer or soldat playing up?

grand_diablo
June 14, 2005, 11:43 am
erm, the mod command might demand modified soundfiles too.

Have you already tried copying the original Sfx folder into the folder of the mod?

Michal Marcinkowski
June 14, 2005, 2:26 pm
It should load the original files and then try to load modded files. Can anyone confirm this?

Deleted User
June 18, 2005, 5:01 pm
Argh, I forgot I posted this.

I tried running the -mod parameter through a shortcut file, and through Run in start menu, and the sound still didn't work. Then I copied the sfx folder into the mod folder and it works fine.

I guess the game isn't loading the original sfx files and is only looking for modified ones.

SERIAL KILLeR
June 18, 2005, 5:26 pm
Oh cool didnt see you could do that :o

Is there any way to make a shortcut for a modinstaller that will work no matter where soldat is installed?

[Edit] tested it and works great but the files in the folder /textures and the default interface arn't loaded from the mod directory

Deleted User
June 18, 2005, 6:09 pm
Serial Killer: You can use a .bat file that you keep in the soldat directory which can open the mod no matter where soldat is installed.

Copy this into a text document -
[code]soldat.exe -mod [your mod name]

exit[/code]
and save the text file as a .bat. Put it in the soldat directory and when you run it, it should open soldat with the mod. Is that what you wanted?

Anyway, so do the mod sounds work for you? I'll try reinstalling 1.2.2 and see if it works.

EDIT: Still no sound after reinstallation.

Michal Marcinkowski
June 18, 2005, 7:01 pm
OK fixed it. Is there anything else not loaded with the -mod parameter?

grand_diablo
June 18, 2005, 7:23 pm
So Soldat does now load the original sfx if there arent any in the mod's folder, but loads modded ones in case theyre part of the mod and in .../mod/Sfx, right?

Deleted User
June 18, 2005, 10:03 pm
grand_diablo: Yes, I presume so.

Michal: Thanks for fixing it. I haven't noticed anything else, but I haven't had a chance to test many more files. I'll try some stuff out.

SERIAL KILLeR
June 18, 2005, 10:59 pm
thx stalky

And the sound dont work for me either if they'r not in the mod directory


found a bug!
I cant join a server when running a mod because I get the "cannot play with modified animations Please reinstall the game" error even if i copy the anims folder to the mod directory i still get the error.



Deleted User
June 18, 2005, 11:46 pm
Tested - I get the same animations error too. Not got any modified animations in the mods, don't even have an animations folder in the mod folder.

EDIT: Hmm. This is really weird. I installed a mod that uses some modified sounds and the sfx that had been modified work. So soldat is checking and failing to use the original sfx, and only uses sfx from the mod folder if they are different to the normal soldat sounds. This is probably working right now you've fixed it, Michal, but I thought I'd report it anyway.

However, things like the Txt folder and Gostek-gfx seem to be working fine, and so is the weapons.ini file.

EDIT 2: Michal, could you make it so if there are extra files in a folder, the -mod parameter loads them into the game also? When a mod comes with special maps, they don't get loaded with the rest of the mod because they aren't a modified file - they're a completly new one.

Michal Marcinkowski
June 19, 2005, 8:22 pm
I don't understand, why aren't the special maps loaded? And why are they special?

Deleted User
June 19, 2005, 9:37 pm
Sorry, I didn't explain it well.

When a mod comes with its own maps, and you put those maps in the mod folder, they aren't loaded with the rest of the files. The system seems to check for modded files, but not completely new ones.