Unified ETPro lua module.

  • git clone https://klva.cz/src/etwolf/lulan.git
  • server: Simplified error message test (maybe too much). b0e31ca, 3 Nov 2019
    core/
    docs/
    fixtures/
    plugins/
    .gitignore
    .gitmodules
    .travis.yml
    lulan.ini
    lulan.ps1
    README.md
    serialize.lua @ 6bfc280
    www/

    Unified ETPro lua module

    This is an extensible Lua module for ETPro servers. It unifies various small modules, introduces shared interface for reading shrubbot files and accessing player data, simplifies persistent data storage and introduces event system.

    Documentation

    Contributing

    No module (core or plugin) should declare global variable or function, always use local or encapsulate your plugin in a self-calling function. Keep already used formatting and use the right (that's tab!) indent character.

    Running tests:

    powershell -File lulan.ps1 -Action test
    

    The PS script will automatically download and extract Lua 5.0.3 into lua directory, so you don't have to install anything.

    You can run a single test suite as well:

    powershell -File lulan.ps1 -Action test core/bootstrap.test.lua
    

    When testing on your local server, you can create a junction from this cloned repository into your ETPro folder like this:

    mklink /J "C:\Program Files (x86)\Enemy Territory\etpro\lulan" C:\Users\<user>\..\lulan"
    

    And then run it:

    etded.exe +set fs_game etpro +set lua_modules "lulan/core/bootstrap.lua" +map goldrush
    

    In case you need to dump a variable, do this:

    dump(variable)
    

    This works both in test and server environment! You can pass any number of arguments.