Quantcast

Jump to content

» «
Photo

I would like to start modding

20 replies to this topic
Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#1

Posted 20 June 2014 - 09:47 AM

Hello, I'm new.

 

Since GTA V has been announced I would like to start learning modding now and I think that GTA IV is the best place until V is released.

The school is now over and this year I studied C++, I know most of the basic stuff like if statements, loops, functions, parameters by value and reference, arrays, bidimensional arrays, structs, input/output with text files and some basic OOP knowledge with pointers, the next year I will study Java and I read that it's similar to C# but I don't know any of them (Java, C#), just some very baisc C# knowledge (let's say the syntax since it's the same C++ uses)

 

How hard would it be for me to start modding from scratch? Do I need to download something? Thanks for the help!


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#2

Posted 20 June 2014 - 09:51 AM

Good to see a new modder

Go on my web for tutorials

www.gta4.mm.blogspot. in

leftas
  • leftas

    C++ for hacks/mods, C# for everything else.

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#3

Posted 20 June 2014 - 10:27 AM Edited by leftas, 20 June 2014 - 10:28 AM.

Welcome! :)
First of all, c++ and C# are very similar, but C# is more on Java side(C# made of c++ and java) so it's not so hard, because you already a know c++ syntax. Also you don't need to start from scratch. like I said c++ and C# is very similar

I suggest you taking some books or tutorials in the internet like MSDN Btw in msdn you find every c# function, but not scriphook.net functions :D

Also you can take c++ scripthook.

By the way: First I learn pawn(San andreas multiplayer) then java, c#, c++ and last was assembly.

So when I went from c# to c++ it was not hard to understand c++(Pointers was that sh*t I couldn't understand).

So I think it will be not so hard to come from c++ to c#. :)

P.S. Searching throught the internet I found msdn link "C# for C++ developers!"

So good luck learning c# stuff or you may go with the c++ scripthook

Regards,

Paul.


Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#4

Posted 20 June 2014 - 10:29 AM

Thanks a lot!


PlayPrey
  • PlayPrey

    string ScriptSkillLevel = "Low-Med";

  • Members
  • Joined: 02 Jul 2012
  • Norway

#5

Posted 20 June 2014 - 10:40 AM

Good to see a new modder

Go on my web for tutorials

www.gta4.mm.blogspot. in

Dont take this the wrong way but, I dont think starting off with your tutorials would be the best thing, they need a lot of polish.

Also, notepad? Use Visual Studio Express 2013 or Eclipse, they are a lot better than notepad.

I see you use "u" instead of "you" and other shortened words, that's unproffesional, I know your age, but you still need to try and be proffesional so people understand what your trying to teach others..

 

And finally: Black on Black doesnt go well.

_________________________________________________________________________________

 

Noox, I really recommend you to look at the examples that comes with the scripthookDotNet download, when I looked at them for 2 hours only I was ready to make really basic mods.

And when I needed help, I didnt post a topic here- I googled the problem, like "C# operators" if i didnt remember which is for what, and mainly try and search for C# stuff and not GTA4 stuff as it will most likely give you more helpful stuff. (unless it is gta.functions or stuff like that of coarse)

 

Take my words with a pinch of salt or whatever they say- Im not experienced, most of what I learned here is from someone named 'LordOfTheBongs'.. xD

 

Good luck!


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#6

Posted 20 June 2014 - 10:43 AM

I do use visual studio now (have to change that) and thanks for suggestions

PlayPrey
  • PlayPrey

    string ScriptSkillLevel = "Low-Med";

  • Members
  • Joined: 02 Jul 2012
  • Norway

#7

Posted 20 June 2014 - 10:44 AM

I do use visual studio now (have to change that) and thanks for suggestions

I only want to help :p Sorry for seeming mad at you in some of the topics and messages. :p I have a short fuse you might say. ;)


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#8

Posted 20 June 2014 - 10:47 AM

It's nothing I don't mind that at all I got a chance to improve :) you are so kind man or others be like heheh I also do get upset because some guys don't help me but I know it's for my own good :D and your mods??
  • LordOfTheBongs likes this

LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#9

Posted 20 June 2014 - 02:55 PM Edited by LordOfTheBongs, 20 June 2014 - 02:57 PM.

@Noox:

 

-Download the decompiled r* sco scripts, that julionib guy has a dl link on his website. Here u can see how native functions are used in game scripts when u cant find documentation online. I usually go here... gtamodding.com

 

-Download a reflector program like ilspy or .net reflector and then u can see how natives are used in other people's .net gta scripts. I learned to code gta mostly this way. Also learned alot by looking at what the code is inside the shdn wrappers... the source is in c++/cli but i just view it in c# using reflection

 

