Animal husbandry

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Animal husbandry

Post by Nugisepojad109 » Sun Dec 02, 2018 9:33 pm

For now i have changed the husbandryChickenLarge.xml and i changed maxNumAnimals to 1000 but it only allowes me to have 511 even in a small chicken coop if i change the max number.

Is there another file or something that controlles the amount of animals in one pen?

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Mon Dec 03, 2018 10:03 pm

pump

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Tue Dec 04, 2018 4:17 pm

pump

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Wed Dec 12, 2018 2:19 pm

pump

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Thu Dec 13, 2018 1:29 pm

pump

User avatar
D3nnisd
Posts: 125
Joined: Tue Dec 27, 2011 3:52 pm

Re: Animal husbandry

Post by D3nnisd » Thu Dec 13, 2018 1:54 pm

Whats the max size of the Chicken in terms of area? Might be that.

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Fri Dec 14, 2018 7:47 am

D3nnisd wrote:
Thu Dec 13, 2018 1:54 pm
Whats the max size of the Chicken in terms of area? Might be that.
The chicken pen size dosen't matter large or small pen or even cows etc. If you change maxNumAnimals to whatever it still only allows you to get 511 and then shows pen is full.

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Fri Dec 14, 2018 9:21 pm

pump

kesboer
Posts: 3
Joined: Mon Dec 06, 2010 8:31 pm

Re: Animal husbandry

Post by kesboer » Mon Jan 14, 2019 12:55 pm

Same here I edited the default pigsty to 1200 pigs so i could have 4x 195 pigs(all breeds) instead of building 4 pigsty.
but it let me only have 511 pigs in one pigsty..

Nugisepojad109
Posts: 8
Joined: Sun Dec 02, 2018 9:32 pm

Re: Animal husbandry

Post by Nugisepojad109 » Thu May 23, 2019 6:56 pm

pump

Eische
Posts: 1309
Joined: Thu Oct 18, 2018 5:17 pm

Re: Animal husbandry

Post by Eische » Thu May 23, 2019 10:18 pm

The max number of 511 is set by default.
To increase there is a fix posted here:
viewtopic.php?f=895&t=144184
With this .lua file, the max number of animals will be increased to 4096 if I remember correctly.

To load that additional .lua script you need to add following lines to the modDesc.xml of your map:

Code: Select all

	<extraSourceFiles>
	<sourceFile filename="ChangeMaxAnimals.lua"/>
	</extraSourceFiles>
Make sure that the </modDesc> is still the last line of the modDesc.xml file.
PC - Win10

Post Reply