Search the Community
Showing results for tags 'scripting'.
Found 2 results
Let's say I'm in a remote web console and I want to see current information about a live dedicated server like what current in game day it is, current season or any other useful stats to display in text, how would I do it?
Well now I've run into another fundamental issue I don't understand; replicas I believe I've gleaned from context from other threads I've been reading trying to solve this issue that replicas are essentially the client-side component of any object that needs to be referenced by said clients, but I don't understand what drives this or even if it's 100% correct. So recently I created a system by which Guano is renamed to a playfully ambiguous title in keeping with the game's sort of vague reference to natural bodily functions. I do this in my modmain.lua with the following code; AddPrefabPostInit("guano",function(inst) inst:AddComponent("named") end) and everything is well and good until I try to perform this in a world with caves. I'm assuming it's because I added the named component artificially with no supporting logic of when to replicate it? (I notice there's a named_replica.lua in the components folder) but I have no idea how to go about fixing this. The specific error log being