Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

C++ Script Hook


aru
 Share

Recommended Posts

I tried already, but it returns only hashes which i have to convert in to text...

Hi,

 

 

f32 plx, ply, plz;u32 place1, place2;...GetCharCoordinates(GetPlayerPed(), &plx, &ply, &plz);FindStreetNameAtPosition(plx, ply, plz, &place1, &place2);const ch *ccPlace = GetStringFromHashKey(place1);PrintStringWithLiteralStringNow("STRING", ccPlace, 2000,1);

 

 

Don't forget: with "FindStreetNameAtPosition" you get only the name of the closest street, NOT the name of the street u'r standing... Why? I have no idea confused.gif

 

Życzę dużo zabawy wink.gif

Really helpfull, dzieki !!! wink.gif

Link to comment
Share on other sites

Does anyone still have pre-0.2.2 sdk which contains full source code? I would love to get my hands on it.

Edited by FaTony
Link to comment
Share on other sites

Does anyone still have pre-0.2.2 sdk which contains full source code? I would love to get my hands on it.

Check page45 on this thread, and it should have some download links, maybe that is what you mean. I aint sure smile.gif

Link to comment
Share on other sites

  • 3 weeks later...
ClassicGTAManiac

Hey, I was hoping somebody would be able to help me with ScriptHook...

 

I've compiled a .dll (and renamed it to .asi for GTA IV) using the ScriptHook development kit, and am using the latest version of aru's ScriptHook. At first, the game was constantly crashing on load (either not responding or the process terminates). After replacing the compiled ScriptHook.dll with the redistributable version, it works somewhat; the game loads, but the scripts do not appear to be executing.

 

I then checked the ScriptHook.log file and found;

 

 

Log start: Sun Apr 29 22:55:46 2012

-----------------------------------------------

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[FATAL] Failed to detect game version

 

 

I am using the Steam version of GTA IV (so I presume the latest version). Does anybody know why I am experiencing the aforesaid problems, or am I missing something?

 

Thanks,

Callum

Link to comment
Share on other sites

Prof_Farnsworth
Hey, I was hoping somebody would be able to help me with ScriptHook...

 

I've compiled a .dll (and renamed it to .asi for GTA IV) using the ScriptHook development kit, and am using the latest version of aru's ScriptHook. At first, the game was constantly crashing on load (either not responding or the process terminates). After replacing the compiled ScriptHook.dll with the redistributable version, it works somewhat; the game loads, but the scripts do not appear to be executing.

 

I then checked the ScriptHook.log file and found;

 

 

Log start: Sun Apr 29 22:55:46 2012

-----------------------------------------------

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[FATAL] Failed to detect game version

 

 

I am using the Steam version of GTA IV (so I presume the latest version). Does anybody know why I am experiencing the aforesaid problems, or am I missing something?

 

Thanks,

Callum

Why are you renaming it to ".asi"? You can compile your script as "myMod.net.dll" and place it in the scripts folder and it should work fine. In order to make an asi mod, I believe you have to compile it as such, not just rename it.

Link to comment
Share on other sites

ClassicGTAManiac
Hey, I was hoping somebody would be able to help me with ScriptHook...

 

I've compiled a .dll (and renamed it to .asi for GTA IV) using the ScriptHook development kit, and am using the latest version of aru's ScriptHook. At first, the game was constantly crashing on load (either not responding or the process terminates). After replacing the compiled ScriptHook.dll with the redistributable version, it works somewhat; the game loads, but the scripts do not appear to be executing.

 

I then checked the ScriptHook.log file and found;

 

 

Log start: Sun Apr 29 22:55:46 2012

-----------------------------------------------

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[FATAL] Failed to detect game version

 

 

I am using the Steam version of GTA IV (so I presume the latest version). Does anybody know why I am experiencing the aforesaid problems, or am I missing something?

 

Thanks,

Callum

Why are you renaming it to ".asi"? You can compile your script as "myMod.net.dll" and place it in the scripts folder and it should work fine. In order to make an asi mod, I believe you have to compile it as such, not just rename it.

I've done what you've said, renamed it back to .dll and placed it within the 'scripts' directory, but still no luck.

Link to comment
Share on other sites

callum, are u writing the script in .net or c++? it sounds like ur writing a c++ script and trying to compile an asi, do not change to .net extenstion and u dont put in scripts folder, those scripts are loaded by scripthookdotnet by HazardX

Link to comment
Share on other sites

ClassicGTAManiac

I am obviously using the C++ ScriptHook (hence posting in this topic). So, could somebody give me a list of files that need to be in my GTA IV directory for the ScriptHook to work, and where?

