Abstract:
Use the command
/dump command to create a mission!
Details:
Kernel Panic 3.6 is out. It contains my code to handle missions, as well as 2-4 exemple missions.
To build a mission:
1) Create a folder /Missions/ in your Spring folder (or your Spring Data folder).
2) Play a game. Any kind of game will do: Multiplayer, Skirmish, launched by any lobby, or the internal or external launcher, including another missions.
3) To create and place units:
Use the cheat codes such as:
[ENTER] /cheat [ENTER]
[ENTER] /give ass [TAB] [ENTER]
or just normal playing
(And Ctrl+D to remove them)
4) Give orders to units. You may want to have game paused from this stage on. Use the [SHIFT] key to enqueue tons of move or fight command. Turn off worm autohold. Set factories waypoint and buildqueue. Or about any other you can think of. Avoid order where the target is another unit though, I haven't finished coding that part.
5) Type [ENTER] /dump MyMission [ENTER] Avoid spaces in your mission name, becaused I wanted /dump to have as extra argument how abbreviated should the startscript be and what grid size snapping to use (but I am not done coding those extra parameters, so don't use them.)
6) Exit game
7) Open the file /Missions/MyMission.txt in notepad
8) Modify as fit. For exemple
9) Set the AI to use ShortName=Regenerative AI; or ShortName=Kernel Panic AI; or ShortName=Doing Nothing;
10) Delete some units by removing the corresponding u5=...; line. Yes you can delete those lines without having to renumber them all.
11) Clean the order list of units: I tried to make the widget already write rather concise line, but it's still not perfect. Also, there are some orders that are not saved, or not restored, correctly.
12) Change ModOptions. For instance, you may want to have wall on when building the missions, but off when playing it so future players can't wall up an hacker AI. Or have the end condition set to 0 so you can have teams without homebases.
13) Also, the player specific sos and noons options can't be set by lobbies, only by my launchers, but can be added manually.
14) There are some special orders, such as TimeWait 10 (to wait 10sec) or Transfer 0 (to give the unit to Team 0) that can't be given ingame so have to be written manually in the Mission.txt.
14) Save the mission.txt
15) Run Spring.exe directly. Pick Kernel Panic 3.6 as mod, any "script" any map.
16) Click "missions", yours should be here. Click it to run it.
17) Post the .txt of your missions in this forum so other players can get them.