This repository, and the contents in it, are not licensed and you can do whatever you want with it.
You are free to distribute without giving me credits, aswell as sell your mod.
However, please change the name from Serenity before distributing.
Make sure you download GSC Studio and set it up before continuing.
- Clone the repository to your GSC Studio projects folder
- Open GSC Studio, click Connect and choose Offline Mode
- Press Ctrl+O to open the project selector dialog and select Serenity
- if you cloned to a directory that isnt the projects folder, click Change location and find it
- Make changes to the mod, and when ready to compile, select Editor and then Export the project to a compiled script file
From here you can inject your mod to your platform (aslong as connection is not in Offline Mode).
I recommend using Plutonium for testing your mod quickly. Here is a guide on how to load your mod into Plutonium.
Just note that some features available on Plutonium are not available on Consoles, such as println
& assertmsg
.
Typically GSC menus are injected to 0x40300000
and then they overwrite the pointer of the script itself to go there.
You can do this in your own tool by doing the following (assuming you are using JRPC2):
// load your gsc into memory
Console.SetMemory(0x40300000, File.ReadAllBytes("/path-to/mod.gsc"));
// now tell the game where to find it
Console.WriteUInt32(0x831EBE78, 0x40300000); // 0x831EBE78 = _clientids.gsc