Skip to content

Conversation

@kokekanon
Copy link
Collaborator

@kokekanon kokekanon commented Nov 23, 2025

load or unload modules based on the current client version.

.otmod

Module
  name: game_Module
  description: game_Module
  scripts: [ game_Module]
  sandboxed: true
  autoload: true
+ minClientVersion: 1310
  @onLoad: controller:init()
  @onUnload: controller:terminate()

when executed onClientVersionChange If the current client version is lower than the minClientVersion of .otmod, the module unload

If I use client 8.6, I don't need to have these modules loaded:

  • store (1098),
  • cyclopedia (1310),
  • blessing (1000),
  • prey (1100),
  • analyzer (1310),
  • etc..

… on the current client version)

Introduces a minClientVersion property to module definitions and updates the module manager to load or unload modules based on the current client version. Lua and C++ bindings are added for this property, and affected modules now specify their minimum supported client version. Also includes related UI and logic adjustments for dynamic module management.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant