dying on the highest available level crashes the server #2456

Closed
opened 2022-08-15 16:18:29 +00:00 by flux · 9 comments
Member
2022-08-15 09:17:08: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'xp_redo' in callback on_chat_message(): Runtime error from mod 'xp_redo' in callback on_dieplayer(): ...st/bin/../worlds/your-land/worldmods/xp_redo/builtin.lua:96: attempt to index local 'next_rank' (a n
2022-08-15 09:17:08: ERROR[Main]: il value)
2022-08-15 09:17:08: ERROR[Main]: stack traceback:
2022-08-15 09:17:08: ERROR[Main]: 	...st/bin/../worlds/your-land/worldmods/xp_redo/builtin.lua:96: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100>
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/game/register.lua:431: in function </opt/minetest/bin/../builtin/game/register.lua:417>
2022-08-15 09:17:08: ERROR[Main]: 	[C]: in function 'set_hp'
2022-08-15 09:17:08: ERROR[Main]: 	...s/your-land/worldmods/yl_commons/chatcommands/killme.lua:19: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/game/chat.lua:79: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100>
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/game/register.lua:431: in function </opt/minetest/bin/../builtin/game/register.lua:417>
2022-08-15 09:17:08: ERROR[Main]: stack traceback:
2022-08-15 09:17:08: ERROR[Main]: 	[C]: in function 'set_hp'
2022-08-15 09:17:08: ERROR[Main]: 	...s/your-land/worldmods/yl_commons/chatcommands/killme.lua:19: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/game/chat.lua:79: in function 'func'
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100>
2022-08-15 09:17:08: ERROR[Main]: 	/opt/minetest/bin/../builtin/game/register.lua:431: in function </opt/minetest/bin/../builtin/game/register.lua:417>
``` 2022-08-15 09:17:08: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'xp_redo' in callback on_chat_message(): Runtime error from mod 'xp_redo' in callback on_dieplayer(): ...st/bin/../worlds/your-land/worldmods/xp_redo/builtin.lua:96: attempt to index local 'next_rank' (a n 2022-08-15 09:17:08: ERROR[Main]: il value) 2022-08-15 09:17:08: ERROR[Main]: stack traceback: 2022-08-15 09:17:08: ERROR[Main]: ...st/bin/../worlds/your-land/worldmods/xp_redo/builtin.lua:96: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100> 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/game/register.lua:431: in function </opt/minetest/bin/../builtin/game/register.lua:417> 2022-08-15 09:17:08: ERROR[Main]: [C]: in function 'set_hp' 2022-08-15 09:17:08: ERROR[Main]: ...s/your-land/worldmods/yl_commons/chatcommands/killme.lua:19: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/game/chat.lua:79: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100> 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/game/register.lua:431: in function </opt/minetest/bin/../builtin/game/register.lua:417> 2022-08-15 09:17:08: ERROR[Main]: stack traceback: 2022-08-15 09:17:08: ERROR[Main]: [C]: in function 'set_hp' 2022-08-15 09:17:08: ERROR[Main]: ...s/your-land/worldmods/yl_commons/chatcommands/killme.lua:19: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/game/chat.lua:79: in function 'func' 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:107: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100> 2022-08-15 09:17:08: ERROR[Main]: /opt/minetest/bin/../builtin/game/register.lua:431: in function </opt/minetest/bin/../builtin/game/register.lua:417> ```
flux added the
1. kind/bug
2. prio/critical
labels 2022-08-15 16:18:29 +00:00
flux self-assigned this 2022-08-15 16:18:29 +00:00
flux added this to the flux's TODO list project 2022-08-15 16:18:29 +00:00
flux added the
4. step/question
label 2022-08-15 16:19:26 +00:00
Author
Member

the question is, what should the behavior be?

the question is, what *should* the behavior be?

The intial idea was that once you reach max level, your xp bar stays full, you get a shining aura and you cannot gain more xp. Death does not subtract xp anymore.

The intial idea was that once you reach max level, your xp bar stays full, you get a shining aura and you cannot gain more xp. Death does not subtract xp anymore.
flux removed the
4. step/question
label 2022-08-15 16:39:13 +00:00
flux added the
4. step/at work
label 2022-08-15 20:16:31 +00:00
Author
Member

fixed most of it via 7f33e3d146

i haven't figured out a great way to give the player a "shining aura" yet though.

fixed most of it via https://gitea.your-land.de/your-land/xp_redo/commit/7f33e3d146694d9f10860eed593660019a3da758 i haven't figured out a great way to give the player a "shining aura" yet though.
flux added
4. step/ready to QA test
and removed
4. step/at work
labels 2022-08-15 22:08:52 +00:00
Author
Member

added an aura: 63ea479e96

added an aura: https://gitea.your-land.de/your-land/xp_redo/commit/63ea479e963d473cc17c9b311cef09cff20ad6b6 ![](https://gitea.your-land.de/attachments/966bafdc-7ad6-47b4-8de3-a4a3937e05d4) ![](https://gitea.your-land.de/attachments/41b3795e-30c4-47ed-9697-6d3df7b9f4b9)

Optional or mandatory Aura?

Optional or mandatory Aura?

Optional is a better idea than mandatory

Optional is a better idea than mandatory
flux added
4. step/at work
and removed
4. step/ready to QA test
labels 2022-08-17 17:37:53 +00:00
Author
Member

added a command to toggle the aura in a395938eb5

added a command to toggle the aura in https://gitea.your-land.de/your-land/xp_redo/commit/a395938eb5561d466224e3fb6953f50c90462f27
flux added
4. step/ready to QA test
and removed
4. step/at work
labels 2022-08-17 17:43:59 +00:00
AliasAlreadyTaken added this to the 1.1.115 milestone 2022-08-17 18:53:21 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2022-08-31 01:52:23 +00:00
flux removed this from the flux's TODO list project 2022-08-31 01:52:25 +00:00
flux removed their assignment 2022-08-31 01:52:27 +00:00
Author
Member

live. you can come back now shanish =D

live. you can come back now shanish =D
flux closed this issue 2022-08-31 01:52:42 +00:00

And enjoy your aura :D

And enjoy your aura :D
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#2456
No description provided.