Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [40d] Non-default [EMBARK_RECTANGLE] may cause plot to overlap edge of local map  (Read 679 times)

TheBeardyMan

  • Bay Watcher
    • View Profile

When choosing a fortress location, the randomization of the southwest corner of the plot in the local map (when a new cell of the region map is selected) doesn't consider the possibility that the [EMBARK_RECTANGLE] in init.txt might not be the default of 6:6. For large [EMBARK_RECTANGLE]s, this can give a plot that overlaps one or two edges of the local map. While the plot overlaps an edge of the local map, the only legal adjustments are H and M, which can correct the situation if the overlapped edges are the north and/or the east edge, but not if they are the south and/or west edge.
Logged

Derakon

  • Bay Watcher
    • View Profile

What happens if you embark when your embark rectangle overlaps the edge?
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

TheBeardyMan

  • Bay Watcher
    • View Profile

I've just tried that - if you embark with the embark rectangle overlapping the edge of the local map it crashes. However, if the embark rectangle has overlapped the edge of the local map but was corrected before embarking, it appears to work OK.
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile

Might be a variation on Bug 656, which is also reported to be capable of causing crashes.  Thanks for replying with extra details, by the way.
« Last Edit: June 03, 2009, 04:30:37 pm by Footkerchief »
Logged