u can also join the scripthookdotnet irc on freenode hosted by mulledk (current developer of shdn after hazardx handed his source over to him) and talk to other scripters. Just know if u ask a question there people will answer if they feel like it and arent busy so u usually have to ask and wait or maybe even try another day and maybe someone throws u a bone ;) i am there and help others when i can.


Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#10

Posted 20 June 2014 - 06:07 PM Edited by Noox, 20 June 2014 - 06:33 PM.

Hey guys since I don't want to start another topic and I don't know where to ask when I'm adding "ScriptHook.dll" as a reference in Visual Studio I'm getting this error 

 

 

A reference to the "ScriptHook.dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component.

I'm using VS 2013, why is it giving me that error?

Thanks.

 

EDIT: Nevermind, the dll was ScriptHookDotNet not ScriptHook :p


Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#11

Posted 20 June 2014 - 07:59 PM

Sorry to bother you guys but one more question, if I make a change to my script do I have to restart the game?


leftas
  • leftas

    C++ for hacks/mods, C# for everything else.

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#12

Posted 20 June 2014 - 08:07 PM

Sorry to bother you guys but one more question, if I make a change to my script do I have to restart the game?

just use reloadscripts :)

Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#13

Posted 20 June 2014 - 08:12 PM

 

Sorry to bother you guys but one more question, if I make a change to my script do I have to restart the game?

just use reloadscripts :)

 

 

I think you have to explain that a bit more. When u click on the button under the ESC button (no idea what that icon is called), a little console with green text popups. There u have to type reloadscripts and then press enter. Then it will detect new scripts, and reload the scripts you already had in there


Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#14

Posted 20 June 2014 - 08:13 PM

Thanks!


leftas
  • leftas

    C++ for hacks/mods, C# for everything else.

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#15

Posted 20 June 2014 - 08:16 PM


 

Sorry to bother you guys but one more question, if I make a change to my script do I have to restart the game?

just use reloadscripts :)
 

 
I think you have to explain that a bit more. When u click on the button under the ESC button (no idea what that icon is called), a little console with green text popups. There u have to type reloadscripts and then press enter. Then it will detect new scripts, and reload the scripts you already had in there
Ah sorry, I forgot that he is new. Again sorry.

Regards,
Paul.
  • Wiebrendh likes this

Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#16

Posted 20 June 2014 - 08:41 PM Edited by Noox, 20 June 2014 - 08:47 PM.

Sorry to bother you again but ScriptHook is not being initialized and nothing comes up on Google, this is the log

 

Log start: Fri Jun 20 22:46:22 2014
-----------------------------------------------
[INFO] GTA IV Script Hook 0.4.0 - © 2009, Aru - Initialized
[INFO] Process base address: 0x1e0000
[INFO] Auto detecting game version
[FATAL] Failed to detect game version
 

 

It's of course an original copy, not a steam version, I'm using the disc.

The game version is 1.0.7.0


leftas
  • leftas

    C++ for hacks/mods, C# for everything else.

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#17

Posted 20 June 2014 - 08:47 PM Edited by leftas, 20 June 2014 - 08:48 PM.

Sorry to bother you again but ScriptHook is not being initialized and nothing comes up on Google, this is the log
 

 
Log start: Fri Jun 20 22:23:22 2014
-----------------------------------------------
[INFO] GTA IV Script Hook 0.4.0 - © 2009, Aru - Initialized
[INFO] Process base address: 0x1e0000
[INFO] Auto detecting game version
[FATAL] Failed to detect game version

 
It's of course an original copy, not a steam version, I'm using the disc.
The game version is 1.0.7.0
You need to update scripthook, link to newest http://www.gtavision...ownload&id=2909 I hope now I helped... You using version that came earlier than patch

Regards,
Paul.

Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#18

Posted 20 June 2014 - 08:58 PM

Thanks a lot! Everything is working fine now :)


Skorpro
  • Skorpro

    GTAholic

  • Members
  • Joined: 19 Jul 2009
  • Germany

#19

Posted 21 June 2014 - 07:39 AM

So many new coders/modders here - cool :D

 

@Noox

Hi, maybe it's useful for you:   How to use Aru's C++ ScriptHook SDK :)


Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#20

Posted 21 June 2014 - 07:45 AM

So many new coders/modders here - cool :D

 

@Noox

Hi, maybe it's useful for you:   How to use Aru's C++ ScriptHook SDK :)

Thanks, I started already but I'll keep an eye on it :)


Skorpro
  • Skorpro

    GTAholic

  • Members
  • Joined: 19 Jul 2009
  • Germany

#21

Posted 23 June 2014 - 02:47 AM

Thanks, I started already but I'll keep an eye on it :)

 

 

... you're welcome!

Maybe some natives are useful ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users