stijnwop / manureSystem

Manure System modification for Farming Simulator 2022
GNU General Public License v3.0
98 stars 57 forks source link

invalid className 'FS19_manureSystem.manureSystemStorage' #139

Open jonaslinhose opened 3 years ago

jonaslinhose commented 3 years ago

Hallo,

sorry wenn ich hier mal dumm nachfragen muss, ich versuche die GülleLagoone aus dem Modhub über die mapDE_items.xml als DefaultItems zu verbauen. Leider scheine ich den falschen ClassName zu verwenden, denn ich bekomme die Meldung

invalid className 'FS19_manureSystem.manureSystemStorage'

in der Log. Kann mir jmd. einen Tip geben, welcher Eintrag korrekt ist. Ich habe leider in den gängigen Foren / Discords nichts gefunden.

Mein Eintrag lautet wie folgt: <item mapBoundId="Jonas_FS19_manureSystemLagoon" className="FS19_manureSystem.ManureSystemStorage" modName="FS19_manureSystemLagoon" filename="$moddir$FS19_manureSystemLagoon/manureLagoon.xml" position="-996.48699951172 161.6692199707 -127.30574035645" rotation="-179.99999134858 -57.98203593975 -179.99999134858" defaultFarmProperty="true" farmId="3"/>

Anonymous-any commented 3 years ago

Hello,

Because I just saw to comparative with similar placeable integration map have you tried with "manureSystemStorage" only in manureLagoon.xml like this ? <placeableType>manureSystemStorage</placeableType>

It must be enabled too the FS19_manureSystem.zip mod ! but I think you don't omitted.

If yes what I understand for me is there no really explain about improving maps tuto even it is been writes : https://github.com/stijnwop/manureSystem#modding

jonaslinhose commented 3 years ago

Hello,

i changed it: manureLagoon.xml: manureSystemStorage defaultitems: <item mapBoundId="Jonas_FS19_manureSystemLagoon" className="manureSystemStorage" modName="FS19_manureSystemLagoon" ...

but the Error is also there: Error: Corrupt savegame, item 24 has invalid className 'manureSystemStorage'

FS19_manureSystem.zip is activited

Anonymous-any commented 3 years ago

Hello, sure it's normal if you use same savegame because information's are not the same to this point. So try to create a new savegame, then if it's good (but I doubt), after you have to compare and fix the savegame you trying to use (with copy of course for secure). If your new savegame don't work I don't have solution for you, because of my ignoring about scripting.

Another way because idk from where is based your code, below an example of Hofbergman map about (placeable) but the name is related to xml className object so I think you can name of what you want from the moment it is consistent with "item" to my view point, inside the defaultItems.xml file you can found this models type :

<items>
    <item mapBoundId="garage"           className="Placeable"                   filename="$mapdir$/placeables/farmBuilding/garage/garage.xml"       position="14.5170002 67.428 335.60696411"           rotation="180 9.209 180" defaultFarmProperty="false" farmId="63"/>
    <item mapBoundId="workshopHome"     className="Workshop"                    filename="$mapdir$/placeables/workshop/workshop.xml"                position="-42.21500015 66.99610901 215.76985168"    rotation="0 0 0"        defaultFarmProperty="false" farmId="1"/>
    <item mapBoundId="kaercherFarm"     className="HighPressureWasher"          filename="data/placeables/highPressureWasher/kaercher/kaercherHDS918-4M.xml"        position="-100.66899872 66.98284912 210.34840393"   rotation="-180 -90 -180" defaultFarmProperty="false" farmId="1"/>
</items>

Hope you are done ! Br