Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Whitelight on November 09, 2002, 09:38:36 am

Title: brain freeze fs2open batchfile
Post by: Whitelight on November 09, 2002, 09:38:36 am
Excuse me for my asking this trivial question, but how do you get the new build to except the batchfile for -mymod... i left it as (New text document) because I didn`t know what else to name it.... Anyone know, help:confused:
Title: brain freeze fs2open batchfile
Post by: Whitelight on November 09, 2002, 10:06:38 am
Tried FS2.bat to no avail I used it on an eariler version about a month ago, but have since forgot the correct name (DUH)... :wtf:
Title: brain freeze fs2open batchfile
Post by: Whitelight on November 09, 2002, 01:35:25 pm
Um, I guess this was a stupid question... Disreguard.
Title: brain freeze fs2open batchfile
Post by: Inquisitor on November 09, 2002, 02:19:09 pm
I am not even sure what you are asking?
Title: brain freeze fs2open batchfile
Post by: vadar_1 on November 09, 2002, 02:27:51 pm
Some people were talking about doing that kind of thing, well actually thats two seperate things. A batch file for swapping mods, and a parameter for having multiple data folders ( ex, -mymod uses the data folder named "mymod" or something). I don't think they ever got that done.
Title: brain freeze fs2open batchfile
Post by: Whitelight on November 09, 2002, 02:46:21 pm
while running fred, you can click on file and it brings up a list or window and it`s the Run freespace2 Alt+R  that runs a batchfile... I can`t remember what to name the batch file that the game looks for in the freespace2 directory.. Tried fs2.bat, that failed... I`m confused as hell at the moment... Forgive me for my lack of words, never was that good at communicating, a flaw from my younger years I guess.. I`m not mad, just confused at the moment...:sigh:
Title: brain freeze fs2open batchfile
Post by: Inquisitor on November 09, 2002, 02:54:46 pm
Ohhh...

Mod support is in DTP's test release, a few threads down, there is a readme associated with it.

Make the bat file first, and see if it runs it by itself.

Oh, and make sure you can see the file extenstions, often times windows obfuscates extensions, so even if you called it fs2.bat, it might still be named fs2.bat.txt
Title: brain freeze fs2open batchfile
Post by: Whitelight on November 09, 2002, 03:15:38 pm
I used edit to make the batchfile, never had that problem where it would name it txt...

Ok the batch worked fine from the freespace2 directory, but that is where the problem is, what I was wondering is can the batchfile be run from fred, instead of having to run it from the freespace2 directory....
Title: brain freeze fs2open batchfile
Post by: vadar_1 on November 09, 2002, 08:12:16 pm
you know whats a hellovalot easier? just move the data folders around. store them in seperate directories in /games/ or wherever fs2 is under.
Title: brain freeze fs2open batchfile
Post by: Inquisitor on November 09, 2002, 08:23:16 pm
Uh, why? DTP just added commandline mod support...

I think making it launch from Fred 2 is something we need to add though.
Title: brain freeze fs2open batchfile
Post by: Whitelight on November 09, 2002, 11:25:33 pm
Sounds good on my end implamenting it into Fred2.... Also wouldn`t be to hard to achive, even though I know nothing about sorce codes and such..

You are doing somethings to the code that I, at one time only dreamed of having in the game, it`s like the frosting on the cake, only better and more inspireing... Oh and thanks for your help Inquisitor, the batch does work to run FS2..:nod:

Whitelight out....
Title: brain freeze fs2open batchfile
Post by: DTP on November 11, 2002, 06:35:55 pm
Quote
Originally posted by vadar_1
you know whats a hellovalot easier? just move the data folders around. store them in seperate directories in /games/ or wherever fs2 is under.


huh, i think i need to create a very specific readme.html with a batfile that explains MOD-support.

i just thought that. Everybody knew Half-lifes or Quakes way of "switching mods". This is the exact same thing.

fs2_open.exe -mod whatever_sub_directory_you_want
and it will look in freespace2/whatever_sub_directory_you_want/ for extra or replacement files.

And you can have as many subdirectories as your Hard-drive allows. and then simply have a bundle of batfiles that activates specific mods by having those different subdirectories as the mod flag.

realy maybe i should have written

fs2_open -mod SUBDIRECTORY_TO_FREESPACE2_DIRECTORY