cephalo

Elementerra - Random Map Generator

Elementerra - Random Map Generator

Announcement: This map generator has been updated. Go here for the new version.

Hi all,

I have here probably the first random map generator for Elemental! Follow the link below to download.

Elementerra random map generator - mirror

Elemental Window

This application requires the .NET framework runtime version 3.5 to run. Most people have this already, but if you don't you can get it through Windows Update.

To use the map generator, just play with all the funny sliders until you have something you like, then press one of the 'Publish' buttons. The 'Publish Random Map' button will publish a map with the current settings, but scrambles the map and does not show it to you. When asked for a location to save the file, usually you want to save it in the 'Documents/My Games/Elemental/Maps' directory. If you have mods turned on in the game options, you should then be able to load the map in game.

Most of the controls are self explanatory, but there are three noise fields that might need some explanation. For the landforms, there is a noise field and a turbulence field that are weighted against each other with their weight sliders. The climate uses a separate noise field. The 'Frequency' control adjusts the size of the noise features. High frequency makes small features and low frequency makes large features. The roughness slider controls the 'bumpyness' of the noise field. Low roughness makes very smooth transitions, high roughness increases the randomness and gives a grainy appearance.

The 'Calculate Start Positions' button shows you the start locations, but it is not necessary to press it. Start locations are always calculated on publish, but since it takes some time to calculate them, I didn't do real time updates. The button is there just for early feedback.

Let me know if you have any problems or bugs. Enjoy!

The maps generated by this application are somewhat different than the normal Elemental maps, as the following screenshots will show. For one thing, I eliminated the coastal cliffs altogether. The map looks better without them and they aren't required for gameplay. For swamps I added some props from the campaign map and also lowered their altitude so that they are slightly under the water level so you can see the ripple effect. Characters can still walk on it and use it as normal, and it looks very swampy! I also punched up the mountains a bit to make them big and dramatic. Fantasy worlds need big, big mountains!

One thing that still needs to be done is the placement of resources. I expect that the rules will be changing a great deal in the near future, so I'm holding off on that. Currently they will be placed randomly at game start, sometimes in huge clusters, and considering their enormous importance that is obviously not ideal. I'll tackle that issue once I learn more about it. If anyone has any opinions on how resources ought to be placed, please post them. I've noticed that I've never seen an Elementium resource in any game I've played, not sure why.

One difficulty here is that I do not know that it's possible to turn off the random resource spawns. If I place resources on the map in the cartography room, they end up randomized anyway. If anyone knows how to turn that off I'd like to hear it.

Take a look...

Floating in the bay

Fallen Lands

Surrounded!

Version History

1.2 - Wrote floating point numbers correctly for non-US operating systems.

1.1 - Matched the XML encoding from Elementerra to the one that Elemental uses.

754,277 views 241 replies | Pinned
Reply #127 Top

Just wanted to post a thank you for this mod.  I started a game on a large size (196x196) map last night, and it looks well set up so far.  getting the program to run and load the map to Elemental was easy.  Now I just need to play with the sliders and see what they do :)

Reply #128 Top

One suggestion. The land in the official maps is already painted (desert/winter/grassland/swamp/evil/and so on)

Would it be possible to include such areas in the program? Right now, it's basically just a huge world that is barren, and it only comes alive with different types of terrain when the civs start expanding. It looks a bit bland in the beginning!

Reply #129 Top

Quoting Heavenfall, reply 128
One suggestion. The land in the official maps is already painted (desert/winter/grassland/swamp/evil/and so on)

Would it be possible to include such areas in the program? Right now, it's basically just a huge world that is barren, and it only comes alive with different types of terrain when the civs start expanding. It looks a bit bland in the beginning!

When I first heard that Elemental would take place on a 'dead' world I really did worry that it would kill the exploration game, and it kinda does in some ways. Exploring a dead world is just not very compelling, and it's hard to make it compelling. I'm not sure that is helped much by adding the terrain types that fictionally are supposed to come from life or death magic. I left them out specifically so that you could feel yourself having an impact on the world as is supposed to happen according to the story. I know that SD's included maps do have these terrains placed, but that doesn't make sense to me. I feel like they just kinda worried about a bland map and so threw that in at the last minute hoping the map would be more interesting somehow.

I would feel better about putting them in if there was a reason for that kind of magic to be present there. Like maybe I could pretend that an earth shard or fire shard could spread a small area of death magic and the other two spreading life magic. The current problem with that is that those things are placed automatically and you can't control them. Once I can get control of how things are placed on the map, I can then do alot more interesting things.

I can also add snow add some point when I come up with some rules for snow placement, but before I add anything else, I'm going to have to redesign the interface. I'll eventually have to have more screens for things like resource placement and the various forces that control snow, swamp and desert etc. I'll start that once I see that I do have control of these things. I'm gonna have to split my time between this and Civ5. You know I'n not missing out on that!

Reply #130 Top

Personally, I could care less about the fiction.  I haven't read the book.  I want a game that is pleasant to look at.  Ugly terrain adds nothing to the game play aspect.  My 2 cents for what it's worth.

