Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikuauahdark/cs2dluawrap

CS2D Lua Wrapper
https://github.com/mikuauahdark/cs2dluawrap

Last synced: about 1 month ago
JSON representation

CS2D Lua Wrapper

Awesome Lists containing this project

README

        

CS2D Lua Wrapper
=====

Lua 5.1.4 wrapper that calls into unexported CS2D's Lua 5.1.4 functions. Allows Lua modules
to be compatible with CS2D without strange (memory) errors!

This can benefit server scripters to use external Lua C modules.

**This thing only runs server-side!!!**

See http://www.unrealsoftware.de/forum_posts.php?post=426672

Usage
-----

There are 2 ways

1. Compile `cs2dlua.c` as lua51.dll/liblua5.1.so and use (its import library) to build other Lua modules.

2. Compile your Lua modules as usual, but instead of linking to Lua 5.1.4 DLL/shared object, add 1
more file `cs2dlua.c` to your compilation unit then you're ready. Put the resulting module to your
CS2D server root directory.

Both the advantages and the disadvantages of such ways can be found here http://www.unrealsoftware.de/forum_posts.php?post=426738