DumpsterDave / FS22_PriceWatcher

12 stars 1 forks source link

XML_ERROR_PARSING_ELEMENT #7

Closed Yiddan closed 2 years ago

Yiddan commented 2 years ago

Hello Dave ;)

I just started recently a new game on fruhling, and if the mod didnt cause any problem to me in the last months, i now got game stuck while loading my save. I know i added recently added a huge productions pack (From FED Action. https://www.fedaction-letsplay.de/aktuelle-projekte/ls22-nordfriesische-marsch/). I suppose it could be the one causing the trouble...

Here is the end of my log file:

2022-07-04 14:58 Error: F:/Utilisateurs/Mes documents/My Games/FarmingSimulator2022/savegame5/priceWatcher.xml. Error=XML_ERROR_PARSING_ELEMENT ErrorID=6 (0x6) Line number=290. 2022-07-04 14:58 Warning (script): Unknown entity id 0 for 'object' in method 'getXMLString'. 2022-07-04 14:58 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-07-04 14:58 Error: Running LUA method 'loadSharedI3DFileFinished'. MODS/FS22_PriceWatcher/priceWatcher.lua:452: bad argument #1 to 'gmatch' (string expected, got nil) 2022-07-04 14:58 Application exit request forced.

And line 290 of pricewatcher.xml:

    <MISSING_'WEIZENMALZ'_IN_L10N_EN>

priceWatcher.xml.txt log.txt

Yiddan commented 2 years ago

It seems that's it.

    <fillType name="WEIZENMALZ" title="$l10n_weizenmalz" showOnPriceTable="true">
            <physics massPerLiter="0.15" maxPhysicalSurfaceAngle="38" />
            <economy pricePerLiter="0.55">               
            </economy>
            <image      hud     ="Paletten/huds/hud_fill_weizenmalz.png" />
            <pallet     filename="Paletten/Palette_Weizenmalz.xml" />
        </fillType>

Game throws a "Missing 'WEIZENMALZ' in l10n_en.xml error in the UI. I guess PriceWatcher doesnt like not finding proper string match for that filltype :/