RPG System


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

8 months ago
0.16 - 1.1
103K

b Unrecoverable Bug

2 years ago
(updated 2 years ago)

Hello.

I had this error in Sandbox while I was messing around. I only had a laser gadget from Bob's vehicle equipment mod on my vehicle's grid. And it threw this error every time the laser killed anything.

2717.727 Error MainLoop.cpp:1285: Exception at tick 7065: The mod RPG System (1.1.8) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RPGsystem::on_entity_died (ID 4)
LuaPlayer doesn't contain key type.
stack traceback:
[C]: in function 'index'
__RPGsystem
/control.lua:1402: in function 'GetXPByKill'
RPGsystem/control.lua:1476: in function <RPGsystem/control.lua:1457>
2776.559 Loading map C:\Users\NooNoo\AppData\Roaming\Factorio\saves\Test.zip: 2557906 bytes.

And here's some pics:

https://imgur.com/TRivtxf
https://imgur.com/LZ0IOsW

Lovely mod. Thank you so much for the hard work. <3

Edit: Dammit, I missed putting this thread into Bugs section. Don't know how to fix it. Sorry!

snouz β˜†
2 years ago

@MFerrari, I reckon it could be solved with:

line 1402
if killer.type and killer.type == 'character' then
instead of
if killer.type == 'character' then

2 years ago

Exactly @snouz. Thanks. Thanks @Pomcake for the report
Releasing a new version today. Just checking another small issue

2 years ago

Version released

2 years ago

Thank you. <3

2 years ago
(updated 2 years ago)

Hello ,

Im not sure where to put this error but the forum name matches the error type. So i was also messing around in sandbox to see if i run into any issues with mod compatibility when this happend. I was using the Warden vechile from AAI vechiles pack(link at bottom) and ran over a biter then i crashed with the folowing report.

The mod RPG System (1.1.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RPGsystem::on_entity_died (ID 4)
LuaPlayer doesn't contain key type.
stack traceback:
[C]: in function 'index'
__RPGsystem
/control.lua:1402: in function 'GetXPByKill'
RPGsystem/control.lua:1476: in function <RPGsystem/control.lua:1457>

Here is a pic : https://imgur.com/a/yv5UnRf

Vechile mod that caused the issue : https://mods.factorio.com/mod/aai-vehicles-warden

Nice work on the mod i also enjoy it alot with my buds really makes deathworld +++ worlds feasible

Edit: After further testing i have run into the same issue with vanilla cars aswell i crash with the same report whenever i try to run something over

2 years ago

trying to fix on next version

New response