Post: F# RTM source code (Customizable)
08-19-2015, 03:20 AM #1
HeroWin
Java Developer
(adsbygoogle = window.adsbygoogle || []).push({});
    #light
open PS3Lib;
open System;
[<EntryPoint>]
let main argv =
printfn "Please input Ps3 IP: "
let getStr = Console.ReadLine()
let setNameAddr : uint32 = //unit 32 left blank for custom offsets (users choice) added 'u' to make it a Uint32 - Unsigned 32 bit int
let ignore _ = () //This will take any type and return nothing (void) - same as: |> ignore
let PS3 = PS3Lib.PS3API(SelectAPI.ControlConsole) //Declares PS3 as new instance of the derived PS3.PS3API class
PS3.CCAPI.ConnectTarget(getStr) |> ignore //|> ignore ignores
Console.WriteLine "Connection Success!"
PS3.CCAPI.AttachProcess() |> ignore //or use the let ignore _ = () to make it return equal to nothing.
Console.WriteLine "Attaching Success!"
printfn "Please input Name to change to: "
let x = getStr //sets (string) value of x, to user input from Console.ReadLine()
PS3.Extension.WriteString(setNameAddr, x) //Writes the string to game
printfn "Now it will setMemory via a byte array, press any key to continue..." //
PS3.SetMemory(setNameAddr, [|94uy; 50uy; 66uy; 97uy; 83uy; 115uy; 95uy; 72uy; 97uy; 88uy; 111uy; 82uy|]) //SetMemory (with byte array) -
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.
// Console.WriteLine "Done. Everything was successfull!"
08-19-2015, 07:05 AM #2
Default Avatar
Kas
Guest
Originally posted by HeroWin View Post
    #light
open PS3Lib;
open System;
[<EntryPoint>]
let main argv =
printfn "Please input Ps3 IP: "
let getStr = Console.ReadLine()
let setNameAddr : uint32 = //unit 32 left blank for custom offsets (users choice) added 'u' to make it a Uint32 - Unsigned 32 bit int
let ignore _ = () //This will take any type and return nothing (void) - same as: |> ignore
let PS3 = PS3Lib.PS3API(SelectAPI.ControlConsole) //Declares PS3 as new instance of the derived PS3.PS3API class
PS3.CCAPI.ConnectTarget(getStr) |> ignore //|> ignore ignores
Console.WriteLine "Connection Success!"
PS3.CCAPI.AttachProcess() |> ignore //or use the let ignore _ = () to make it return equal to nothing.
Console.WriteLine "Attaching Success!"
printfn "Please input Name to change to: "
let x = getStr //sets (string) value of x, to user input from Console.ReadLine()
PS3.Extension.WriteString(setNameAddr, x) //Writes the string to game
printfn "Now it will setMemory via a byte array, press any key to continue..." //
PS3.SetMemory(setNameAddr, [|94uy; 50uy; 66uy; 97uy; 83uy; 115uy; 95uy; 72uy; 97uy; 88uy; 111uy; 82uy|]) //SetMemory (with byte array) -
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.
// Console.WriteLine "Done. Everything was successfull!"


Give a little description of what this is...
08-20-2015, 03:20 AM #3
NickBeHaxing
Stoner Zone
Originally posted by HeroWin View Post
    #light
open PS3Lib;
open System;
[<EntryPoint>]
let main argv =
printfn "Please input Ps3 IP: "
let getStr = Console.ReadLine()
let setNameAddr : uint32 = //unit 32 left blank for custom offsets (users choice) added 'u' to make it a Uint32 - Unsigned 32 bit int
let ignore _ = () //This will take any type and return nothing (void) - same as: |> ignore
let PS3 = PS3Lib.PS3API(SelectAPI.ControlConsole) //Declares PS3 as new instance of the derived PS3.PS3API class
PS3.CCAPI.ConnectTarget(getStr) |> ignore //|> ignore ignores
Console.WriteLine "Connection Success!"
PS3.CCAPI.AttachProcess() |> ignore //or use the let ignore _ = () to make it return equal to nothing.
Console.WriteLine "Attaching Success!"
printfn "Please input Name to change to: "
let x = getStr //sets (string) value of x, to user input from Console.ReadLine()
PS3.Extension.WriteString(setNameAddr, x) //Writes the string to game
printfn "Now it will setMemory via a byte array, press any key to continue..." //
PS3.SetMemory(setNameAddr, [|94uy; 50uy; 66uy; 97uy; 83uy; 115uy; 95uy; 72uy; 97uy; 88uy; 111uy; 82uy|]) //SetMemory (with byte array) -
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.
// Console.WriteLine "Done. Everything was successfull!"


already released here You must login or register to view this content.
08-20-2015, 07:23 PM #4
Scouse Power
Knowledge is power
Originally posted by Kas View Post
Give a little description of what this is...


It's just connecting and setting memory in F# rather than the traditional choice of language... C#. F# is a shit language and very few people use it:P.
08-20-2015, 07:39 PM #5
Default Avatar
Kas
Guest
Originally posted by StackOverflow
It's just connecting and setting memory in F# rather than the traditional choice of language... C#. F# is a shit language and very few people use it:P.


Fair enough, I don't really care I was just asking for other people.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo