Quantcast

Jump to content

» «
Photo

[V] Script/Native Documentation and Research

1,109 replies to this topic
ins1de
  • ins1de

    Vi Veri Veniversum Vivus Vici

  • Members
  • Joined: 23 Apr 2016
  • Antarctica

#1021

Posted 25 March 2017 - 10:59 PM Edited by ins1de, 26 March 2017 - 03:15 PM.

Native research

 

EDIT : Don't read what I wrote yesterday, I've noticed I made some mistakes and I'm working on an new topic.

Spoiler
  • jedijosh920 and The_Creator like this

ikt
  • ikt

    HAAAAAAAAANDS

  • Members
  • Joined: 02 Oct 2006
  • None

#1022

Posted 27 March 2017 - 02:51 PM Edited by ikt, 27 March 2017 - 02:51 PM.



Hi all,

 

Has anyone found a native to add torque at position to entity/vehicle? Or to add force at position? I'm trying to implement custom physics and I need, at least, one of these natives.

 

Also, the link to the Multithreaded native bruteforce tool in first post seems to be dead. Can someone reaupload it?

 

Thanks.

 

APPLY_FORCE_TO_ENTITY or APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS?


Rbn3D
  • Rbn3D

    Player Hater

  • Members
  • Joined: 18 Mar 2017
  • Spain

#1023

Posted 28 March 2017 - 11:07 AM

 



Hi all,

 

Has anyone found a native to add torque at position to entity/vehicle? Or to add force at position? I'm trying to implement custom physics and I need, at least, one of these natives.

 

Also, the link to the Multithreaded native bruteforce tool in first post seems to be dead. Can someone reaupload it?

 

Thanks.

 

APPLY_FORCE_TO_ENTITY or APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS?

 

 

Thanks. I really mean to add torque to an offset postion from entity, which seems like not possible. Torque may be added by the rotation arguments of APPLY_FORCE_TO_ENTITY, (I guess). Would be nice to have more ways to interact with physics (add force/torque at position and so on)


NTAuthority
  • NTAuthority

    hell, no, tunnel, no

  • Feroci
  • Joined: 09 Sep 2008
  • European-Union
  • Best Script or Plugin 2016 [SkyGfx] [Contribution]
    Best Conversion 2014 [ViIV for GTANY]
    Most Knowledgeable [Tech] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Contribution Award [Mods]

#1024

Posted 28 March 2017 - 09:45 PM

HEAD_DISPLAY stuff -> actually MP_GAMER_TAG

 

example:

SET_MP_GAMER_TAG_VISIBILITY

SET_MP_GAMER_TAG_WANTED_LEVEL

IS_MP_GAMER_TAG_ACTIVE

  • ikt, sasuke78200, Fireboyd78 and 2 others like this

Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1025

Posted 12 April 2017 - 01:55 AM Edited by Kryptus, 12 April 2017 - 01:56 AM.

"_SET_NOTIFICATION_CLEARING"
I really had no idea what to name this. It prohibits (feed / above minimap) notifications from being shown above the given Y position. i.e. pass 0.5 and it won't allow any notifications to be drawn at or above 0.5. To reset, call it and pass 0. Found it by working out the drawing functions in am_pi_menu and pi_menu.
 
If anyone finds the correct native name please quote me, I'd love to know.

  • Unknown_Modder likes this

Cosmo619
  • Cosmo619

    Developer

  • Members
  • Joined: 17 Nov 2013
  • None

#1026

Posted 12 April 2017 - 09:04 PM Edited by Cosmo619, 12 April 2017 - 09:06 PM.

Anyone know what's going on with Native DB? A lot of names are turning back into their hashes and descriptions are disappearing from a lot.

 

Create Object was:

Object CREATE_OBJECT(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL p5, BOOL dynamic)

-

And is now:

Any CREATE_OBJECT(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6)

Unknown_Modder
  • Unknown_Modder

    ⭐⭐⭐⭐⭐

  • Members
  • Joined: 07 May 2015
  • Germany

#1027

Posted 12 April 2017 - 09:08 PM

 

Anyone know what's going on with Native DB? A lot of names are turning back into their hashes and descriptions are disappearing from a lot.

 

Create Object was:

Object CREATE_OBJECT(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL p5, BOOL dynamic)

-

And is now:

Any CREATE_OBJECT(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6)

This happened for like the 5th time. Someone else already made a topic about this: http://gtaforums.com...just-happening/

  • LeFix likes this

Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1028

Posted 12 April 2017 - 09:27 PM

 

Anyone know what's going on with Native DB? A lot of names are turning back into their hashes and descriptions are disappearing from a lot.

 

Create Object was:

