MissionFramework for 1.07

A place to discuss mods in development and concepts for new mods.
Post Reply
giantcabbage
Militia Lieutenant
Militia Lieutenant
Posts: 104
Joined: Thu Apr 07, 2011 9:05 pm

I’ve updated the MissionFramework for v1.07a. In addition to various bug fixes, it now uses structures instead of lists for the dockscreen definitions.

There are six missions so far (three are modified versions of ones from the original game)
  • Destroy enemy station
    Rescue mining ship
    Centauri Occupation (can make any station become occupied instead of using a special station type)
    Deliver cargo
    Mining survey (escort a borer to an asteroid field and watch is mine for ore)
    Sisters of Domina mission (example of more complex dockscreens and spawning a sub-mission)
Edit: Added virtual ship based framework (see post below for details)
Attachments
MissionFramework_VS.zip
Alternative framework using virtual ships
(25.06 KiB) Downloaded 205 times
MissionFramework.zip
(24.25 KiB) Downloaded 210 times
Last edited by giantcabbage on Sun Jan 29, 2012 5:00 pm, edited 1 time in total.
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

nice work giantcabbage,

this will make it much easier to do missions :)
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

MUST HAVE.

I was in love with this feature from the start and still have the original ( still enjoy it ) THANK YOU ... again :)
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
giantcabbage
Militia Lieutenant
Militia Lieutenant
Posts: 104
Joined: Thu Apr 07, 2011 9:05 pm

I've added an alternative framework based on virtual ships. This version is more buggy, but it does allow the creation of missions over multiple systems.

I have included one example mission - available from the Sisters of Domina - which requires the player to go to another system and destroy a few raiders.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Hi giantcabbage! I really like what you have been doing with this mission framework. I can't remember if we talked about it earlier, but i thought it better to share some work i did on an eventframework, rather than just sitting on it myself. I can't really remember if i finished it up, but the point is mostly that i tested the way to carry events from system to system a lot, and I have no doubt that using event stations is the least headache (virtual ships have tons of issues). Here is a paste of some code i wrote.

http://hastebin.com/gefewuhuwo.xml

Use it as you like ;)
Get your own Galactic Omni Device
Get it now. It's free!!
Image
giantcabbage
Militia Lieutenant
Militia Lieutenant
Posts: 104
Joined: Thu Apr 07, 2011 9:05 pm

Thanks alterecco. I think you sent me something similar and I very nearly ended up using it ;o) There are a few reasons I’ve not done it yet (if I get around to a major rewrite though...)

With the current approach the xml for the missions looks similar to built-in missions tied to individual station types. There are a few extra framework calls but mostly you can create a framework mission by copy&paste from an existing built-in one.

Also, it means you get a separate object for storing data for each mission which makes it easy to have multiple missions (of the same type) occurring in parallel. I think you’d lose that with your event framework approach unless you added lots of extra wrapper functions to store the mission data as global type data using a unique key for each instance of a mission.

Virtual ships do seem to work a lot better than they did a year ago. Last time I tried using them, they were almost unusable and the game would frequently crash. This time there are still issues (but not as many) and the game only crashes occasionally.

I’m also hoping that George will think this is something worth including in the base game. Either by adding a new mission/script type, or just including a similar set of helper functions and making a few enhancements to virtual station/ships.

PS - one day I'll also add support for DSF!
Post Reply