- displayed around map load: [22:55:55][ERROR][WORLD_ACTIVATE][SCRIPTING ERROR] Error in line number 4. Message was:
[22:55:55][ERROR][WORLD_ACTIVATE] [string ""]:4: attempt to index field 'YAKA_FX' (a nil value)
- also displayed around map load:
[23:16:09][ERROR][SCRIPTING ERROR] Error in line number 13. Message was:
[23:16:10][ERROR] [string ""]:13: attempt to index field 'VISITED_PFX' (a nil value)
I found (back I think because I think I had already spotted the source earlier) the source of these issues: it's a script in AoW_structures.rpk / Entity / line 38 Decodence - Wicked Flames of Ghrauth (Shadowrealm) / Script / and it's both on the OnVisitedStateChanged and OnVisited scripts.
Here is the script in question (and we indeed see the stuff at line 4 and line 13):
function Class:Event_OnVisitStateChanged(argTarget)
if (self:GetVisitState()==0) then
self.STRUCT_GLOW:SetEnabled(true);
self.YAKA_FX:SetEnabled(true);
else
self.STRUCT_GLOW:SetEnabled(false);
self.YAKA_FX:SetEnabled(false);
end
end;
function Class:Event_OnVisited(argTarget)
self.VISITED_PFX:Trigger();
self.VISITED_SFX:Trigger();
end;
The issue is that the Flame of Ghrauth is based on the Shrine to the Scarlet Destroyer and is trying to play a FX when it is visited, and to have a separate FX when it has been visited and is not yet replenished. But it lacks the 2 FX in its "component" tab. So I tried to copy/paste them and it worked. Could someone please replicate that in the mod on Dropbox (I did it from another computer and it's not very practical to put the file on Dropbox).