Chunk count

by Quezler

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

Internal
a month ago
1.1
352
Environment
Owner:
Quezler
Source:
https://github.com/Quezler/glutenfree
Homepage:
https://discord.gg/ktZNgJcaVA
License:
MIT
Created:
1 year, 6 months ago
Latest Version:
1.0.2 (a month ago)
Factorio version:
1.1
Downloaded by:
352 users

once 2.x drops do not expect new 1.x mods from me, mods will be slowly ported based on my needs and/or requests from the community, thx for playing!

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