tubbo / openrct2-benchwarmer

An OpenRCT2 plugin that adds alternating benches and bins to your park's footpaths with a single click.
MIT License
38 stars 9 forks source link

Specify Target API Version #113

Open tubbo opened 1 month ago

tubbo commented 1 month ago

When running OpenRCT2 from the command-line in verbose mode, this error (more like a warning) message appears in the shell:

ERROR[/Users/runner/work/OpenRCT2/OpenRCT2/src/openrct2/scripting/Plugin.cpp:175 (GetMetadata)]: Plug-in “Benchwarmer” does not specify a target API version or specifies it incorrectly. Emulating deprecated APIs.

To get rid of this message, and to ensure the plugin will not cause issues for users of older OpenRCT2 builds, the following needs to be specified in the registerPlugin() call:

    minApiVersion: N,
    targetApiVersion: N,

Determine what those minimum/target API versions should be and set them.