- Joined
- Dec 26, 2013
- Messages
- 1,664
- Solutions
- 11
- Reaction score
- 924
Ok so first I thought my problem was that I was trying to put too many events in same file, or not in correct order or anything, so I tried something super simple like this
and when I save it in the correct folder /data/scripts and start the server I get an error for the compat.lua
it says compat.lua but also says its the miningrespawn.lua.
I think this could be an actual bug with TFS
Am I doing something majorly wrong here, or am I missing something super small? I can't see why the script would call such an error.
When I remove that file from the scripts folder, server starts up with 0 errors, and I have never modified the compat.lua....
Something has to be wrong with the revscripts for globalevents right?
Lua:
local MiningRespawn = GlobalEvent("Mining_Respawn")
function MiningRespawn.OnThink()
print("every ten seconds")
return true
end
MiningRespawn:interval(10000)
MiningRespawn:register()
and when I save it in the correct folder /data/scripts and start the server I get an error for the compat.lua
it says compat.lua but also says its the miningrespawn.lua.
Code:
Lua Script Error: [Scripts Interface]
C:\Users\chase\OT-Workspace\TheForgottenServer\data\scripts\miningrespawn.lua
data/lib/compat/compat.lua:217: bad argument #1 to 'rawset' (table expected, got userdata)
stack traceback:
[C]: at 0x7ff7240ca0e0
[C]: in function 'rawset'
data/lib/compat/compat.lua:217: in function '__newindex'
...kspace\TheForgottenServer\data\scripts\miningrespawn.lua:3: in main chunk
> miningrespawn.lua [error]
I think this could be an actual bug with TFS
Am I doing something majorly wrong here, or am I missing something super small? I can't see why the script would call such an error.
When I remove that file from the scripts folder, server starts up with 0 errors, and I have never modified the compat.lua....
Something has to be wrong with the revscripts for globalevents right?