Reply #131 Top

Quoting Aerion, reply 130
Personally, I could care less about the fiction.  I haven't read the book.  I want a game that is pleasant to look at.  Ugly terrain adds nothing to the game play aspect.  My 2 cents for what it's worth.

Yeah, I definitely agree there.  Let Stardock make the "dead world" maps in their official campaigns, I want a beautiful world to explore in my random maps.

Reply #132 Top

A suggestion, sorry if it has already been mentioned. You should introduce a template system, I mean user can save settings with a name (e.g. "Medium islands" or "Large continents"). And you may provide some well tuned pre-made templates with program, too.

And a question: how about rivers?

Otherwise: your work is very appreciated, congratulation.

Reply #133 Top

Quoting cephalo, reply 129

Quoting Heavenfall, reply 128One suggestion. The land in the official maps is already painted (desert/winter/grassland/swamp/evil/and so on)

Would it be possible to include such areas in the program? Right now, it's basically just a huge world that is barren, and it only comes alive with different types of terrain when the civs start expanding. It looks a bit bland in the beginning!

When I first heard that Elemental would take place on a 'dead' world I really did worry that it would kill the exploration game, and it kinda does in some ways. Exploring a dead world is just not very compelling, and it's hard to make it compelling. I'm not sure that is helped much by adding the terrain types that fictionally are supposed to come from life or death magic. I left them out specifically so that you could feel yourself having an impact on the world as is supposed to happen according to the story. I know that SD's included maps do have these terrains placed, but that doesn't make sense to me. I feel like they just kinda worried about a bland map and so threw that in at the last minute hoping the map would be more interesting somehow.

I would feel better about putting them in if there was a reason for that kind of magic to be present there. Like maybe I could pretend that an earth shard or fire shard could spread a small area of death magic and the other two spreading life magic. The current problem with that is that those things are placed automatically and you can't control them. Once I can get control of how things are placed on the map, I can then do alot more interesting things.

I can also add snow add some point when I come up with some rules for snow placement, but before I add anything else, I'm going to have to redesign the interface. I'll eventually have to have more screens for things like resource placement and the various forces that control snow, swamp and desert etc. I'll start that once I see that I do have control of these things. I'm gonna have to split my time between this and Civ5. You know I'n not missing out on that!


Curiously, coreworldresources.xml actually has tags to change the environment after resources are placed. However, these appears not to function. So that is already being "worked on" from Stardocks side.

I don't know much about the lore, really. I tend to think of the Elemental post-apocalypse world as "broken" rather than "burned", if that makes any sense.

Edit: for example, a water shard has

        <EnvironmentType>ArcticEnvironment</EnvironmentType>
        <EnvironmentSpreadIntensity>5.0</EnvironmentSpreadIntensity>
        <EnvironmentSpreadRadius>1</EnvironmentSpreadRadius>

Reply #134 Top

Quoting trigorin, reply 132
A suggestion, sorry if it has already been mentioned. You should introduce a template system, I mean user can save settings with a name (e.g. "Medium islands" or "Large continents").

And a question: how about rivers?

Otherwise: your work is very appreciated, congratulation.

Yeah it's probably pretty annoying to have to repeat your settings every time. I'll see if I can get around to that.

I'm not so sure about the rivers. I know how to make really nice river networks and I've done so for other projects, but I really don't like the way these river props look. For one thing, they are 3D objects that are designed to run along a flat map, and these maps that I'm making are bumpy. Making a river network is not a trivial undertaking, and my enthusiasm is definately dampened by the fact that no matter what I do it's just gonna look really bad and out of place. Don't forget I'm not Stardock, I do this for fun.

Reply #135 Top

Quoting Heavenfall, reply 133


Edit: for example, a water shard has

        <EnvironmentType>ArcticEnvironment</EnvironmentType>
        <EnvironmentSpreadIntensity>5.0</EnvironmentSpreadIntensity>
        <EnvironmentSpreadRadius>1</EnvironmentSpreadRadius>

That's interesting, I'm thinking that a radius of 1 would not show up. 5 or 6 might be cool. I don't supposed you've fiddled with it? That's actually one way I would like to handle the different terrains. Realistic weather doesn't make sense in this universe, it's all cause by magic.

As for the fiction, even if you don't really buy into it, you guys don't think it's cool that you are the one making the environment what it is? The one thing I do like about the barrenness is that I feel like I'm making something when I play. It seems boring to me to start as a kingdom on land that is already grassland.

Reply #136 Top

Quoting cephalo, reply 134

[...]
Don't forget I'm not Stardock, I do this for fun.

No, I don't. I was just interested in your thoughts about rivers, and thanks your answer.

Reply #137 Top

Actually, influence "changing" the land is one of the coolest features of the game, in my opinion.

Can you imagine there was a time when influence didn't affect what resources you could build on? That was like... two months ago.

I tried playing around with the tags, but I'm not getting anything from them.

Reply #138 Top

Quoting Heavenfall, reply 137

I tried playing around with the tags, but I'm not getting anything from them.