Link to comment
Share on other sites

Prof_Farnsworth

 

I am obviously using the C++ ScriptHook (hence posting in this topic). So, could somebody give me a list of files that need to be in my GTA IV directory for the ScriptHook to work, and where?

Which version of the scripthook are you using, 1.7.1.7? I have never seen a "failed to detect game version" error in my scripthook log, is why I ask. In my install folder, I have "ScriptHookDotNet.asi and ScriptHook.net.dll.", plus an asi loader (I use Xliveless) as well as a "scripts" folder. This should be all you need to run .net mods.

Link to comment
Share on other sites

ClassicGTAManiac

But I want to use C++, not .NET

 

Since this is the topic for aru's C++ ScriptHook, it would be logical to presume I am not using the .NET port.

Edited by Callum
Link to comment
Share on other sites

ClassicGTAManiac
What version of the game do you have?

My previous post states that I am using the Steam version, and I believe they distribute the latest version.

Link to comment
Share on other sites

That can be a problem. I have Grand Theft Auto IV (US/AU) and it works flawlessly.

Link to comment
Share on other sites

CallumISAHomo
I am obviously using the C++ ScriptHook (hence posting in this topic). So, could somebody give me a list of files that need to be in my GTA IV directory for the ScriptHook to work, and where?

then why is your dumbass putting .net at the end

 

Dont talk like ur smart because it's obvious your a f*ckin retard...FULL RETARD!!!!!!!!!!!

Link to comment
Share on other sites

ClassicGTAManiac
I am obviously using the C++ ScriptHook (hence posting in this topic). So, could somebody give me a list of files that need to be in my GTA IV directory for the ScriptHook to work, and where?

then why is your dumbass putting .net at the end

 

Dont talk like ur smart because it's obvious your a f*ckin retard...FULL RETARD!!!!!!!!!!!

I think it was aru who said I needed to make it an ASI, via IRC (if not, I definately read it somewhere). Anyway, thanks for the insulting PM...PussyTamer.

Link to comment
Share on other sites

CallumISAHomo

Your welcome u british f*ckin pansy fa**ot

 

fa**otS ARE PEOPLE LIKE U THAT SUCK COCK NOT A CIGARRETTE U LOSER

Link to comment
Share on other sites

You don't need to rename your binary to asi. It's just that some not so smart people coded their loaders to only load asi files.

Link to comment
Share on other sites

CallumISAHomo

 

You don't need to rename your binary to asi. It's just that some not so smart people coded their loaders to only load asi files.

STFU RETARD

 

Should i go pull up your retard posts noob??

 

You think your a f*ckin a genius bitch??? WTF have you coded??? hmmm?? eh? never heard of your ass loser get lost

Link to comment
Share on other sites

No I am not mad bro.

 

STFU RETARD

 

Should i go pull up your retard posts noob??

 

You think your a f*ckin a genius bitch??? WTF have you coded??? hmmm?? eh? never heard of your ass loser get lost

What is your problem? Stop being so aggressive and disrespectful over nothing. He is only stating that some people code their loaders to load only .ASI mods. What's wrong with that?

Link to comment
Share on other sites

  • 4 weeks later...
westsidebud

hammy434

right on thanks for another download mirror the one in first post don't work for me

 

and CallumISAHomo

Good god stfu already..

do think everyone wants to read you running your mouth ?

ya gotta scrub that sand out of ya vagina there chief !

 

Whats with kids these days so bloody cocky and mouthy

I bet your attitude would be different if you were looking UP at me wink.gif

 

Link to comment
Share on other sites

  • 2 weeks later...
westsidebud

can anyone upload the sdk part ?

links are dead

 

im trying to find a way to fix the memory / car mod - traffic issues

and gamepad save bug when using xliveless

Im spending time in a debugger and sometime im coding in

patched code using xlive as a loader for custom code etc

but writing some scripts might be quicker or open new possibilities

Link to comment
Share on other sites

anyone else getting a broken link for the 1.0.7.0 beta link?

 

i would really like this so that i dont have to play without multiplayer...

 

aru, can you fix the link?

 

thanks

Link to comment
Share on other sites

westsidebud

@Skorpro

right on smile.gif

thanks for sharing the link

 

i want to fix the custom cars / taxi bug

although i am skilled at cracking and coding

there is a number of extremly skilled people around here

and if they didn't do it yet i doubt i can ..slim chances

 

BUT

I have done what others could not (in cracking) man many times before

so ya never know unless ya try

 

I couldn't find the words to express how much that custom car bug pisses me off

if there was a solid proper fix for that issue the game would be 1,000x better i think

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.