Configure Lua scripts in OpenMW-CS
Current state:
Lua scripts can be configured either by omwscripts text files or by omwgame/omwaddon files.
omwgame/omwaddon format gives more options (e.g. attaching custom Lua data to specific objects, added in !1947 (merged)), but not yet supported by openmw-cs. So openmw can load an omwaddon with Lua data, but currently there is no tools to create such omwaddons.
Here is an example that generates an omwaddon with Lua data directly with ESM::ESMWriter.
Tasks:
- Add to
openmw-cs
new view "Mechanics/Lua scripts" that represents ESM::LuaScriptsCfg. The view should allow editing Lua configuration of the current omwaddon and view Lua configuration of its master files. At this point functionality is equivalent to the functionality of.omwscripts
. - Add new view in openmw-cs for editing Lua tables and attaching them as initialization data to Lua scripts. Table can include Lua primitives, vectors, 3d tranforms, colors, and links to objects and records in the current omwaddon or its master files.
- Add ability to attach scripts to specific objects and records.
Edited by Petr Mikheev