Yeah it looks like they abandoned that. I noticed that the fire shard has no such entries. It's probably because it looked a bit goofy to have circles of terrain all over the map. If I do something like that I'll have to break it up somehow so it looks good. Maybe I can slow the expansion on mountains and hills so it at least has a natural looking shape.

I sure hope 1.08 includes some XML tags so you can prevent random spawns.

Reply #139 Top

I think the rivers are broken currently, last time I played around with them in the map editor they were really clunky and they don't seem to exit to the ocean, so when you place em on on a tile that is next to the ocean (cliff, beach) they dont get connected and looks really ugly. During beta it was stated that they were broken and maybe they still need to fix it some? I think this was for 1.06 so if they fixed for 1.07 ignore this :s.

Reply #140 Top

Holy shit, I just realized you did PerfectWorldDF... I thought it looked familiar!

Thanks for all your hard work. Making games more fun to play.

Reply #141 Top

Quoting Heavenfall, reply 140
Holy shit, I just realized you did PerfectWorldDF... I thought it looked familiar!

Thanks for all your hard work. Making games more fun to play.

Thanks, Hehe. Yeah the only reason I was able to get this out in a week was because I had most of the code all ready to go.

+1 Loading…
Reply #142 Top

I have some ideas for resource placement, but I'm waiting on a patch that will allow me to control resource placement. Currently I can't figure out how to stop the game from placing random resources.

Reply #143 Top

We can only hope that the Dev's would help out here, since the Random Map feature is sorely missed in the game.

Sounds like they need to release some more code in a future patch to help out with some map functions...

 

 

Reply #144 Top

The campaign doesn't place resource nodes, but when you load the campaign map in a custom game, it places the nodes. So the campaign mode of the game has a special feature which isn't part of the XML in the map.

Reply #145 Top

Thanks for creating this. Curious, what's all this about noise? You don't hear maps, so what does it mean? :)

Reply #146 Top

Hi cephalo.

Did you write down an explanation of Elemental's map xml format? I had started one in the beta forums but the thread being lost somewhere, I never got back to it. I remember puzzling over what looked like duplicate information in many places.

Regarding duplicate resources, do you mean the game adds resources on top of those you put (I suppose near sovereign starting positions)?

Last, did you try to get Brad to include your map gen algo in the game or to open up a *** API so we can do it in-game? Seeing the map before playing has always been a big no for me.

Reply #147 Top

Seeing the map before playing has always been a big no for me.

This is what Publish Random Map is for.  It saves a random map from your prying eyes.

Reply #148 Top

Wonderful!

One question: on the large maps I often get an out of memory error - I'm assuming this will increase with a huge map? (256x256)

Thanks - awesome mod - makes the game have the epic feel it should!

Reply #149 Top

Quoting LDiCesare, reply 148
Hi cephalo.

Did you write down an explanation of Elemental's map xml format? I had started one in the beta forums but the thread being lost somewhere, I never got back to it. I remember puzzling over what looked like duplicate information in many places.

Everything I know about the format I learned from that post. ;P I used your posting history to see if you might have known anything. Jackpot! There's actually still a ton that I don't understand. The duplicate information is probably something like 'what it looks like in 3D' or 'is it passable' vs. 'what does it look like on the cloth map' just in case you want that functionality separate down the line. That is a total guess btw. The ForestData has the number 1.2000 I don't know why it has that I just copied it.


Quoting LDiCesare, reply 148

Regarding duplicate resources, do you mean the game adds resources on top of those you put (I suppose near sovereign starting positions)?

I haven't been able to fully understand whats going on. The game places many resources beyond simply around starting areas. I thought it even removed some that I placed, though I can't seem to repeat that. I can't figure out how to control it.

Quoting LDiCesare, reply 148
Last, did you try to get Brad to include your map gen algo in the game or to open up a *** API so we can do it in-game? Seeing the map before playing has always been a big no for me.

Nah, I figure this guys had their hands full. Having a good map is alot more important than alot of game devs realize, but there's alot more to a fun game then that, and SD has alot of work to do. I didn't dream that they had time to expose an API within the next 6 months, so I figured I would experiment a bit with the possibilities. I wasn't even going to show anyone except I kinda liked my results.

Also, as someone pointed out, you can publish a map without seeing it. The workflow is that you find some settings that you like, hit the 'Randomize!' button repeatadly so you can verify that you have a stable formula, and then press 'Publish Random Map' which will hide the result from you.

Quoting revjwh, reply 150
Wonderful!

One question: on the large maps I often get an out of memory error - I'm assuming this will increase with a huge map? (256x256)

Thanks - awesome mod - makes the game have the epic feel it should!

Thanks for the compliments! Yeah 256x256 is meant to be the 'rediculously huge beyond what any sane person would want' option. I wouldn't be surprised if it doesn't even work on any existing computer. I just didn't want to be the one setting limits on that.

Reply #150 Top

Quoting TheBirthdayParty, reply 147
Thanks for creating this. Curious, what's all this about noise? You don't hear maps, so what does it mean?

Here, this should explain everything. Perlin Noise.

It's my new toy.

+1 Loading…