skittles sour Posted July 15, 2022 Share Posted July 15, 2022 Hi I'm trying to get my worldgen mod to work and currently there is this bug: [00:01:27]: #[string "scripts/map/storygen.lua"]:908: attempt to index local 'mainland' (a nil value) @scripts/map/storygen.lua:821 in (method) GenerateNodesFromTasks (Lua) <819-822> @scripts/map/storygen.lua:87 in (method) GenerationPipeline (Lua) <86-96> @scripts/map/storygen.lua:1361 in (global) BuildStory (Lua) <1356-1368> @scripts/map/forest_map.lua:484 in (field) Generate (Lua) <370-1020> This bug has been crashing me a lot and I managed to solve it earlier without knowing how. The storygen file is giving me vertigo. Does anyone happen to know what this bug has to do with? Much appreciated! modworldgenmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/141737-no-mainland-for-_addplayerstartnode-function/ Share on other sites More sharing options...
skittles sour Posted July 15, 2022 Author Share Posted July 15, 2022 hey so if you've also ran into this problem. it turned out to be this: i thoguht i was being very witty in assigning an "island0" region id, whereas the story gen algorithm needs some sort of mainland, which is what the region id would have been if it were nil. Link to comment https://forums.kleientertainment.com/forums/topic/141737-no-mainland-for-_addplayerstartnode-function/#findComment-1584596 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now