To clarify regarding CompiledMapGenSettings::createContext:
In 2.0 and 2.1 it is called from luaSurface::luaCalculateTileProperties. This function calls into CompiledMapGenSettings::addDefaultControlSettingConstants which iterates on every TilePrototype, EntityPrototype, and DecorativePrototype ...
Search found 3 matches
- Tue Jul 21, 2026 7:25 pm
- Forum: Resolved Problems and Bugs
- Topic: [2.1.12] Performance regression from 1.1 with calculate_tile_properties
- Replies: 3
- Views: 711
- Wed May 06, 2026 8:52 pm
- Forum: Modding interface requests
- Topic: Configurable Player::generateFarAwayChunks
- Replies: 5
- Views: 627
Re: Configurable Player::generateFarAwayChunks
Ah I see. I was thinking of a per-surface override because a lot of modded planets have no enemies, but I don't mind a global constant
I think pollution will cause attacks sooner or later anyways until one gets late game cheeses, since pollution generate chunks too.
- Wed May 06, 2026 10:50 am
- Forum: Modding interface requests
- Topic: Configurable Player::generateFarAwayChunks
- Replies: 5
- Views: 627
Configurable Player::generateFarAwayChunks
Currently, it is set to generate chunks about 1 chunk per second in a 20-radius around the player, result in a minimum of 41x41 = 1681 chunks per surface when a player stays on it for sufficient time. I play on a modded server with around two dozen planets, and the resulting map size quickly ...