24.05.2015, 11:23
(
Last edited by cessil; 22/05/2016 at 07:00 AM.
)
Summary:
In February I made a video proving that you can detect which side of the road someone is driving on, here is the files I created for it.
http://www.youtube.com/watch?v=IUE6NCxJLww
Files:
filterscript, requires zcmd and incognito's streamer
http://pastebin.com/LTJVqbc2
and the more important include
https://paste.ee/r/XdzSF
gone through a few sites, hopefully this ones good!
Description:
obviously reading through the code, it was not created for performance, it was rushed and made just for a video proving that it is possible.
reading over the filterscript you can see how the include is used and how to create more things based off it like detection for driving off the road, or create a driving test or something more creative.
it can be a little complicated to read through, basically there are nodes and navi nodes
nodes are just points on the roads that the ai follow so they don't drive off the road.
in the include they are in the format:
so there's the x y z which should be obvious, then there's the link1ID which is the link 1 ID number (or index) and the navi 1 index.
the link1ID refers to an index in the NodeInfo and refers to node connected to it
the navi1ID refers to an index in NaviInfo and is the navi in between the current node and link1ID
if a node does not have a connecting node then it'll be -1, same for navi links
I only extracted the following information from the data for the navi nodes:
and here's a visual of the combined information
the navi nodes aren't really needed and are just holding data, in the picture L stands for left lanes and R stands for...
Conclusion:
There should be enough stuff for someone to do something better with this data, also some of the data is incorrect like nodes having 0 connections but most of the data is there and you could probably just fix it up as you use it.
I will also not be offering much in the way of support for using this.
this explains it in the data format you can find in your gta directory and whats possible to extract from those files:
http://gta.wikia.com/Paths_%28GTA_SA%29
In February I made a video proving that you can detect which side of the road someone is driving on, here is the files I created for it.
http://www.youtube.com/watch?v=IUE6NCxJLww
Files:
filterscript, requires zcmd and incognito's streamer
http://pastebin.com/LTJVqbc2
and the more important include
https://paste.ee/r/XdzSF
gone through a few sites, hopefully this ones good!
Description:
obviously reading through the code, it was not created for performance, it was rushed and made just for a video proving that it is possible.
reading over the filterscript you can see how the include is used and how to create more things based off it like detection for driving off the road, or create a driving test or something more creative.
it can be a little complicated to read through, basically there are nodes and navi nodes
nodes are just points on the roads that the ai follow so they don't drive off the road.
in the include they are in the format:
Code:
enum NodeInfo { Float:nodeX, Float:nodeY, Float:nodeZ, link1ID, navi1ID, link2ID, navi2ID, link3ID, navi3ID, link4ID, navi4ID, };
the link1ID refers to an index in the NodeInfo and refers to node connected to it
the navi1ID refers to an index in NaviInfo and is the navi in between the current node and link1ID
if a node does not have a connecting node then it'll be -1, same for navi links
I only extracted the following information from the data for the navi nodes:
Code:
enum NaviInfo { from, to, leftLanes, rightLanes, };
the navi nodes aren't really needed and are just holding data, in the picture L stands for left lanes and R stands for...
Conclusion:
There should be enough stuff for someone to do something better with this data, also some of the data is incorrect like nodes having 0 connections but most of the data is there and you could probably just fix it up as you use it.
I will also not be offering much in the way of support for using this.
this explains it in the data format you can find in your gta directory and whats possible to extract from those files:
http://gta.wikia.com/Paths_%28GTA_SA%29