Crash server

Issue #5 resolved
Former user created an issue

I have this problem from time to time 2022-07-02 16:30:48: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'x_bows' in callback item_OnUse(): Invalid float vector dimension range 'x' (expected -2.14748e+06 < x < 2.14748e+06 got -1.07219e+07). 2022-07-02 16:30:48: ERROR[Main]: stack traceback: 2022-07-02 16:30:48: ERROR[Main]: [C]: in function 'set_velocity' 2022-07-02 16:30:48: ERROR[Main]: ...e/.minetest/games/test/mods/x_bows/init.lua:214: in function <...e/.minetest/games/test/mods/x_bows/init.lua:157>

I don't know why "x" gets so big

Comments (7)

  1. Juraj Vajda

    I could not reproduce the issue after trying multiple recommended steps. Nevertheless is seem to be related to the load_time meta data. Therefore I have added new feature where the bow will discharge after changing hotbar selection, logging in to the game or dropping charged arrow. This way the meta data will be cleared from the item and hopefully prevent any Invalid float vector dimension range errors.

  2. Log in to comment