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 5 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

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

 IV Scripting via C++
 
Indi  
Posted: Wednesday, Jan 7 2009, 07:11
Quote Post


The manager's nice enough - but mother's off her rocker.
Group Icon
Group: Andolini Mafia Family
Joined: Nov 22, 2008

wa.gif

Member Award




@CO6ALT: HAHAHA nice one!
Users WebsitePMMSNXbox Live
  Top
 

 
kieranxp5  
Posted: Wednesday, Jan 7 2009, 08:23
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Dec 31, 2008

sj.gif

XXXXX



could someone possably make an asi to change niko into the biker models? That way I can do some cool textures, not very good at programing sad.gif
PM
  Top
 

 
Intosia  
Posted: Wednesday, Jan 7 2009, 08:48
Quote Post


I'm random! ^^
Group Icon
Group: Members
Joined: Dec 11, 2008

nl.gif

XXXXX



QUOTE (HazardX @ Jan 7 2009, 00:49)
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!

This is un-managed pure C++ code if im correct smile.gif I prefere unmanaged myself since i learned C++ in CBuilder 6.
Users WebsitePM
  Top
 

 
Touho  
Posted: Wednesday, Jan 7 2009, 10:13
Quote Post


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

sf.gif

XXXXX



Where i put all files? I have Visual C++ 2005 Express Edition.
PM
  Top
 

 
Intosia  
Posted: Wednesday, Jan 7 2009, 10:21
Quote Post


I'm random! ^^
Group Icon
Group: Members
Joined: Dec 11, 2008

nl.gif

XXXXX



QUOTE (Touho @ Jan 7 2009, 10:13)
Where i put all files? I have Visual C++ 2005 Express Edition.

Just open the SLN file? Or project file. Maybe you need 2008...
Users WebsitePM
  Top
 

 
aru  
Posted: Wednesday, Jan 7 2009, 10:33
Quote Post


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

cd.gif

Member Award




You need 2008 to open the sln file... for 2005, just create a empty Win32 DLL project and add the source files (cpp/h) to it.

And yes, this is fully unmanaged C++. I *think* it should still load up with IV if compiled with /clr, as long as you keep the CustomThread, NativeThread, NativeContext, etc classes as unmanaged since they are subclasses of game types.
PM
  Top
 

 
HazardX  
Posted: Wednesday, Jan 7 2009, 10:51
Quote Post


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

gr.gif

XXXXX



QUOTE (aru @ Jan 7 2009, 10:33)
And yes, this is fully unmanaged C++. I *think* it should still load up with IV if compiled with /clr, as long as you keep the CustomThread, NativeThread, NativeContext, etc classes as unmanaged since they are subclasses of game types.

Yes, i tried that. It crashed. confused.gif I was suprised too. I converted other unmanaged projects to mixedmode/managed projects before, but yet i'm still VERY unexperienced in C++ and such a hook is a more special case too. I maybe did something wrong... i just added the /clr parameter and added "#pragma unmanaged" directives to all files, to be sure that no unwanted stuff is compiled as managed.
Users WebsitePM
  Top
 

 
Touho  
Posted: Wednesday, Jan 7 2009, 11:09
Quote Post


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

sf.gif

XXXXX



QUOTE (Intosia @ Jan 7 2009, 10:21)
QUOTE (Touho @ Jan 7 2009, 10:13)
Where i put all files? I have Visual C++ 2005 Express Edition.

Just open the SLN file? Or project file. Maybe you need 2008...

Argh, 2008 version needs now activation. Can i download full version from somewhere?
PM
  Top
 

 
HazardX  
Posted: Wednesday, Jan 7 2009, 11:16
Quote Post


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

gr.gif

XXXXX



QUOTE (Touho @ Jan 7 2009, 11:09)
Argh, 2008 version needs now activation. Can i download full version from somewhere?

Just get the Visual Studio 2008 Express Edition. It's free.
Users WebsitePM
  Top
 

 
Touho  
Posted: Wednesday, Jan 7 2009, 11:20
Quote Post


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

sf.gif

XXXXX



