IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (86) « First ... 82 83 [84] 85 86   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 [GTAIV|REL|SRC] C++ Script Hook

 IV Scripting via C++
 
MadthatModsareDisabled  
Posted: Sunday, Jan 15 2012, 05:57
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Mar 23, 2009

XXXXX



QUOTE (xModderI @ Tuesday, Aug 30 2011, 12:26)
Can someone tell me how to save the object spawned and how to load it? pleaseee

Hi,

I think my first message got deleted so I am writing this again.

I've read your post here about wanting to learn how to spawn objects/delete. I host a YouTube channel and I am the creator of a trainer called My Super Mega Trainer.

Here is a link below. Let me know if you have any questions.


My YouTube Channel


Thanks!
PM
  Top
 

 
MOrdecki  
Posted: Thursday, Jan 19 2012, 22:15
Quote Post


Scripter
Group Icon
Group: Members
Joined: Jul 10, 2006

pl.gif

XXXXX



Hey everybody, maybye someone here can help me a little.

For a long time i was trying to figure out how to convert hashes from
CODE
FindStreetNameAtPosition

in to a char, so i can easly display it on the screen with DisplayTextWithLiteralString.
Looked already everywhere but still can't get to it.

Thanks.
Users WebsitePMMSNXbox Live
  Top
 

 
jitsuin  
Posted: Thursday, Jan 19 2012, 22:26
Quote Post


Meat Popsicle
Group Icon
Group: BUSTED!
Joined: Dec 6, 2011

us.gif

XXXXX



PMMSNXbox Live
  Top
 

 
MOrdecki  
Posted: Friday, Jan 20 2012, 10:29
Quote Post


Scripter
Group Icon
Group: Members
Joined: Jul 10, 2006

pl.gif

XXXXX



QUOTE (jitsuin @ Thursday, Jan 19 2012, 22:26)
try Convert.ToString()

http://msdn.microsoft.com/en-us/library/sy...t.tostring.aspx

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

 
tiagox2005z  
Posted: Wednesday, Feb 22 2012, 19:37
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Mar 1, 2010

ba.gif

XXXXX



very good! great topic! hug! smile.gif

pt-br:
muito bom! otimo topico!!! abraço! smile.gif
Users WebsitePM
  Top
 

 
Skorpro  
Posted: Tuesday, Feb 28 2012, 04:50
Quote Post


GTAholiker
Group Icon
Group: Members
Joined: Jul 19, 2009

eu.gif

XXXXX



QUOTE (MOrdecki @ Friday, Jan 20 2012, 10:29)
QUOTE (jitsuin @ Thursday, Jan 19 2012, 22:26)
try Convert.ToString()

http://msdn.microsoft.com/en-us/library/sy...t.tostring.aspx

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

Hi,

CODE

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
Users WebsitePM
  Top
 

 
shindogg  
Posted: Monday, Mar 19 2012, 23:55
Quote Post


Rat
Group Icon
Group: Members
Joined: Dec 6, 2006

XXXXX



link doesnt work. it says website couldnt be displayed.
PM
  Top
 

 
d-e-v  
Posted: Tuesday, Mar 20 2012, 18:03
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 21, 2012

XXXXX



could someone please fix the link to scripthook SDK?
PM
  Top
 

 
Skorpro  
Posted: Saturday, Mar 31 2012, 23:47
Quote Post


GTAholiker
Group Icon
Group: Members
Joined: Jul 19, 2009

eu.gif

XXXXX



Hi,

SDK Download link:

GTA IV C++ Script Hook Version 0.4.0 (Development Kit)

Script Hook Download link:

GTA IV C++ Script Hook Version 0.5.1 (Redistributable)



This post has been edited by Skorpro on Monday, Apr 2 2012, 05:36
Users WebsitePM
  Top
 

 
MOrdecki  
Posted: Friday, Apr 6 2012, 20:37
Quote Post


Scripter
Group Icon
Group: Members
Joined: Jul 10, 2006

pl.gif

XXXXX



QUOTE (Skorpro @ Tuesday, Feb 28 2012, 04:50)
QUOTE (MOrdecki @ Friday, Jan 20 2012, 10:29)
QUOTE (jitsuin @ Thursday, Jan 19 2012, 22:26)
try Convert.ToString()

http://msdn.microsoft.com/en-us/library/sy...t.tostring.aspx

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

Hi,

CODE

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
Users WebsitePMMSNXbox Live
  Top
 

 
MOrdecki  
Posted: Monday, Apr 9 2012, 22:42
Quote Post


Scripter
Group Icon
Group: Members
Joined: Jul 10, 2006

pl.gif

XXXXX



By the way, does anyone know why HasDeathArrestExecuted crashes game ?
Users WebsitePMMSNXbox Live
  Top
 

 
FaTony  
Posted: Thursday, Apr 12 2012, 11:17
Quote Post


C++ guy
Group Icon
Group: Members
Joined: Aug 12, 2011

XXXXX



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

This post has been edited by FaTony on Thursday, Apr 12 2012, 13:24
PM
  Top
 

 
Fantaseb  
Posted: Friday, Apr 13 2012, 19:54
Quote Post


One Nation, One Love, But Who? ;)
Group Icon
Group: BUSTED!
Joined: Oct 17, 2011

uk.gif

XXXXX



QUOTE (FaTony @ Thursday, Apr 12 2012, 11:17)
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
PM
  Top
 

 
Callum  
Posted: Monday, Apr 30 2012, 17:46
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 1, 2011

XXXXX



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;

QUOTE
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
PM
  Top
 

 
Prof_Farnsworth  
Posted: Monday, Apr 30 2012, 21:41
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (Callum @ Monday, Apr 30 2012, 17:46)
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;

QUOTE
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.
PM
  Top
 

 
Callum  
Posted: Monday, Apr 30 2012, 22:15
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 1, 2011

XXXXX



QUOTE (Prof_Farnsworth @ Monday, Apr 30 2012, 21:41)
QUOTE (Callum @ Monday, Apr 30 2012, 17:46)
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;

QUOTE
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.
PM
  Top
 

 
PussyTamer  
Posted: Monday, Apr 30 2012, 23:09
Quote Post


Player Hater
Group Icon
Group: BUSTED!
Joined: Apr 30, 2012

XXXXX



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
PM
  Top
 

 
Callum  
Posted: Tuesday, May 1 2012, 05:23
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 1, 2011

XXXXX



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?
PM
  Top
 

 
Prof_Farnsworth  
Posted: Tuesday, May 1 2012, 06:05
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (Callum @ Tuesday, May 1 2012, 05:23)
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.
PM
  Top
 

 
Callum  
Posted: Tuesday, May 1 2012, 06:11
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 1, 2011

XXXXX



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.

This post has been edited by Callum on Tuesday, May 1 2012, 06:21
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Pages: (86) « First ... 82 83 [84] 85 86 

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG