Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: WMCoolmon on June 28, 2002, 01:10:41 pm

Title: Milo
Post by: WMCoolmon on June 28, 2002, 01:10:41 pm
MIssion LOader, keeping with Freespace's tradion of FRED :D
MILO would be a stripped-down version of Freespace for quick-loading; no tech room or multiplayer and the like. Just the briefing and maybe the command briefings for the mission would be functional, to allow quick testing of missions.
It could then be run by FRED to quickly test a mission; it could also be run separately, with something like "milo C:\Games\Freespace\Data\Missions\shivanpie.fs2", with an optional switch "-nobriefing" to go directly to the mission with the default ships.
Not sure how much work this would be, but it would be a big help to FREDers :nod:
Title: Milo
Post by: Hudzy on June 28, 2002, 03:11:56 pm
Yeah, I agree with you there. :nod: It's a pain in the ass having to load FreeSpace just to test a mission.
Title: Milo
Post by: LAW ENFORCER on June 28, 2002, 05:15:31 pm
At the moment I have to have FS2 open and minimise to change, then back up to test it (and now testing from a .vp (to lazy to put them in a folder???) I have to pack it in first!)

Your idea is new and fresh - stright from the fridge!
I like it!
Title: Milo
Post by: Fineus on June 29, 2002, 02:52:13 am
Two problems with this:

1 - We have more pressing matters to attend right now.

2 - If we modify the source code heavily we'd have to make a second version for the Milo release every time we change something which is a lot more work each time around. It'd be better to wait untill we've got the main changes in place and are just working on little things before stripping it all down to just the game engine - saving major long run workload.

Still a good idea :)
Title: Milo
Post by: Bobboau on June 29, 2002, 03:13:06 am
this could be made into a seperate project and could be recompiled periodicaly, actualy compileing this first would alow us to test changes faster, I am hopeing someone gets this done quick, but not me
Title: Milo
Post by: Redfang on June 29, 2002, 10:32:26 am
I don't think that is too important, as you can have FS2 and FRED 2 running at the same time by alt-tabbing.
Title: Milo
Post by: Killfrenzy on June 29, 2002, 04:41:16 pm
The whole point is that you're skipping the loading up, selecting pilot, tech room, missions, then the mission you want. It's a shortcut, that's all!
Title: Milo
Post by: Skippy on June 29, 2002, 05:11:51 pm
Wasn't there a function like that in FRED2, but didn't work ?
Title: Milo
Post by: Galemp on June 29, 2002, 06:52:42 pm
Personally, I think it's a great idea. Just a stripped down Freespace for mission testing only.  Just chop off large chunks of code and have a window spawn with the list of missions; select the one you want and it'll take you straight to the briefing.
Title: Milo
Post by: Alikchi on June 29, 2002, 07:13:32 pm
Quote
Originally posted by Skippy
Wasn't there a function like that in FRED2, but didn't work ?


There's a "Run FreeSpace 2" function if that's what you mean. It has been fixed many times over. :p
Title: Milo
Post by: Skippy on June 30, 2002, 04:02:10 am
FIxed ? Not for me :p
Title: Milo
Post by: Killfrenzy on June 30, 2002, 03:44:50 pm
Likewise - I've got the latest version of FS2, and the 'Run FreeSpace 2' option in FRED2 still doesn't work!:sigh:
Title: Milo
Post by: Nico on July 01, 2002, 02:06:15 am
rename fs2.exe to fs.exe.
voila, fixed :p
Title: Milo
Post by: penguin on July 01, 2002, 11:22:07 pm
Quote
Originally posted by venom2506
rename fs2.exe to fs.exe.
voila, fixed :p
... or, try this:

patch FRED2\FREDView.cpp, line 4074:

original line:

        r = CreateProcess("..\\..\\Fs.exe", NULL, NULL, NULL, FALSE, 0, NULL, "..\\..", &si, &pi);


replace with:

        r = CreateProcess("..\\..\\fs2.exe", NULL, NULL, NULL, FALSE, 0, NULL, "..\\..", &si, &pi);


Not tested (no MSVC at home), but it should work.  I think.
Title: Milo
Post by: WMCoolmon on July 02, 2002, 01:44:25 am
Quote
Originally posted by venom2506
rename fs2.exe to fs.exe.
voila, fixed :p

Or just copy fs2.exe and rename the copy fs.exe :D
Title: Milo
Post by: YodaSean on July 03, 2002, 10:42:06 pm
Quote
Originally posted by WMCoolmon

Or just copy fs2.exe and rename the copy fs.exe :D


I said this in another thread devoted to the subject and was flamed for supporting bloatware and evil memory-hogging mega-corporations :rolleyes:
Title: Milo
Post by: Alikchi on July 04, 2002, 12:01:19 am
See, told you! Many times over :p
Title: Milo
Post by: DTP on July 16, 2002, 03:12:51 am
Quote
Originally posted by penguin
... or, try this:

patch FRED2\FREDView.cpp, line 4074:

original line:

        r = CreateProcess("..\\..\\Fs.exe", NULL, NULL, NULL, FALSE, 0, NULL, "..\\..", &si, &pi);


replace with:

        r = CreateProcess("..\\..\\fs2.exe", NULL, NULL, NULL, FALSE, 0, NULL, "..\\..", &si, &pi);


Not tested (no MSVC at home), but it should work.  I think.


it works, is in in my modification

btw added a autoload multi mission commandline

very basic stuff check your spelling

freespace2.exe -almission kicksomebut will load kicksomebut.fs2 multiplayer mission.

be sure it is spelled correct and it is a multiplayer mission or else i think odd stuff will happen, since I included no checks for wheter the mission exist or is a multiplayer mission. meaning if mission specs is not multiplayer or in the mission dir. the game will chrash.
Title: Milo
Post by: Bobboau on July 20, 2002, 12:21:48 am
could you get this to load a single player mission
Title: Milo
Post by: ##UnknownPlayer## on July 20, 2002, 12:56:49 am
Is this stuff on the CVS? Coz if it isn't, if definitely should be.
Title: Milo
Post by: Inquisitor on July 20, 2002, 12:22:01 pm
Look at the committ comments, you can browse the CVS online :)

If not, add it :)
Title: Milo
Post by: DTP on July 20, 2002, 01:51:07 pm
well i thought about singleplayer, but would that not open the door for cheating. but if ppl want it then ok. i'll give it a look. should not be to hard since the quick loading functions is already there.

will add it soon.