Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree2Likes
  • 1 Post By Three-Socks
  • 1 Post By an0nym0us

Thread: how to find missing hashes for old natives?
  

Results 1 to 6 of 6
  1. #1 how to find missing hashes for old natives? 
    jumper's Avatar
    jumper is online now Developer
    Join Date
    Jul 2005
    Posts
    297
    Downloads
    3
    Uploads
    0
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    76
    Likes Received
    210
    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?
    Reply With Quote  

  2. #2  
    Three-Socks's Avatar
    Three-Socks is online now Developer
    Join Date
    Feb 2011
    Posts
    362
    Downloads
    16
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    83
    Likes Received
    310
    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:

    SET_PED_FORCE_FLY_THROUGH_WINDSCREEN=$f7fdd0f1

    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.
    jumper likes this.
    Reply With Quote  

  3. #3  
    jumper's Avatar
    jumper is online now Developer
    Join Date
    Jul 2005
    Posts
    297
    Downloads
    3
    Uploads
    0
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    76
    Likes Received
    210
    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.
    Reply With Quote  

  4. #4  
    Three-Socks's Avatar
    Three-Socks is online now Developer
    Join Date
    Feb 2011
    Posts
    362
    Downloads
    16
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    83
    Likes Received
    310
    Glad to help

    Looks so cool

    Heres the php code, you need to be running PHP 5.4.

    PHP Code:
    <?php

    echo var_dump(hash("joaat"strtolower($_GET['text'])));

    ?>
    /nameofscript.php?text=SET_PED_FORCE_FLY_THROUGH_WI NDSCREEN
    Reply With Quote  

  5. #5  
    an0nym0us's Avatar
    an0nym0us is offline Developer
    Join Date
    Jun 2012
    Posts
    68
    Downloads
    3
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    5
    Likes Received
    28
    Quote Originally Posted by Three-Socks View Post
    To get the hash of a native you pass it through the jenkins one at a time hash function.
    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!

    =an0n
    jumper likes this.
    Reply With Quote  

  6. #6  
    jumper's Avatar
    jumper is online now Developer
    Join Date
    Jul 2005
    Posts
    297
    Downloads
    3
    Uploads
    0
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    76
    Likes Received
    210
    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.
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •