Latest Posts

Topic: Port

Atanase
Avatar
Topic Opener
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-04-16, 11:26

Hello,

Is there special conditions to put a Port place in the editor.

Slops around it?

Ground? (grassland, sand, ....)

Distance (row and col) to the water ?

Other condition?

I did not find any information nor in the wiki, nor in the forum, nor in the help of the editor.


La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2551
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2021-04-16, 13:08

Ports can be placed at a green (big) buildings spots. Water should be near.

If the tool 'Portspaces' does not show any green buildings spot you might have to modify the map to get big buildings spots near the coast.


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 2056
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2021-04-16, 13:35

The proximity to water is the critical thing. The port is a big building, and additionally you need to find at least 1 node of open water when starting from the southeast neighbour of the southeast neighbour of the node in question and walking successively 1 field at a time in the following directions:

WALK_NE, WALK_NE, WALK_NE, WALK_NW, WALK_NW, WALK_W,
WALK_W,  WALK_W,  WALK_SW, WALK_SW, WALK_SW, WALK_SE,
WALK_SE, WALK_E,  WALK_E,  WALK_E

(https://github.com/widelands/widelands/blob/master/src/logic/map.cc#L1786-L1824)

Edited: 2021-04-16, 13:36

Top Quote
Atanase
Avatar
Topic Opener
Joined: 2021-04-15, 13:33
Posts: 126
Ranking
At home in WL-forums
Location: Béarn (France)
Posted at: 2021-04-16, 14:03

Hello,

In fact, the problem came from the beach between grassland and sea. I changed the sand by steppe which is nearly same color and now I can put a Port in many places.

Thank you all, for all. face-smile.png


La connaissance ne vaut que si elle est partagée par le plus grand nombre.
---------------------------------------
Knowledge is only valuable if it is shared by the greatest number.

Top Quote