Skip to content

PlayableModels

AlexisDrogoul edited this page Nov 23, 2026 · 1 revision

Playable models (.gamx)

A playable model contains selected GAML models and experiments, their data and launcher presentation settings. It opens in GAMA's player rather than the modeling workspace. Recipients need a compatible installed GAMA application; the archive does not include GAMA or a JDK.

This guide describes the GAMA 2026 export and player implementation. Desktop file associations require a newly packaged installation; changing the sources does not update an existing application's operating-system registrations.

Export a playable model

Open a model in the editor and choose File > Export as playable model..., or use the corresponding navigator export command. The model export dialog opens in playable-model mode.

Choose the experiments to include, presentation title, description, optional illustration, whether to show Home, and the default experiment. The default title omits the model's .gaml extension. Package identity and version are generated automatically; there are no additional fields to fill in.

Save to a .gamx destination outside the participating projects, linked-resource folders, model data and GAMA installation. Cancellation or an export failure leaves an existing destination archive unchanged.

Models and data

The exporter copies participating projects and statically discovered external input data, including shapefile companions and external directory trees. Eclipse linked resources are materialized as ordinary files, machine-specific link/filter metadata is removed, and static file references are rewritten in the exported copy. The author's sources are not modified; model text is converted to UTF-8 with explicit resource settings.

Direct save ... to: destinations are not required input data unless the same path is also referenced as input. Output files therefore need not exist before export; missing input data still causes an error. Data referenced only through dynamically constructed paths must already be included in the exported projects. Empty external data directories and filesystem symbolic links are not supported.

Extra plugins

Dependency controls are hidden when a model uses only standard GAMA plugins. Otherwise, Review dependencies... shows standard requirements, automatically packaged plugins, exact versions and unsupported extras. Required non-standard Java plugin JARs and their non-standard transitive dependencies are included automatically, not every optional plugin in the author's installation.

Standard plugins remain requirements supplied by the recipient's GAMA. A package cannot replace an installed plugin, even with the same version. Required extras that are directories, fragments, contain native code or contain nested JARs block package export with an explicit reason. Directory-based Java-only plugins must be built and installed as supported JARs before export. Discovery errors remain visible; unsupported dependencies are not silently left for the recipient to install.

Open and run a playable model

Open or double-click a .gamx, or use the Play model... command in the File menu. In the navigator, a playable model has its own document icon and player association; opening it starts the standalone player rather than a text editor. With navigator metadata enabled, its label includes model paths and the experiment count. Properties > Playable model lists its experiments, required GAMA version and embedded extra plugins without extracting files or loading code; invalid archives show an error.

When GAMA is closed, an installed product prepares the package's private runtime before starting the player in the native launcher's process. The package title, description and optional illustration provide its presentation and splash. When GAMA is already running, opening a package starts an additional isolated player; the running modeler is not converted into a player.

Home and the launch overlay share the title, experiment selector, description and illustration. Experiments are shown by their names rather than internal project/model paths. During launch, Play becomes Cancel and launch output appears below the presentation. The player window includes the presentation title and a "powered by GAMA" label. Home hides the modeler's global controls; leaving it restores the experiment's controls.

The player uses a private configuration, preferences and workspace under ~/.gama/package-sessions/, without modifying the installed application or global preferences. Its WebSocket server is disabled at startup to avoid competing with a running modeler's listening port. Launching the player from an Eclipse development configuration without a native launcher is not supported.

Compatibility and trust

The installed GAMA must meet the manifest's minimum runtime version. Required host plugins must meet their minimum versions; newer versions are assumed compatible, but OSGi resolution and model compilation can still report genuine incompatibilities. Embedded plugins must match their declared identities and versions.

Open packages only from authors you trust. Models and plugins execute with your permissions as soon as the package opens, without a separate trust prompt. Archive validation is not a signature, a sandbox, or proof that code is safe or portable.

Keep generated results

Private runtime folders, including player.log, are retained to avoid losing generated results. There is no package-history or session-management screen: keep exported archives wherever you choose and open them directly. Existing results are not automatically deleted.

On closing, the player offers to save new or modified workspace data in a ZIP archive. The native Save dialog suggests a filename based on the model title and date; internal workspace metadata is excluded. Canceling keeps the player open. This recovers output data, not a resumable simulation checkpoint.

Migrate older playable archives

Playable archives previously exported with the .gamp extension must be renamed to .gamx; their archive format is unchanged. The .gamp extension now identifies editable project archives. See the migration guide.

For archive APIs, installation integration and player internals, see Export plugin: technical documentation.

  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