DumpsterDave / FS22_PriceWatcher

12 stars 1 forks source link

Error parsing pricewatcher.xml #8

Open Yiddan opened 2 years ago

Yiddan commented 2 years ago

I got my Brzozowka save failing loading due to this error:

2022-08-20 11:48 Error: F:/Utilisateurs/Mes documents/My Games/FarmingSimulator2022/savegame1/priceWatcher.xml. Error=XML_ERROR_PARSING_ELEMENT ErrorID=6 (0x6) Line number=485. 2022-08-20 11:48 Warning (script): Unknown entity id 0 for 'object' in method 'getXMLString'. 2022-08-20 11:48 LUA call stack: =MODS/FS22_PriceWatcher/priceWatcher.lua (129) : getXMLString =MODS/FS22_PriceWatcher/priceWatcher.lua (92) : parseXmlFile dataS/scripts/BaseMission.lua (531) : loadMap =MODS/FS22_BetterContracts/lib/rmod/RoyalMod.lua (489) : BaseMissionloadMapFinished dataS/scripts/FSBaseMission.lua (1670) : loadMapFinished dataS/scripts/utils/Utils.lua (472) : oldFunc dataS/scripts/utils/Utils.lua (472) : oldFunc dataS/scripts/utils/Utils.lua (460) : oldFunc dataS/scripts/i3d/I3DManager.lua (175) : asyncCallbackFunction 2022-08-20 11:48 Error: Running LUA method 'loadSharedI3DFileFinished'. MODS/FS22_PriceWatcher/priceWatcher.lua:452: bad argument #1 to 'gmatch' (string expected, got nil)

Here is the file content, starting at line 485

    <MISSING_'FILLTYPE_DIGESTATE2'_IN_L10N_EN>
        <XML AllTimeHigh="0.059000">
            <period1>0.059400</period1>
            <period2>0.059400</period2>
            <period3>0.059400</period3>
            <period4>0.059400</period4>
            <period5>0.059400</period5>
            <period6>0.059400</period6>
            <period7>0.059400</period7>
            <period8>0.059400</period8>
            <period9>0.059400</period9>
            <period10>0.059400</period10>
            <period11>0.059400</period11>
            <period12>0.059400</period12>
            <period13>0.059400</period13>
        </XML>
    </MISSING_'FILLTYPE_DIGESTATE2'_IN_L10N_EN>

I'm not sure what this filltype is. Could be a custom one from the map. I can investigate it later if you need the info. I join the full log too :) log.txt .