[Freeciv-Dev] [patch #3614] Minimum native start area

2013-01-27 Thread Marko Lindqvist
Follow-up Comment #4, patch #3614 (project freeciv):

> Perhaps it will become necessary in some circumstances for the
> map generator to actively ensure that such contiguous native
> areas exist? I assume you tested it with 'alien' and there are
> usually enough such areas generated naturally currently.

In fact I've found out that it's better to fail map generation in such cases.
It was very frustrating to enter the alien ruleset game and to play a few
turns just to find out that starting situation is unplayable, sometimes
several attempts in a row. And that's only your own starting position - it may
take very long time to find out that you don't have any AI to play against as
your enemy is locked to one tile area. I much prefer it to retry map
generation automatically, and failing even that to abort. Not that I've
encountered such a situation during testing - there's usually contiguous
areas, old code just happened to pick bad places instead.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #3614] Minimum native start area

2013-01-27 Thread Jacob Nevins
Follow-up Comment #3, patch #3614 (project freeciv):

Some (late, not critical) thoughts on seeing this:
* Would it be worth being able to pass in min_start_native_area to
count_native_area(), so that it can bail out early when the minimum is
reached? Otherwise, it's going to iterate over entire continents every time it
evaluates a start position, I'd have thought. (I realise the check is disabled
for traditional rulesets.)
* Perhaps it will become necessary in some circumstances for the map generator
to actively ensure that such contiguous native areas exist? I assume you
tested it with 'alien' and there are usually enough such areas generated
naturally currently.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #3614] Minimum native start area

2013-01-27 Thread Marko Lindqvist
Update of patch #3614 (project freeciv):

  Status:  Ready For Test => Done   
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #3614] Minimum native start area

2013-01-24 Thread Marko Lindqvist
Follow-up Comment #1, patch #3614 (project freeciv):

- Use dbv instead of bool array.

(file #17013)
___

Additional Item Attachment:

File name: MinNativeArea-2.patch  Size:7 KB


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #3614] Minimum native start area

2013-01-23 Thread Marko Lindqvist
URL:
  

 Summary: Minimum native start area
 Project: Freeciv
Submitted by: cazfi
Submitted on: Wed 23 Jan 2013 11:46:47 PM EET
Category: general
Priority: 5 - Normal
  Status: Ready For Test
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: 2.5.0

___

Details:

Add terrain.ruleset setting for minimum native area reachable by initial
startunit. Setting is 0 (not used) for all the rulesets except for alien where
it is 15. For other rulesets always present checks for island size work
better, but in alien ruleset initial units are limited to certain land
terrains only. Until this patch player has occasionally started alien ruleset
with unplayable small reachable area, including extreme cases of just the one
tile where initial units stand.



___

File Attachments:


---
Date: Wed 23 Jan 2013 11:46:47 PM EET  Name: MinNativeArea.patch  Size: 8kB  
By: cazfi



___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev