RPG System


This mod adds a basic RPG system to the game (XP, level-up and skills)

8 months ago
0.16 - 1.1
102K

b [SOLVED] Error when using Level Up potion

3 years ago

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>

3 years ago

Yeah, consuming them (had some big too) in a different order seems to die trying to go over level 100. I saw the bar further along while saying level 100 than the first crash.

3 years ago

Went and killed a bunch of biters and it still crashed trying to tick to 101.

3 years ago

Please try the new version. Thanks for the report

3 years ago

Can level past 100. Thank you so much!

New response