SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 05/03/2019, 03:35 PM   #1
FR0DG3R
Little Clucker
 
FR0DG3R's Avatar
 
Join Date: Nov 2018
Location: Belo Horizonte, MG, Brazil
Posts: 4
Reputation: 0
Post How to get information inside nodes*.dat files?

I need to read these files and obtain information about the nodes inside it, I've seen tools that help you edit or see the content inside the files like Kyle's GPS Route Finder, JGuntherS@NL's SA Path Editor and Deniska's SA Path Tool but what I really want is to make my own reading of the files.

What I want, in details, is:
  • Decompile nodes*.dat and/or read them through an algorithm
  • Use a C++ code or something to filter this content and obtain what I want (e.g. nodes coords)
  • Implement this nodes in my own SA-MP scripting project

Seems like an easy thing to do since many are doing without explaining how.
Please let me know if I can explain something better.
FR0DG3R is offline   Reply With Quote
Old 05/03/2019, 03:58 PM   #2
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,640
Reputation: 540
Default Re: How to get information inside nodes*.dat files?

Just use the GPS Plugin (either by Gamer_Z or kvann's, which is better) and see the GPS.dat.
It's the original node net including fixes. If you don't want any fixes, use the older GPS.dat which is a 1:1 conversion.

You can also access the Node Data through the Plugin Natives (eg GetNodePos).

FCNPC also supports the original node data. You can check its source to see how to read and process binary data or use FCNPC's natives to access the paths.

Note that the GPS Plugins only have the road Nodes. FCNPC has all of them, boats, navi, veh and ped.

If you want to parse them yourself, they are pretty well documented on various sites: https://gta.fandom.com/wiki/Paths_(GTA_SA)
NaS is offline   Reply With Quote
Old 06/03/2019, 02:21 PM   #3
FR0DG3R
Little Clucker
 
FR0DG3R's Avatar
 
Join Date: Nov 2018
Location: Belo Horizonte, MG, Brazil
Posts: 4
Reputation: 0
Default Re: How to get information inside nodes*.dat files?

Thanks a lot man, exactly what I needed.
FR0DG3R is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show files inside script files folder in game ahmedkoki Scripting Help 5 15/01/2015 12:22 AM
Play Now Link (Read Inside, for more Information) xxSwissxx Server Support 2 23/05/2013 07:20 AM
How to get information from inside of the files... [DkS]JR_Junior Scripting Help 1 22/02/2013 12:08 AM
[Tool/Web/Other] PAWN Scanner - Scan PAWN files for information. Slice Tools and Files 10 15/07/2012 07:09 PM
Find a name inside all existing files blackwave Help Archive 5 25/01/2011 01:53 PM


All times are GMT. The time now is 10:29 PM.


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