modding a mod. first time help. sheep cheese
Posted: Tue Sep 27, 2022 8:42 am
Hi guys.
I'm a wannabe modder, and I'm playing around with some other people mod. I'm focusing on production (as I think it's the biggest update since fs19 and surprisingly it's quite forgotten so far).
I found a cute mod that add "sheep cheese" production. The mod is quite simple, and edit the vanilla sheep barn that produce "sheep milk" and sheep cheese production, which is a copy-paste from the original dairy factory, that produce "sheep cheese" instead of cheese.
Everything is sweeten up with icons and such.
Now. I'm trying to edit its file to make the dairy not just produce "sheep cheese" (which, would be ironic, placing that building next to the other dairy I have on the map!), but "sheep cheese" AND "cheese" the vanilla one.
I can't get my head around it.
this is /production on the mod file
<productions>
<production id="sheepCheese" name="$l10n_fillType_sheepCheese" cyclesPerHour="60" costsPerActiveHour="10">
<inputs>
<input fillType="MILKSHEEP" amount="3" />
</inputs>
<outputs>
<output fillType="SHEEPCHEESE" amount="2" />
</outputs>
</production>
</productions>
and this is the vanilla code
<production id="cheese" name="$l10n_fillType_cheese" cyclesPerHour="50" costsPerActiveHour="1">
<inputs>
<input fillType="MILK" amount="3" />
</inputs>
<outputs>
<output fillType="CHEESE" amount="2" />
</outputs>
</production>
I tried to literally copy paste these part back in the file, but..... if I do so, the production point disappear from the shop.
I noticed that the mod also make use of a file called "filltypes.xml" which define what is "sheepmilk, sheepcheese, etc".
Should I also write in there the definition of milk and cheese, chocolate and such?
this is the original mod:
https://www.farming-simulator.com/mod.p ... tle=fs2022
I'm a wannabe modder, and I'm playing around with some other people mod. I'm focusing on production (as I think it's the biggest update since fs19 and surprisingly it's quite forgotten so far).
I found a cute mod that add "sheep cheese" production. The mod is quite simple, and edit the vanilla sheep barn that produce "sheep milk" and sheep cheese production, which is a copy-paste from the original dairy factory, that produce "sheep cheese" instead of cheese.
Everything is sweeten up with icons and such.
Now. I'm trying to edit its file to make the dairy not just produce "sheep cheese" (which, would be ironic, placing that building next to the other dairy I have on the map!), but "sheep cheese" AND "cheese" the vanilla one.
I can't get my head around it.
this is /production on the mod file
<productions>
<production id="sheepCheese" name="$l10n_fillType_sheepCheese" cyclesPerHour="60" costsPerActiveHour="10">
<inputs>
<input fillType="MILKSHEEP" amount="3" />
</inputs>
<outputs>
<output fillType="SHEEPCHEESE" amount="2" />
</outputs>
</production>
</productions>
and this is the vanilla code
<production id="cheese" name="$l10n_fillType_cheese" cyclesPerHour="50" costsPerActiveHour="1">
<inputs>
<input fillType="MILK" amount="3" />
</inputs>
<outputs>
<output fillType="CHEESE" amount="2" />
</outputs>
</production>
I tried to literally copy paste these part back in the file, but..... if I do so, the production point disappear from the shop.
I noticed that the mod also make use of a file called "filltypes.xml" which define what is "sheepmilk, sheepcheese, etc".
Should I also write in there the definition of milk and cheese, chocolate and such?
this is the original mod:
https://www.farming-simulator.com/mod.p ... tle=fs2022