Difference between revisions of "Native function"
Gta.bullet (talk | contribs) m ("native" opcode) |
CarLuver69 (talk | contribs) (→GTA V) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | A '''native function''' is a one of the functions exposed by the [[RAGE]] engine to be called from a [[script]]. Comparing to the [[SCM]] engine from previous GTA 3D series, which used thousands of [[opcode]]s assigned for commands both handling the scripts and performing the in-game tasks (such as manipulating peds, vehicles, displaying texts, etc), RAGE has less than [[SCO#Opcodes|100 opcodes]] only to handle the scripts itself. To retrieve the data and make any change in the game's world, a SCO script invokes an appropriate native function using a special opcode. | |
== GTA IV == | == GTA IV == | ||
− | There are something like [[List of native functions (GTA IV)|~3000 of natives in GTA IV]]. | + | There are something like [[List of native functions (GTA IV)|~3000 of natives in GTA IV]]. Their names are stored in the game's executable file until 1.0.4.0 patch, they was replaced with their hashes from 1.0.7.0 patch. |
== GTA V == | == GTA V == | ||
− | GTA V features ~ | + | [[GTA V]] features [[List of native functions (GTA V)|~5200 natives]] and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV scripts were using only 2/3 of them). There is no original native name list in GTA V, name hashes were used instead. |
+ | |||
+ | GTA V PC version has native hashes replaced with random 64-bit values, which may differ between patches. | ||
== See also == | == See also == | ||
− | * | + | * {{Icon|4}} [[Scocl]] - an SCO compiler for GTA IV by {{U|Alexander Blade}} |
− | |||
==External links == | ==External links == | ||
* {{Icon|4}} {{GTAF|387783|Generic GTA 4 documentation}} | * {{Icon|4}} {{GTAF|387783|Generic GTA 4 documentation}} | ||
* {{Icon|5}} {{GTAF|717612|Script/Native Documentation}} | * {{Icon|5}} {{GTAF|717612|Script/Native Documentation}} | ||
+ | * {{Icon|5}} [http://dev-c.com/nativedb/ NATIVE DB] - GTA V native database, allows editing | ||
{{N|5|4}} | {{N|5|4}} | ||
− | [[Category:Mission Script]] | + | [[Category:Mission Script]][[Category:Native functions]] |
Latest revision as of 17:46, 6 June 2015
A native function is a one of the functions exposed by the RAGE engine to be called from a script. Comparing to the SCM engine from previous GTA 3D series, which used thousands of opcodes assigned for commands both handling the scripts and performing the in-game tasks (such as manipulating peds, vehicles, displaying texts, etc), RAGE has less than 100 opcodes only to handle the scripts itself. To retrieve the data and make any change in the game's world, a SCO script invokes an appropriate native function using a special opcode.
Contents
GTA IV
There are something like ~3000 of natives in GTA IV. Their names are stored in the game's executable file until 1.0.4.0 patch, they was replaced with their hashes from 1.0.7.0 patch.
GTA V
GTA V features ~5200 natives and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV scripts were using only 2/3 of them). There is no original native name list in GTA V, name hashes were used instead.
GTA V PC version has native hashes replaced with random 64-bit values, which may differ between patches.
See also
- Scocl - an SCO compiler for GTA IV by Alexander Blade
External links
- GTAForums: Generic GTA 4 documentation
- GTAForums: Script/Native Documentation
- NATIVE DB - GTA V native database, allows editing
Grand Theft Auto V | |
---|---|
File Formats | .awc • .dat • .gfx • .gxt2 • .ide • .meta/.ymt/.xml • .mrf • .patch • .rpf • .ybn/.ybd • .ycd • .ydd • .ydr • .yed • .yfd • .yft • .yld • .ymap • .ymf • .ynd • .ynv • .ypdb • .ysc • .ytd • .ytyp • .yvr |
Documentation | Bink Video • Native functions • Weather types |
Tools | OpenIV • GIMS Evo • CodeWalker |
Multiplayer | GTAForums: GTA Online |
Useful links | Community portal • Discussion forums • GTA V Modding Forum • GTA5-Mods • Native Functions Database (alloc8or) |
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | GTA Connected • Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |