SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Path nodes to zone polygons? (https://forum.sa-mp.com/showthread.php?t=644279)

Chaser98 05/11/2017 02:36 PM

Path nodes to zone polygons?
 
Hey guys, I've been wanting to essentially make a 2d polygon zone of all the roads and streets in SA and essentially have street names like in GTA V.

I know there's data on the path nodes but I don't know how I'd go about converting it to polygon zones w/ streamer plugin.

There may be an easier way of doing this, and if you know, please share and I'd appreciate it.

EDIT: I think I may have posted in wrong section. If I did, please move it mods. My apologies.

cessil 08/11/2017 03:22 PM

Re: Path nodes to zone polygons?
 
yes there are nodes and from them you can determine several things like if a player is driving on the wrong side of the road or on a road at all, you could also attach names to the roads to display to players which is what you are looking for
http://forum.sa-mp.com/showthread.php?t=575149

given that the nodes are a mess and you won't be able to read them and know exactly where they are what I would do is create a program to visualise the nodes with the san andreas map as a background and have the function to add an id to each node which would link to a string of the road name
which is also something I did but without the ability to add names to roads
http://forum.sa-mp.com/showthread.php?t=564533

Chaser98 16/11/2017 02:38 AM

Re: Path nodes to zone polygons?
 
Is there any way other than manual drawing to separate road from road? Like when a road dead ends into another road with a different name.

cessil 16/11/2017 10:59 PM

Re: Path nodes to zone polygons?
 
yes there would be if you scripted it to since you could grab a node and run a loop to grab all it's neighbours till it runs into an intersection


All times are GMT. The time now is 02:24 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.