65535 animal limit

Your forum for all discussions around Modding.
User avatar
Frithgar
Posts: 94
Joined: Sun Jun 08, 2014 2:10 am
Contact:

65535 animal limit

Post by Frithgar »

Hey, I'm trying to adjust a cattle pen mod and have encountered a limit of 65535 animals. I want more animals than this in the pen for.... reasons.... After asking around (thank you tokol on the Discord!), I've learned that this number indicates a 16 bit limit on the mod. So I wanted to ask a couple of questions.

1, Is that 16 bit limit something that's hard coded into the game?

2, Is there a way to work around it? I had a suggestion of essentially creating two animal pens within the same mod, which could kind of work for what I want, but I wouldn't have any idea about how to start working on it.

If it's a limit on all mods, then I'll have to just use multiple buildings, but if not I'd really appreciate some pointers on how to increase the limit so that I can have a million animals in one single mod. As I said, there are reasons :lol:
For Farming Simulator 17 Timelapse and gameplay videos try https://www.youtube.com/user/Frithgar
JDMFarms
Posts: 168
Joined: Sun May 08, 2016 8:58 pm

Re: 65535 animal limit

Post by JDMFarms »

Frithgar wrote: Wed Mar 22, 2023 2:15 pm I want more animals than this in the pen for.... reasons....
Are you simulating being the owner of Tyson Chicken? hahahah. sorry, couldnt help but think of all the bad press Tyson got a couple decades ago when i read your "why" you want this.
Eische
Posts: 3773
Joined: Thu Oct 18, 2018 5:17 pm

Re: 65535 animal limit

Post by Eische »

For FS19 there was this solution to increase max capacity of animal pens:
viewtopic.php?t=144184
This raised the capacity from 511 (base game) to 4095 animals per pen.

Not sure if same procedure still works for FS22. To have over one million animals you would need to set the value to 20 as 2^20=1048576
Playing on PC - Win10
Ryzen 3600
RX 5500XT
16GB Ram
How to post log file
How to upload pictures
Please report bugs for FS22 using the bugtracker
User avatar
Frithgar
Posts: 94
Joined: Sun Jun 08, 2014 2:10 am
Contact:

Re: 65535 animal limit

Post by Frithgar »

Eische wrote: Thu Mar 23, 2023 9:14 am For FS19 there was this solution to increase max capacity of animal pens:
viewtopic.php?t=144184
This raised the capacity from 511 (base game) to 4095 animals per pen.

Not sure if same procedure still works for FS22. To have over one million animals you would need to set the value to 20 as 2^20=1048576
Thank you very much for this, and for the advice with the numbers, I'll give it a go and let you know what happens
For Farming Simulator 17 Timelapse and gameplay videos try https://www.youtube.com/user/Frithgar
User avatar
Frithgar
Posts: 94
Joined: Sun Jun 08, 2014 2:10 am
Contact:

Re: 65535 animal limit

Post by Frithgar »

No joy unfortunately, I followed the steps you put in that thread and it still came out the same, thank you for the help though
For Farming Simulator 17 Timelapse and gameplay videos try https://www.youtube.com/user/Frithgar
Eische
Posts: 3773
Joined: Thu Oct 18, 2018 5:17 pm

Re: 65535 animal limit

Post by Eische »

Hmm, that is unfortunate. Sorry it does not work.
Most likely the respective variable name changed with FS22.
Playing on PC - Win10
Ryzen 3600
RX 5500XT
16GB Ram
How to post log file
How to upload pictures
Please report bugs for FS22 using the bugtracker
Post Reply