QUOTE (HazardX @ Jan 7 2009, 11:16)
QUOTE (Touho @ Jan 7 2009, 11:09)
Argh, 2008 version needs now activation. Can i download full version from somewhere?

Just get the Visual Studio 2008 Express Edition. It's free.

I have it, but it needs now activation because it is 30 days old or something.

This post has been edited by Touho on Wednesday, Jan 7 2009, 11:26
PM
  Top
 

 
L0uNGeR  
Posted: Wednesday, Jan 7 2009, 11:20
Quote Post


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

nl.gif

XXXXX



QUOTE
Register this product within 30 days. To receive your free registration key, click Register Product on the Help menu of your Express Edition. For more information, visit Registration Benefits .
tounge2.gif

DLL/ASI loader = "XLiveLess" or "ASI Loader"

This post has been edited by L0uNGeR on Wednesday, Jan 7 2009, 11:24
PM
  Top
 

 
Seemann  
Posted: Wednesday, Jan 7 2009, 11:39
Quote Post


Ruhe
Group Icon
Group: Members
Joined: Sep 3, 2004

ru.gif

Member Award




XLiveLiss includes ASI loader so you can use both
Users WebsitePM
  Top
 

 
saracoglu  
Posted: Wednesday, Jan 7 2009, 12:08
Quote Post


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

gr.gif

XXXXX



QUOTE (Touho @ Jan 7 2009, 12:20)
I have it, but it needs now activation because it is 30 days old or something.

So activate it. Activation is also free of charge
Users WebsitePMICQ
  Top
 

 
BeatFK  
Posted: Wednesday, Jan 7 2009, 13:02
Quote Post


Kill the Beat My man
Group Icon
Group: Members
Joined: Dec 17, 2008

fr.gif

XXXXX



QUOTE (C06alt @ Jan 7 2009, 05:34)
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.

How you did that man ?
PM
  Top
 

 
aceship  
Posted: Wednesday, Jan 7 2009, 14:15
Quote Post


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

in.gif

XXXXX



where is the compile button?
PMMSN
  Top
 

 
aliast  
Posted: Wednesday, Jan 7 2009, 14:41
Quote Post


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

ru.gif

XXXXX



QUOTE (aceship @ Jan 7 2009, 20:15)
where is the compile button?

Mayby F5?
PMICQ
  Top
 

 
xer0er  
Posted: Wednesday, Jan 7 2009, 15:48
Quote Post


Too cool for school
Group Icon
Group: Members
Joined: Mar 29, 2007

au.gif

XXXXX



Great. Time for me to get a copy of GTA IV for PC.
Looks a lot simpler than it could have been.
PMMSNXbox LivePlayStation Network
  Top
 

 
L0uNGeR  
Posted: Wednesday, Jan 7 2009, 16:15
Quote Post


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

nl.gif

XXXXX



It creates
-- ScriptHook.dll
-- ScriptHook.dll.intermediate.manifest

Do I just rename ScriptHook.dll to ScriptHook.asi and that's it? Or do I need the manifest file too?
PM
  Top
 

 
Dweirdo  
Posted: Wednesday, Jan 7 2009, 16:30
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Dec 12, 2008

XXXXX



Thanks man pretty nice,I'm studying C# atm and it's kinda close.
though could you explain what to do, i tired to open it using MSOFT VISUAL STUDIO 2008, but it doesnt give me anything, maybe because i just have C#?
PM
  Top
 

 
Intosia  
Posted: Wednesday, Jan 7 2009, 16:50
Quote Post


I'm random! ^^
Group Icon
Group: Members
Joined: Dec 11, 2008

nl.gif

XXXXX



QUOTE (L0uNGeR @ Jan 7 2009, 16:15)
It creates
-- ScriptHook.dll
-- ScriptHook.dll.intermediate.manifest

Do I just rename ScriptHook.dll to ScriptHook.asi and that's it? Or do I need the manifest file too?

No just the the dll, and indeed rename to asi smile.gif
Users WebsitePM
  Top
 

 

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

0 Members:

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

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



 
IMG IMG