From 92180f8aa3d2e7d28b532d0c5bd1d509383e8c13 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 3 Oct 2024 04:47:28 +0200 Subject: [PATCH] Oops --- paths2json.txt => paths2json.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) rename paths2json.txt => paths2json.py (95%) diff --git a/paths2json.txt b/paths2json.py similarity index 95% rename from paths2json.txt rename to paths2json.py index 4322983..b29e6c6 100755 --- a/paths2json.txt +++ b/paths2json.py @@ -1,13 +1,15 @@ #!/usr/bin/env python3 -# GTA SA IPL to JSON parser, Python 3.2 (Windows 2000) or up -# Also compatible with Linux and others +""" +GTA SA paths to JSON parser, Python 3.2 (Windows 2000) or up +Also compatible with Linux and others -# Arguments: -# Example: ipl2json.py nodes14.ipl nodes14.json +Arguments: +Example: paths2json.py nodes14.ipl nodes14.json -# You can get the ipl files from GTA3.IMG +You can get the nodes*.ipl files from GTA3.IMG -# Thanks to: https://gtamods.com/wiki/Paths_(GTA_SA) +Thanks to: https://gtamods.com/wiki/Paths_(GTA_SA) +""" # -------------------------------------------------------------------------- @@ -178,4 +180,4 @@ while node_index < output["navi_node_count"]: ipl.close() outf = open(sys.argv[2],"w") outf.write(json.dumps(output,sort_keys=True,indent=2)) # Put indent to None instead of 2 for smaller output (less readable) -outf.close() \ No newline at end of file +outf.close()