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
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
RPC For all Updates 1.14+
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="Gentle" data-source="post: 7719"><p>I didn't make this... I just C&P'd just like a leecher... Got a problem? Fite me m9</p><p></p><p>------------------------------------------------------------------------------------------------------------------</p><p></p><p>Hey NGU!</p><p></p><p></p><p>Rather than update my Remote Procedure Call tool each time an update is released, I decided to just make a DLL for it that will work regardless of update. When initialized, it finds the fog function and overwrites it with my RPC function. This one, unlike my previous RPC DLL, can take 3 types of arguments - int, uint, or string.</p><p></p><p></p><p></p><p><strong><u>How to add the DLL to a C# project</u></strong></p><p></p><p>1. Download my DLL.</p><p>2. In Visual C#, click on the project tab and then select "Add Reference".</p><p>3. Click the browse tab. Find the DLL you downloaded and click OK.</p><p></p><p></p><p></p><p><strong><u>How to initialize the DLL</u></strong></p><p></p><p>1. In your code, go to your function that connects to the PS3 and attaches the process.</p><p>2. After the part of code that attaches process, add this line:</p><p></p><p>[code]BO2.PS3.Init();[/code]</p><p></p><p>This will locate the function R_SetFrameFog and replace it with my RPC function. For 1.14, it will initialize quickly. For future updates, it may take a few seconds to initialize because it has to find the function.</p><p></p><p>Once you have done this, the RPC function is ready to go.</p><p></p><p></p><p></p><p><strong><u>How to call a function</u></strong></p><p></p><p>To call a function, you need to use the following code:</p><p></p><p>[code]BO2.RPC.Call(uint func_address, arguments);[/code]</p><p></p><p>Here's a few examples:</p><p></p><p>[code]BO2.RPC.Call(0x349B8C, 0, 0, "O \"^2Test!\""); //this calls SV_GameSendServerCommand</p><p></p><p>BO2.RPC.Call(0x3139A8, 0, "set cg_fov 90"); //this calls CBuf_AddText</p><p></p><p>BO2.RPC.Call(0x2A8044, 0x177B828, 1, 0); //this calls G_GivePlayerWeapon (and gives default weapon)[/code]</p><p></p><p>When a function is called, it returns an integer value. If you want to get the return value, do it like so:</p><p></p><p>[code]int returnVal = BO2.RPC.Call(0x275A04, "This is a string"); //Calls G_LocalizedStringIndex and assigns it's return value to returnVal[/code]</p><p></p><p></p><p></p><p><strong><u>Credits</u></strong></p><p></p><p>-aerosoul94 for showing me how to take different argument types and giving me his library for importing PS3 target manager functions</p><p></p><p></p><p></p><p><strong><u>Download</u></strong></p><p></p><p>Download: <a href="http://www.mediafire.com/?6bzejveoaxl4ebn" target="_blank">BO2RPC.dll</a></p><p></p><p>Virus Scan: <a href="https://www.virustotal.com/en/file/953dda246a866a9b8448332328166dfede8bc059a9fc25c11dded50e202c4065/analysis/1378064483/" target="_blank">Antivirus scan for 953dda246a866a9b8448332328166dfede8bc059a9fc25c11dded50e202c4065 at2013-09-01 19:41:23 UTC - VirusTotal</a></p><p></p><p></p><p><span style="color: red">Note: PS3 Target Manager must be installed on your computer or this will not work.</span></p><p></p><p>Enjoy =D</p></blockquote><p></p>
[QUOTE="Gentle, post: 7719"] I didn't make this... I just C&P'd just like a leecher... Got a problem? Fite me m9 ------------------------------------------------------------------------------------------------------------------ Hey NGU! Rather than update my Remote Procedure Call tool each time an update is released, I decided to just make a DLL for it that will work regardless of update. When initialized, it finds the fog function and overwrites it with my RPC function. This one, unlike my previous RPC DLL, can take 3 types of arguments - int, uint, or string. [B][U]How to add the DLL to a C# project[/U][/B] 1. Download my DLL. 2. In Visual C#, click on the project tab and then select "Add Reference". 3. Click the browse tab. Find the DLL you downloaded and click OK. [B][U]How to initialize the DLL[/U][/B] 1. In your code, go to your function that connects to the PS3 and attaches the process. 2. After the part of code that attaches process, add this line: [code]BO2.PS3.Init();[/code] This will locate the function R_SetFrameFog and replace it with my RPC function. For 1.14, it will initialize quickly. For future updates, it may take a few seconds to initialize because it has to find the function. Once you have done this, the RPC function is ready to go. [B][U]How to call a function[/U][/B] To call a function, you need to use the following code: [code]BO2.RPC.Call(uint func_address, arguments);[/code] Here's a few examples: [code]BO2.RPC.Call(0x349B8C, 0, 0, "O \"^2Test!\""); //this calls SV_GameSendServerCommand BO2.RPC.Call(0x3139A8, 0, "set cg_fov 90"); //this calls CBuf_AddText BO2.RPC.Call(0x2A8044, 0x177B828, 1, 0); //this calls G_GivePlayerWeapon (and gives default weapon)[/code] When a function is called, it returns an integer value. If you want to get the return value, do it like so: [code]int returnVal = BO2.RPC.Call(0x275A04, "This is a string"); //Calls G_LocalizedStringIndex and assigns it's return value to returnVal[/code] [B][U]Credits[/U][/B] -aerosoul94 for showing me how to take different argument types and giving me his library for importing PS3 target manager functions [B][U]Download[/U][/B] Download: [URL='http://www.mediafire.com/?6bzejveoaxl4ebn']BO2RPC.dll[/URL] Virus Scan: [URL='https://www.virustotal.com/en/file/953dda246a866a9b8448332328166dfede8bc059a9fc25c11dded50e202c4065/analysis/1378064483/']Antivirus scan for 953dda246a866a9b8448332328166dfede8bc059a9fc25c11dded50e202c4065 at2013-09-01 19:41:23 UTC - VirusTotal[/URL] [COLOR=red]Note: PS3 Target Manager must be installed on your computer or this will not work.[/COLOR] Enjoy =D [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
RPC For all Updates 1.14+
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