Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: bigchunk1 on August 19, 2011, 07:52:37 pm

Title: Forcing the player to pick your mod's campaign
Post by: bigchunk1 on August 19, 2011, 07:52:37 pm
I think you should be able to do this, but I have seen that certain mods haven't. I have made a habbit of going into the campaign room every time I start a new mod and picking the correct campaign.

Is there a way for the modder to save the player from doing this step? I would like to remove the main freespace2 campaign for the list of playable campaigns since it won't run with the given mod files anyways. Anyone know if it's possible?
Title: Re: Forcing the player to pick your mod's campaign
Post by: Spoon on August 19, 2011, 07:59:45 pm
If only!
Title: Re: Forcing the player to pick your mod's campaign
Post by: bigchunk1 on August 19, 2011, 09:30:05 pm
Ahahah! I found an evil way around it!

Just name your campaign file freespace2.fc2 and put it in <modname>/data/missions and it replaces the campaign file from the base game when you select the mod.
Title: Re: Forcing the player to pick your mod's campaign
Post by: LoneKnight on August 19, 2011, 10:10:33 pm
Certainly more simple, but in the long run I see it causing more confusion than good.
Title: Re: Forcing the player to pick your mod's campaign
Post by: Droid803 on August 19, 2011, 11:03:58 pm
You can name your campaign whatever, that's just the filename!
Title: Re: Forcing the player to pick your mod's campaign
Post by: karajorma on August 19, 2011, 11:49:41 pm
Yeah but if someone starts your mod when halfway through the main FS2 campaign, bad things will happen. And even when the new pilot file code gets into trunk it will probably still happen. At which point the coders will probably say "Not my fault, you shouldn't have called it that in the first place!"
Title: Re: Forcing the player to pick your mod's campaign
Post by: mjn.mixael on August 19, 2011, 11:52:59 pm
While this would be handy... I don't know how it could be done in a way that was intuitive and simple.
Title: Re: Forcing the player to pick your mod's campaign
Post by: FreeSpaceFreak on August 23, 2011, 04:48:48 am
mod.tbl would be good for this, with a $Default Campaign: entry. Is mod.tbl still in the coder WIP list, or was it abandoned?
Title: Re: Forcing the player to pick your mod's campaign
Post by: Sushi on August 23, 2011, 10:28:38 am
mod.tbl would be good for this, with a $Default Campaign: entry. Is mod.tbl still in the coder WIP list, or was it abandoned?

I don't think it's ever been on a WIP list, just a TODO list. :)

And yeah, that's probably the best solution.