castle_gates/gate_functions.lua:295: attempt to index local 'newdef' (a nil value) #7649

Closed
opened 2024-11-14 02:51:59 +01:00 by AliasAlreadyTaken · 6 comments

I tried to open a gate.

2024-11-14 02:49:57: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback item_OnPlace(): ...minetest-dev/bin/../mods/castle_gates/gate_functions.lua:295: attempt to index local 'newdef' (a nil value)
2024-11-14 02:49:57: ERROR[Main]: stack traceback:
2024-11-14 02:49:57: ERROR[Main]: 	...minetest-dev/bin/../mods/castle_gates/gate_functions.lua:295: in function 'get_door_layout'
2024-11-14 02:49:57: ERROR[Main]: 	...minetest-dev/bin/../mods/castle_gates/gate_functions.lua:377: in function 'on_rightclick'
2024-11-14 02:49:57: ERROR[Main]: 	...inetest/5.10.0/minetest-dev/bin/../builtin/game/item.lua:344: in function <...inetest/5.10.0/minetest-dev/bin/../builtin/game/item.lua:337>

I tried to open a gate. ``` 2024-11-14 02:49:57: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback item_OnPlace(): ...minetest-dev/bin/../mods/castle_gates/gate_functions.lua:295: attempt to index local 'newdef' (a nil value) 2024-11-14 02:49:57: ERROR[Main]: stack traceback: 2024-11-14 02:49:57: ERROR[Main]: ...minetest-dev/bin/../mods/castle_gates/gate_functions.lua:295: in function 'get_door_layout' 2024-11-14 02:49:57: ERROR[Main]: ...minetest-dev/bin/../mods/castle_gates/gate_functions.lua:377: in function 'on_rightclick' 2024-11-14 02:49:57: ERROR[Main]: ...inetest/5.10.0/minetest-dev/bin/../builtin/game/item.lua:344: in function <...inetest/5.10.0/minetest-dev/bin/../builtin/game/item.lua:337> ```
AliasAlreadyTaken added the
3. source/testserver
label 2024-11-14 02:52:04 +01:00
AliasAlreadyTaken added this to the 1.1.126 milestone 2024-11-14 02:52:07 +01:00
AliasAlreadyTaken added the
2. prio/critical
label 2024-11-14 02:52:13 +01:00
Member

Repo (the node on the left is a hinge. note that there are unknown nodes involved):
image

Not the same traceback, but it will also lead to a crash:
image

pr to upstream is on the way :-)

Repo (the node on the left is a hinge. note that there are unknown nodes involved): ![image](/attachments/5b4c6cae-3eb4-497f-b11b-2e0d076bd177) Not the same traceback, but it will also lead to a crash: ![image](/attachments/05fd0822-0ac5-45c0-8adc-da556933a476) pr to upstream is on the way :-)
2.1 MiB
2.1 MiB
Member
https://github.com/minetest-mods/castle_gates/pull/27
AliasAlreadyTaken added the
3. source/mod upstream
label 2024-11-14 22:42:29 +01:00
Member

PR got merged :-)

PR got merged :-)
whosit added the
4. step/ready to QA test
label 2024-11-16 18:14:39 +01:00
Author
Owner

Yay, PR merged upstream

Yay, PR merged upstream
AliasAlreadyTaken added the
4. step/QA OK
label 2024-11-26 18:17:38 +01:00
Member

Noting that this fix also required it's own fix: https://github.com/minetest-mods/castle_gates/pull/28
But it was done same way 2d9858083f by Alias before .0 release.

Noting that this fix also required it's own fix: https://github.com/minetest-mods/castle_gates/pull/28 But it was done same way https://gitea.your-land.de/your-land/castle_gates/commit/2d9858083fbb56eabb4ab52817eff33fcf9285f7 by Alias before .0 release.
Author
Owner

Since currently castle_gates work on main, this can be considered fixed :)

Since currently castle_gates work on main, this can be considered fixed :)
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#7649
No description provided.