Object CREATE_OBJECT(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL p5, BOOL dynamic)

-

And is now:

Any CREATE_OBJECT(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6)

People use some sh*t like bots ever so often to wipe sh*t for whatever reason.


Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1029

Posted 14 April 2017 - 02:31 AM

DB is f*cked again


sfinktah
  • sfinktah

    Player Hater

  • Members
  • Joined: 03 Jul 2016
  • Australia

#1030

Posted 14 April 2017 - 04:42 AM Edited by sfinktah, 14 April 2017 - 04:45 AM.

So, ... like, I've been trying to work out how to send text chat (I can already read it), and I'm running across some natives that I don't yet know the exact purpose of, but at least know they're to do with text chat.

If anyone else wants to do something with this info, well, whatever. Addresses are from SC b1011 because .. well seriously, b1032 is obfu^2.
 
// Hoping this understand the code tag

// used by HUD____0xF47E567B3630DD12
void __fastcall HUD____0xF47E567B3630DD12_0(scrNativeCallContext *a1)// sub_142F1803F - may vary, thunk target for native
{
  if ( p_textChatObject )
    0xf47e567b3630dd12_2((__int64)p_textChatObject, *(_DWORD *)a1->pArgs != 0, a1->pArgs->a2.INT32);
}

// [TEST] used by HUD____0xF47E567B3630DD12
void __fastcall 0xf47e567b3630dd12_2(textChatStruct *chatty, char a2, int a3) // sub_1401C5780
{
  chatty->field_14C = a2;
  chatty->field_148 = a3;
}
might post some more shortly

p.s. Sudo just pointed out that this native was added in march 2016. so it might be something to do with setting the chat message to the BIKER group or whatever dlc was added then. i don't keep up with these new fangled inventions of r*

GTANAdam
  • GTANAdam

    Mod Developer

  • Members
  • Joined: 17 Mar 2017
  • Ukraine

#1031

Posted 17 April 2017 - 03:00 AM Edited by GTANAdam, 17 April 2017 - 03:02 AM.

 

 

Anyone know what's going on with Native DB? A lot of names are turning back into their hashes and descriptions are disappearing from a lot.

 

Create Object was:

Object CREATE_OBJECT(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL p5, BOOL dynamic)

-

And is now:

Any CREATE_OBJECT(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6)

People use some sh*t like bots ever so often to wipe sh*t for whatever reason.

 

 

We've seen this happen several times.. it seems like some folks are just having fun ruining the nativedb for everyone thus forcing us to revert these non sense changes.

gXkDPzB.png


Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1032

Posted 24 April 2017 - 03:46 AM

Couple questions.

 

1. Is there a general list someone has of natives that have been added with DLC? I saw the one involving boosts which would have been the Imports & Exports DLC but I didn't see any others.

2. Why don't the new natives get added to the native db?


Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1033

Posted 26 April 2017 - 06:46 AM

DB Reset Again


DatBrick
  • DatBrick

    Brick

  • Members
  • Joined: 08 Nov 2015
  • United-Kingdom

#1034

Posted 26 April 2017 - 08:39 AM Edited by DatBrick, 26 April 2017 - 08:39 AM.

Couple questions.

 

1. Is there a general list someone has of natives that have been added with DLC? I saw the one involving boosts which would have been the Imports & Exports DLC but I didn't see any others.

 A hash translation such as { 0x0000000000000000, 0x47B595D60664CFFA } means it was added that update.

To find all the natives added in a patch, just find all the natives that were translated from 0x0000000000000000


R3QQ
  • R3QQ

    Den som sŲker han finner

  • Members
  • Joined: 30 May 2015
  • Sweden

#1035

Posted 26 April 2017 - 08:46 AM

Maybe resets by bots can be prevented by adding captchas. For example, before making changes the user would have to pass one of those. 

  • Fireboyd78, Deewarz and Quant like this

Deewarz
  • Deewarz

    Player Hater

  • Members
  • Joined: 12 May 2015
  • France

#1036

Posted 26 April 2017 - 07:02 PM

DB Reset Again

 

I don't know if I still want to complete the base because I'm afraid of losing everything again ...
 
Every time, we have to start all over again or a backup is back online?

Unknown_Modder
  • Unknown_Modder

    ⭐⭐⭐⭐⭐

  • Members
  • Joined: 07 May 2015
  • Germany

#1037

Posted 26 April 2017 - 07:10 PM

 

DB Reset Again

 

I don't know if I still want to complete the base because I'm afraid of losing everything again ...
 
Every time, we have to start all over again or a backup is back online?

 

 I do backup the reference every month. This one is from 10 days ago: http://www.mediafire.../reference.html

  • xNITEMAREx, Deewarz and Eddlm like this

