Dave0910
January 2nd, 2019, 22:10
I'm in the process of creating a custom Ruleset for AD&D 2E (I'm aware of the existing project, but I prefer to do things my own way). The issue I'm encountering is with when I load any Weapon or access the Weapon's tab. Because range in 2E didn't have increments, and nearly every ranged weapon has 2-3 ranges, I changed range to a String, the idea being to parse the numerical values from the String by recognizing the slash(es) (I've gone through every DB file to make sure that it's changed everywhere. However, I still get a type mismatch error. I've not been able to find where the control for this is, though to fix it. I've also tried going through the CoreRPG Ruleset (I started by copying the 3.5 Ruleset) looking to see if it was something hard-coded there with no success.
This is the error that comes up:
Ruleset Error: windowcontrol: Database type mismatch for control (range) in windowclass (reference_grouplist_groupitem)
ScriptError: [string "ref/scripts/ref_groupledlist_groupitem.lua"]:58 attempt to index local 'cField' (a nil value)
After verifying the database changes, I went through the script trying to find the issue, but I can't find where it's specified that the control needs to be a number. Are they inherently numbers, or is there something I've missed?
This is the error that comes up:
Ruleset Error: windowcontrol: Database type mismatch for control (range) in windowclass (reference_grouplist_groupitem)
ScriptError: [string "ref/scripts/ref_groupledlist_groupitem.lua"]:58 attempt to index local 'cField' (a nil value)
After verifying the database changes, I went through the script trying to find the issue, but I can't find where it's specified that the control needs to be a number. Are they inherently numbers, or is there something I've missed?