Well...thats the question. For example. Is there any posibility to enlarge a map from 512x512 to 1024x512. If any tile has a coded position, there could be a way to enlarge the number of tiles from the last. This means that an existing map could onle be enlarged in only one cardinal point.
I'm delirious? say that if you think so.
It is possible to enlarge an existing savegame (map)?
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 48
- Joined: 03 Sep 2018 20:24
Re: It is possible to enlarge an existing savegame (map)?
Technically it seems possible. Every flat tile could be copied to a 2 by 2 (or larger) block as if it was enlarging a picture.
The problems are sloped tiles and all the objects on the tile like roads/rails, houses, etcetera. That needs some serious work to get the desired result.
In other words, start off with a large map or better, create a map with the editor and place towns and industries manually if you feel there are too much of those, or too close together.
The problems are sloped tiles and all the objects on the tile like roads/rails, houses, etcetera. That needs some serious work to get the desired result.
In other words, start off with a large map or better, create a map with the editor and place towns and industries manually if you feel there are too much of those, or too close together.
Tinkering in the code in between writing mostly naughty stuff.
See http://scifurz.wordpress.com/
See http://scifurz.wordpress.com/
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: It is possible to enlarge an existing savegame (map)?
Tiles have sequential numbers. The map size is only used to determine their drawing position. So yes, in principle you can write a conversion to change size when you know the previous map. But you will need to take care to not forget any tile references (especially vehicles etc). Enlargement in on direction (dunno which right now) might be easy as it wouldn't mean that you need to adjust any tile info.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: It is possible to enlarge an existing savegame (map)?
tiles are stored in this pattern: (example 4x4 map)
so if you want to add tiles in Y direction, you can simply add more rows (and move the last original row, which is invisible VOID tiles, to the new end of the map)
if you want to add tiles in X direction, you must make a cut at each row, insert the new tiles (again, moving the last original VOID tile to the new end), and renumber any existing tile reference (like sign or vehicle positions)
Code: Select all
0 Y
/ 4
X / / 8
/ / / 12
/ / / /
3 / / /
7 / /
11 /
15
if you want to add tiles in X direction, you must make a cut at each row, insert the new tiles (again, moving the last original VOID tile to the new end), and renumber any existing tile reference (like sign or vehicle positions)
Who is online
Users browsing this forum: No registered users and 12 guests