Jupiters Posted September 14, 2015 Author Share Posted September 14, 2015 @DarkXero Thanks. Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-672394 Share on other sites More sharing options...
Jupiters Posted September 18, 2015 Author Share Posted September 18, 2015 Hello, @DarkXero It has been a long time since I last asked you questions. Recently, a problem occurred when make the mod "World Regrowth" for DS. I made three components ( forestspawner, cavespawner and ruinspawner ). Forestspawner worked fine. But cavespawner and ruinspawner didn't work. Here is the log: .../steamapps/common/dont_starve/data/scripts/class.lua:96: stack overflow.../steamapps/common/dont_starve/data/scripts/class.lua:96: stack overflowLUA ERROR stack traceback:D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/class.lua(96,1) in function 'Vector3'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(28,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'...D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(49,1) in function 'updateWorld'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(78,1) in function 'fn'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua(690,1) in function 'PushEvent'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/components/clock.lua(286,1) in function 'NextPhase'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/components/clock.lua(368,1) in function 'OnUpdate'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/update.lua(104,1)scripts/frontend.lua(723,1) SCRIPT ERROR! Showing error screen.../steamapps/common/dont_starve/data/scripts/class.lua:96: stack overflowLUA ERROR stack traceback:D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/class.lua(96,1) in function 'Vector3'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(28,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'...D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(38,1) in function 'TrySpawn'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(49,1) in function 'updateWorld'D:/Program Files/Steam/steamapps/common/dont_starve/data/../mods/World Regrowth/scripts/components/cavespawner.lua(78,1) in function 'fn'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua(690,1) in function 'PushEvent'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/components/clock.lua(286,1) in function 'NextPhase'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/components/clock.lua(368,1) in function 'OnUpdate'D:/Program Files/Steam/steamapps/common/dont_starve/data/scripts/update.lua(104,1)QueryServerComplete no callbackQueryServerComplete no callbackQueryServerComplete no callbackForce aborting... Another question, I added the cavespawner and ruinspawn to cave.lile this:AddPrefabPostInit("cave", function(inst)inst:AddComponent("cavespawner")--inst:AddComponent("ruinspawner")end) How to make the two components seperately work in cave and ruins?Thank you!!! World Regrowth.zip Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-673805 Share on other sites More sharing options...
DarkXero Posted September 18, 2015 Share Posted September 18, 2015 @Jupiters,AddPrefabPostInit("cave", function(inst) if GetWorld().IsRuins() then inst:AddComponent("ruinspawner") else inst:AddComponent("cavespawner") endend)Andtilefns.flower_cave = function(tile) returnendput at least one valid tile or the TrySpawn function will be stuck in an infinite loop causing a stack overflow. Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-673902 Share on other sites More sharing options...
Jupiters Posted September 19, 2015 Author Share Posted September 19, 2015 (edited) Thank you, @DarkXero Edited September 19, 2015 by Jupiters Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-674171 Share on other sites More sharing options...
Jupiters Posted September 24, 2015 Author Share Posted September 24, 2015 Hello, @DarkXeroWith the latest update of cave beta test, this mod seems not working. There is nothing wrong in the log file and it appears that the mod didn't take effect at all.I think it is because cave was added.I shouldn't use AddComponent("world"). Am I right? What should I do? Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675664 Share on other sites More sharing options...
DarkXero Posted September 24, 2015 Share Posted September 24, 2015 @Jupiters,now you have the prefab "forest" for the overworld, and the prefab "cave" for the caves. No more "world" prefab. Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675715 Share on other sites More sharing options...
Jupiters Posted September 24, 2015 Author Share Posted September 24, 2015 @Jupiters,now you have the prefab "forest" for the overworld, and the prefab "cave" for the caves. No more "world" prefab.Thank you!How do I make it works with or without the cave test beta? Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675799 Share on other sites More sharing options...
DarkXero Posted September 25, 2015 Share Posted September 25, 2015 with or without the cave test beta? if GLOBAL.STRINGS.NAMES.MIGRATION_PORTAL then -- we are in the caves versionelse -- we are notend Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675806 Share on other sites More sharing options...
Jupiters Posted September 25, 2015 Author Share Posted September 25, 2015 GLOBAL.STRINGS.NAMES.MIGRATION_PORTALThank you very much!Does this line check whether there is a prefab named "migration_portal" or not? Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675807 Share on other sites More sharing options...
DarkXero Posted September 25, 2015 Share Posted September 25, 2015 check whether there is a prefab named "migration_portal" or not? No, it checks if the string for that prefab is there.And because the base branch doesn't have it, it works. Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675813 Share on other sites More sharing options...
Jupiters Posted September 25, 2015 Author Share Posted September 25, 2015 No, it checks if the string for that prefab is there.And because the base branch doesn't have it, it works.Okay, got it:) Link to comment https://forums.kleientertainment.com/forums/topic/57673-world-regrowth-modding/page/2/#findComment-675816 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