Chunk count

by Quezler

Tracking the amount of chunks on a surface is tricky, this mod contains a tracker.

Internal
5 months ago
1.1
276
Environment
Owner:
Quezler
Source:
https://github.com/Quezler/glutenfree
Homepage:
https://discord.gg/ktZNgJcaVA
License:
MIT
Created:
11 months ago
Latest Version:
1.0.1 (5 months ago)
Factorio version:
1.1
Downloaded by:
276 users

The most obvious way of tracking chunks per surface is inaccurate, this mod does the heavy lifting.

note: due to the lack of an on_chunk_created event the count can lag behind table_size(surface.get_chunks()).

/c game.print(serpent.block( remote.call("chunk-count", "get", {surface_index = game.player.surface.index}) ))
/c game.print(serpent.block( remote.call("chunk-count", "get")                                              ))

Debugged and developed on the factorio discord with the help of: (in order of reacting)
- justarandomgeek
- JanSharp
- _CodeGreen