GTANAdam
  • GTANAdam

    Mod Developer

  • Members
  • Joined: 17 Mar 2017
  • Ukraine

#1038

Posted 26 April 2017 - 10:58 PM Edited by GTANAdam, 26 April 2017 - 11:00 PM.

Okay.. this is getting more and more ridiculous, I hope you add some kind of Authentication to prevent this kind of activity.

 

unknown.png

  • sasuke78200, Fireboyd78, Deewarz and 1 other like this

Fireboyd78
  • Fireboyd78

    Strangely Animated

  • Members
  • Joined: 30 Apr 2011
  • United-States

#1039

Posted 28 April 2017 - 04:23 AM Edited by Fireboyd78, 28 April 2017 - 04:27 AM.

Okay.. this is getting more and more ridiculous, I hope you add some kind of Authentication to prevent this kind of activity.
 
unknown.png

Wow, I hope whoever did that isn't actually a part of the team. I have zero respect for advertising in the form of vandalism...

And yes, Alex really needs to add authentication as well as hire either well-trusted admins or have some kind of moderator system that allows for the undoing of these types of things.

I really appreciate the usefulness of NativeDB and the fact nobody asked Alex to do it, but there comes a time when you should really listen to feedback from the people who use it most. I've spoken to him about this stuff before and he basically doesn't care, and wants to keep it as minimal as possible. So unfortunately we're stuck with these constant spam attacks with no recourse other than waiting for Alex to eventually revert the changes.

Hope that doesn't come off as too harsh, but it's a harsh truth that needs to be said.
  • Deewarz, Kryptus and Quant like this

Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1040

Posted 29 April 2017 - 03:27 PM

Still f*cked. It's been nearly a week. What a shame. It was really useful.


jfoster
  • jfoster

    Player Hater

  • Members
  • Joined: 26 Apr 2017
  • United-States

#1041

Posted 29 April 2017 - 11:54 PM Edited by jfoster, 29 April 2017 - 11:58 PM.

I'm new to GTA moding in general, but couldn't help notice there are some documentation issues right now.

 

I happen to be working on tech documentation for a different project, and stubbed out a conversion of the NATIVE DB docs to Slate:

 

http://138.68.41.182/

 

This new documentation concept would pick up where NATIVE DB sort of is trailing off with the following goals:

 

  • Allow anyone to add or edit via a public github repository. 
  • Ensure data is not lost, and allow collaboration with on Github
  • Improve content structure to allow side-by-side code examples from both Lua and C

 

This documentation tool uses a single Markdown file for its source.  Formatting requires some markdown knowledge.

 

The idea would be to make changes to the common source repo file, do a pull request and then one of a team of people can approve. A hook would be set up to automatically update when Master is updated. If the site goes down, the repo is unaffected.

 

Couple questions:

 

  • Is Native DB too unstable to continue to work with?
  • Is using git too high a barrier for making casual contributions to this?
  • I stubbed out a few natives, but am only basically familiar with using these. Can anyone give feedback on what's translated so far? I believe I can write a script to import one of the most recent archives into the markdown file.

 

I confess, I don't know the exact way to format these descriptions. Or how big of a need there is here.

 

So I am interested in feedback.

  • pez2k and R3QQ like this

mockba.the.borg
  • mockba.the.borg

    Snitch

  • Members
  • Joined: 17 Jan 2016
  • United-States

#1042

Posted 02 May 2017 - 12:11 PM

Hi jFoster,

 

My feeling is that NativeDB data became stale over time, and as versions of the game were being released.

The natives.h file generated from it has exactly 5180 natives, while the game (as of v1032) has 5739, so we are a bit off.

This not considering that some natives on the db can also be extinct.

The format of NativeDB however is very nice, it keeps the screen uncluttered while you do your research. The one on the link above can easily become messy with more than 5000 natives on it.

Again, my personal opinion, is that NativesDB only needs registration, to prevent trolling of its data, and a moderator, or group of moderators, to prevent wrong implementations.

Looks like people update NativeDB based on the research on scripts, this is ok, but sometimes the script shows some variable as integer, when it is in fact a boolean, or even worse, float when it is in fact a 32 bits bitmapped value.

So at this point we are at risk of people just moving away on their own research, and have distributed, unconnected findings.

NativeDB is an invaluable tool, it just needs some work.

 

Alexander could send here a statement of what are his plans for the future. I know he is on this for many years, and our life priorities change over time, family and work gets in the way of game research very quickly, so maybe it is time to really deliver it completely to the community.

 

Cheers,

Mockba the Borg.

  • Quant likes this

vadimstar
  • vadimstar

    Player Hater

  • Members
  • Joined: 08 May 2017
  • United-States

