I'm very new any chance anyone can use the snippet tool and show what I am doing wrong.WarStalkeR wrote: ↑Sun Oct 16, 2022 6:38 pmAnyway, I've verified best way to change amount of items that works properly and AI recognizing numbers.
1) Create dedicated stockpile for resource and block the resource from all other storages.
2) Ensure that in stockpile exists only single pile of the item. You can work around with multiple piles, but it becomes way more complicated.
3) Search the amount in pile *1000 as 4 byes. Use any way you want to increase/reduce amount.
4) Search the amount of items you have globally as 2 bytes (even if number is way above 65,535).
5) Change the amount of items in pile to any you want.
6) Switch found global value type from 2 bytes to 4 bytes. Increase it by same amount.
7) It is very important that stockpile and global numbers are in sync or AI will ignore added resources!
8) Enable back resource stockpiling in all other storages and remove dedicated stockpile.
9) Enjoy how your freshly generated items are unloaded into your main storage.
1 Create a stockpile with 1 item in it
2 Search quantity of that 1 item in 4 byte (example 19 scrap = 19000)
3 Build something or add more of the same item and search for the difference in quantity (example scrap is at 22 next search 22000)
4 I see 4-5 values, change them all to the desired amount
5 un-pause but once i edit or deconstruct the stockpile the game freezes.
How do I preform # 4) Search the amount of items you have globally as 2 bytes (even if number is way above 65,535). as that requires a new search?
Do I search the amount of items I originally had globally or the new amount?
Do you do a new search or is there a way to search as 2 bites?
how do i freeze the amount?
Does the game crash if they keep adding more resources of the same item to that stockpile?
Sorry completely lost.