Skip to content

Preferences

AlexisDrogoul edited this page Nov 23, 2026 · 38 revisions

Preferences

GAMA preferences control the application interface, editor, experiment execution, displays, network access and data handling. In GAMA 2026-11, the Preferences view has six tabs: Interface, Editors, Execution, Displays, Network and Data and Operators. Each tab groups related settings. A preference row shows its label and control; when a preference is exposed to GAML, its context menu gives the variable name.

By default, GAMA stores preferences for the current operating-system user. They are shared between that user's workspaces and GAMA installations. To use a store scoped to one GAMA installation instead, start GAMA with -Duse_global_preference_store=false. The two stores are separate; changing this option does not copy existing values between them.

Open and manage preferences

On Linux and Windows, open Support > Preferences. On macOS, open the GAMA application menu and choose Settings... (Cmd+,). Both routes open the same GAMA Preferences view.

The Support menu on Linux and Windows with Preferences.

The buttons at the bottom of the view provide these actions:

  • Revert to defaults restores default values for all preferences and asks before restarting the platform.
  • Advanced... opens the Eclipse preferences described in Advanced preferences.
  • Import... opens a file chooser for a preferences file.
  • Export to GAML saves a GAML model containing preference assignments.
  • Export to preferences writes stored preference values to a .prefs file.
  • Cancel discards unsaved changes; Save applies them.

Although both actions use the .prefs extension, Import... reads an XML preferences file while Export to preferences writes Java Properties text (key=value). The exported file therefore cannot be re-imported as a backup. To apply exposed preference values during a simulation, use Export to GAML and run the generated Set __PREFS__ experiment; GAMA restores the previous values when the experiment closes.

The confirmation shown when restoring default preferences.

Set preferences from GAML or at startup

Preferences exposed to GAML can be read or assigned through the gama species. The context menu of a preference row shows its variable name. For example, an experiment can control whether monitors appear in the Parameters view:

experiment Demo target: sim {
  init {
    gama.pref_monitors_in_parameters <- false;
  }
}

An assignment made by an experiment is temporary: GAMA restores the previous value when the experiment closes. The pref_monitors_in_parameters preference is enabled by default, so monitors added from the interface appear in the Parameters view.

A JVM system property can set a preference for one launch. For example, -Dpref_monitors_in_parameters=false disables that behavior for the started platform. A system property takes precedence over values set in the Preferences view or by a model and does not change the stored preference.

Interface

The Interface tab groups settings for startup, workspace handling, the console, simulations and theme. The controls include whether GAMA remembers its window size, which prompts appear when opening or updating workspaces, console limits, simulation colors and theme behavior.

The complete Preferences window with the Interface tab selected.

The Theme group is part of the Interface tab. It can follow the operating-system theme or use a selected light or dark theme. Custom theme backgrounds and theme selection require a restart.

Editors

The Editors tab contains options for saving editors, formatting on save, editor behavior when switching perspectives, validation timing and how experiment launch controls are displayed. Its syntax-highlighting groups let users choose a configuration and edit colors for light and dark themes.

The complete Preferences window with the Editors tab selected.

Syntax highlighting configurations

In the Editors tab, Syntax highlighting configurations offers GAMA 2026 (the default), GAMA 2025, Swiss, Warm Amber and Mineral. Each syntax category has a color and independent Bold and Italic controls for light and dark themes. Editor backgrounds are also stored per theme; font family and size still follow the editor font. Existing custom syntax colors are preserved.

Load... stages a configuration for both themes. Save as... exports both themes, including unsaved edits, to a shareable .gama-syntax file named after the chosen filename. The preferences dialog's Save applies the staged configuration; Cancel discards it, but does not undo an explicitly exported file. Restore a custom configuration with Load....

Configuration files are Java properties. Current exports use version=2, a name, light.background and dark.background RGB values, and one entry per category and theme. For example, light.keyword=8e44ad,true,false specifies an RGB hex color, bold and italic. Both themes and all categories are required; invalid files are rejected before settings are changed. Version 1 configurations remain readable, using the older default backgrounds when no background is supplied.

Bundled presets use the same format as exported configurations and live in gama.ui.shared/syntax/. See Vintage color palettes for Swiss, Warm Amber and Mineral simulation/chart palettes, editor configurations and paper-and-ink examples.

Execution

The Execution tab groups preferences for experiments, parameters, tests, memory, runtime errors and parallelism. The Parameters group includes Display monitors in the parameters view; when enabled, monitors appear in the Parameters view. See Inspectors and monitors for the dedicated Monitors view and monitor controls.

The complete Preferences window with the Execution tab selected.

Displays

The Displays tab contains default settings for display layouts and rendering, charts, agent appearance and OpenGL displays. A display can also override some defaults through its GAML declaration or its own controls.

The complete Preferences window with the Displays tab selected.

Network

The Network tab covers GAMA server mode, the browser used for web links and HTTP connection behavior, including timeouts and retries. GAMA server mode is disabled by default. To enable the desktop server, select Enable GAMA server mode in the Server mode group; set the startup preference from Gama.ini with -Dpref_enable_server=true when it should be enabled for a particular launch. See Headless Server for the desktop and headless server interfaces.

