For all the people eager to learn.
TOOLS
You must login or register to view this content. To access our update.img
You must login or register to view this content. To edit Uncompressed compile scripts
You must login or register to view this content. To properly compile C for Ps3
You must login or register to view this content. We will write our C files here
You must login or register to view this content.
SC
TS
You must login or register to view this content. This is the script we will try to run.
Get the main.sco
First, you must retrieve the script.img. Found here(on your PS3): hdd/game/BLXS#####/USRDIR
Use OpenIV to retrieve the main.sco
Create the HOOK
We need OpCode that will launch our script.
How to create this OpCode?
Launch Notepad++, lets write our hook in C
#include <natives.h>
#include <common.h>
#include <strings.h>
#include <types.h>
#include <consts.h>
#include "functions.c"
void main(void)
{
REQUEST_SC
T("1_vehiclespawner");
while (!HAS_SC
T_LOADED("1_vehiclespawner"))
{
WAIT(0);
}
START_NEW_SC
T("1_vehiclespawner", 1024);
MARK_SC
T_AS_NO_LONGER_NEEDED("1_vehiclespawner");
}
Save that file as "myhook.c"
Now Open command prompt, and compile it like this.
C:\PathToFolder\scocl_old.exe 0x7DD1E61C "C:\PathToFolder\myhook.c" "C:\PathToFolder\myhookcompiled.sco"
Editing your Hook to work in main script OpCode
- Open the myhookcompiled.sco in ScoToolBox, make sure to select OLD NATIVES and Basic Editor.
- Everywhere you see the word Label## insert 9999 before the number.
- So, Label24 becomes Label999924
Now, insert
:Label999900
@ the very start of the file (replace the FNBEGIN)
Keep this code open
Inserting your hook into main script OpCode
Open the main.sco in another instance of ScoToolBox, make sure to select OLD NATIVES and Basic Editor.
Copy and paste the edited code from myhookcompiled.sco onto the end of the main.sco
Now, to call your hook, insert
Call @Label999900
Where-ever you would like it to be called. (Try the second line, after the FNBEGIN)
Save your new main.sco
It will be saved in a decoded format, so make sure to re-open it with ScoToolBox and Process it again(which will encode it)
Almost Done
- Place your new edited encoded main.sco & your 1_vehiclespawner.sco into your update.img
- Place that in the relative folder on your ps3
- Boot up
- ?????
- Profit
Don't share out your edited patches, point them to a tutorial.
Its better to learn and understand than run around 1337 like a child of millionaires, oblivious to hard work