While you are developing your project, you will frequently need to add and remove content in your source data folder. This may make it inconvenient to maintain up-to-date package definitions. There are two ways you can configure the engine to load the resources you need without having to modify your package definitions each time you add or remove a resource in the project.
You can use the * character as a wildcard in your package definitions. When you load the package into the engine, all resources that match the specified string get loaded.
See also Defining resource packages.
In auto-load mode, whenever the engine needs a resource that isn't already loaded into the engine, it automatically loads that resource.
Auto-load mode is used by the engine that runs inside the interactive editor. The editor never uses resource packages to load and unload content that it shows while you are editing your levels. Auto-load mode is also used by default when you use Test Level (F8) function from the editor.
You may want to enable this same auto-loading mode when you use Run Project and when you deploy your project. Using auto-loading almost completely bypasses the package system. However, since auto-load is enabled and disabled through the Lua API (see below), you still have to make sure that your boot package and settings.ini are configured to load and run the script in which you activate auto-loading before any other resources are needed.
Auto-loading has the following restrictions, which make it suitable for use only while developing your project:
To activate auto-load mode in the engine, call: