Community Forum

Buildings permanent

Forum Overview >> Editor

Created07.01.2019 16:46

Matti Minkkinen (wopito) 07.01.2019 16:46
  How can the buildings on the map, such as animal buildings and other placeable objects, appear on the map of the assembler at the time it is made?

Bilbo Beutlin (BBeutlin) 07.01.2019 17:15
With "assembler" you mean the GE? (Giants Editor)
You can simply import the i3d. But for functionality certain objects need a lua script and describing xml for properties. Some should work if you add in user attributes
<Attribute name="onCreate" type="scriptCallback" value="abc.onCreate"/> where "abc" is the required lua script
<Attribute name="xmlFile" type="string" value="def.xml"/> the associated xml file

However this is not intended, since in FS19 you can have several farms and the functional objects should be bound to certain farm and farmland.

Matti Minkkinen (wopito) 07.01.2019 19:41
I have found in many permanent buildings on the map, for no apparent lua-file or script. Somehow done by converting xml files! I would like to know how to do it?

Bilbo Beutlin (BBeutlin) 07.01.2019 22:49
Like I mentioned above:
Objects without functions you can insert by simply importing the i3d.

Objects with functions usually have in map merely "placeholders" and are inserted at career start by the "defaultItems.xml".
Examine this file to see how it works.

Matti Minkkinen (wopito) 08.01.2019 06:53
OK, thanks!

Note: Log in to post. Create a new account here.