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) 1 [2] 3 4 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

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

 IV Scripting via C++
 
aceship  
Posted: Tuesday, Jan 6 2009, 18:45
Quote Post


Just An Indonesian Scripter
Group Icon
Group: Members
Joined: Dec 20, 2008

in.gif

XXXXX



Realy noooob Q
How To walk?
and
Where you put Your compiled c++?
PMMSN
  Top
 

 
the hubster  
Posted: Tuesday, Jan 6 2009, 18:51
Quote Post


Sup Homies
Group Icon
Group: Members
Joined: May 3, 2005

en.gif

XXXXX



QUOTE (aceship @ Jan 6 2009, 18:45)
Realy noooob Q
How To walk?
and
Where you put Your compiled c++?

Move one leg in front of the other, place it on the ground, shift your weight onto the front leg whilst pushing with the back leg, repeat, switching legs as you go.

Compiled dll goes in C:\Program Files\Rockstar Games\Grand Theft Auto IV.
PM
  Top
 

 
ceedj  
Posted: Tuesday, Jan 6 2009, 18:55
Quote Post


PEDS Creator
Group Icon
Group: Members
Joined: May 21, 2005

us.gif

Member Award




QUOTE (the hubster @ Jan 6 2009, 13:51)
Move one leg in front of the other, place it on the ground, shift your weight onto the front leg whilst pushing with the back leg, repeat, switching legs as you go.

Compiled dll goes in C:\Program Files\Rockstar Games\Grand Theft Auto IV.

I was totally going to write that myself. lol.gif
Users WebsitePM
  Top
 

 
aceship  
Posted: Tuesday, Jan 6 2009, 19:01
Quote Post


Just An Indonesian Scripter
Group Icon
Group: Members
Joined: Dec 20, 2008

in.gif

XXXXX



the first one is crashed, they fall when they "walk" onto roof and died,game over
PMMSN
  Top
 

 
sjaak327  
Posted: Tuesday, Jan 6 2009, 19:09
Quote Post


Big Homie
Group Icon
Group: Members
Joined: Dec 1, 2008

Member Award




At least they walked, see it's easy that C++.

PM
  Top
 

 
L0uNGeR  
Posted: Tuesday, Jan 6 2009, 19:14
Quote Post


Ya, that's what I said.
Group Icon
Group: Members
Joined: Dec 3, 2008

nl.gif

XXXXX



Ya but he makes C++ look like a cripple mercie_blink.gif
PM
  Top
 

 
†Tyranick†™  
Posted: Tuesday, Jan 6 2009, 21:48
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 28, 2008

XXXXX



It begins!!!

Nice job biggrin.gif
PM
  Top
 

 
asd23  
Posted: Tuesday, Jan 6 2009, 21:57
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Mar 24, 2004

et.gif

XXXXX



Oh well, no biggie. Dled VC2008 and messed around with it. Been meaning to learn something other than VB anyway.
But I have question: how do I display text? Displaying your own strings isn't probably possible, like in SA, but how can I display text from GXTs? I don't really know what gxtName should be.
PM
  Top
 

 
aru  
Posted: Tuesday, Jan 6 2009, 22:16
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




QUOTE (asd23 @ Jan 6 2009, 16:57)
Oh well, no biggie. Dled VC2008 and messed around with it. Been meaning to learn something other than VB anyway.
But I have question: how do I display text? Displaying your own strings isn't probably possible, like in SA, but how can I display text from GXTs? I don't really know what gxtName should be.

Look at some of the .sco scripts using SparkIV...

For example, try this:
CODE
DisplayText(0.5f, 0.25f, "atm_01");


Or try this...
CODE
DisplayTextWithLiteralString(0.5f, 0.25f, "STRING", "Custom");
PM
  Top
 

 
asd23  
Posted: Tuesday, Jan 6 2009, 22:17
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Mar 24, 2004

et.gif

XXXXX



I did, but the subs that seemed to display GXT stuff seemed unnamed to me. I guess I didn't search enough. Thanks alot!
PM
  Top
 

 
ceedj  
Posted: Tuesday, Jan 6 2009, 22:43
Quote Post


PEDS Creator
Group Icon
Group: Members
Joined: May 21, 2005

us.gif

Member Award




Just a heads up, but most of the GTX stuff is done with the PRINT natives and their variants now.
Users WebsitePM
  Top
 

 
