Noox Posted June 20, 2014 Share Posted June 20, 2014 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 https://gtaforums.com/topic/717459-i-would-like-to-start-modding/ Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Share Posted June 20, 2014 Good to see a new modder Go on my web for tutorials www.gta4.mm.blogspot. in Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634051 Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 (edited) 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 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 June 20, 2014 by leftas Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634165 Share on other sites More sharing options...
Noox Posted June 20, 2014 Author Share Posted June 20, 2014 Thanks a lot! Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634177 Share on other sites More sharing options...
PlayPrey Posted June 20, 2014 Share Posted June 20, 2014 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 https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634230 Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Share Posted June 20, 2014 I do use visual studio now (have to change that) and thanks for suggestions Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634239 Share on other sites More sharing options...
PlayPrey Posted June 20, 2014 Share Posted June 20, 2014 I do use visual studio now (have to change that) and thanks for suggestions I only want to help Sorry for seeming mad at you in some of the topics and messages. I have a short fuse you might say. Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634246 Share on other sites More sharing options...
Rugz007 Posted June 20, 2014 Share Posted June 20, 2014 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 and your mods?? LordOfTheBongs 1 Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065634259 Share on other sites More sharing options...
LordOfTheBongs Posted June 20, 2014 Share Posted June 20, 2014 (edited) @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 June 20, 2014 by LordOfTheBongs Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065635381 Share on other sites More sharing options...
Noox Posted June 20, 2014 Author Share Posted June 20, 2014 (edited) 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 Edited June 20, 2014 by Noox Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065636532 Share on other sites More sharing options...
Noox Posted June 20, 2014 Author Share Posted June 20, 2014 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 https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637284 Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 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 https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637328 Share on other sites More sharing options...
Wiebrendh Posted June 20, 2014 Share Posted June 20, 2014 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 https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637358 Share on other sites More sharing options...
Noox Posted June 20, 2014 Author Share Posted June 20, 2014 Thanks! Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637359 Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 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 thereAh sorry, I forgot that he is new. Again sorry. Regards, Paul. Wiebrendh 1 Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637383 Share on other sites More sharing options...
Noox Posted June 20, 2014 Author Share Posted June 20, 2014 (edited) 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 June 20, 2014 by Noox Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637526 Share on other sites More sharing options...
leftas Posted June 20, 2014 Share Posted June 20, 2014 (edited) 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.0You 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 June 20, 2014 by leftas Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637560 Share on other sites More sharing options...
Noox Posted June 20, 2014 Author Share Posted June 20, 2014 Thanks a lot! Everything is working fine now Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065637614 Share on other sites More sharing options...
Skorpro Posted June 21, 2014 Share Posted June 21, 2014 So many new coders/modders here - cool @Noox Hi, maybe it's useful for you: How to use Aru's C++ ScriptHook SDK Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065640237 Share on other sites More sharing options...
Noox Posted June 21, 2014 Author Share Posted June 21, 2014 So many new coders/modders here - cool @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 Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065640265 Share on other sites More sharing options...
Skorpro Posted June 23, 2014 Share Posted June 23, 2014 Thanks, I started already but I'll keep an eye on it ... you're welcome! Maybe some natives are useful Link to comment https://gtaforums.com/topic/717459-i-would-like-to-start-modding/#findComment-1065652686 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now