PS2User.tsc - widberg/fmtk GitHub Wiki

The script PS2User.tsc in the root game directory is able to be run on demand while the game is running by using a key combination when the EnableL2R2 debug flag is enabled. By default, this debug flag is disabled, but it can be toggled by running the command EnableL2R2. Being able to run a script quickly at any point in the game is a useful development feature, especially on consoles where running commands is tedious. This feature exists on every platform despite the file having PS2 in the name. This command is famously commented out in the usergame.tsc file in the root game directory among other debug commands. The part of the usergame.tsc file that contains this command is as follows:

// !!!!! To be removed for final submission !!!!!
//EnableL2R2
//EnableDebugViewport
//epm on
//adhud

//cheatcode
EnableDebugTools
// **********************************************

The PS2User.tsc file does not exist but it can be created manually and the game will load it when necessary. To run the script on PC one must hold down the Shift (Right), Shift (Left), Control (Right), and Control (Left) keys at the same time. My keyboard is unable to hold down all four of these keys at the same time; the Key-Test Keyboard test online tool can be used to test if your keyboard can hold down these keys simultaneously. On consoles, it is presumed that one must hold down the trigger buttons on the controller due to the command name.