Freeze part of map

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
User avatar
ConrailHeritage
Engineer
Engineer
Posts: 75
Joined: 05 Mar 2013 13:28
Location: Watching NS heritage units in VA

Freeze part of map

Post by ConrailHeritage »

Good afternoon,

I'm looking for a way to simulate the growth of a map as time goes on, sort of similar to generating new sections of a map every x years. However, previous searches through the forums make it seem that dynamic map size is infeasible, so I'm wondering if, instead of that, if there is a way to completely freeze a section of the map from updating at all? My idea would be to generate, say, a 1024x1024 map, divide it into 128x128 blocks, and progressively unlock the sections as time goes on (in order to simulate map expansion), with a locked section being defined by allowing no updates to industry production/creation, town growth, player interaction etc. I'm curious if there exist any frameworks, tools, or scripts currently out there that could allow for something like this, or if this would be possible to implement via writing my own game scripts, or if there exist any other good way to do this.

Thanks so much
User avatar
kamnet
Moderator
Moderator
Posts: 8665
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Freeze part of map

Post by kamnet »

No such thing, but there are settings and limits you can impose on yourself, or insist on in a multiplayer game. If you use an industry NewGRF set, all of them pretty much have a setting to disable spawning of new industries or closing down of unserviced industries, including "Manual Industries" if you wish to play with just the original OpenTTD industries. Towns also do not grow or shrink until a player sets up a station and either provides good or poor service. You can even slow or disable the growth of trees in the game settings.

All you would need to do is mark out which areas are playable and which ones are not.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Freeze part of map

Post by Eddi »

a game script can sort of do this, like, it can stop town growth in the "locked" parts of the map. maybe preventing the player from building there is quite limited, however at least the game script can immediately remove any such construction.

what i'd probably attempt is make a snapshot of the industries and towns with the game script, delete them, and recreate them upon unlocking each section.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 6 guests