Post: F# Real Time Modding Source Code
03-27-2015, 08:35 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Just incase someone wants a little incentive to learn the (imo) horrible language.
Here you go.

Download: You must login or register to view this content.

Source:

    
//------------------------------------------------//
//- /----------//----------//-----------/ -//
//- / SOURCE CODE MADE BY: BaSs_HaXoR / -//
//- / // 03/27/15 // / -//
//- /----------//----------//-----------/ -//
//------------------------------------------------//

//------------------------------------------------------------------------------------------------//
//Include Comments in source to help understand.
//Include PS3Lib into your project (C# lib)
//Make sure CCAPI 2.50/2.60 + PS3Lib 4.4(portable) is in the same directory as application.
//------------------------------------------------------------------------------------------------//
// Learn more about F# at https://fsharp.net
// See the 'F# Tutorial' project for more help.
//------------------------------------------------------------------------------------------------//

#light
open PS3Lib;
open System;
[<EntryPoint>]
let main argv =
printfn "Please input ipaddress: "
let getStr = Console.ReadLine()
let setNameAddr : uint32 = 0x1BBBC2Cu //Gamertag address for MW3 (Change accordingly) 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) - It's in decimal value of: ^2BaSs_HaXoR
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!"
//BaSs_HaXoR


Wasn't too challenging, but just was to help those who are interested in learning a new language or just curious.
pastebin: You must login or register to view this content.
Last edited by BaSs_HaXoR ; 03-29-2015 at 05:21 PM.

The following 14 users say thank you to BaSs_HaXoR for this useful post:

Boliberrys, Dan Dactyl, Eddie Mac, FusionIsDaName, homeedog, Kryptus, basshead4ever, Mezzums, Norway-_-1999, John, Pianist Prodigy, Pyro577, Smooth, xMrJR
03-27-2015, 10:52 AM #2
Kronoaxis
You talkin to me?
You should make an ebook of this. :P
03-28-2015, 04:14 AM #3
Originally posted by Kronoaxis View Post
You should make an ebook of this. :P

Eh, Idk about all that :P
That's not ebook worthy imo. F# is aiight, but definitely not a primary language to get to know. I just like knowing the basics of all languages, so when I decide to go advanced in one of them, I have an understanding.

The following user thanked BaSs_HaXoR for this useful post:

Kronoaxis
03-28-2015, 05:33 AM #4
ILY BaSs <3
03-28-2015, 05:56 AM #5
Eddie Mac
At least I can fight
Eww E# is the way to go.

The following user thanked Eddie Mac for this useful post:

Pwnaggge
03-28-2015, 11:36 AM #6
Pwnaggge
I’m too L33T
Originally posted by Eddie
Eww E# is the way to go.


does it even exist?
03-28-2015, 12:44 PM #7
Eddie Mac
At least I can fight
Originally posted by Pwnaggge View Post
does it even exist?


Yeah it does, and i am only joking with BaSs :p

The following user thanked Eddie Mac for this useful post:

BaSs_HaXoR
03-28-2015, 10:10 PM #8
Pwnaggge
I’m too L33T
Originally posted by Eddie
Yeah it does, and i am only joking with BaSs :p


I know Happy
Last edited by Pwnaggge ; 03-29-2015 at 05:25 AM.

The following 2 users say thank you to Pwnaggge for this useful post:

BaSs_HaXoR, Eddie Mac
04-06-2015, 09:02 PM #9
Smooth
< ^ > < ^ >
Originally posted by HaXoR View Post
Just incase someone wants a little incentive to learn the (imo) horrible language.
Here you go.

Download: You must login or register to view this content.

Source:

    
//------------------------------------------------//
//- /----------//----------//-----------/ -//
//- / SOURCE CODE MADE BY: BaSs_HaXoR / -//
//- / // 03/27/15 // / -//
//- /----------//----------//-----------/ -//
//------------------------------------------------//

//------------------------------------------------------------------------------------------------//
//Include Comments in source to help understand.
//Include PS3Lib into your project (C# lib)
//Make sure CCAPI 2.50/2.60 + PS3Lib 4.4(portable) is in the same directory as application.
//------------------------------------------------------------------------------------------------//
// Learn more about F# at https://fsharp.net
// See the 'F# Tutorial' project for more help.
//------------------------------------------------------------------------------------------------//

#light
open PS3Lib;
open System;
[<EntryPoint>]
let main argv =
printfn "Please input ipaddress: "
let getStr = Console.ReadLine()
let setNameAddr : uint32 = 0x1BBBC2Cu //Gamertag address for MW3 (Change accordingly) 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) - It's in decimal value of: ^2BaSs_HaXoR
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!"
//BaSs_HaXoR


Wasn't too challenging, but just was to help those who are interested in learning a new language or just curious.
pastebin: You must login or register to view this content.


Don't know why this was on page 5 of this section... first thing in F# ive seen here good shit bass :y:
04-06-2015, 09:33 PM #10
F# looks horrible, what's it's uses?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo