-
Notifications
You must be signed in to change notification settings - Fork 9
EditorCommandLineOptions
Running AGS Editor from the command line can be useful for automation purposes.
We will use cmd.exe
here, but you can call AGS Editor from other command lines, though they may require special handling.
NOTE: If you are using the MSYS2 bash prompt on Windows, remember that /
command flags need two slashes. (e.g. use AGSEditor.exe //compile my-project/Game.agf
).
You can open the Editor in the command line by simply calling its executable and passing the path to it.
C:\path\to\AGSEditor.exe
We won't use the full path in the rest of the text, but you still need to either pass it, put your AGS Editor folder in your system PATH, or change the directory to it before.
You can also open the editor in a specific project by passing your project's Game.agf
location.
AGSEditor.exe path\to\Game.agf
As an example, in Windows, you can create a shortcut for the AGS Editor and edit its properties to put your Game.agf
there so you can create a shortcut that opens AGS Editor in your project.
This flag will load the AGS Editor in your project, compile it, and exit.
AGSEditor.exe /compile path\to\Game.agf
Outputs that would normally be a message box or in the output panel will instead be printed in the command line. A successful compilation will have exit code 0, and any error will give a non-zero exit code.
This option can be used for automation purposes, you could use it to build your AGS Game in a Continuous Integration pipeline.
Getting Started in AGS
Editor
- New Game templates
- Editor Preferences
- General Settings
- Default Setup
- Colours Editor
- Room Editor
- Character Editor
- Cursor Editor
- Dialog Editor
- Font Preview
- GUI Editor
- Inventory Items Editor
- View Editor
- Sprite Manager
- Music and sound
- Voice speech
- Script Modules
- System limits
- Log Panel
- Plugins
- Other Features
Engine
Scripting
- Scripting Tutorial
- Scripting Language
-
Scripting API
- Script API Overview
- Standard Constants
- Standard Enumerated Types
- Standard Types
- Game variables
- Global arrays
- Global event handlers
- repeatedly_execute / repeatedly_execute_always
- Custom dialog options rendering
- Global functions: general
- Global functions: message display
- Global functions: multimedia actions
- Global functions: palette operations
- Global functions: room actions
- Global functions: screen effects
- Global functions: wait
- AudioChannel functions and properties
- AudioClip functions and properties
- Camera functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- Dictionary functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game functions and properties
- GUI functions and properties
- GUI control functions and properties
- GUI Button functions and properties
- GUI InvWindow functions and properties
- GUI Label functions and properties
- GUI List Box functions and properties
- GUI Slider properties
- GUI Text Box functions and properties
- Hotspot functions and properties
- Inventory item functions and properties
- Maths functions and properties
- Mouse functions and properties
- Object functions and properties
- Overlay functions and properties
- Parser functions
- Region functions and properties
- Room functions and properties
- Screen functions and properties
- Set functions and properties
- Speech functions and properties
- String functions
- System functions and properties
- TextWindowGUI functions and properties
- ViewFrame functions and properties
- Viewport functions and properties
- Obsolete Script API
- Event Types
- Key code table
- Audio in script
Legal Notice
Getting in touch
Misc