Skip to content

KenshiLua v0.3.4-alpha

Choose a tag to compare

@Genpretz Genpretz released this 28 Sep 02:39
· 177 commits to main since this release

Overview

Major refactoring of event and callback systems, with MyGUI backwards compatibility now integrated natively into C++.

Features

Events Refactoring

  • Refactored hook and callback registrations to use standard C++ symbols (e.g., Character::declareDead, InputHandler::keyDownEvent)
  • Implemented legacy compatability subsystem to dynamically resolve 220+ legacy event aliases with deprecation warnings
  • Added Events.on/off/register/unregister and Widget:on/off namespaces in Lua

Enums

  • Use C++ enum names for all enums and removed all shortened/synthetic enum member aliases
  • Registered nested class enums directly under parent class namespaces

Containers

  • Added script-owned container factories: lektor, ogre_unordered_set, and ogre_unordered_map
  • Implemented Lua-managed object lifecycles via pushObjectOwnedCustom
  • Added extractContainerTypeName for flexible argument resolution
  • Modularized container registration in RegisterBindings.cpp

MyGUI Backwards Compatibility

  • Embedded MyGUI backwards compatibility natively in C++, polyfilling global helpers and 34 monolithic widget property fallbacks
  • Purged obsolete lib/mygui/compat.lua file

Bug Fixes

  • Fixed return value handling for YesNoMaybe types in bindings
  • Removed invalid deallocation in lektor storage for getAllAttackers()
  • Restored underscore prefixes to CharStats properties to prevent name collisions with methods
  • Fixed FactionBinding::getAllActiveSquads return value (was returning 0 instead of 1)

Documentation

  • Updated CallbacksReference.md with C++ event symbol names
  • Updated MyGUIReference.md with Widget:on/off callback attachment syntax
  • Added ContainersReference.md documentation
  • Updated doc generator scripts to match new event and callback structures

Full Changelog: v0.3.3-alpha...v0.3.4-alpha