Shape
Write, compile, and load
Start with three sections. init runs once. main runs over and over while the slot is active. A combo is a sequence you start from main, usually because it needs wait, and main itself should not sit inside a long wait.
int hold;
init {
hold = 40;
}
main {
if (get_val(PS4_R2)) {
combo_run(tap);
}
}
combo tap {
set_val(PS4_R2, 100);
wait(hold);
set_val(PS4_R2, 0);
wait(40);
}That sketch is not a recoil script and not a jumper. It shows the shape: a variable, a loop, a combo, a wait. Button names follow the output you are compiling for. PS4_R2 is a PlayStation name. An Xbox build uses the Xbox identifiers the compiler accepts. Mixing them is a common first error.
Compile
Zen Studio's compiler is the one that matters. Open the file, compile, and read the line number it prints. A successful compile produces the binary the device will accept. An editor that only highlights text has not compiled anything.
Load
Program the compiled file to a slot and leave the USB cable connected until Studio reports the write is done. Eight slots is the usual capacity. The slot you then select on the device is the one the console runs. Pulling the cable early is not a compile error. It is a half-written slot.
From a blank file to a slot
Open Studio, start a file, and give it init and main even if main is empty. Compile. An empty main that compiles tells you the toolchain works before you add a combo. Then add one combo and a combo_run in main, compile again, and read the first error if there is one. Fix that line. Do not add a second feature on a file that does not compile.
Load means program a slot and confirm the OLED shows the name you just wrote. Unplug nothing until Studio says the write finished. Then move the Zen to the console with the controller in A1 and the console cable on the CONSOLE port. Hold L2 or LT and press Options or Menu if your script opens a menu that way. Many sketches have no menu. They just run.
Save the source. The slot holds the compiled result, not an editor you can reopen on the television. When you want to change a wait, you change the source, compile, and program the slot again.
A Titan Two file is not a Zen file with a new extension. People ask for a converter. Treat that as a rewrite in GPC, not a rename, and do not assume the button constants match.