patchFreeciv - Patches: patch #3922, The Adaptisland generator

 
 
Show feedback again

patch #3922: The Adaptisland generator

Submitted by:  Micke <mss_8734>
Submitted on:  Mon 27 May 2013 05:41:59 PM UTC  
 
Category: generalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: pepeto <pepeto>Open/Closed: Open
Planned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 27 May 2013 05:41:59 PM UTC, original submission:

This generator is based on, but tries to adapt to map size and player count in a more dynamic manner than, the Island generator. It strives to make equal landmass available to all players on their respective start islands regardless of start position distribution method. Unlike the Island generator it allows islands for lone players larger than 120 tiles and will also generate medium- and small islands if there is enough landmass available.

Attachment 1 adds functions to let a map generator place a specific number of start positions on a specific continent, although the algorithm used is probably far from ideal.
It modifies:
server/generator/startpos.c
server/generator/startpos.h
server/generator/utilities.c
server/generator/utilities.h

Attachment 2 adds the code for the generator itself and a readme file.
It modifies:
client/options.c
common/map.h
server/settings.c
server/generator/mapgen.c
doc/README.Adaptisland

Both should be applicable to trunk revision 22904 but will most likely exhibit rather erratic behaviour if the fix supplied with bug #20847 is not applied first.

Micke <mss_8734>

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #18015:  mapgen_startpos.diff added by mss_8734 (9kB - text/x-diff)
file #18016:  mapgen_adaptisland.diff added by mss_8734 (61kB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pepeto (Updated the item)
  • -unavailable- added by mss_8734 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Oct 2014 05:23:04 PM UTCpepetoAssigned toNone=>pepeto
    Mon 27 May 2013 05:42:00 PM UTCmss_8734Attached File-=>Added mapgen_startpos.diff, #18015
      Attached File-=>Added mapgen_adaptisland.diff, #18016
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup