KCDA Posted September 27, 2017 Share Posted September 27, 2017 Coral Reefs never grew back, so Coral Nubbins are still pointless. The part of the code that would start the process is still just a comment. in the reef_fn inst:AddComponent("growable") inst.components.growable.stages = growth_stages inst.components.growable:SetStage(3) inst.components.growable:SetOnGrowthFn(OnGrowthFn) --inst.components.growable:StartGrowing() For readers who don't look at the code (such as myself) a -- indicates a comment. (Oh and thanks Infected_Asylum for looking at the code again for me.) Link to comment Share on other sites More sharing options...
Maslak Posted September 27, 2017 Share Posted September 27, 2017 I'm still not sure, I remember my reefs regrowing (before beta), it was just really slow and I never saw them fully grow back, just slightly. I remember you discussing this with Arethena on sub before. If I remember correctly, according to them coral does regrow, but it's very slow and you need to load it everytime you relaunch game/switch worlds or something? Either way, it's pretty messy indeed and should be changed. It's fine for them to have long regrow time, but it should work as intended and be guaranteed. Link to comment Share on other sites More sharing options...
GLERMZ Posted September 27, 2017 Share Posted September 27, 2017 I still think the issue is, stuff takes a lot to regrow if its not in the loading zone. I think its all around that issue. If you remember the Whales not progressing trough out the stages if you don't constantly go there. Spiders nest stay level 1 in islands you never go too, etc... Idk, i'm a noob in this matters, but thats what i think the issue might be (: Link to comment Share on other sites More sharing options...
KCDA Posted September 27, 2017 Author Share Posted September 27, 2017 Either way, during the new Beta, I've been on and off testing this in a world just for testing. 28 days so far, and tons of rain. Nothing. And just casually passing by them during 500 or so days of SW (pre-beta), never saw them grow. Link to comment Share on other sites More sharing options...
JimmyJam Posted September 27, 2017 Share Posted September 27, 2017 I have had it regrow in the beta but... i mined it around day 7 and its only just regrown on day 120 so... it needs to be changed lol Link to comment Share on other sites More sharing options...
Developer Jason Posted September 28, 2017 Developer Share Posted September 28, 2017 I've found the issue. The time until the coral reef would go to the next stage was resetting each time you saved and loaded. For coral, that's a pretty long time, 6 days. So if you saved and loaded reasonably often, less than 6 day intervals at least, your coral would never grow. It's fixed for the next update. KCDA, if your interested in the code of why that was happening, for some reason, the coral prefab had a save and load function that was setting it's current growth stage. The growable component was also doing this and it was saving the correct time as well. Unfortunately, the prefabs load function was happening after the growables.. so the growable components correct time was being reset by the max time when the prefabs load function kicked in. The prefab just doesn't need to do it's save and load function. Link to comment Share on other sites More sharing options...
KCDA Posted September 28, 2017 Author Share Posted September 28, 2017 3 minutes ago, Jason said: I've found the issue. The time until the coral reef would go to the next stage was resetting each time you saved and loaded. For coral, that's a pretty long time, 6 days. So if you saved and loaded reasonably often, less than 6 day intervals at least, your coral would never grow. It's fixed for the next update. KCDA, if your interested in the code of why that was happening, for some reason, the coral prefab had a save and load function that was setting it's current growth stage. The growable component was also doing this and it was saving the correct time as well. Unfortunately, the prefabs load function was happening after the growables.. so the growable components correct time was being reset by the max time when the prefabs load function kicked in. The prefab just doesn't need to do it's save and load function. Thank you for fixing it, Coral will be a useful resource now! People will stop considering world hopping for just Coral now (I know I was in that camp.) Say, do they still have to be on screen for the timer to tick in order to grow, or will it just update accordingly when loaded? Link to comment Share on other sites More sharing options...
Developer Jason Posted September 29, 2017 Developer Share Posted September 29, 2017 Ahh.. yes, the growable components didn't process multiple stages when things returned on screen. I changed it so that it should now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.