Hello everyone. I am trying to create an in-game map editor, kinda like the one we had in Civ IV.
I tried to change the terrain type with Plot:SetTerrainType(). Unfortunately, although all data are properly modified (the resources yields and such), the terrain's models and textures are not. The only way to have the graphics updated is to save and reload the game. Would someone happen to know a trick to fix this, please ?
By the way, I currently edit the terrain under the selected unit. Does someone know a better solution, like tile selection ? Looking at the debug files it seems possible but I guess it won't actually work so if someone can confirm or infirm...
I tried to change the terrain type with Plot:SetTerrainType(). Unfortunately, although all data are properly modified (the resources yields and such), the terrain's models and textures are not. The only way to have the graphics updated is to save and reload the game. Would someone happen to know a trick to fix this, please ?
By the way, I currently edit the terrain under the selected unit. Does someone know a better solution, like tile selection ? Looking at the debug files it seems possible but I guess it won't actually work so if someone can confirm or infirm...