Saving/exporting the current map
Posted: 24 May 2012, 12:47
In the process of creating an in-game scenario editor, I thought having a map* editor would be cool. It would allow people to create whole scenarios with one tool - assuming dependence on the actual mod. I've created some simple terrain editing actions and it looks good so far, but before digging myself too far in...
Without knowing much about what "maps" are except for being those neat little files in the maps folder, is it currently possible to save/export the currently modified map in a easy & efficient way as it would be by editing it in 3rd party tools?
If not, and I assume no, would it be possible? Are there any restrictions on creating an in-game editor for maps, as far as the map modifications go? I assume there may be stuff like no ability to change the map size, textures, etc, but keep in mind I'm ok with it if I can do that with a spring restart (and therefor map reload).
Most importantly, what should I start reading in order to implement a proper save?
*I'm mostly interested in having a terrain editor, i.e. currently the main thing would be to save the features, height map, texture map, and whatever else comes into play for the terrain & display properties of the map. Dynamic map such as those maps with lava/flood elements are out of the scope of the current aim.
Without knowing much about what "maps" are except for being those neat little files in the maps folder, is it currently possible to save/export the currently modified map in a easy & efficient way as it would be by editing it in 3rd party tools?
If not, and I assume no, would it be possible? Are there any restrictions on creating an in-game editor for maps, as far as the map modifications go? I assume there may be stuff like no ability to change the map size, textures, etc, but keep in mind I'm ok with it if I can do that with a spring restart (and therefor map reload).
Most importantly, what should I start reading in order to implement a proper save?
*I'm mostly interested in having a terrain editor, i.e. currently the main thing would be to save the features, height map, texture map, and whatever else comes into play for the terrain & display properties of the map. Dynamic map such as those maps with lava/flood elements are out of the scope of the current aim.