File Management
Standard options for handling GPC and GPJ files.
File Types:
.GPC is the scripting language for all Cronus devices. .GPJ is a project file that includes a collection of GPC scripts.
To create a new file, select File 👉 New and a sub-menu will open offering a number of options including templates of sample scripts to illustrate some basic structures of the GPC programming language.
As the name implies, this option creates a blank file that opens as a new TAB in the Compiler window.
Create a blank GPC Script by generating the main function which opens as a new TAB in the Compiler window.
Create a sample Remap GPC Script which opens as a new TAB in the Compiler window.
Create a sample Combo Rapid Fire GPC Script which opens as a new TAB in the Compiler window.
To open a GPC Script or GPJ Project file, select File 👉 Open (CTRL + O). An 'Open Script or Project' dialog will appear and you can select one or multiple files to open. Each file will be opened in an individual compiler tab, if a file was already opened, its corresponding compiler tab will auto select.
All opened GPC scripts can be saved into a single project file (GPJ). A project file is an easy way to recall the currently opened GPC files. To add a gpc file to a project, an existing project must first be open in the compiler (see image below).
Select File 👉 Add File To Project and a 'Add a File To The Current Project' dialog will appear asking you to select a .gpc script file. You can also click on the 'Add File' button.
To save a GPC Script file, select File 👉 Save (CTRL + S). If the script has not been previously saved, a 'Save Script As' dialog will appear asking you to choose a destination and filename. If the file exists, it will be overwritten.
Important: Make sure you select the TAB or click inside the compiler window to focus on the script you wish to save. If the script is not selected, the Save & Compile options will not be available.
Info: To indicate that a GPC file was changed and has not yet been saved, an asterisk(*) will be displayed in its tab, after the filename.
To save an existing GPC Script or GPJ Project file to a different file or location, select File 👉 Save As... A 'Save Script As' dialog will appear asking you to choose a destination and filename.
To save all open GPC Scripts, select File 👉 Save All. A 'Save Script As' dialog will appear asking you to choose a destination and filename for each of the scripts that are open in Compiler.
All opened GPC scripts can be saved into a single project file (GPJ). A project file is an easy way to recall the currently opened GPC files.
To save a GPJ Project file, first, make sure all the scripts you wish to include in the project are saved, then select File 👉 Save Project. If the project has not been previously saved, a 'Save Project As' dialog will appear asking you to choose a destination and filename. If the file exists, it will be overwritten.
To save an existing GPJ Project file to a different file or location, select File 👉 Save Project As... A 'Save Project As' dialog will appear asking you to choose a destination and filename.
To close a GPC Script, highlight the TAB in the Compiler that you wish to close and select File 👉 CLOSE. You can also click on the X in the right corner of the TAB.
If you have any unsaved data in a GPC file, Zen Studio will always ask if you'd like to save those changes before closing any file.
To close all files in the Compiler, select File 👉 Close All.
To close the open project file in the Compiler, select File 👉 Close Project.
Zen Studio keeps a list of the 10 most recently opened files in the File 👉 Recent Files menu, so you can reopen them quickly by simply clicking on the file name.
Zen Studio requires full Windows Administrator permissions. If a Windows install has a restricted or corrupt profile, it can prevent the software from functioning correctly. A solution to this is to open Zen Studio in Admin Mode, this is easily done by selecting File 👉 Relaunch as Admin
If you have any open TABS in the Compiler, you will get a warning message to close those TABS.
If Zen Studio has started in Admin Mode successfully, you will see [ADMIN] displayed in the Title Bar.
Close the Zen Studio Software. 😜