Adding more than 255 farmlands

Your forum for all discussions around Modding.
Rollermix
Posts: 1
Joined: Sun Nov 12, 2023 7:12 pm

Adding more than 255 farmlands

Post by Rollermix »

Hey, i am trying to add more than 255, i add to farmlands.xml values to 255, and channels set to 9, in i3d i did too, i can buy, i can work on 510, but its not painting blue when i buy it and in log i have. When i sold it i cant work on it. Do you have idea how to solve it.
Error: Setting state color with invalid state '257'. Maximum allowed is 255.
User avatar
Missyb
Posts: 383
Joined: Mon Apr 08, 2019 11:03 pm

Re: Adding more than 255 farmlands

Post by Missyb »

max number of farmlands is 255 the only other way around it is using script
!Warning I am dislayxic I will type how i think, if you don't understand any of it then please say!

Mods by Missyb FS22
Mods by MissyB Modding
Twitch Missyb Modding
Ziuta Modding
Moderator
Posts: 968
Joined: Sun Jul 17, 2016 9:40 am

Re: Adding more than 255 farmlands

Post by Ziuta Modding »

255 is the maximum value because in the range of 0-255 are stored data on the color by which the game recognizes farmland.
User avatar
Dogface
Posts: 1095
Joined: Mon Nov 28, 2016 3:02 pm
Location: PC ⛽ USA

Re: Adding more than 255 farmlands

Post by Dogface »

Oooooh, cool.
Post Reply