Hi!, I am too stupid to use this without further instructions...so where exactly from "global.lua" should I put this code? It gives me a hell of a bunch of errors now when loading the server...and it seams to me a super nice system just to give up at the first try...
I have copied the code into my "global.lua" just before the last "return true", which should work, but I get the next error from the Weather.lua I am using, posted in this same thread!:
So I thought that the "Weather.lua", wasn't getting the "weatherConfig" because it was in a "global.lua" function...which I allready tried to change place but nope, it still give me the error!
I have copied the code into my "global.lua" just before the last "return true", which should work, but I get the next error from the Weather.lua I am using, posted in this same thread!:
Bash:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/Weather.lua:onThink
data/globalevents/scripts/Weather.lua:11: attempt to index global 'weatherConfig' (a nil value)
stack traceback:
[C]: in function '__index'
data/globalevents/scripts/Weather.lua:11: in function <data/globalevents/scripts/Weather.lua:1>
[Error - GlobalEvents::think] Failed to execute event: Weather
So I thought that the "Weather.lua", wasn't getting the "weatherConfig" because it was in a "global.lua" function...which I allready tried to change place but nope, it still give me the error!
Last edited: