Adjusting Yields In Game

Tank0133
Posts: 3
Joined: Thu Jun 20, 2013 10:00 pm

Adjusting Yields In Game

Post by Tank0133 »

Okay, I'll admit I have limited script writing ability. But does anyone know where to direct me to go to re-write the scripts for the yields on the various crops? I'd love to make the yields more realistic for Kansas (where I live) compared to Europe (where the model is based off of. But I have know idea where to begin looking....
User avatar
bassaddict
GIANTS Software | Web/Script Programmer
Posts: 11983
Joined: Tue Nov 29, 2011 2:44 pm
Location: ER, DE

Re: Adjusting Yields In Game

Post by bassaddict »

Code: Select all

FruitUtil.fruitTypes.<fruit_name>.literPerSqm
That are the variables containing the yield values.
And here a list with the default yields: http://fs-uk.com/forum/index.php?topic= ... #msg895147
fermer-giles
Posts: 54
Joined: Wed Jun 06, 2012 7:20 pm

Re: Adjusting Yields In Game

Post by fermer-giles »

Hi there

In which file or folder can you find the text to adjust the yield? :gamer:
User avatar
bassaddict
GIANTS Software | Web/Script Programmer
Posts: 11983
Joined: Tue Nov 29, 2011 2:44 pm
Location: ER, DE

Re: Adjusting Yields In Game

Post by bassaddict »

In no folder. You have to write a script for that.
fermer-giles
Posts: 54
Joined: Wed Jun 06, 2012 7:20 pm

Re: Adjusting Yields In Game

Post by fermer-giles »

Thanks for the reply.

If it's something that i have to create and add to the game then I think I will give it a miss.

Before i screw it up all together.

(If you don't know what your doing then leave it alone) Well it's what I keep getting told.
andymort2013
Posts: 6
Joined: Tue Jan 15, 2013 3:21 pm

Re: Adjusting Yields In Game

Post by andymort2013 »

Google and download the "kenstadt" map mod which is hosted on several sites. Inside that zip is a folder marked extras, inside that is a nice little script "extras" that the map maker has written to modify yields. If you just put that file into your mod folder it should work. you can alter the value in the text file, eg literPerSqm*0.53 reduces yields to 53% of the default amount.
fermer-giles
Posts: 54
Joined: Wed Jun 06, 2012 7:20 pm

Re: Adjusting Yields In Game

Post by fermer-giles »

Thanks andy found the map"kernstadt" will let you know how i get on with it.

Thanks again
fermer-giles
Posts: 54
Joined: Wed Jun 06, 2012 7:20 pm

Re: Adjusting Yields In Game

Post by fermer-giles »

Tried doing as you said and all i get is an error message saying it cant open the file.

If i add it into a map folder all i get is the game is being loaded, please wait screen with the two icons spinning around for more than ten minutes.

What am i doing wrong? :hmm:
andymort2013
Posts: 6
Joined: Tue Jan 15, 2013 3:21 pm

Re: Adjusting Yields In Game

Post by andymort2013 »

humm, im no expert, only found things out by trial and error.
try unzipping the kernstad map file. then put the whole map folder into your farming simulator/mod folder in your my documents folder.
keep the yield script in the extras folder of kernstad

I found that it had the effect of reducing yields on all maps i played on not just kernstad

test it with a new game on default map. combine a strip on starting field without the file installed. and then reload and try it with the file to see if yield decrease.
joshua241996
Posts: 129
Joined: Sat Jun 01, 2013 6:17 pm

Re: Adjusting Yields In Game

Post by joshua241996 »

bassaddict wrote:

Code: Select all

FruitUtil.fruitTypes.<fruit_name>.literPerSqm
That are the variables containing the yield values.
And here a list with the default yields: http://fs-uk.com/forum/index.php?topic= ... #msg895147
would this work if you was to add this onto each fruit growth state xml or would you have to create a new xml for each fruit or one xml that covers all fruit litres per square metre if that make sense.
User avatar
bassaddict
GIANTS Software | Web/Script Programmer
Posts: 11983
Joined: Tue Nov 29, 2011 2:44 pm
Location: ER, DE

Re: Adjusting Yields In Game

Post by bassaddict »

Nothing XML. Like I already said: you need a script.
Post Reply