LuaEntityPrototype doesn't contain key air_resistance.
Posted: Wed Dec 15, 2021 6:29 am
But it should, right? In docs of LuaEntityPrototype it says LuaEntityPrototype has key air_resistance, that is either double value or nil.
my (kind of messy) mod control file. mod from mod portal isn't in newest(this) form
https://pastebin.com/5HcnzQzz
(as side note, line 47 prints that we are dealing with LuaEntityPrototype, same as error message, but just wanted to make sure)
my error (whenever train gets registered ( reload or new game->after placing train part ) ):
I don't know, I think this error message is misleading. It states prototype doesn't have key that it ... really should have, according to API documentation.
Error started appearing after... I don't know, it just worked before. Now I can't place train
my (kind of messy) mod control file. mod from mod portal isn't in newest(this) form
https://pastebin.com/5HcnzQzz
(as side note, line 47 prints that we are dealing with LuaEntityPrototype, same as error message, but just wanted to make sure)
my error (whenever train gets registered ( reload or new game->after placing train part ) ):
Code: Select all
Error while running event train_realism::on_tick (ID 0)
LuaEntityPrototype doesn't contain key air_resistance.
stack traceback:
[C]: in function '__index'
__train_realism__/control/debug_controller.lua:51: in function 'airResistance'
__train_realism__/control/debug_controller.lua:86: in function 'calculateTrainAirResistance'
__train_realism__/control/debug_controller.lua:142: in function 'createTrain'
__train_realism__/control/debug_controller.lua:168: in function 'registerTrains'
__train_realism__/control/debug_controller.lua:535: in function <__train_realism__/control/debug_controller.lua:530>
1365.478 Quitting: user-quit.
1365.691 Goodbye
Error started appearing after... I don't know, it just worked before. Now I can't place train