Game crash with more than 65535 items

Place to get help with not working mods / modding interface.
identity0
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat May 19, 2018 4:11 pm
Contact:

Game crash with more than 65535 items

Post by identity0 »

If I set the rocket-launch-product of an item to a stack of more than 65535 items, the game will crash with this error:

Value outside of range at property tree at ROOT.item.my-item.rocket-launch-product[1]

This works fine:

Code: Select all

item.rocket_launch_product = {"my-rocket-result", 65535}
but this doesn't:

Code: Select all

item.rocket_launch_product = {"my-rocket-result", 65536}
Can someone help?
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Game crash with more than 65535 items

Post by orzelek »

It's not a crash per se - it's just an internal limit that you can't exceed.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Game crash with more than 65535 items

Post by darkfrei »

identity0 wrote:If I set the rocket-launch-product of an item to a stack of more than 65535 items, the game will crash with this error:
Value outside of range at property tree at ROOT.item.my-item.rocket-launch-product[1]
This works fine:

Code: Select all

item.rocket_launch_product = {"my-rocket-result", 65535}
Can someone help?
Just make new item "my-rocket-result-container", that needs 1000 of your "my-rocket-result". Now you can set up up to 65 535 000 your items, but in containers.
Post Reply

Return to “Modding help”