CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
Creating an RTM ('RTE Tool'.)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Freezee" data-source="post: 1811" data-attributes="member: 948"><p>Note: I ported this tutorial over from another site, Yes, I did create this Thread on NGU, I didn't steal it. But I will re-upload it here, I fixed them up some when porting over.</p><p></p><p>I'll post the other tutorial later today/tomorrow, feeling kind of lazy.</p><p></p><p>Creating an Real Time Modding Tool, the basics. (#1).</p><p>[SPOILER]</p><p style="text-align: center"><strong><span style="color: #B22222"><span style="font-size: 15px"><u>Introduction</u></span></span></strong></p><p></p><p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Hello, I wrote this tutorial for everyone that wants to learn how to make a Real Time (Modding/Editing) Tool in C#.</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">This tutorial will explain (almost) everything, It does have code snippets, But explanations also.</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"><u>Getting Ready!</u></span></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">Firstly, You want to open up your Visual Studio(I use 2012.) "IDE". For those who don't know what IDE stands for/means, It stands for "Integrated Development Environment". Usually a Source Code Editor, Compiler, Debugger and other features.</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">Secondly. In your Visual Studio IDE. Go to the very top left click File > New Project. It (should) look like this.</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222"></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">[SPOILER]<img src="https://i.gyazo.com/572059a4895f630b99915e8cc8e28b04.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/SPOILER]</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222"></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">If the above does not look like so. Go to File > New Project. On the left side click Installed > Templates > Visual C#.</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222"></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">Note: I am using Visual Studio 2012, The above Image MAY be different.</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222"></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">After you successfully do that, you will be greeted with a Simple White Form.</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">[SPOILER]<img src="https://i.gyazo.com/acdfd045ddde113b0730e370a0087a80.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/SPOILER]</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222"></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">You can design the Form your way by using the "Properties" Section"</span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #B22222">[SPOILER]<img src="https://i.gyazo.com/dd1f41dc5ab5b9eaab572c0456dcc31b.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/SPOILER]</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"><u>Adding CCAPI and PS3Lib .dlls</u></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 9px">.dll stands for Dynamic Link Library!</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px">On your Visual Studio IDE, Go to the top right and click Project > Add Reference. Go to the directory your PS3Lib.dll is in.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px">In order to add CCAPI.dll, You need to go to your Visual Studio Project Directory, By default mine is "C:/Users/Username/Documents/Visual Studio 2012/Projects/ProjectName/bin/debug" this could be different for you.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px">Your CCAPI.dll would go in your projects "bin/debug" folder.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px">Go back to Visual Studio, Go to "Form1.cs < This is the default name, Your Form may be different" Go to the top and add a "using" statement, put "<span style="color: #B22222">using PS3Lib;</span>" After you have done so.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px">You want to define a PS3 API, So between "public partial class Form1 : Form" You want to define it like so "<span style="color: #B22222">PS3API YourAPIName = new PS3API();</span>".</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px">Now you can hit "Start" and build the program!</span></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"><u>Adding Connect/Attach Buttons and Modifications.</u></span></span></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">We firstly want to start with a Connect and Attach Button.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Obviously, We can use a number of Toolbox Objects to make a CCAPI or TMAPI Connection. A few include: Button, Check-Box(s), Radio-Button(s) and so on.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Since this is a CEX RTE Tool, We will use a Button (You can use Radio-Button(s) if you are making a Control Console API/Target Manager API Tool.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">After you drag the item(s) to your Form. You can name the Item(s) Design Name If you truly want. Design Name is the Name of your Object. If you named it "IAmObject" and you clicked it, It would bring up the IAmObject_Click Event. Although this is <u><span style="color: #B22222">NOT</span></u> necessary, I just do it because It makes things easier too remember.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Now you can click on your "CCAPI" Object (or whatever you called it), Now you would want to have it "Change" the API to Control Console or Target Manager.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Changing the API to CCAPI.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CODE]YourAPIName.ChangeAPI(SelectAPI.ControlConsole);[/CODE]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Changing the API to TMAPI.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CODE]YourAPIName.ChangeAPI(SelectAPI.TargetManager);.[/CODE]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Now create an Object ("Item") called Connect (You can name it anything you want), If you have already made it just click it and add the following.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CODE]Note: I recommend you use a(n) if/else statement (more information below).[/SIZE][/COLOR][/CENTER]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[COLOR=#B22222][SIZE=3]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CENTER]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">if (YourAPIName.ConnectTarget(0))</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> //Note, you can always change it, using things like YourAPIName.RingBuzzer etc..</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">}</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">else</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> }</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">}[/CODE]</span></span></p><p></p><p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">There is a number of things you could do <u>IF</u> you wanted to make sure the User has Connected. This is pretty self explanatory, I won't go into any detail.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Now before we can start Adding Modifications, We need to make an "Attach" Button. What It does is let you "Connect" to your game process. And after you create/click your "Attach" Button, You can add the following code.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CODE]if (YourAPIName.AttachProcess())[/SIZE][/COLOR][/CENTER]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[COLOR=#B22222][SIZE=3]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CENTER]{</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">}</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">else</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> }</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">}[/CODE]</span></span></p><p></p><p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">That's It!</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"><span style="color: #B22222"><span style="font-size: 15px"><u>Adding Modifications!</u></span></span></span></span></p><p></p><p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Now we can start adding our Modifications. I will choose the game MW3 for Example.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">I will just add a "Advanced UAV" Function for the sake of this tutorial.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Firstly, add a "Check-box" Object onto the Form so we can enable and disable this Modification.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">Now click on the Check-box and write the following.</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[CODE]We are going to use an if/else statement for this Modification so we can enable or disable it.[/SIZE][/COLOR][/CENTER]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">[COLOR=#B22222][SIZE=3][CENTER]</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">if (YourCheckboxName.Checked) //If your Check-box is clicked 'checked' do the following</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> Byte[] advanceduavon = new Byte[] { 02 };</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> YourAPIName.SetMemory(0x5F067, advanceduavon);</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">}</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">else // If Check-box was unchecked then do the following</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> Byte[] advanceduavoff = new Byte[] { 0x01 };</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> YourAPIName.SetMemory(0x5F067, advanceduavoff);</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"> }</span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px">}[/CODE]</span></span></p><p></p><p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"><strong><u>That's It!, The Definitions and Links down below.</u></strong></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"><strong><u>You can load MW3, Connect & Attach. Then enable the Modification and It will work!</u></strong></span></span></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"></span></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><span style="color: #B22222"><span style="font-size: 15px"><u>Miscellaneous Stuff!</u></span></span></p><p></p><p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"><u>Help!</u></span></span></p><p></p><p></p><p><span style="color: #B22222"><span style="font-size: 12px">Q: Where do I find "CCAPI and PS3Lib.dll"?</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">A: Search the Internet for them.</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"></span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">Q: What is "PS3API"</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">A: PS3API defines an API which will let you interact with your PS3 and Let you do things like making it beep, letting you change the memory and other things.</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"></span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">Q:A What is an if/else statement?</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">A: Basically what it says. For example. Lets say you have a button on your form. Name it Hello, Click on it. Write something like.</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">[CODE]if (button1.Text == "Hello") //If buttons text name = hello.</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"> button1.Text = "World!"; //Then change the text name to world.</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">}</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">else // If button text does not equal Hello</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">{</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"> button1.Text = "Bye!"; //Change the text to Bye!</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"> }</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">}[/CODE]</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"></span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"></span></span></p><p style="text-align: center"><span style="color: #B22222"><span style="font-size: 12px"><span style="color: #B22222"><span style="font-size: 12px"><u>Definitions!</u></span></span></span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">Definition: "using PS3Lib"</span></span></p><p><span style="color: #B22222"><span style="font-size: 12px"></span></span></p><p><span style="color: #B22222"><span style="font-size: 12px">Answer: "Using" Statements provide a way to access various parts of the .NET Framework (or other .dlls) that you might use in your program.</span></span></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="Freezee, post: 1811, member: 948"] Note: I ported this tutorial over from another site, Yes, I did create this Thread on NGU, I didn't steal it. But I will re-upload it here, I fixed them up some when porting over. I'll post the other tutorial later today/tomorrow, feeling kind of lazy. Creating an Real Time Modding Tool, the basics. (#1). [SPOILER] [CENTER][B][COLOR=#B22222][SIZE=4][U]Introduction[/U][/SIZE][/COLOR][/B][/CENTER] [CENTER] [COLOR=#B22222][SIZE=3]Hello, I wrote this tutorial for everyone that wants to learn how to make a Real Time (Modding/Editing) Tool in C#.[/SIZE][/COLOR] [COLOR=#B22222][SIZE=3]This tutorial will explain (almost) everything, It does have code snippets, But explanations also.[/SIZE][/COLOR] [COLOR=#B22222][SIZE=4][U]Getting Ready![/U][/SIZE][/COLOR] [SIZE=3][COLOR=#B22222]Firstly, You want to open up your Visual Studio(I use 2012.) "IDE". For those who don't know what IDE stands for/means, It stands for "Integrated Development Environment". Usually a Source Code Editor, Compiler, Debugger and other features.[/COLOR][/SIZE] [SIZE=3][COLOR=#B22222]Secondly. In your Visual Studio IDE. Go to the very top left click File > New Project. It (should) look like this. [SPOILER][IMG]https://i.gyazo.com/572059a4895f630b99915e8cc8e28b04.png[/IMG][/SPOILER] If the above does not look like so. Go to File > New Project. On the left side click Installed > Templates > Visual C#. Note: I am using Visual Studio 2012, The above Image MAY be different. After you successfully do that, you will be greeted with a Simple White Form. [SPOILER][IMG]https://i.gyazo.com/acdfd045ddde113b0730e370a0087a80.png[/IMG][/SPOILER] You can design the Form your way by using the "Properties" Section" [SPOILER][IMG]https://i.gyazo.com/dd1f41dc5ab5b9eaab572c0456dcc31b.png[/IMG][/SPOILER][/COLOR][/SIZE] [COLOR=#B22222][SIZE=4][U]Adding CCAPI and PS3Lib .dlls[/U][/SIZE] [SIZE=1].dll stands for Dynamic Link Library![/SIZE][/COLOR] [COLOR=#B22222][SIZE=4]On your Visual Studio IDE, Go to the top right and click Project > Add Reference. Go to the directory your PS3Lib.dll is in. In order to add CCAPI.dll, You need to go to your Visual Studio Project Directory, By default mine is "C:/Users/Username/Documents/Visual Studio 2012/Projects/ProjectName/bin/debug" this could be different for you. Your CCAPI.dll would go in your projects "bin/debug" folder. Go back to Visual Studio, Go to "Form1.cs < This is the default name, Your Form may be different" Go to the top and add a "using" statement, put "[COLOR=#B22222]using PS3Lib;[/COLOR]" After you have done so. You want to define a PS3 API, So between "public partial class Form1 : Form" You want to define it like so "[COLOR=#B22222]PS3API YourAPIName = new PS3API();[/COLOR]". Now you can hit "Start" and build the program![/SIZE][/COLOR] [COLOR=#B22222][SIZE=4][U]Adding Connect/Attach Buttons and Modifications.[/U][/SIZE][/COLOR] [COLOR=#B22222][SIZE=3]We firstly want to start with a Connect and Attach Button. Obviously, We can use a number of Toolbox Objects to make a CCAPI or TMAPI Connection. A few include: Button, Check-Box(s), Radio-Button(s) and so on. Since this is a CEX RTE Tool, We will use a Button (You can use Radio-Button(s) if you are making a Control Console API/Target Manager API Tool. After you drag the item(s) to your Form. You can name the Item(s) Design Name If you truly want. Design Name is the Name of your Object. If you named it "IAmObject" and you clicked it, It would bring up the IAmObject_Click Event. Although this is [U][COLOR=#B22222]NOT[/COLOR][/U] necessary, I just do it because It makes things easier too remember. Now you can click on your "CCAPI" Object (or whatever you called it), Now you would want to have it "Change" the API to Control Console or Target Manager. Changing the API to CCAPI. [CODE]YourAPIName.ChangeAPI(SelectAPI.ControlConsole);[/CODE] Changing the API to TMAPI. [CODE]YourAPIName.ChangeAPI(SelectAPI.TargetManager);.[/CODE] Now create an Object ("Item") called Connect (You can name it anything you want), If you have already made it just click it and add the following. [CODE]Note: I recommend you use a(n) if/else statement (more information below).[/SIZE][/COLOR][/CENTER] [COLOR=#B22222][SIZE=3] [CENTER] if (YourAPIName.ConnectTarget(0)) { MessageBox.Show("Input Message-box Message here", "Input Message-box Title here"); //Note, you can always change it, using things like YourAPIName.RingBuzzer etc.. } else { MessageBox.Show("Input Message-box Message here", "Input Message-box Title here"); } }[/CODE][/SIZE][/COLOR][/CENTER][COLOR=#B22222][SIZE=3][/SIZE][/COLOR] [CENTER][COLOR=#B22222][SIZE=3] There is a number of things you could do [U]IF[/U] you wanted to make sure the User has Connected. This is pretty self explanatory, I won't go into any detail. Now before we can start Adding Modifications, We need to make an "Attach" Button. What It does is let you "Connect" to your game process. And after you create/click your "Attach" Button, You can add the following code. [CODE]if (YourAPIName.AttachProcess())[/SIZE][/COLOR][/CENTER] [COLOR=#B22222][SIZE=3] [CENTER]{ MessageBox.Show("Input Message-box Message here", "Input Message-box Title here"); } else { MessageBox.Show("Input Message-box Message here", "Input Message-box Title here"); } }[/CODE][/SIZE][/COLOR][/CENTER][COLOR=#B22222][SIZE=3][/SIZE][/COLOR] [CENTER][COLOR=#B22222][SIZE=3] That's It! [COLOR=#B22222][SIZE=4][U]Adding Modifications![/U][/SIZE][/COLOR][/SIZE][/COLOR][/CENTER] [COLOR=#B22222][SIZE=3][/SIZE][/COLOR] [CENTER][COLOR=#B22222][SIZE=3]Now we can start adding our Modifications. I will choose the game MW3 for Example. I will just add a "Advanced UAV" Function for the sake of this tutorial. Firstly, add a "Check-box" Object onto the Form so we can enable and disable this Modification. Now click on the Check-box and write the following. [CODE]We are going to use an if/else statement for this Modification so we can enable or disable it.[/SIZE][/COLOR][/CENTER] [COLOR=#B22222][SIZE=3][CENTER] if (YourCheckboxName.Checked) //If your Check-box is clicked 'checked' do the following { Byte[] advanceduavon = new Byte[] { 02 }; YourAPIName.SetMemory(0x5F067, advanceduavon); } else // If Check-box was unchecked then do the following { Byte[] advanceduavoff = new Byte[] { 0x01 }; YourAPIName.SetMemory(0x5F067, advanceduavoff); } }[/CODE][/SIZE][/COLOR][/CENTER][COLOR=#B22222][SIZE=3][/SIZE][/COLOR] [CENTER][COLOR=#B22222][SIZE=3] [B][U]That's It!, The Definitions and Links down below.[/U][/B] [B][U]You can load MW3, Connect & Attach. Then enable the Modification and It will work![/U][/B] [/SIZE][/COLOR] [COLOR=#B22222][SIZE=4][U]Miscellaneous Stuff![/U][/SIZE][/COLOR][/CENTER] [CENTER][COLOR=#B22222][SIZE=3][U]Help![/U][/SIZE][/COLOR][/CENTER] [COLOR=#B22222][SIZE=3]Q: Where do I find "CCAPI and PS3Lib.dll"? A: Search the Internet for them. Q: What is "PS3API" A: PS3API defines an API which will let you interact with your PS3 and Let you do things like making it beep, letting you change the memory and other things. Q:A What is an if/else statement? A: Basically what it says. For example. Lets say you have a button on your form. Name it Hello, Click on it. Write something like. [CODE]if (button1.Text == "Hello") //If buttons text name = hello. { button1.Text = "World!"; //Then change the text name to world. } else // If button text does not equal Hello { button1.Text = "Bye!"; //Change the text to Bye! } }[/CODE] [/SIZE][/COLOR] [CENTER][COLOR=#B22222][SIZE=3][COLOR=#B22222][SIZE=3][U]Definitions![/U][/SIZE][/COLOR][/SIZE][/COLOR][/CENTER] [COLOR=#B22222][SIZE=3]Definition: "using PS3Lib" Answer: "Using" Statements provide a way to access various parts of the .NET Framework (or other .dlls) that you might use in your program.[/SIZE][/COLOR] [/SPOILER] [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
Creating an RTM ('RTE Tool'.)
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top