saracoglu  
Posted: Tuesday, Jan 6 2009, 23:37
Quote Post


saracoglu
Group Icon
Group: Members
Joined: Jun 2, 2002

gr.gif

XXXXX



Thank you very much indeed.

I was planning to convert this code to c#, but no need. It is lean and crispy.

Time to implement a communication between this dll (running in gta process) and an external vb process to include vb coders to have an easy-going UI with a solid c++ dll at back-end.
Exporting the calls will not be enough. As then, even through extern dll calls, a new instance of this dll will get loaded into vb process, and the gta4-process injected dll will not be referenced.

cheers, and happy coding
Users WebsitePMICQ
  Top
 

 
xmen  
Posted: Wednesday, Jan 7 2009, 00:45
Quote Post


Foot Soldier
Group Icon
Group: Members
Joined: Jun 2, 2005

jolly-roger.gif

Member Award




Exellent work !!! icon14.gif can you make one via C# ?
Users WebsitePMMSNYahoo
  Top
 

 
HazardX  
Posted: Wednesday, Jan 7 2009, 00:49
Quote Post


pedestrian mangler
Group Icon
Group: Members
Joined: Dec 13, 2008

gr.gif

XXXXX



Yeah, a DotNet script hook (for C# and VB.Net) would be perfect! I already tried to compile the scripthook with managed extensions (to call other dotnet assemblies from it) but it crashes the game. sad.gif nevertheless, amazing work aru!
Users WebsitePM
  Top
 

 
the hubster  
Posted: Wednesday, Jan 7 2009, 01:12
Quote Post


Sup Homies
Group Icon
Group: Members
Joined: May 3, 2005

en.gif

XXXXX



QUOTE (asd23 @ Jan 6 2009, 21:57)
Oh well, no biggie. Dled VC2008 and messed around with it. Been meaning to learn something other than VB anyway.
But I have question: how do I display text? Displaying your own strings isn't probably possible, like in SA, but how can I display text from GXTs? I don't really know what gxtName should be.

If you want to display your own strings without using a gxt file, you could use Direct3D.

DL the DirectX SDK: http://www.microsoft.com/downloads/details...&displaylang=en

Then follow this tutorial: http://www.toymaker.info/Games/html/text.html

It's actually doable with no/little experience with C++ (i could do it, so that is proof) tounge.gif

This post has been edited by the hubster on Wednesday, Jan 7 2009, 01:36
PM
  Top
 

 
asd23  
Posted: Wednesday, Jan 7 2009, 01:27
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Mar 24, 2004

et.gif

XXXXX



The function aru told me works pefectly for what I need. Making a separate DX overlay would be overkill for the simple thing I'm doing.
PM
  Top
 

 
Deanimator  
Posted: Wednesday, Jan 7 2009, 04:34
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 7, 2009

XXXXX



great job aru! i am just having a problem with constant ingame crashes. Did you use the asi loader that came with alice or the more outdated standalone asi loader(both by Alexander Blade)?
PM
  Top
 

 
C06alt  
Posted: Wednesday, Jan 7 2009, 05:34
Quote Post


Prankster
Group Icon
Group: Members
Joined: Aug 8, 2005

XXXXX



user posted image

I always wanted to go on a killing spree as Ricky Gervais sneaky2.gif
You made my dream come true , thanks a lot.
PM
  Top
 

 
Demonith  
Posted: Wednesday, Jan 7 2009, 06:18
Quote Post


PC game player
Group Icon
Group: Members
Joined: Aug 29, 2008

sr.gif

XXXXX



Where i can find Niko's face textures ? and how import new textures ?
PMMSN
  Top
 

 
aru  
Posted: Wednesday, Jan 7 2009, 06:41
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




QUOTE (Deanimator @ Jan 6 2009, 23:34)
great job aru! i am just having a problem with constant ingame crashes. Did you use the asi loader that came with alice or the more outdated standalone asi loader(both by Alexander Blade)?

I did all my testing with xliveless... avail @ http://www.gtaforums.com/index.php?showtopic=388658&st=0

You might have to copy some save games around to get it to load your existing save, but other than that, its works pretty well.
PM
  Top
 

 

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

0 Members:

Pages: (86) 1 [2] 3 4 ... Last »

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



 
IMG IMG