does not contain key oninit [fixed]
Posted: Thu Jul 02, 2015 7:14 pm
So when creating a mod I am wrinting I came across this wierd errormessage:
(this happens when creating a new map and loading a already existing map.)
But every piece of info I have read about this subject uses this.
This is a code snippet :
Does anyone know what is happening or am i missing somthing very important?
Thanks in advance,
Matjojo
Code: Select all
__modname__/control.lua:7: LuaGameScript doesn't contain key oinit.
But every piece of info I have read about this subject uses this.
This is a code snippet :
Code: Select all
require "util"
require "defines"
game.oinit(function()
--snip--
end)
Thanks in advance,
Matjojo