In the local function SetBoat within anchor.lua component starting at line 25 you try to call "self.OnLeaderRemoved" which does not exit (so is nil).
In normal game this does not cause a problem, because the event "boat_onremove" is never triggered anyway.
But because of the lack of an SetBoat function earlier, I added it in my mod to the anchor component. That means when the game is calling your new local SetBoat function self.boat was already set by my mod, which results in the call of
self.inst:RemoveEventCallback("boat_onremove", self.OnLeaderRemoved, self.boat)
but since "self.OnLeaderRemoved" does not exist, this throws an error "[00:04:43]: [string "scripts/entityscript.lua"]:963: assertion failed!"
So please dont leave wrong code within your scripts, just because it is no called from your current code..
And why is SetBoat a local function and you give self to it? Why isnt it a component funciton, like in mast.lua and others?
edit:
bug was solved with todays (13.12.19) game update.
(but I still dont understand why you made SetBoat a local function, while it is a class function in other boat components)
see above
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now