This commit is contained in:
Fierelier 2024-10-03 04:47:28 +02:00
parent ffd6fd7f93
commit 92180f8aa3

View File

@ -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: <input.ipl> <output.json>
# Example: ipl2json.py nodes14.ipl nodes14.json
Arguments: <input.ipl> <output.json>
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()
outf.close()