Inventive Dingo forums Inventive Dingo forums
News:
 
*
Welcome, Guest. Please login or signup. November 22, 2024, 03:47:26 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: BUG v1.2.3: Number of unoccupied planets  (Read 11841 times)
PLAYLIFE
Space cadet
*
Posts: 8


View Profile
« on: February 14, 2009, 06:24:55 pm »

The number of unoccupied planets is incorrect with version 1.2.3.

Instead of 10 you get 9. Instead of 150 you get like around 50  Sad

Please fix it. Thanks!  Wink
« Last Edit: February 14, 2009, 06:27:53 pm by PLAYLIFE » Logged
Minus
Destroyer of Worlds
***
Posts: 83



View Profile
« Reply #1 on: February 14, 2009, 07:56:50 pm »

Sort of. You can set it to any number, but it's limited by the size of the map.

You're right about the 'unoccupied' number though - all the home planets are counted towards that number for some reason. So three people start a game of 18 unoccupied planets, and the home planets (3) plus unoccupied number (15) will be in the map.
Logged

My SteamID - Let's have a game!
Mayhem Intergalactic Steam Group - Let's have a bigger game!
Chris
Administrator
*****
Posts: 410


Developer


View Profile WWW
« Reply #2 on: February 15, 2009, 12:27:26 am »

Right; the setting is just a "wish", there's no guarantee that you'll actually get that many planets. Sometimes it runs out of room to place more planets. Sometimes it thinks it has run out of room even though it actually hasn't. This is just a side-effect of how the generator works, not a bug per se.

You're right about the 'unoccupied' number though - all the home planets are counted towards that number for some reason. So three people start a game of 18 unoccupied planets, and the home planets (3) plus unoccupied number (15) will be in the map.

I'm not seeing this. If I start a random map with size Small, two AI players and 5 unoccupied planets, then I get 8 planets in total (5 unoccupied + 1 for me + 2 for the AI).
Logged
Minus
Destroyer of Worlds
***
Posts: 83



View Profile
« Reply #3 on: February 15, 2009, 01:54:55 am »

Hmm. I just made an internet game with an AI, set it for 15 unoccupied planets, and got 12 unoccupied plus our homeworlds. This is probably the effect you were talking about here -

Quote
Sometimes it thinks it has run out of room even though it actually hasn't.
Logged

My SteamID - Let's have a game!
Mayhem Intergalactic Steam Group - Let's have a bigger game!
Chris
Administrator
*****
Posts: 410


Developer


View Profile WWW
« Reply #4 on: February 15, 2009, 04:24:11 am »

Yeah, I'd say so.

Basically it just tries to place planets randomly, and then checks to see if that placement was valid (not too close to other planets). If not, it removes the offending planet and tries again. There has to be a limit on the number of times it retries, however, since otherwise it could get stuck in an infinite loop (if there truly is no room). The unfortunate side effect is that this behaviour causes it to sometimes give up too early.

There's more to the random map algorithm than that (e.g. it actually generates lots of random maps and then uses a scoring system to pick the "best" one) but that's enough detail to explain why this happens.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM