Difference between revisions of "Script"
(→Mission Script) |
m |
||
Line 44: | Line 44: | ||
* [[Wikipedia:Thread_(computer_science)|Thread]] | * [[Wikipedia:Thread_(computer_science)|Thread]] | ||
− | {{N|4|SA}} | + | {{N|4|SA|VC|3}} |
[[Category:Mission_Scripting]] | [[Category:Mission_Scripting]] |
Revision as of 17:41, 30 January 2015
A term thread means some kind of minimal process in computer science. Processes and threads are used to simulate parallel execution of programcode. But there is a difference between both: a process describes the execution of a whole program. It contains an image of the programs binary executeable code in memory just as it is used for handling memory allocation by the operating system. However a thread is nothing in this way. It does just describe a parallel execution of code inside a process, so one process can hold multiple threads.
The description above is just one very simple definition of a thread. GTA simplifies multithreading alot so everything the script needs to do is to start a thread and perhaps end it somehow. It does not need to handle variable synchronisation or communication between two threads. This is what the game does through internal routines.
Mission Script
- 00D7 – Creates a thread
- 004F – Creates a thread with additional parameters
- 004E – Ends the current thread
- 03A4 – Gives a thread a name
- 0459 – Ends a named thread
CLEO Opcodes:
- 0A92 – Creates a CLEO thread
- 0A93 – Ends a CLEO thread
- 0A95 – Enables thread saving for a CLEO thread
- 0A9F – Returns the pointer to the current thread
- 0AAA – Returns the pointer to a named thread
- 0ABA – Ends a named CLEO thread
- IS_THREAD_ACTIVE
- DESTROY_THREAD
- GET_ID_OF_THIS_THREAD
- REQUEST_SCRIPT
- START_NEW_SCRIPT
- START_NEW_SCRIPT_WITH_ARGS
- TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME
- TERMINATE_THIS_SCRIPT
- MARK_SCRIPT_AS_NO_LONGER_NEEDED
- STORE_SCRIPT_VALUES_FOR_NETWORK_GAME
- THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME
- THIS_SCRIPT_SHOULD_BE_SAVED
This section is incomplete. You can help by fixing and expanding it.
See also
- Mission Scripting (Overview)
- Create a thread
- Thread structure in memory - [1] [2]
External links
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 |