Coder Social home page Coder Social logo

lulan's Introduction

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.

lulan's People

Contributors

adawolfa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.