PS3Lib.GetPs3Api.PS3TMAPI_NET();
PS3Lib.GetPs3Api.PS3TMAPI_NET();
[B]using[/B] PS3Lib;
You must create an instance , example just after the partial class , then like this :
[B]PS3API[/B] DEX = [B]new PS3API();[/B]
[B]PS3IO[/B] PS3IO = [B]new PS3IO();[/B]
DEX.ConnectDebug("iMCSxDev");
DEX.ConnectDebug(); // This Connect the Target by default (0)
OR
DEX.ConnectDebug(5); This Connect the target 5.
internal static Assembly LoadApi;
public static Assembly PS3TMAPI_NET()
{
AppDomain.CurrentDomain.AssemblyResolve += (s, e) =>
{
var filename = new AssemblyName(e.Name).Name;
var x = string.Format(@"C:\Program Files\SN Systems\PS3\bin\ps3tmapi_net.dll", filename);
var x64 = string.Format(@"C:\Program Files (x64)\SN Systems\PS3\bin\ps3tmapi_net.dll", filename);
var x86 = string.Format(@"C:\Program Files (x86)\SN Systems\PS3\bin\ps3tmapi_net.dll", filename);
if (System.IO.File.Exists(x))
LoadApi = Assembly.LoadFile(x);
else
{
if (System.IO.File.Exists(x64))
LoadApi = Assembly.LoadFile(x64);
else
{
if (System.IO.File.Exists(x86))
LoadApi = Assembly.LoadFile(x86);
else
{
MessageBox.Show("Target Manager API cannot be founded to:
" + x86, "Error with PS3 API!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
return LoadApi;
};
return LoadApi;
}
// Extension Propertie
float Jump = DEX.Extension.ReadFloat(0x0019780); // MW3 Offset , "Jump" has now the value 78. (If default)
string HostName = DEX.Extension.ReadString(0x01BBBC2C); // This will read your PSN for MW3...
// Extension SCE
uint CurrentProcess = DEX.SCE.ProcessID(); // Get the latest process attached...
using PS3Lib.IO;
// You must create an instance too , already said before...
// Put this into a function , this will set the noclip for MW3.
EndianIO IO = new EndianIO(PS3IO.StreamPS3(DEX), PS3Lib.IO.EndianType.BigEndian);
IO.Open();
IO.In.BaseStream.Position = 0x0110A280 + 0x35fc;
IO.Out.Write(0x00000001);
// Other Example , write noclip + redboxes
EndianIO IO = new EndianIO(PS3IO.StreamPS3(DEX), PS3Lib.IO.EndianType.BigEndian);
IO.Open();
IO.In.BaseStream.Position = 0x0110a280 + 0x35fc;
IO.Out.Write(0x00000001);
IO.In.BaseStream.Position = 0x0110a280 + 0x13;
IO.Out.Write((byte)0x10);
PS3Lib.GetPs3Api.PS3TMAPI_NET();
PS3Lib.GetPs3Api.PS3TMAPI_NET();
[B]using[/B] PS3Lib;
You must create an instance , example just after the partial class , then like this :
[B]PS3API[/B] DEX = [B]new PS3API();[/B]
[B]PS3IO[/B] PS3IO = [B]new PS3IO();[/B]
DEX.ConnectDebug("iMCSxDev");
DEX.ConnectDebug(); // This Connect the Target by default (0)
OR
DEX.ConnectDebug(5); This Connect the target 5.
internal static Assembly LoadApi;
public static Assembly PS3TMAPI_NET()
{
AppDomain.CurrentDomain.AssemblyResolve += (s, e) =>
{
var filename = new AssemblyName(e.Name).Name;
var x = string.Format(@"C:\Program Files\SN Systems\PS3\bin\ps3tmapi_net.dll", filename);
var x64 = string.Format(@"C:\Program Files (x64)\SN Systems\PS3\bin\ps3tmapi_net.dll", filename);
var x86 = string.Format(@"C:\Program Files (x86)\SN Systems\PS3\bin\ps3tmapi_net.dll", filename);
if (System.IO.File.Exists(x))
LoadApi = Assembly.LoadFile(x);
else
{
if (System.IO.File.Exists(x64))
LoadApi = Assembly.LoadFile(x64);
else
{
if (System.IO.File.Exists(x86))
LoadApi = Assembly.LoadFile(x86);
else
{
MessageBox.Show("Target Manager API cannot be founded to:
" + x86, "Error with PS3 API!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
return LoadApi;
};
return LoadApi;
}
// Extension Propertie
float Jump = DEX.Extension.ReadFloat(0x0019780); // MW3 Offset , "Jump" has now the value 78. (If default)
string HostName = DEX.Extension.ReadString(0x01BBBC2C); // This will read your PSN for MW3...
// Extension SCE
uint CurrentProcess = DEX.SCE.ProcessID(); // Get the latest process attached...
using PS3Lib.IO;
// You must create an instance too , already said before...
// Put this into a function , this will set the noclip for MW3.
EndianIO IO = new EndianIO(PS3IO.StreamPS3(DEX), PS3Lib.IO.EndianType.BigEndian);
IO.Open();
IO.In.BaseStream.Position = 0x0110A280 + 0x35fc;
IO.Out.Write(0x00000001);
// Other Example , write noclip + redboxes
EndianIO IO = new EndianIO(PS3IO.StreamPS3(DEX), PS3Lib.IO.EndianType.BigEndian);
IO.Open();
IO.In.BaseStream.Position = 0x0110a280 + 0x35fc;
IO.Out.Write(0x00000001);
IO.In.BaseStream.Position = 0x0110a280 + 0x13;
IO.Out.Write((byte)0x10);
int target;
bool bForce;
private void button1_Click(object sender, EventArgs e)
{
PS3TMAPI.PowerOff(target, bForce);
}
PS3TMAPI.ResetParameter resetParameter;
private void button2_Click(object sender, EventArgs e)
{
PS3TMAPI.Reset(target, resetParameter);
}
PS3TMAPI.ResetParameter resetParameter;
private void button2_Click(object sender, EventArgs e)
{
DEX.ResetToXMB(resetParameter);
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.