xbows: Invalid float vector #1251
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#1251
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
2021-12-31 03:52:08: ACTION[Main]: Server: Shutting down
2021-12-31 03:52:38: ERROR[Main]: ServerError: AsyncErr: ServerThread::run 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 -3.39367e+08).
2021-12-31 03:52:38: ERROR[Main]: stack traceback:
2021-12-31 03:52:38: ERROR[Main]: [C]: in function 'set_velocity'
2021-12-31 03:52:38: ERROR[Main]: /home/mtlive1/.minetest/mods/x_bows/init.lua:318: in function </home/mtlive1/.minetest/mods/x_bows/init.lua:250>
Repro:
Why?
https://gitea.your-land.de/your-land/x_bows/src/branch/yl_stable/init.lua#L251
Which means, get_us_time() starts counting at server start. It is NOT meant to be serialized and NO indication of when the bow was charged.
Fixed in 873b3ac856a5debc6c18f49d6ac978d58d8439e2
Required further attention, we can't use get_us_time to save when the shot happened. And we need to make it that the bow gets unloaded, as soon as the player doesn't hold it in their hand or the server terminates or the bow is moved to a different inventory