View topic - Saving/exporting the current map



All times are UTC + 1 hour


Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 24 May 2012, 11:47 
Moderator

Joined: 05 Aug 2009, 19:42
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.


Top
 Online Profile  
 
PostPosted: 24 May 2012, 12:38 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
I recommend tou look at zwzsg's savegame mutator, and quantum's mission editor for starters.


Top
 Offline Profile  
 
PostPosted: 24 May 2012, 13:37 
Lobby Developer
User avatar

Joined: 25 Sep 2006, 12:56
username made an heightmap exporter a while ago, the format ppm is weird but it works ( afaik the others don't ) , since i cba to dig for the thread, here's the widget:

( remember to create the destination folder or it'll complain )

i did in fact toyed myself a bit with an ingame map editor experiment, it's rather crappy, using old terraform code from CA, nowdays it doesn't even run in spring, i'll attach here if you want to check


Attachments:
mapedit.zip [283.14 KiB]
Downloaded 30 times
cmd_heightmapexporter.lua [11.79 KiB]
Downloaded 115 times
Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.