AiTechEye / xaenvironment

9 stars 4 forks source link

`examobs` mod crash #7

Closed MoNTE48 closed 2 years ago

MoNTE48 commented 2 years ago
ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'examobs' in callback luaentity_Step():
.../files/games/xaenvironment/mods/examobs/functions.lua:662: attempt to perform arithmetic on local 'i' (a table value)
stack traceback: .../files/games/xaenvironment/mods/examobs/functions.lua:662: in function 'visiable'
.../files/games/xaenvironment/mods/examobs/functions.lua:434: in function 'fighting'
.../files/games/xaenvironment/mods/examobs/main.lua:73: in function 'main'
.../files/games/xaenvironment/mods/examobs/functions.lua:85: in function
<.../files/games/xaenvironment/mods/examobs/functions.lua:80>
AiTechEye commented 2 years ago

wierd, because the i variable is created by the for loop the line above https://github.com/AiTechEye/xaenvironment/blob/master/mods/examobs/functions.lua#L661-L662

it seems like the current mt dev versions is messing cuz it even wont save some entity variables, and makes it hard to remove cars in cities.

in such occasions there is no point in trying to fix them

AiTechEye commented 2 years ago

seems like it doesnt happens again