Editing Mission Editor

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Campaign missions are created in one of two ways, with the missions editor or with a mission definition file. The mission editor is used for the first mission and Kodachi Rally as they involve triggers and cutscenes. The skirmish-style missions are created with a definition file.
+
The '''Mission Editor''' allows players to create interactive missions similar to single-player scenarios of commercial games and to easily publish them to all players.
  
The '''Mission Editor''' allows players to create interactive missions similar to single-player scenarios of commercial games and to easily publish them to all players. These missions are [[Mod_Creation#Mutators|mutators]] so can be designed for multiplayer and played cooperatively or competitively.
+
Missions can also be designed for multiplayer and can be played cooperatively or competitively.
  
[[File:Mission editor intro 1.jpg]]
+
Missions can become part of campaigns. (Campaigns not implemented yet)
[[File:Mission editor intro 2.png]]
+
 
 +
http://i52.tinypic.com/219b603.jpg
 +
http://i54.tinypic.com/24zaslu.png
  
 
'''[http://zero-k.info/missioneditor/setup.exe Download]'''
 
'''[http://zero-k.info/missioneditor/setup.exe Download]'''
 
[https://github.com/ZeroK-RTS/Zero-K-Infrastructure/issues Feature Requests and Bug Reports]
 
 
== Script Missions ==
 
Most of the campaign missions are defined solely by the contents of [//github.com/ZeroK-RTS/Chobby/tree/master/campaign/sample/planets Chobby/campaign/sample/planets]. For example, [//github.com/ZeroK-RTS/Chobby/blob/master/campaign/sample/planets/planet1.lua planet1.lua] contains a list of sides, commanders, units, objectives, and rewards. The file is processed into a startscript by chobby when ythe mission is launched. Some gadgets and widgets in ZK read particular values in the startscript to to make unmodified base ZK run as the mission.
 
 
There are a few development widgets in ZK that can help create mission files. The most useful is the one that saves all the units (and optionally orders) in the format required for the script mission files. Documentation of the script mission files can be found in [//github.com/ZeroK-RTS/Chobby/blob/master/campaign/sample/planetDocumentation.lua planetDocumentation.lua]
 
 
== Running the Mission Editor ==
 
The mission editor loads its files using an older version of Spring. To get the required version:
 
# Open a Custom host and set a password.
 
# Do <code>!engine 104.0.1-287-gf7b0fcc</code>. You should see the response <code>Nightwatch Engine changed to 104.0.1-287-gf7b0fcc</code>.
 
# Start the battle. The engine should start downloading silently in the background.
 
# Wait a few minutes and check whether <code>steamapps/common/Zero-K/win64/104.0.1-287-gf7b0fcc</code> exists. If it doesn't then try <code>win32</code>. If you're on Linux then check the appropriate directory.
 
# Copy the entirety of <code>104.0.1-287-gf7b0fcc</code> folder to a new folder somewhere isolated called <code>missionDev</code>.
 
# Copy <code>steamapps/common/Zero-K/maps</code> and <code>steamapps/common/Zero-K/games</code> to <code>missionDev</code> such that you have the paths <code>missionDev/spring.exe</code>, <code>missionDev/maps</code> and <code>missionDev/games</code>. Optionally, you may just make empty <code>games</code> and <code>maps</code> folders and copy whatever you need in as you need it.
 
# Run the mission editor and point it to <code>missionDev/spring.exe</code> when it asks you to supply an engine path.
 
 
You now have a mission editor setup capable of making and editing missions that use the maps and games you have copied into the relevant folders. To edit existing missions you may require two additional steps:
 
* Some missions run off the development version of Zero-K as this makes them easier to test and debug. When the mission is exported for use the version is changed to zk:stable. To get the development version of Zero-K [[Zero-K:Developing#Getting_sources|follow the instructions here]] with paths modified to end up with <code>missionDev/games/zk.sdd</code>.
 
* To take a look at or edit the current missions, clone [https://github.com/ZeroK-RTS/Zero-K-Missions this repository] similarly to how you would clone the main game in the above dot point.
 
* Some old missions may be made with a version of Zero-K that no longer loads on the mission editor. When in doubt, use the development version of Zero-K (<code>Zero-K $VERSION</code> as it is the most likely to be up to date. The version of a mission can be changed directly by editing its xml.
 
 
== Tutorials ==
 
  
 
[[Mission Editor Tutorial|General Tutorial]]
 
[[Mission Editor Tutorial|General Tutorial]]
Line 38: Line 16:
 
[[Mission Editor Cutscenes Tutorial|Cutscenes Tutorial]]
 
[[Mission Editor Cutscenes Tutorial|Cutscenes Tutorial]]
  
== Publishing a mission ==
+
[https://github.com/ZeroK-RTS/Zero-K-Infrastructure/issues Feature Requests and Bug Reports]
The mission editor exports mutators, so missions can be uploaded the same way you would upload any other mod, see [[Mod Creation]]. If the mission must be run on a particular map, then you can bundle the map and mutator together with a [[Custom Modes|Custom Mode]].
 
 
 
== Publishing a mission OUTDATED (but the infrastructure may still be there) ==
 
You can make your mission available online by ''publishing'' it. It will be available for others to play once enabled by an administrator.
 
 
 
To do this, open the Mission menu and click Publish. Fill in the form displayed.
 
 
 
A mission must have a description and image to be published.
 
 
 
Uploading the mission will take a few seconds. If you want to update or delete it, select the Manage Missions item in the Mission menu.
 
 
 
=== Errors ===
 
If you have the error message "Value cannot be null. Parameter name: paths"
 
* Make sure your engine folder exists in the correct format in your Spring data directory: <code>engine/<platform>/<version></code>.
 
* For instance: <code>engine\win32\103.0.1-746-g82259fc<code>
 
 
 
[[Category:Mission Editor]]
 

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)