Difference between revisions of "Script Path"
Line 1: | Line 1: | ||
==Introduction== | ==Introduction== | ||
− | '''Spath'''.dat files are '''Scripted | + | '''Spath'''.dat files are '''Scripted path''' files used only in Vice City to script an object onto a path that is too much to just shove into the <code>main.scm</code>. These files are located in the maps/data folder in the Vice City directory. This file contains coordinates for the <code>main.scm</code> to use. By default, Vice City has only one scripted path file, the <code>spath0.dat</code>, which controls Cortez's yacht in the mission "All Hands On Deck!" |
==Format== | ==Format== | ||
Line 6: | Line 6: | ||
==How 2.0== | ==How 2.0== | ||
− | The scripted path file needs to be defined in the main.scm using opcode [[049C]] in order for it to work. To attach an object onto the path, first define the object. Create the object using the opcode [[029B]]. Attach the object onto the path using the opcode [[049D]]. You can attach as many object as you want onto the same path. Lastly, set the speed of the object on the path using opcode [[049E]]. To remove references to the scripted path file from the ,code.main.scm,/code., use the opcode [[04A1]]. The opcode [[049F]] sets the distance you want the object to move on the path. In order to add more scripted path files, create a file named spath#, '#' being an | + | The scripted path file needs to be defined in the main.scm using opcode [[049C]] in order for it to work. To attach an object onto the path, first define the object. Create the object using the opcode [[029B]]. Attach the object onto the path using the opcode [[049D]]. You can attach as many object as you want onto the same path. Lastly, set the speed of the object on the path using opcode [[049E]]. To remove references to the scripted path file from the ,code.main.scm,/code., use the opcode [[04A1]]. The opcode [[049F]] sets the distance you want the object to move on the path. In order to add more scripted path files, create a file named spath#, '#' being an integer in order after the last one. |
==Current Usage== | ==Current Usage== | ||
Line 13: | Line 13: | ||
==Backup== | ==Backup== | ||
If you did not backup the file and need the original file, get it here.<br> | If you did not backup the file and need the original file, get it here.<br> | ||
− | http://sodagirl.xmgfree.com/spath0.dat | + | [http://sodagirl.xmgfree.com/spath0.dat Spath0.dat] |
[[Category:Map Formats]][[Category:GTA VC]] | [[Category:Map Formats]][[Category:GTA VC]] |
Revision as of 19:45, 20 February 2007
Introduction
Spath.dat files are Scripted path files used only in Vice City to script an object onto a path that is too much to just shove into the main.scm
. These files are located in the maps/data folder in the Vice City directory. This file contains coordinates for the main.scm
to use. By default, Vice City has only one scripted path file, the spath0.dat
, which controls Cortez's yacht in the mission "All Hands On Deck!"
Format
The file starts with the number of coordinates that will be used in the file. The rest of the file are X, Y, and Z coordinates linked as a path in the game.
How 2.0
The scripted path file needs to be defined in the main.scm using opcode 049C in order for it to work. To attach an object onto the path, first define the object. Create the object using the opcode 029B. Attach the object onto the path using the opcode 049D. You can attach as many object as you want onto the same path. Lastly, set the speed of the object on the path using opcode 049E. To remove references to the scripted path file from the ,code.main.scm,/code., use the opcode 04A1. The opcode 049F sets the distance you want the object to move on the path. In order to add more scripted path files, create a file named spath#, '#' being an integer in order after the last one.
Current Usage
Currently, the Liberty City and Myriad Islands modifications for Vice City uses this feature. In the Liberty City mod, this is used to move the train around the city. In Myriad Islands, it was breifly used in a user-made mission to move Cortez's yacht.
Backup
If you did not backup the file and need the original file, get it here.
Spath0.dat