.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   new map generator (http://forum.shrapnelgames.com/showthread.php?t=30337)

paradoxharbinger February 28th, 2007 07:53 PM

Re: version 0.51 alpha release
 
it could conceivably take a very long time to generate the terrain for the settings you have. here's a run down of how terrain generation works. mapgen starts by scattering 'seeds' on the map, which must be a certain distance apart, this is the first parameter of the tsize command. it keeps placing seeds until it determines that no more can be placed, which is determined by counting how many times it tries to put a seed on the map, when it has tried and failed enough times, it stops trying. it could take a very long time if every time it tries to place a seed, it gets to the point where it is just about to quit, and then it finds a good spot for a seed, so it starts trying to place another one, which almost doesnt get placed, but just manages to, etc. this is bound to happen with very large maps with relatively small tsize parameters, so i would advise increasing them. i will take a look at the code as well, but i think that if you increase the tsize parameters, you will be fine.

DrPraetorious February 28th, 2007 08:11 PM

Re: version 0.51 alpha release
 
Ah, okay, I'll just let it run then. Suffice to say that it's taking a lot longer than the previous version (which went really fast after the topography was done.)

Does setting the number of provinces low also work, or do I need to specifically set tsize?

paradoxharbinger February 28th, 2007 09:31 PM

Re: version 0.51 alpha release
 
number of provinces have no affect on terrain generation, but terrain does affect province generation.

are you using the same settings you were before? i cant think of any reason it should take much longer on the whole, unless you got really unlucky.

DrPraetorious March 1st, 2007 02:00 AM

Re: version 0.51 alpha release
 
It keeps freezing. I've been letting it run for, like, six or seven hours.

Yeah - same settings as before. I also tried moving the water and mountain limits up and down.

paradoxharbinger March 1st, 2007 03:29 AM

Re: version 0.51 alpha release
 
wow, crap. you have the seeds file for that one?

paradoxharbinger March 1st, 2007 04:47 AM

Re: version 0.51 alpha release
 
drP dont worry about that seed file, there is definitely a bug in there

paradoxharbinger March 1st, 2007 05:43 AM

Re: version 0.51 alpha release
 
ok, it's fixed now. made sure it worked, generated a map with your script.

paradoxharbinger March 1st, 2007 05:13 PM

Re: version 0.51 alpha release
 
i'm going to post releases at the top of this thread from here on out, which will eliminate having to delete old releases and make it easier to find

paradoxharbinger March 4th, 2007 04:21 AM

Re: new map generator
 
just a quick update on progress, mapgen has two new commands. one which allows the filenames of the output to be set, and one which will run in batch mode, so that you can run the program once and get multiple maps. i have also started tackling the issue of getting sprites back into the maps.

paradoxharbinger March 4th, 2007 04:29 AM

Re: new map generator
 
btw, this a ways off, but i was wondering what everyones thoughts were on how cave provinces might be handled?


All times are GMT -4. The time now is 05:52 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.