I got the following error when clicking to use a level up potion.
My character was currently showing Level 100 and maybe 10% of a green bar. It may be related to allowing the level cap to go to 200 in the mod settings.
Factorio version 1.1.30
8486.940 Error MainLoop.cpp:1285: Exception at tick 5752208: The mod RPG System (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event RPGsystem::on_player_used_capsule (ID 75)
Error when running interface function RPG.PlayerGainLevel: RPGsystem/control.lua:854: attempt to perform arithmetic on local 'NextLevel' (a nil value)
stack traceback:
RPGsystem/control.lua:854: in function 'CalculateXP_PB'
RPGsystem/control.lua:885: in function 'UpdatePanel'
RPGsystem/control.lua:419: in function 'XP_PlayerLv_upd'
RPGsystem/control.lua:453: in function 'XP_UPDATE_tick'
RPGsystem/control.lua:1687: in function <RPGsystem/control.lua:1683>
[C]: in function 'call'
RPGsystem/control.lua:1639: in function <RPGsystem/control.lua:1625>
stack traceback:
[C]: in function 'call'
RPGsystem/control.lua:1639: in function <RPGsystem/control.lua:1625>