export

Your forum for all discussions around Modding.
Nova1990
Posts: 54
Joined: Fri Mar 10, 2017 4:01 pm

export

Post by Nova1990 »

without luck i have been trying to export a tree from one map to a mod so i can place it myself without using GE. I have come so far that i can see the mod in the game with a picture in the store but when i buy the tree it is a fir stage 3 and thats not what the I3d of the mod is. The log is error free, it seems that the I3d wont get readed.

I have done this in FS19 but wont work now

any ideas?
XPModder
Posts: 76
Joined: Thu Oct 30, 2014 2:45 pm

Re: export

Post by XPModder »

If the model that gets loaded by the game when buying it is not the i3d you want it to load, then you have the wrong i3d specified in your xml file.
In the xml for the store item the path (relative to your mod) of the i3d file has to be specified in the filename tag, which is in the base tag. The i3d file given there is what is loaded when you buy the thing in the shop.
At the point of buying the full path of the i3d that is loaded will show up in the log.
Das Universum ist unvorstellbar groß und wir sind im Vergleich dazu winzig.

Daher kann mir jemand der unter uns Winzlingen Unterschiede in Hautfarbe oder Herkunft sucht, nur Leid tun, weil seine Sichtweise so begrenzt ist!

Fremdenfeindlichkeit ist Menschenfeindlichkeit!
Nova1990
Posts: 54
Joined: Fri Mar 10, 2017 4:01 pm

Re: export

Post by Nova1990 »

XPModder wrote: Tue Dec 05, 2023 10:44 am If the model that gets loaded by the game when buying it is not the i3d you want it to load, then you have the wrong i3d specified in your xml file.
In the xml for the store item the path (relative to your mod) of the i3d file has to be specified in the filename tag, which is in the base tag. The i3d file given there is what is loaded when you buy the thing in the shop.
At the point of buying the full path of the i3d that is loaded will show up in the log.
Is this right, i went into C:\Program Files (x86)\Steam\steamapps\common\Farming Simulator 22\data\maps\mapUS open Storeitem.xml adding a new line under TREES section
<storeItem xmlFilename="$data/maps/trees/spruceStageMax/spruceStageMax.xml" />

it doesnt work
XPModder
Posts: 76
Joined: Thu Oct 30, 2014 2:45 pm

Re: export

Post by XPModder »

Its been a while, but I have been busy and havent logged in here since december...
If you still have this problem, Ill try to help again.
First of all, you shouldnt edit files in the games installation directory, as that can break multiplayer and will also likely be overwritten by the next game update.
You were talking about making a mod, which goes into the mods folder in your "My Games/FarmingSimulator22" folder.

To help any further I would need to see what you did, so please post your modDesc and your xml for the tree.

It does not surprise me that what you were trying there with just adding a random trees xml file as a storeItem did not work. In order for it to work as you intend it to, the xml file you reference in "<storeItem />" has to actually contain a valid store item and in order for it to show up as a placeable like you want, it has to be configured correctly in the xml. The file you were referencing is not set up to be a buyable placeable, as thats not what it is in the base game and therefore it didnt work.
To do this you will need to make a new xml file for the tree that you want to show up as a placeable and have the correct contents in that file. This new xml file you make belongs in your mod and NOT in the games installation folder. You then reference the new xml in your modDesc.
Das Universum ist unvorstellbar groß und wir sind im Vergleich dazu winzig.

Daher kann mir jemand der unter uns Winzlingen Unterschiede in Hautfarbe oder Herkunft sucht, nur Leid tun, weil seine Sichtweise so begrenzt ist!

Fremdenfeindlichkeit ist Menschenfeindlichkeit!
Post Reply