• 📚 A new project from the admin: Check out PictureBooks.io, an AI storyteller that lets you create personalized picture books for kids in seconds. Give it a try and let me know what you think!

[BTS] Changing existing scenario dimensions

Alekseyev_

Prince
Joined
Jul 18, 2014
Messages
423
Hey all, I have a question regarding a scenario. For the case of a pre-existing scenario map, with terrain, resources, units etc. all set up, how can I change the map's dimensions? In my particular case, I would like to expand the map by several tiles westward, keeping everything else in their relative position. Sadly I haven't found any information on this, but if there are existing threads feel free to link them.

Thanks! :)
 
Scenarios are text files. You should be able to open one in notepad++ and edit it.

Code:
BeginMap
	grid width=124
	grid height=68
	wrap X=1
	wrap Y=0
	top latitude=90                 
	bottom latitude=-90                 
	world size=WORLDSIZE_HUGE                 
	climate=CLIMATE_TEMPERATE                 
	sealevel=SEALEVEL_MEDIUM                 
	num plots written=8432
EndMap
This is part of vanilla Earth_IceAge.CivBeyondSwordWBSave. You might try increasing grid width and nothing else and see what happens. If my understanding is correct, all new plots will end up as ocean, through I will admit I haven't actually tried doing this. Please report any results as I suspect I may have to do this myself at some point.

I would like to expand the map by several tiles westward
That's an issue because plots are stored as (x,y) with (0,0) being bottom left. This means just increasing width will expand the map eastwards. This means if the map doesn't warp, you will need to increase the x value of everything.
Code:
BeginPlot
	x=0,y=0
	FeatureType=FEATURE_ICE, FeatureVariety=0
	TerrainType=TERRAIN_OCEAN
	PlotType=3
EndPlot
However player has StartingX, StartingY and cities and units would have x,y positions too if the map has any of those.
 
This is part of vanilla Earth_IceAge.CivBeyondSwordWBSave. You might try increasing grid width and nothing else and see what happens. If my understanding is correct, all new plots will end up as ocean, through I will admit I haven't actually tried doing this. Please report any results as I suspect I may have to do this myself at some point.
If this part works than you can do the second part easier by copy/pasting the scenarios code into ChatGPT (or other) and tell it to increase all X values by 5 or whatever. You may need to copy it in smaller parts and perhaps do some trial and error testing first.
 
Back
Top Bottom