#1043

Posted 08 May 2017 - 11:32 AM Edited by vadimstar, 08 May 2017 - 11:33 AM.

Hello, I want to download decompiled scripts but this page https://dl.dropboxus...c.decompiled.7z doesn't work. Please, anybody, give me them.


Unknown_Modder
  • Unknown_Modder

    ⭐⭐⭐⭐⭐

  • Members
  • Joined: 07 May 2015
  • Germany

#1044

Posted 08 May 2017 - 11:40 AM

Hello, I want to download decompiled scripts but this page https://dl.dropboxus...c.decompiled.7z doesn't work. Please, anybody, give me them.

https://www.gta5-mod...ed-scripts-b757

  • unknown modder likes this

vadimstar
  • vadimstar

    Player Hater

  • Members
  • Joined: 08 May 2017
  • United-States

#1045

Posted 09 May 2017 - 09:35 AM

Thanks but I need decompiled scripts by Alexander Blade. Do these decompiled scripts belong to Alexander Blade? I just noticed names of functions in these scripts differ from names of functions in scripts by Alexander Blade. 

http://i.imgur.com/doAYFLl.png- scripts by Alexander Blade (image from reddit)
http://imgur.com/a/ddq8Q-these scripts


Unknown_Modder
  • Unknown_Modder

    ⭐⭐⭐⭐⭐

  • Members
  • Joined: 07 May 2015
  • Germany

#1046

Posted 09 May 2017 - 05:54 PM

Thanks but I need decompiled scripts by Alexander Blade. Do these decompiled scripts belong to Alexander Blade? I just noticed names of functions in these scripts differ from names of functions in scripts by Alexander Blade. 

http://i.imgur.com/doAYFLl.png- scripts by Alexander Blade (image from reddit)
http://imgur.com/a/ddq8Q-these scripts

zorg's scripts are much nicer than listener's. If you don't like the naming convention of functions, go and edit it yourself: https://github.com/z...ript-Decompiler


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#1047

Posted 10 May 2017 - 04:19 AM

Thanks but I need decompiled scripts by Alexander Blade. Do these decompiled scripts belong to Alexander Blade? I just noticed names of functions in these scripts differ from names of functions in scripts by Alexander Blade. 
http://i.imgur.com/doAYFLl.png- scripts by Alexander Blade (image from reddit)
http://imgur.com/a/ddq8Q-these scripts

I released my scripts because ab stopped posting listeners decompiled scripts. So right now this is the best there is. The names of native functions were just lowercase because i chose to make it that way. A simple regex would change it. As for script functions, they are named in order they appear in the file, nothing special about listeners, who uses the position in the code for name of functions

vadimstar
  • vadimstar

    Player Hater

  • Members
  • Joined: 08 May 2017
  • United-States

#1048

Posted 10 May 2017 - 06:36 PM

 Okey, I've realized.Thank you very much for reply)

 

Thanks but I need decompiled scripts by Alexander Blade. Do these decompiled scripts belong to Alexander Blade? I just noticed names of functions in these scripts differ from names of functions in scripts by Alexander Blade. 
http://i.imgur.com/doAYFLl.png- scripts by Alexander Blade (image from reddit)
http://imgur.com/a/ddq8Q-these scripts

I released my scripts because ab stopped posting listeners decompiled scripts. So right now this is the best there is. The names of native functions were just lowercase because i chose to make it that way. A simple regex would change it. As for script functions, they are named in order they appear in the file, nothing special about listeners, who uses the position in the code for name of functions

 

 

 

Thanks but I need decompiled scripts by Alexander Blade. Do these decompiled scripts belong to Alexander Blade? I just noticed names of functions in these scripts differ from names of functions in scripts by Alexander Blade. 

http://i.imgur.com/doAYFLl.png- scripts by Alexander Blade (image from reddit)
http://imgur.com/a/ddq8Q-these scripts

zorg's scripts are much nicer than listener's. If you don't like the naming convention of functions, go and edit it yourself: https://github.com/z...ript-Decompiler

 


CamxxCore
  • CamxxCore

    Punk-ass Bitch

  • Members
  • Joined: 19 Oct 2013
  • Canada

#1049

Posted 13 May 2017 - 01:43 AM

Has anyone reached out to AB (outside GTAF) about restoring NativeDB? I notice he hasn't been active here for quite a while. I can assume the reason it hasn't been fixed is because he just isn't aware of the problem.


Kryptus
  • Kryptus

    Developer

  • Members
  • Joined: 04 Jun 2015
  • United-States

#1050

Posted 13 May 2017 - 02:16 AM

Does anyone have script dumps from b505 or earlier?





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users