Community Forum

Bale i3d

Forum Overview >> Farming Simulator 15

CategoryFarming Simulator 15
Created25.02.2015 16:36

Sheldon Major (Chaos_Darkrai) 25.02.2015 16:39
I'd like to know if it is possible to make a modded baler use a different bale i3d file, or how I could specify the path for the baler to use the file in the mod. The thing is I am trying to convert the Krone Comprima V180 from FS13, and all is good, but it uses the default, small bale that the New Holland uses. I'd just like to know if this is possible, then the conversion will be perfect.

Zsolt Nedeczki (Unknown) 25.02.2015 16:47
bale to do it if you do not have the machine if the machine is to be XML access to modify the bale

Sheldon Major (Chaos_Darkrai) 25.02.2015 16:50
I'm sorry I can't understand, could you be a bit more clear please? Or maybe provide an example?

Emil Drefers (Unknown) 26.02.2015 08:32

in FS15 the Baler specialization does not look for a i3d name in the vehicle.xml to load bales.
Instead it searches in an array of registered bale types for the best fitting one.
So, there is a function to register new bales.
The selection depends on the bale size ;)

Finally, let me say that the function to register a new bale will be published with the script documentation when we have the patch v1.3 finished (maybe a bit earlier).
The patch should be ready in around one month.


Sheldon Major (Chaos_Darkrai) 26.02.2015 11:53
Thanks Emil, I'm looking forward to this because the default bales are too small. :)

Libor Vojtek (Unknown) 07.05.2015 09:14
Hi everybody,

I am putting this here, cause it is probably similar problem to mine.
I would like to be able to create grass (not hay) bales.
Is there a easy way, yet? Some tutorial or something?
I have no problem with programming, but I don't have enough free time to study hundred page documentation to just be able to create grass bales.


Emil Drefers (Unknown) 07.05.2015 11:50

there is a mod which enables balers to collect grass:

I did not test the mod so I can't say if it works correctly and is really that what you want.

If the mod is not what you want, you would have to wait just a little bit until the script documentation is published.
It will show a command to register new bale types.
So, this command enables you to register bales for grass ... then you only need to add the fillType grass to your baler and voila - it shoudl work ;)


Libor Vojtek (Unknown) 07.05.2015 12:09
Unfortunately Emil I know about this mod and it doesn't work that way.
It just allows baler to accept grass, but baler still creates hay bales.

Oh and I forget to mention that I want square grass bales, because I think BaleExtensions kind of creates round grass bales, so that isn't solution to my problem either.

I already tried adding grass_windrow to baler fillTypes, I tried creating altered hay bale i3d file with grass fillType and custom dds, but just this guessing approach apparently isn't good way to solve my problem. ;-)

Emil Drefers (Unknown) 07.05.2015 13:47

okay, since it is no more long to wait until the patch will be released and we won't cahnge the registration of bale types ... here you go:

With the follwoing function you can register a new bale type:

function BaleUtil.registerBaleType(filename, fillTypeName, width, height, length, diameter, isRoundbale)

Arguments for this function should be clear, I guess?

fillTypeName would be: "grass_windrow"

The size of the default bales is (you can see that in the filename particularly):
squarebales: (width/height/length/diameter) 1.2, 0.9, 2.4, nil
roundbales: (width/height/length/diameter) 1.12, nil, nil, 2.4

Next you would have to add the fill type "grass_windrow" to your baler and you should be set.


Libor Vojtek (Unknown) 07.05.2015 18:15
Thank you very much, I hope I will be able to handle this myself from now on, cause I never created any mod for any Farming Simulator yet.

Wolle Brach (Unknown) 22.05.2015 10:01
Hi Com,

i have a Problem with my NewHolland BB1290. First, sorry for my bad English!

I have a baler that going to do grassbales. I tried to change the vehicle.xml:

<baleType fillType="grass_windrow" filename="bale/baleHay240.i3d" isRoundBale="false" width="1.2" height="0.9" length="2.4" />


<fillTypes fillTypes="grass_windrow" />

and in the baleHay.i3d:

<Attribute name="fillType" type="string" value="grass_windrow"/>

but still throwing haybales out and no grassbales. The haybales already in the mod folder (NewHollandBB1290/bale/baleHay240.i3d), but read does the still from the installation folder (E:\SteamLibrary\steamapps\common\Farming Simulator 15\data\maps\models\objects\squarebales\baleHay240.i3d and all the necessary files).

Can anyone help me with this.I can not LUA scripting and i hope not to have to learn it ;)

I hope that was understandable.

I have to write that in the vehicle.xml?

Emil Drefers (Unknown) 22.05.2015 11:56

as stated above you need to write a custom script to be able to press/make/use grass bales (or to use other bales than the default ones).


Wolle Brach (Unknown) 22.05.2015 15:53
hi Emil,

it exist no easyer way to press grass bales? I have the default bales in my mod folder. I cant write scripts :( i must learn it first. ok, thank you for help. then the mod will have to wait.

thx Emil


Wolle Brach (Unknown) 14.06.2015 00:38
This dosnt regist a grass bale:

function BaleUtil.registerBaleType(filename, fillTypeName, width, height, length, diameter, isRoundbale)

I have done this and more, but i cant finish the gras bale... always comes back to the hay bales :(

I do not understand that...

Emil Drefers (Unknown) 15.06.2015 09:04

well .... you don't need to use a script.
I totally forgot the second and probably way easier method.
So, I'm very sorry for the unecessary detour!

Remove your script and 'everything' ;)

Just add a few lines to the moddesc.xml of your baler:

<baleType filename="...." fillType="dryGrass_windrow" isRoundBale="true" width="0.0" height="0.0" length="0.0" diameter="0.0" />

adjust the values and you should be set.


Wolle Brach (Unknown) 15.06.2015 13:07
This error comes then

Error: Running LUA method 'mouseEvent'.
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/main.lua(2149) : attempt to concatenate global 'key' (a nil value)

its only comes when i do my mod in the modfolder!

Emil Drefers (Unknown) 15.06.2015 13:28

argh ... yes, you're right.

There's a bug in the code.
We will fix it. But I'm not sure what time we will release the next patch ...

So, until that you would have to try and write your own script to load a new baleType.


Wolle Brach (Unknown) 15.06.2015 13:29

Ok, unfortunately I have seen many attempts behind me and not make it.
If you have to first learn scripts now that's too hard for me. I try again what comes to mind when new.

I hope my English was good enough :D

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