Author Topic: modlauncher.bat  (Read 1315 times)

0 Members and 3 Guests are viewing this topic.

Offline KILLX

  • Major(1)
  • Posts: 5
modlauncher.bat
« on: January 31, 2007, 12:49:35 pm »
Where does it come from? I thought it was a default file in Soldat, but my friends I'm working with to make a mod can't find it in there Soldat folders. I send it to one of them, and he can't make it work.

I'd really like to know what up with this, because the project lead thinks we have to replace the entire Soldat folder to make the mod, and its turning out to be very frustrating.

I'm posting this here because I really want to do this mod, but I don't want to have to destroy my Soldat installation by doing it the project leads way.


I'm sure this must have been covered before, but searches bring up nothing, and I don't have the time to do a manual search.
« Last Edit: January 31, 2007, 12:59:29 pm by KILLX »

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: modlauncher.bat
« Reply #1 on: January 31, 2007, 12:59:54 pm »
You can place all the files in the /mods folder;

soldat/mods/mod_name/default-folders

Sounds must be placed in mod_name/sfx, weapons in mod_name/weapons-gfx, etc.


To run it, you can create a .bat file with the line:

Quote
soldat.exe -mod "<modname>"

Then save it and place it in your soldat folder.

Offline KILLX

  • Major(1)
  • Posts: 5
Re: modlauncher.bat
« Reply #2 on: January 31, 2007, 01:02:43 pm »
Then whats up with modlauncher.bat? all the mods I've installed made a shortcut with that, using
"C:\Program Files\Soldat\modlauncher.bat" < folder containing mod >

It launches any mod as long as I change the folder name at the end.

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: modlauncher.bat
« Reply #3 on: January 31, 2007, 04:01:49 pm »
I also have no idea where that came from. But, I'll show you how to launch mods with a .bat file, just to help clarify mar77a's advice.
Put a mod in the "Mods" folder, with the files in the same structure as the default files, like mar77a said. We'll call the folder mod name. In a default Soldat installation, it would be C:\Soldat\Mods\mod name\.
Create a .bat file in your Soldat folder with this code:
Code: [Select]
@echo off
title mod name
start Soldat.exe -mod "mod name"
exit
Execute the .bat file to run the mod.
If you need more help, please check out the Soldat Wiki's article on the mod parameter.
<3*xwd
love conquers all

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: modlauncher.bat
« Reply #4 on: January 31, 2007, 04:10:40 pm »
I made modlauncher.bat for all my latest mods because I don't like having 10 different .bat's in my soldat directory...  I just let my installer automatically create a shortcut with the mod parameter on the desktop and start menu
« Last Edit: January 31, 2007, 04:13:48 pm by Serial K!ller »

Offline KILLX

  • Major(1)
  • Posts: 5
Re: modlauncher.bat
« Reply #5 on: January 31, 2007, 04:17:04 pm »
Does that mean it will work for other mods? And is there more than just the modlauncher.bat file it uses?