The above video goes away if you are a member and logged in, so log in now!
Post By Three-Socks
Post By an0nym0us
how to find missing hashes for old natives?
how to find missing hashes for old natives? –
I wanted to mess with SET_PED_FORCE_FLY_THROUGH_WINDSCREEN but it's not in nativeO.cfg
After looking in nativeN.cfg I noticed it has 254 more lines than nativeO.cfg. I checked out the files for scotoolbox and it's pretty much the same. Is it possible to find the rest of these hashes, or do they not exist?
To get the hash of a native you pass it through the jenkins one at a time hash function. I use the built in hash function in PHP (server side coding) to calculate it. You need to set up a server to use it. But there may be a web service out there that could do it for you. Or you could code it yourself using real C coding. The hash code is really simple, you can find it on wikipedia
SET_PED_FORCE_FLY_THROUGH_WINDSCREEN would be: f7fdd0f1
So add this to your NativeO.cfg:
I looked through the decompiled sco code and its only used in TLAD dlc. It may be original game but not used so it could still work. But from experience if you find a new native in the DLC its likely it wont work in the orginal game.
I'm not 100% sure about all of this. But I think the latest PC patch changed the hash function for the natives. This is the reason for NativeN.cfg. So if your coding on PC you have to use the new hash natives to use the new DLC natives. But on console they never changed the hash function. So all the new DLC natives still use the old hash. But because scocl was developed with PC coding in mind they weren't added.
Awesome, you rock man. I'll have to look into that later, I have a debian server VM for testing web stuff. As far as this one native.. I appear to be in luck, because IT WORKS! It's so funny
I'll be posting this in my other thread once I get it ironed out.
Glad to help
Looks so cool
Heres the php code, you need to be running PHP 5.4.
echo var_dump(hash("joaat", strtolower($_GET['text'])));
You can also do this using OpenIV with Tools->Hash Generator. On the left-side (Input) put the name of the native function or model or whatever, select Dec (decimal) or Hex and then click Generate, and conveniently the calculated hash will be on the right-side (Ouput). I have used this for a few natives and models that were missing, and it works great!
Originally Posted by Three-Socks
I guess they added that in a newer version of OpenIV, I don't see it in 0.9. For me this is ok I eventually got the php code working, apparently linux does not like when the mac of a virtual ethernet changes, thankfully after solving that upgrading to php 5.4 went without any problems.