This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
modding:developerinfo:missionscripting [2018/02/08 11:17] 127.0.0.1 external edit |
modding:developerinfo:missionscripting [2019/03/19 10:18] (current) |
||
---|---|---|---|
Line 27: | Line 27: | ||
[[http://transportfever.com/wiki/script-doc/|Scripting reference]] | [[http://transportfever.com/wiki/script-doc/|Scripting reference]] | ||
+ | |||
+ | ==== Attaching a mission to an endless game ==== | ||
+ | |||
+ | Since 18126 mission scripts can be attached to endless games as a mod. To do so: | ||
+ | |||
+ | * Remove the ''savegame'' entry from the ''info.lua'' | ||
+ | * Remove the savegame itself | ||
+ | * Rename the campaign and mission folder to ''_auto_'', for example ''sample_campaign_1\res\campaign\_auto_\_auto_'' | ||
+ | * Adjust the path to the mission script in the info.lua accordingly | ||
+ | |||