auto-generated maps
Moderator: Oberlus
auto-generated maps
Ok, so I have apologize fore re-posting this question as I remember reading it here in the forum a few years ago. How do I get FreeOrion to generate a new and different map?
I haven't changed any of the starting settings, but I've notice that the planets and monster spawns never change with each new game. All the terran planets are always in the same spot.
I haven't changed any of the starting settings, but I've notice that the planets and monster spawns never change with each new game. All the terran planets are always in the same spot.
- eleazar
- Design & Graphics Lead Emeritus
- Posts: 3858
- Joined: Sat Sep 23, 2006 7:09 pm
- Location: USA — midwest
Re: auto-generated maps
Change the number of stars or the galaxy type.
For this phase of development, the same settings always produce the same galaxy. This makes testing easier.
For this phase of development, the same settings always produce the same galaxy. This makes testing easier.
Re: auto-generated maps
Cool. Thanks!
Re: auto-generated maps
In my setup at home, I have it generate a new map anytime the number of stars is more than 60, to make it easy for me to test or play. A patch for that is attached for anyone interested.eleazar wrote:Change the number of stars or the galaxy type.
For this phase of development, the same settings always produce the same galaxy. This makes testing easier.
- Attachments
-
[The extension patch has been deactivated and can no longer be displayed.]
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13587
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: auto-generated maps
Adding a "seed" field to the galaxy setup dialog could also be useful. Defaults to 0 for consistency, can be set to whatever to generate new galaxy. Could have a "reseed" or "randomize" button to generate a new seed based on the clock. Would need to send the seed with the galaxy setup data.
Re: auto-generated maps
This is a brilliant idea. It would make replicating a game easier without having to have the current situation, in whichGeoff the Medio wrote:Adding a "seed" field to the galaxy setup dialog could also be useful. Defaults to 0 for consistency, can be set to whatever to generate new galaxy. Could have a "reseed" or "randomize" button to generate a new seed based on the clock. Would need to send the seed with the galaxy setup data.
the same settings always produce the same galaxy. This makes testing easier.
Re: auto-generated maps
How can I get the patch to work? I've tried placing it in different folders and using the apply patch function from TortoiseSVN.
Re: auto-generated maps
You have to make sure that UniverseServer.cpp gets changed by the patch and then compile (build the solution with msvc).unjashfan wrote:How can I get the patch to work? I've tried placing it in different folders and using the apply patch function from TortoiseSVN.
All released under the GNU GPL 2.0 and Creative Commons Attribution-ShareAlike 3.0 licences.
Re: auto-generated maps
I can't find the UniverseServer.cpp file anywhere on my computer. Actually I can't seem to find any of the .cpp files related to FO now that I started looking...You have to make sure that UniverseServer.cpp gets changed by the patch and then compile (build the solution with msvc).
Re: auto-generated maps
Sounds like you've been working with one of the precompiled packages. If you want to take a swing at compiling yourself,so you have the flexibility to try patches such as these, here are compile instructions: http://www.freeorion.org/index.php/Compileunjashfan wrote:I can't find the UniverseServer.cpp file anywhere on my computer. Actually I can't seem to find any of the .cpp files related to FO now that I started looking...You have to make sure that UniverseServer.cpp gets changed by the patch and then compile (build the solution with msvc).
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: auto-generated maps
Ahhhhhh... *revelation moment* that sure answers a lot of questions. Thanks a lot!