Inspired by Sedna17s new Colony Screen i played around with the WorldBuilder.
I thought it would be cool if we could edit the Settler-, War- and City Maps in the WorldBuilder. So that we dont have to restart the game everytime we want to switch the player. It would be even cooler if Provinces could be edited too.
Im not that far yet, but one can already view the Settler- and War Maps while easily switching between players. Maybe this already helps someone
I borrowed the mechanic that is used for the Fog of War. When you click on Reveal Tile Mode, you can chose between players and the different maps. See screenshot.
I could need help with the python code.
I read the values directly from the arrays in RFCEMaps.py. Im not yet able to edit the values because somehow i cant write in those arrays. Those changes wouldn't be permanent but it would be a first step. It seems that i can use the gc.setWarsMap method to propagate the changes to c, but then i'm not able to visualize the changes, because i don't know how to read the values from c. Even then this wouldn't be permanent.
I will look into Array2WBPython etc. in the modding tools how it is done there, maybe i can write the RFCEMaps file as a whole.
I thought it would be cool if we could edit the Settler-, War- and City Maps in the WorldBuilder. So that we dont have to restart the game everytime we want to switch the player. It would be even cooler if Provinces could be edited too.
Im not that far yet, but one can already view the Settler- and War Maps while easily switching between players. Maybe this already helps someone
I borrowed the mechanic that is used for the Fog of War. When you click on Reveal Tile Mode, you can chose between players and the different maps. See screenshot.
I could need help with the python code.
I read the values directly from the arrays in RFCEMaps.py. Im not yet able to edit the values because somehow i cant write in those arrays. Those changes wouldn't be permanent but it would be a first step. It seems that i can use the gc.setWarsMap method to propagate the changes to c, but then i'm not able to visualize the changes, because i don't know how to read the values from c. Even then this wouldn't be permanent.
I will look into Array2WBPython etc. in the modding tools how it is done there, maybe i can write the RFCEMaps file as a whole.