Jizmo wrote:Some help would be nice!
I was planing to write a tutorial on how to use the mission editor, but the interest wasn't big enough.
In next posts I'll delve into details, but for now the basics.
In order to use the mission editor, you need to copy it from XTA SVN
, the one in game archive is outdated, so don't use it.
You should place the missioneditor.sdd where you usualy keep your Spring games. You might need to edit modinfo.lua and check if the dependancy information matches your XTA version. Start your lobby client (if not already running) and host a new 1v1 game vs NullAI, but instead of XTA, host XTA Mission Editor game (off-line game, using single player lobby options). Make yourself and AI of different sides and keep the colours tied to sides, ARM blue, CORE red. Choose a map by your liking, and setup all other options. Start the game.
Once started, you'll nottice that instead of a commander, you have a mission wizzard unit. That unit can build any unit or structure possible in XTA. So use it to build all the bases and outposts you like (for both sides), place all the units, walls etc. Once you're satisfied how the map looks, select all units that should belong to AI and share them to it. Press the "Dump" command in the mission wizzard's build/order menu.
A note like "SpawnData dumped into Spring/LuaUI/XTA_mission_editor_dump.lua" should appear. Exit the game.
Look for the file and rename it to xta_your_mission_name
.lua, and move it to Spring/missions or /My Documents/Spring/missions, or inside the XTA archive in the missions folder.
Take a look in your Spring folder for a script.txt
. Thats the start script for the mission, open it in an editor and change the modname to XTA, version 9.729 (or whichever version you have), and among the modoptions add a new entry mission=xta_your_mission_name
; . You can also change the AI from NullAI to KAIK/E323AI. Save the startscript as xta_your_mission_name
.txt and exit editor.
In order to play the mission, just drag and drop the xta_your_mission_name
.txt on the Spring.exe.
Some other docs I wrote about the mission editor: Readme from SVN
, Test mission data file
(contains all the trigger docs and some samples on how to use them), Test mission startscript
, Sniper Alley mission startscript
(some sample start scripts).