ScriptGPCGPC reference

Tools

The editor, and what to do with generated code

Zen Studio is the editor that compiles and programs. You can type the same text in any editor that is kind to braces. Syntax highlighting does not mean the identifiers are real. The compiler is the check.

Generated code

A model can draft a combo, a wait, and a get_val check. It also invents button names, puts wait in the wrong block, and offers a routine that claims to see the game. Treat the draft as a stranger's file. Compile it. If it compiles, run it on a controller with the console somewhere you can miss on purpose. Check that a button you did not mean to override still passes through. Delete any line you cannot explain.

Libraries and include files exist in the wider GPC world. Use one only when you can open it and read it. A downloaded pack is still code that runs between you and the console.

Studio is the editor that can program the slot

Zen Studio is where you compile and write the slot. You can draft in any text editor, but the compile that matters is Studio's, in a browser it accepts: Chrome, Edge, or Opera. A phone is not that editor. Safari and Firefox are the ones that fail the connection and get blamed on the code.

A model can draft a combo. It cannot see your Zen, and it will invent button names and wait values that look confident. Paste the draft into Studio, compile, and throw away anything that does not compile. Do not flash a generated file into a game because the paragraph above it sounded sure. The timed-hold sketch on this site is labeled as a teaching number for that reason.

Includes and libraries are just more source the compiler has to see. If you were told to drop in a header you do not have, the compile will fail on the include line. That is an error-page problem, not a missing subscription.

GitHub hosts plenty of GPC. A repository is not a review. Read it, compile it, and keep your own copy of anything you program, because the slot will not hand the source back.

A draft still has to compile

Write anywhere, compile in Studio, in Chrome, Edge, or Opera. A model can suggest a combo and can also invent a button constant. Paste, compile, delete what fails. Do not flash a generated file because the comment above it sounded confident. Includes fail on the include line when the header is not there. That is an error, not a missing subscription. A GitHub file is source you still have to read. The slot will not give the source back, so keep your own copy.