Page MenuHomeFeedback Tracker

roadsConnectedTo not working properly
New, WishlistPublic

Description

The streetconnections are sometimes a bit weired.
Normal roadpieces have everytime 2 roads connected as expected.
But crossings and T-ends are totally weired.
crossings are realized as two streets crossing each othjer but not touching each other like one street is a tunnel. T-ends are sometimes as expected: 1 roud connected to 3 others. But sometimes it is just a roud with 2 connected roads and a dead end road but for a human it is obviously connected...

Details

Legacy ID
382841794
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

I wrote a small piece of code to display number of connected roads:
_roads = (getPos player) nearRoads 500;
_i = 0;
{
_marker = createMarker[format["test%1", _i], getPos _x];
_marker setMarkerColor "ColorYellow";
_marker setMarkerShape "ICON";
_marker setMarkerType "hd_dot";
_marker setMarkerText str(count(roadsConnectedTo _x));
_i = _i + 1;
}
foreach _roads;

go into editor (altis)
place a player unit in the city Poliakko (109/134)
hit preview
hit escape
execute the posted code
open the map (m)
check the crossings and T-ends especially at 1094/1348 and 1102/1348

Additional Information

this makes routplanning impossible using roadsConnectedTo

Event Timeline

Coding edited Steps To Reproduce. (Show Details)Jul 12 2015, 8:55 PM
Coding edited Additional Information. (Show Details)
Coding set Category to Scripting.
Coding set Reproducibility to Always.
Coding set Severity to None.
Coding set Resolution to Open.
Coding set Legacy ID to 382841794.May 8 2016, 12:21 PM