PDA

View Full Version : 4E Error in new build



kevininrussia
March 19th, 2022, 18:01
Ruleset 4E
No extensions loaded.

Getting this error pop up on console.

[ERROR] Script execution error: [string "scripts/manager_combat2.lua"]:757: attempt to perform arithmetic on local 'nNameEnd' (a nil value)

Might be related. Can no longer roll over highlight attack and effect text in Combat Tracker.

https://i.imgur.com/buz4pG4.png

valeros
March 19th, 2022, 22:38
I have the problem as well. It looks like the StringManager in CoreRPG changed. It looks like it was this:


function trim(s)
if not s then
return nil;
end

local pre_starts, pre_ends = s:find("^%s+");
local post_starts, post_ends = s:find("%s+$");

if pre_ends then
s = s:gsub("^%s+", "");
else
pre_ends = 0;
end
if post_starts then
s = s:gsub("%s+$", "");
end

return s, pre_ends + 1, pre_ends + #s;
end


and is now just this:


function trim(s)
if not s then
return nil;
end
return s:gsub("^%s+", ""):gsub("%s+$", "");
end


Attached extension that sets it back to the old way as a temporary fix, though that might break something else so use at your own risk.

Moon Wizard
March 21st, 2022, 06:20
This should be fixed with the ruleset updates I pushed tonight.

Regards,
JPG