ScriptHookV SDK for Pascal 1.2.2
23.208
26
-
20 de Desembre de 2019
The whole Native Database has been converted from C to Pascal - every requirement to compile a working ASI, is included in the package.
USAGE:
Do not start a new Lazarus project! Just open the LPI file with Lazarus 64-bit.
IT WORKS:
All of my ASI script mods use this SDK, they work without problems.
If you find ANY BUGS, non-working functions, please comment!
Anyway - the main idea behind Pascal GTA scripting is not just the syntax, but I failed to set the C compiler and linker properly, so it could not link to ScriptHookV DLL. Pascal can generate the import library from source code - no need to set the compiler.
Change Log:
v1: First public version
Natives are converted from an OLD version of NativeDB
https://www.dev-c.com/nativedb/
v1.1: Lots of previously unnamed Natives finally got normal names. Also, some of the original names have changed. Cfloat-to-Uint64 reinterpret casts are now changed to be in-place (no function call overhead).
Natives are converted from nbase
https://cdn.rage.mp/public/natives/
source code: https://cdn.rage.mp/public/natives/ndata.js
v1.1 w/doc: added the worldGetAll functions. Short FAQ and doc included!
v1.1.1: updated eGameVersion enumeration
v1.2: MAJOR BUGFIX: natives which return floats, will work now as expected!
1.2.1: updated eGameVersion enumeration
1.2.2: fixed createTexture function definition
Carregat per primera vegada: 17 de Novembre de 2019
Actualització més recent: 19 de Juliol de 2020
Últim descarregat: Fa 23 hores
All Versions
24 Comentaris
More mods by Jupiter Kasparov:
- Missió
- Partida
- Asi
- Mapa modèl
- Destacat
The whole Native Database has been converted from C to Pascal - every requirement to compile a working ASI, is included in the package.
USAGE:
Do not start a new Lazarus project! Just open the LPI file with Lazarus 64-bit.
IT WORKS:
All of my ASI script mods use this SDK, they work without problems.
If you find ANY BUGS, non-working functions, please comment!
Anyway - the main idea behind Pascal GTA scripting is not just the syntax, but I failed to set the C compiler and linker properly, so it could not link to ScriptHookV DLL. Pascal can generate the import library from source code - no need to set the compiler.
Change Log:
v1: First public version
Natives are converted from an OLD version of NativeDB
https://www.dev-c.com/nativedb/
v1.1: Lots of previously unnamed Natives finally got normal names. Also, some of the original names have changed. Cfloat-to-Uint64 reinterpret casts are now changed to be in-place (no function call overhead).
Natives are converted from nbase
https://cdn.rage.mp/public/natives/
source code: https://cdn.rage.mp/public/natives/ndata.js
v1.1 w/doc: added the worldGetAll functions. Short FAQ and doc included!
v1.1.1: updated eGameVersion enumeration
v1.2: MAJOR BUGFIX: natives which return floats, will work now as expected!
1.2.1: updated eGameVersion enumeration
1.2.2: fixed createTexture function definition
Carregat per primera vegada: 17 de Novembre de 2019
Actualització més recent: 19 de Juliol de 2020
Últim descarregat: Fa 23 hores
-
@MagoBR Yes, it's working. See Barefoot mod. And my other mod (I'll upload soon after this comment!).
Just follow the USAGE closely.17 de Desembre de 2019 -
@Jupiter Kasparov Ok, wait. It shows how to install correctly?
Or is it just put in the root folder of the game?
17 de Desembre de 2019 -
@MagoBR It is a Lazarus project. Just open the LPI file with Lazarus! Then, you are ready to code in Free Pascal. The source code is heavily commented, so you will know, where to write your script code.
You'll need to compile the project with Lazarus for 64-bit, AND the resulting ASI is your brand new plugin to drop into the root folder. You can even rename the ASI if you want.17 de Desembre de 2019 -
-
-
@Jupiter Kasparov does this tool allow the creation of .asi mod menus, and compiles them?
27 de Febrer de 2020 -
@Meepyneepy This ONLY allows ASI plugins. Also, mod menus can be created, but you'll need some menu drawing code (there are natives, which can draw rectangle or text).
Any - of course - you can compile them, if you download Lazarus 64-bit. No changes must be done to the project settings, it is a pre-set Lazarus project, ready to be compiled to Windows x64, you only need to write the code. The resulting ASI will be a fully working ASI plugin, which will depend on ScriptHookV.dll, but you don't need anything other.
Read the included readme for more info about renaming/versioninfo.28 de Febrer de 2020 -
-
@linhtinh94 Open the LPI with Lazarus 64-bit, and you can start to write Pascal code.
10 de Març de 2020 -
-
-
@moorburger01 @sleon93a I don't know about new updates or other things. And I'm not associated with Alexander Blade in any way... this Pascal source was converted from C headers (I made the ScriptHookV unit manually, the Natives unit were created using a so-called 'generator' program, which I wrote manually).
03 de Abril de 2020 -
-
-
-
@legendario9991 @kazuma-libra I have nothing to do with Epic Games or any other version.
First, Alexander Blade will do a new ScriptHookV. Then, after a few weeks I notice it, download its C++ SDK, and update this Pascal code to be able to work with that new version. Most of the time it means an eGameVersion enumeration being updated - nothing more.01 de Juny de 2020 -
-
-
Now, I've included a very basic FAQ about using/compiling the source code. Also included some tricky code samples in the doc.
Before asking, please read the doc!