BaSs_HaXoR

F# Real Time Modding Source Code

Mar 27th, 2015
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 2.41 KB | None | 0 0
  1. //------------------------------------------------//
  2. //-     /----------//----------//-----------/    -//
  3. //-    /  SOURCE CODE MADE BY: BaSs_HaXoR  /     -//
  4. //-   /          // 03/27/15 //           /      -//
  5. //-  /----------//----------//-----------/       -//
  6. //------------------------------------------------//
  7.  
  8. // NGU Thread (With Solution Download): http://adf.ly/1BvDlT
  9.  
  10. //------------------------------------------------------------------------------------------------//
  11. //Include Comments in source to help understand.
  12. //Include PS3Lib into your project (C# lib)
  13. //Make sure CCAPI 2.50/2.60 + PS3Lib 4.4(portable) is in the same directory as application.
  14. //------------------------------------------------------------------------------------------------//
  15. // Learn more about F# at http://fsharp.net
  16. // See the 'F# Tutorial' project for more help.
  17. //------------------------------------------------------------------------------------------------//
  18.  
  19. #light
  20. open PS3Lib;
  21. open System;
  22. [<EntryPoint>]
  23. let main argv =
  24.     printfn "Please input ipaddress: "
  25.     let getStr = Console.ReadLine()
  26.     let setNameAddr : uint32 = 0x1BBBC2Cu //Gamertag address for MW3 (Change accordingly) added 'u' to make it a Uint32 - Unsigned 32 bit int
  27.     let ignore _ = () //This will take any type and return nothing (void) - same as: |> ignore
  28.     let PS3 = PS3Lib.PS3API(SelectAPI.ControlConsole) //Declares PS3 as new instance of the derived PS3.PS3API class
  29.     PS3.CCAPI.ConnectTarget(getStr) |> ignore //|> ignore ignores
  30.     Console.WriteLine "Connection Success!"
  31.     PS3.CCAPI.AttachProcess() |> ignore //or use the let ignore _ = () to make it return equal to nothing.
  32.     Console.WriteLine "Attaching Success!"
  33.     printfn "Please input Name to change to: "
  34.     let x = getStr //sets (string) value of x, to user input from Console.ReadLine()
  35.     PS3.Extension.WriteString(setNameAddr, x)  //Writes the string to game
  36.     printfn "Now it will setMemory via a byte array, press any key to continue..." //
  37.     PS3.SetMemory(setNameAddr, [|94uy; 50uy; 66uy; 97uy; 83uy; 115uy; 95uy; 72uy; 97uy; 88uy; 111uy; 82uy|]) //SetMemory (with byte array) - It's in decimal value of: ^2BaSs_HaXoR
  38.     PS3.CCAPI.RingBuzzer(PS3Lib.CCAPI.BuzzerMode.Double) // this gives me errors if put before end of code, i don't know why. Look into making it work for unit/int.
  39.    // Console.WriteLine "Done. Everything was successfull!"
  40. //BaSs_HaXoR
Add Comment
Please, Sign In to add comment