GDAddon ๐Ÿค”

April 7, 2025 ยท View on GitHub

This extension uses eval() for execution of Javascript, which is a security risk!!

GDAddon ๐Ÿค”

If you're looking for modding (not addons), then use gdmod instead of this.

Adds functionality for loading & deleting of addons. Each addon has a Name and a Source code, these are defined when the addon is first loaded. To run your addons, just add Execute (all) addons action into a separate event.

How to use

I'll update this part later...

Screenshot 2025-04-05 203529 Screenshot 2025-04-06 151347

Making addons

  1. First of all, you need to have a name for your addon (this doesn't really matter, it's just used for accessing the addon later, for example when deleting)
  2. The second thing you need to add when loading the addon is the Source, this is basically the code the addon will run. Websites i recommend when writing in Javascript for Gdevelop 5 are the gdjs documentation and the wiki (which has the basics)

Functions

Load addon with name _PARAM1_ and source _PARAM2_ -> action

Remove addon with name _PARAM1_ -> action

Execute (all) addons -> action

GDA::IndexByName() -> expression

GDA::NameByIndex() -> expression

GDA::ListLength() -> expression