Jump to content

I would like to start modding


Noox

Recommended Posts

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!

Link to comment
Share on other sites

Good to see a new modder

 

Go on my web for tutorials

 

www.gta4.mm.blogspot. in

Link to comment
Share on other sites

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.

Edited by leftas
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

LordOfTheBongs

@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.

Edited by LordOfTheBongs
Link to comment
Share on other sites

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

Edited by Noox
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)
Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

 

 

 

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.

Link to comment
Share on other sites

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

Edited by Noox
Link to comment
Share on other sites

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.com/?section=downloads&site=download&id=2909 I hope now I helped... You using version that came earlier than patch

 

Regards,

Paul.

Edited by leftas
Link to comment
Share on other sites

Thanks a lot! Everything is working fine now :)

Link to comment
Share on other sites

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

 

 

... you're welcome!

Maybe some natives are useful ;)

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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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