The complete Preferences window with the Network tab selected; the installation-specific log path is redacted.

Data and Operators

The Data and Operators tab groups settings for random-number generation, GIS coordinate reference systems, CSV and JSON handling, spatial queries, GIS caching, file input/output and dates.

The complete Preferences window with the Data and Operators tab selected.

Manage preferences in GAML

Use Export to GAML to save a model containing preference assignments. The export includes only preferences exposed to GAML; hidden or non-GAML preferences are excluded. Its generated model can display their current values or assign them while the corresponding experiment runs. GAMA restores the previous values when that experiment closes.

Advanced preferences

Advanced... opens the Eclipse preferences contributed by the platform and installed plugins. Available pages depend on the installation. These settings are separate from the GAMA-specific tabs above.

The Eclipse preferences opened from GAMA.

  1. About GAMA
  2. What's new (Changelog)
  3. Migration Guide (2025-06 → 2026-11)
  1. Installation and Launching
    1. Installation
    2. Launching GAMA
    3. Updating GAMA
    4. Installing Plugins
  2. Workspace, Projects and Models
    1. Navigating in the Workspace
    2. Changing Workspace
    3. Importing Models
  3. Editing Models
    1. GAML Editor (Generalities)
    2. GAML Editor Tools
    3. Validation of Models
  4. Running Experiments
    1. Launching Experiments
    2. Experiments User interface
    3. Controls of experiments
    4. Parameters view
    5. Inspectors and monitors
    6. Displays
    7. Batch Specific UI
    8. Errors View
    9. Experiment agent: GAML controls and status
    10. Interactive console
  5. Running Headless
    1. Getting Started
    2. Headless Legacy
    3. Headless Batch
  6. Exporting models and projects
    1. Playable models (.gamx)
    2. Editable project archives (.gamp)
  7. Preferences
  8. gama platform agent
  9. Troubleshooting
  1. Introduction
    1. Start with GAML
    2. Organization of a Model
    3. Basic programming concepts in GAML
  2. Manipulate basic Species
  3. Global Species
    1. Regular Species
    2. Defining Actions and Behaviors
    3. Interaction between Agents
    4. Attaching Skills
    5. Inheritance
  4. Defining Advanced Species
    1. Grid Species
    2. Graph Species
    3. Mirror Species
    4. Multi-Level Architecture
  5. Defining GUI Experiment
    1. Defining Parameters
    2. Defining Displays Generalities
    3. Defining Charts
    4. Defining Monitors and Inspectors
    5. Defining Export files
    6. Defining User Interaction
  6. Classes and Objects
    1. Class Definition and Instantiation
    2. Attributes and Actions
    3. Inheritance
    4. Virtual Classes
    5. Advanced Features
  7. Exploring Models
    1. Run Several Simulations
    2. Batch Experiments
    3. Exploration Methods
  8. Optimizing Models
    1. Runtime Concepts
    2. Analyzing code performance
    3. Optimizing Models
  9. Multi-Paradigm Modeling
    1. Control Architecture
    2. Defining Differential Equations
  1. Manipulate OSM Data
  2. Cleaning OSM Data
  3. Diffusion
  4. Using Database
  5. Using Dataframes
  6. Using FIPA ACL
  7. Using BDI with BEN
  8. Using Driving Skill
  9. Manipulate dates
  10. Manipulate lights
  11. Using comodel
  12. Save and restore Simulations
  13. Using network
  14. Writing Unit Tests
  15. Ensure model's reproducibility
  16. Going further with extensions
    1. Calling R
    2. Using Graphical Editor
    3. Using Git from GAMA
  1. Built-in Species
  2. Built-in Skills
  3. Built-in Architecture
  4. Statements
  5. Data Type
  6. File Type
  7. Stats Extension
  8. Sound Extension
  9. BDI Extension
  10. FIPA Skill
  11. Expressions
    1. Literals
    2. Units and Constants
    3. Pseudo Variables
    4. Variables And Attributes
    5. Operators (Definition)
    6. Operators [A-A]
    7. Operators [B-C]
    8. Operators [D-H]
    9. Operators [I-M]
    10. Operators [N-R]
    11. Operators [S-Z]
  12. Exhaustive list of GAMA Keywords
  1. Installing the development version
  2. Introduction to GAMA Java API
    1. Architecture of GAMA
    2. IScope
  3. Developing Extensions
    1. Developing Plugins
    2. Developing Skills
    3. Developing Statements
    4. Developing Operators
    5. Developing Types
    6. Developing Species
    7. Developing Control Architectures
    8. Index of annotations
  4. Using GAMA flags
  5. Export plugin : Technical Documentation
  6. Creating a release of GAMA
  7. Documentation generation
  8. Desktop startup and deferred initialization

  1. Predator Prey
  2. Road Traffic
  3. Incremental Model
  4. Luneray's flu
  5. BDI Agents
  6. Forager RL
  7. SIR Analysis

  1. Team
  2. Projects using GAMA
  3. Scientific References
  4. Training Sessions

Resources

  1. Videos
  2. Conferences
  3. Pedagogical materials

Clone this wiki locally