Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - WizzardMaker

Pages: 1
Programming Help / How are instances working?
« on: February 16, 2015, 10:28:08 am »
Its me again.
I am asking how instances work in ENGIMA, are they classes, structs or something else?

Programming Help / template in enigma_user
« on: February 12, 2015, 05:33:31 am »
I am trying to use a template in the include.h file for my Extension but Enigma or LGM does not recognize my function...
Here is my code:
Code: [Select]
#include "../../var4.h"
#include <functional>
#include <luastate.h>

namespace enigma_user{
template<typename FuncType> variant luaF_execute_file(string filepath,FuncType f);
Is there any way to let Enigma or LGM get the function?

Function Peer Review / Lua Extension
« on: February 08, 2015, 10:54:50 am »
Hello folks!
I used my free Weekend to create a Lua Extension for ENIGMA and it worked!
The extension is not finished, the only thing what it can do is open a Lua script and let it search for a variable called "returner" and it can execute a string filled with Lua code.

I will add functions to execute Lua scripts and let it return your variables and I try to add a function that will let Lua execute some GM functions.

Here are the functions that can be executed, what they do and what they need:
Code: [Select]
--filename = Thats the name + path to the Lua script
--What the function needs: It needs a lua script with a variable called "returner".
--What the function returns: It returns the variable "returner" from the Lua script, if the function cant find the variable "returner" or its not a string/integer the function will return "ERROR! UNKNOW RETURNER TYPE OR ERROR IN SCRIPT"
--code = What do you think?
--What the function does: For now it does nothing... but I am trying to let the function do the same as lua_execute_file()

Here is the link to the repository of the Lua Extension:

PS: I've written it so that it works, but I'll still have to clean it...

General ENIGMA / Lua interpreter?
« on: February 05, 2015, 08:34:15 am »
I wanted to ask, if there is any possibility for a Lua interpreter.
I am asking because, I wanted to add modding support to my Game and I can just barely do it without execute_string() ,execute_file() or any kind of executing C.ode
and Lua seems to be the easiest way to add this. I know that ENIGMA code is compiled, but is there a chance that Lua will be implemented or just as a extension

Thanks in advance WizzardMaker

Pages: 1