PDA

View Full Version : Script Error CoreRPG



Griogre
August 18th, 2025, 07:05
CoreRPG scripts/manager_token.lua 823 attempt to concatenate a nil value

In 5E (or presumably any other CoreRPG ruleset) if you put a monster into the combat tracker and then drag the monster's token onto a map, ie the BattleMap Cave01 and cycle the Faction type on the combat tracker, when it gets to the neutral faction FG throws the error.

LordEntrails
August 18th, 2025, 15:59
Does this repeat if you turn off your extensions? Wound Colors affects tokens, this is a token error. Sounds likely it is your extension.

Trenloe
August 18th, 2025, 16:13
It's caused by the Alternative Wound Colors extension. This extension completely overrides the CoreRPG ColorManager global script package and causes the error listed in post #1.

I recommend you don't completely override FG global script packages (in this case ColorManager) and use the ColorManager.setUIColor function to override only the individual colors needed. For global script package functions (e.g. ColorManager.resetUIHealthColors), you can store the original function and call that first within an override function.

Griogre
August 18th, 2025, 17:04
Yeah, that was my bad. I did a prelim fix for AltWounds last then backed back out to the launcher to try 5E it without it and I must have messed up somehow. AltWounds and Base 5E are both working this morning.

@Trenloe, yeah that file use to be 12 constants and now it's 800 lines. I noticed that function and that's a good idea. I was going to do a second pass anyway because Smiteworks added so much stuff I need to test for horrible color combos