Opened 10 years ago

Last modified 5 years ago

#2519 new defect

problem in dock placement for random maps

Reported by: mimo Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Maps Keywords:
Cc: Patch:

Description (last modified by Imarok)

In random maps (either islands or migration), the dock placement is broken: the docks are too much inside the land. This is easily seen if by destroying it and trying to rebuilt it at the same place. This will fail as the place is invalid.

Having them on the right position (i.e. really on the shoreline) would help the AI which uses this information to determine which water cells are accessible from it.

Change History (3)

comment:1 by FeXoR, 9 years ago

ATM the dock's location is placed by the height at the center of the dock. I could push them further into the water by lowering that height (for now) if that would help?

Line 218 in binaries/data/mods/public/maps/random/islands.js, [-3 , 2.6] (the height range). Line 226 in binaries/data/mods/public/maps/random/migration.js, also [-3 , 2.6].

Last edited 9 years ago by FeXoR (previous) (diff)

comment:2 by mimo, 9 years ago

There is now a workaround in petra, so nothing urgent. But it does look strange to have these docks so much inside the land, while the user is not allowed to place them there. Limiting the height to 1.5 seems to work better.

comment:3 by Imarok, 5 years ago

Component: UI & SimulationMaps
Description: modified (diff)
Note: See TracTickets for help on using tickets.