Links
- GSC Example Toolkit
GSC Script Doc (not all functions are here but most should work)website is down
Example Scripts
Contact me if you would like to add your scripts to the examples for people to test out
Information
GSCs are loaded through your t6r/data
folder and have to replace a GSC that is loaded through the game normally. The script you are "replacing" has to contain all of the functions that are in the GSC originally, so a GSC dump is handy. A common script to replace is _clientids.gsc
we will be using this as our example script.
Tutorial/Example
For Multiplayer
Since _clientids.gsc
is in the patch_mp
folder, we will be matching its folder structure up till the _clientids.gsc
file. Note: You do not need to match any files or folder structures past the script you are trying to load unless you need to load other scripts.
-
Locate your
t6r/data
folder and create amaps
folder, this is the first folder inpatch_mp
that we need to traverse down. -
Next, create a
mp
, thengametypes
folder insidemp
. That is it for the folders. -
Place your compiled
_clientids.gsc
file into the gametypes folder that you have just created. For this example, we will be using the example script found in the GSC Example Toolkit. -
When launching your server or game, you will know if all has gone well or not if the console prints
Parsing "maps/mp/gametypes/_clientids.gsc"...
. If it worked (the aforementioned text printed in the console), you may join your server or go into a custom / solo game like you normally would. -
Go into the game and if your script does what it was supposed to, (in this case,
You did it! Custom GSC has loaded!
would display on the HUD) then you did it!
For Zombies
-
Same as Multiplayer's step 1.
-
In step 2, rename
gametypes
togametypes_zm
. -
Continue as normal
Screenshots for Visual Help
Compiling GSC Scripts
-
Drag and drop your raw-format, decompiled script onto the compiler located in
GSC Compiler
. -
Remove any excess characters that the compiler adds to the file for it match the file we are replacing.
-
After that, complete the above tutorial to load your new GSC Script!
Screenshots for Visual Help