Mod Example: New Mission
This mod shows how to add a new mission to the game, and how to do dependencies between mods.
About[edit | edit source]
This mod adds a new mission where the player has to find a lost freighter. It has a dependency to Mod Example: Bulletin Board Base, and extends a script of it.
The mission can be found and accepted at all bulletin boards of all stations. The player has to jump into another sector, fly close to a wreckage that will be generated by the mission when he enters the sector, and then return to the station where he accepted the mission from.
bulletinboardmissions.luaExtends the script from Mod Example: Bulletin Board Base to add the mission to the bulletin board.
lostfreighter.luaCore mission file of this mod.
modinfo.lua[edit | edit source]
serverSideOnly = falseThis mod introduces a new Player script, and those have to be present on client and server. The script is also a mission script where the client has to read out information to display in the mission UI. Also: Localization.
clientSideOnly = falseClient side only is impossible, since new scripts are added through this mod, which is only possible on the server.
saveGameAltering = trueThe mod adds a new script
data/scripts/player/missions/lostfreighter.luawhose path will be saved into the database. Once the mod is disabled, the script is no longer existant and the savegame will be slightly corrupted (not unplayable though).
Localization[edit | edit source]
data/localization/ folder you can find an example for a German localization of texts that appear in the mod.
Dependencies[edit | edit source]
This mod has a dependency to Mod Example: Bulletin Board Base which it uses to easily add a new bulletin board mission to the game.