Community Forum

Is it possible to add a fruit to a map, completely through scripts?

Forum Overview >> Scripting

Created08.05.2017 19:39

Tim Derks (timmiej93) 08.05.2017 19:44
A very basic yes/no question really: Is it possible to add a new fruit to a map, without changing the map's i3D file, so completely through scripts?

I'm making a mod that I'd like to be independent of which map is being played, which requires a new fruittype to be installed. I'd really like to avoid the "x-mod compatible" type of maps. FS17 did good on preventing multi-fruit ready trailers with the categories, now can we do the same for fruits?

Bilbo Beutlin (BBeutlin) 08.05.2017 20:58
Yes. And there's already a mod "AdditionalMapTypes" to add fruit- and filltypes easily. It requires mainly extra entries in the modDesc.xml.
Certainly you need additional gfx files to link with: all usual textures and pictures.

Tim Derks (timmiej93) 08.05.2017 22:04
Hi Bilbo,

This does look promising, but I'm still quite confused. Looking at the manual (the English one is quite confusing, my understanding of the German language makes the German one confusing for me as well), at step 7, it seems like you still need access to the i3D file to set up the foliage correctly. Also, when I'm looking through the script itself, I don't see any reference to the foliage's texture files, which to me implies that you really do need to change the i3D (or gdm file as the manual suggests) file.

Do you have any experience with this mod yourself, do you perhaps know how the foliage's texture files are handled?


Bilbo Beutlin (BBeutlin) 09.05.2017 04:27
Well, I don't know exactly. My only experience with "AdditionalMapTypes" is: at present I'm playing the "Saxonia" map which also uses this mod.
I didn't study the mod or its manual in detail, have merely read the introducing LUA comments.
So my assumption: the mod generates the texture filenames automatically from the fruit/filltype root name and expects the files to be in certain folders.
So I think, changes in the i3d are not required mandatory. Probably only if you want to draw fruit layers already in the GE.

Mngrazy Grazy (Unknown) 09.05.2017 22:29
wrong Bilbo

with additionalMapTypes.lua you must change the i3d file for the new fruits !

Tim Derks (timmiej93) 09.05.2017 22:56
I thought so Mngrazy

Maybe somebody from GIANTS can clarify this question once and for all?

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