URL:
  <http://gna.org/bugs/?21068>

                 Summary: With tiny maps, startpos.c::381]: assertion
'player_count() <= sum' failed
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Mon Aug 26 16:54:26 2013
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.4.0-RC1
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

With a minimum-size map (16x16) and iso topology, I can reproducibly get this
assertion failure:


2: Creating a map of size 16 x 16 = 256 tiles (map size: 0).
1: in create_start_positions() [startpos.c::381]: assertion 'player_count() <=
sum' failed.
1: Please report this message at http://gna.org/projects/freeciv/
1: The server couldn't allocate starting positions.
1: Failed to create suitable map, retrying with another mapseed
2: Creating a map of size 16 x 16 = 256 tiles (map size: 0).
1: in create_start_positions() [startpos.c::381]: assertion 'player_count() <=
sum' failed.
1: Please report this message at http://gna.org/projects/freeciv/
1: The server couldn't allocate starting positions.
1: Cannot create suitable map with given settings.
1: Please report this message at http://gna.org/projects/freeciv/


I suspect the problem is that there is no land at all (and hence sum==0), but
I haven't actually checked.

Such a tiny map is never going to work well (although it does manage with
topo=""), but we should replace the assertion failure with a more descriptive
error message so that anyone who runs into it has a chance to know how to
change their parameters to something more sensible.

Server settings (for completeness):


set revealmap dead|start
set autosaves ""
set mapsize xysize
set xsize 16
set ysize 16
set topo iso
set aifill 1





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21068>

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


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

Reply via email to