Search found 4 matches
- Mon Jan 08, 2018 2:46 pm
- Forum: Modding help
- Topic: Exclude data from save game?
- Replies: 1
- Views: 682
Exclude data from save game?
I wrote a mod which stores quite a lot of data for each entity it in the game. When the factory becomes big (say 10k entities) it becomes slow to save and load the game. Around 20 seconds for 10k entities. The save file is not too big, 2 MB compressed, the "script.dat" inside the save file...
- Sat May 27, 2017 2:25 pm
- Forum: Modding help
- Topic: How to know that a laboratory is working?
- Replies: 4
- Views: 1310
Re: How to know that a laboratory is working?
Thank you prg, that indeed works. I tried almost the same code and didn't work for me.
- Fri May 26, 2017 4:06 pm
- Forum: Modding help
- Topic: How to know that a laboratory is working?
- Replies: 4
- Views: 1310
Re: How to know that a laboratory is working?
Thanks for the tip. Unfortunately lab.get_inventory(defines.inventory.lab_input)[1 ... 7].durability doesn't seem to change.
- Thu May 25, 2017 12:34 pm
- Forum: Modding help
- Topic: How to know that a laboratory is working?
- Replies: 4
- Views: 1310
How to know that a laboratory is working?
I'm working on a mod to calculate the utilization of various buildings. I mean to calculate how many percentage of the last minute the building was "working". I found no universal flag for this, even though the game animates the buildings while they are working (i.e. the factory shows some...