Category | Editor |
Created | 20.03.2020 14:36 |
Matej Kubičina (Unknown) | 20.03.2020 14:36 |
---|---|
I do not want any missions in my map. How do I do this? What is .lua file for? Thank you. modDesc.xml: <maps> <map id="TrencianskaTurna" className="TrencianskaTurna" HERE filename="$dataS/scripts/missions/mission00.lua" HERE log: 2020-03-20 14:13 Error: Running LUA method 'update'. 2020-03-20 14:13 dataS/scripts/events.lua(24) : attempt to call method 'new' (a nil value) 2020-03-20 14:13 Error: Running LUA method 'update'. 2020-03-20 14:13 dataS/scripts/events.lua(31) : attempt to index global 'g_currentMission' (a nil value) 2020-03-20 14:13 Error: Running LUA method 'update'. 2020-03-20 14:13 dataS/scripts/events.lua(38) : attempt to index global 'g_currentMission' (a nil value) 2020-03-20 14:13 Error: Running LUA method 'update'. 2020-03-20 14:13 dataS/scripts/events.lua(53) : attempt to index global 'g_currentMission' (a nil value) 2020-03-20 14:13 Application exit request forced. 2020-03-20 14:13 Application exit request forced. |
Bilbo Beutlin (BBeutlin) | 20.03.2020 15:56 |
---|---|
The file mission.lua in modDesc is required to start the map. It has nothing to do with the game missions by NPCs. The transport missions are controlled by the map.xml <transportMissions filename=".." /> If this is not defined, there's no transport mission. The field missions cannot be disabled easily. These are always generated if a farmland is owned by NPC. Simply ignore them. Else you had to write a custom LUA script to disable missions at all. |
Note: Log in to post. Create a new account here.