Skip to content

[REQUEST] Support "config.nut"-like file in root data folder #457

@Darxo

Description

@Darxo

Is your feature request related to a problem? Please describe.

Adding semi-permanent simple debugging changes (for modder) or customization changes (for user) is often complicated and non-standardized.
A modder would need to create a new [dummy] mod for those or temporarily add them to a mod of theirs.
A user would need someone to create a mod for them, somehow create one themselves, or take an existing mod and write around in its zipped .nut files

Describe the solution you'd like

Define a generic name like config.nut and always try to import that file during a late bucket or after hooks.
It is optional, and if it exists it must be at root level, aka in parallel to your mod .zip files inside the data folder
The include would look something like this:

try {
  ::include("config.nut");
}
catch (_e) {} // Do nothing, because this file is optional

Once this is implemented in code, any modder and user can now go ahead and create a config.nut file in their data folder and fill it with many simple changes.
Most notably those can be changes to Const values. Be it making the game easier/harder or quickly toggling non-exposed debugging options. Those changes are easier done and more permanent than if you used the dev console for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature requested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions