testserver minetest-ballistics/api/behavior/on_hit_object.lua:57: attempt to index local 'velocity' (a nil value) #6114

Closed
opened 2024-01-28 01:36:49 +00:00 by AliasAlreadyTaken · 4 comments

I shot a lnadguard with a fire arrow

2024-01-28 01:32:38: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'y_bows' in callback luaentity_Step(): ...dmods/minetest-ballistics/api/behavior/on_hit_object.lua:57: attempt to index local 'velocity' (a nil value)
2024-01-28 01:32:38: ERROR[Main]: stack traceback:
2024-01-28 01:32:38: ERROR[Main]: 	...dmods/minetest-ballistics/api/behavior/on_hit_object.lua:57: in function 'scale_tool_capabilities'
2024-01-28 01:32:38: ERROR[Main]: 	...dmods/minetest-ballistics/api/behavior/on_hit_object.lua:90: in function 'on_hit_object_punch'
2024-01-28 01:32:38: ERROR[Main]: 	...lds/Minetest_test/worldmods/minetest-y_bows/entities.lua:98: in function 'cast_for_collisions'
2024-01-28 01:32:38: ERROR[Main]: 	...test_test/worldmods/minetest-ballistics/api/internal.lua:173: in function 'on_step'
2024-01-28 01:32:38: ERROR[Main]: 	...test_test/worldmods/minetest-ballistics/api/register.lua:54: in function 'func'
2024-01-28 01:32:38: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101>
I shot a lnadguard with a fire arrow ``` 2024-01-28 01:32:38: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'y_bows' in callback luaentity_Step(): ...dmods/minetest-ballistics/api/behavior/on_hit_object.lua:57: attempt to index local 'velocity' (a nil value) 2024-01-28 01:32:38: ERROR[Main]: stack traceback: 2024-01-28 01:32:38: ERROR[Main]: ...dmods/minetest-ballistics/api/behavior/on_hit_object.lua:57: in function 'scale_tool_capabilities' 2024-01-28 01:32:38: ERROR[Main]: ...dmods/minetest-ballistics/api/behavior/on_hit_object.lua:90: in function 'on_hit_object_punch' 2024-01-28 01:32:38: ERROR[Main]: ...lds/Minetest_test/worldmods/minetest-y_bows/entities.lua:98: in function 'cast_for_collisions' 2024-01-28 01:32:38: ERROR[Main]: ...test_test/worldmods/minetest-ballistics/api/internal.lua:173: in function 'on_step' 2024-01-28 01:32:38: ERROR[Main]: ...test_test/worldmods/minetest-ballistics/api/register.lua:54: in function 'func' 2024-01-28 01:32:38: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:108: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:101> ```
AliasAlreadyTaken added the
1. kind/bug
label 2024-01-28 01:43:02 +00:00
flux was assigned by AliasAlreadyTaken 2024-01-28 01:43:07 +00:00
AliasAlreadyTaken added this to the 1.1.123 milestone 2024-01-28 01:43:10 +00:00
Member

Looks like diamond arrows work, but fire arrows crash almost always. Was testing on moths.

Looks like diamond arrows work, but fire arrows crash almost always. Was testing on moths.
Member

just fixed this as mentioned in #6081: d359dc4a93

just fixed this as mentioned in #6081: https://github.com/fluxionary/minetest-y_bows/commit/d359dc4a93f94c9b8eb345a7d111a574b1b7b6e6
flux added the
4. step/ready to QA test
label 2024-01-28 23:12:50 +00:00
flux added this to the flux's TODO list project 2024-01-28 23:12:54 +00:00
AliasAlreadyTaken added the
ugh/QA OK
label 2024-01-29 10:13:08 +00:00
Author
Owner

QA

Whatever mob I shoot, fire arrow or not, it gets hit and doesn't crash.

QA Whatever mob I shoot, fire arrow or not, it gets hit and doesn't crash.
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-03-28 20:53:41 +00:00
flux removed this from the flux's TODO list project 2024-03-28 20:53:43 +00:00
flux removed their assignment 2024-03-28 20:53:45 +00:00
Member

live

live
flux closed this issue 2024-03-28 20:53:50 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6114
No description provided.