Question: Now tha Lua is integrated with ToT/ToTPP, will it be possible to replace existing maps that were already imported into a scenario, with a different map?
Hmmm ... perhaps the still undocumented features allow a more direct and suitable way ... but technically that is possible, yes. It's very brute force, not plug-and-play, and needs some minor programming in two steps. And rivers and special resources cannot not be "imported", as far as I see.
Step 1: You have to have the new map in an existing game (can be any, regardless of where you want to put it).
Then you have to define a small script to be executed in the lua console - looping over all x from 0 to (user defined) maxX and all y from 0 to (user defined) maxY and printing the terraintype, like e.g
Code:
print(x, y, civ.getTile(x,y, mapID).terrainType) )
.
Copy/paste that info in a text file
Step 2a: prepare a local definition of a variable array containing the informations on x,y,terrainType
Step 2b: Start up the actual game you want to put the map into. Start a second lua scripts which again loops over x and y, this time however setting the terraintype
Code:
civ.getTile(x,y, mapID).terrainType = arrayvar[x,y]
(Again disclaimer, I'm not perfectly familiar with lua yet so even these syntax snippets might be incorrect in details)
So, to reiterate - definitely a dirty brute force method - but it will yield the same terrain types in the same tiles, sans rivers and resources (which can be read but not set in the current lua interface, as far as I read it).