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.
1
Issues Help Desk / Re: Game crashes after 6 minutes
« on: January 13, 2016, 09:41:11 am »
Is it every time at exactly 6 minutes, or is it like after 6 minutes shit is going to happen
2
Function Peer Review / Re: Lua Extension
« on: January 13, 2016, 12:39:11 am »
Yeah, Linux is something I cant really try as I dont have a stable linux machine. I will try to fix some problems using a VM
3
Function Peer Review / Re: Lua Extension
« on: January 11, 2016, 04:10:50 pm »
Its been a long time since somebody replied to this topic, and I want to know if there is something I should do with this extension, if somebody is using it, or if its utterly broken but no one wants to tell me.
4
Ideas and Design / Re: LateralGM seems a little clunky overall, Ideas but not sure how to develop them.
« on: November 12, 2015, 10:35:27 am »
I guess that GMX is for compatibility reasons
5
Function Peer Review / Re: Lua Extension
« on: September 06, 2015, 04:23:24 am »
The included files are all in the mingw folder of my repository and I dont have enigma on my linux so I dont know what your include folder is called, you could move/copy those files to the folder of the extension and rewrite the include line
6
Programming Help / Re: Reading the ".osu" file format
« on: May 31, 2015, 03:52:09 am »
You could try to open the file and get the string from each line, you can "scan" the string and check if its a headline ([...]). You can separate the string at each "," and add a Variable (either a list/array or variables).
I dont know the function names, but look for functions with the name file_open_read(...) or something like that
I dont know the function names, but look for functions with the name file_open_read(...) or something like that
7
Function Peer Review / Re: Lua Extension
« on: May 11, 2015, 04:43:52 am »
A possible way to fix it is to finish the cpp/c version of LGM, that would fix the problem and remove the need of java
8
Function Peer Review / Re: Lua Extension
« on: May 03, 2015, 01:56:03 pm »
I just hit run ^^ and with every default extension turned on.
Another problem I do encounter is the tremendous amount of crashes and I don't know why
Another problem I do encounter is the tremendous amount of crashes and I don't know why
9
Function Peer Review / Re: Lua Extension
« on: May 03, 2015, 04:23:07 am »
The Project got updated, there is now an example and some new functions to play with.
Just download the new .zip or update your version with Git.
If there are any questions feel free to ask!
And can somebody answer why the .exe is about 12 MB big when there is just an Object and a Room?
Just download the new .zip or update your version with Git.
If there are any questions feel free to ask!
And can somebody answer why the .exe is about 12 MB big when there is just an Object and a Room?
10
Function Peer Review / Re: Lua Extension
« on: March 01, 2015, 01:58:49 pm »
The Lua Extension is "finished" (The code needs some cleanup ) and ready to be used.
Just download from GitHub and follow my instructions on how to install it.
GitHub page: https://github.com/WizzardMaker/Lua-Extension
There are still some unknown warning messages from the Compiler which I have to fix but its ready to use!
I had to disable some functions, namely:
All of the extension functions (There will be support for it later but not for now)
and all of the functions with varargs as argument (Just look into the LGM function list in the build tab on the top)
and some of the buffer functions
other functions:
Just download from GitHub and follow my instructions on how to install it.
GitHub page: https://github.com/WizzardMaker/Lua-Extension
There are still some unknown warning messages from the Compiler which I have to fix but its ready to use!
I had to disable some functions, namely:
All of the extension functions (There will be support for it later but not for now)
and all of the functions with varargs as argument (Just look into the LGM function list in the build tab on the top)
and some of the buffer functions
other functions:
Code: [Select]
is_real();is_string();instance_change_inst();abs();min();max();median();
11
Programming Help / Re: How are instances working?
« on: February 23, 2015, 05:29:18 pm »
And I think someone should rename the topic to something like "Enigma discussion" (maybe me, but I dont know how )
12
Programming Help / Re: How are instances working?
« on: February 23, 2015, 09:01:33 am »
Here is my code:
Code: [Select]
//include.h
#include <LuaState.h>
namespace enigma_user{
lua_State* lua_start();
void lua_stop(lua_State *Lua);
...
}
//lua.cpp
#include "include.h"
namespace enigma_user{
lua_State* lua_start(){
lua_State *Lua = luaL_newstate();
luaL_openlibs(Lua);
return Lua;
}
void lua_stop(lua_State *Lua){
lua_close(Lua);
return;
}
PS: How do I make the code syntax to EDL in the Code blocks ^
13
Programming Help / Re: How are instances working?
« on: February 23, 2015, 05:43:58 am »
You could add two functions like
EDIT: I just tested draw_string(..., ..., string str) in lua with draw_string(..., ..., 1) and it worked, mysterious...
EDIT2: Is there a way to add my function to LGM? It's not showing in the function list.
Code: [Select]
draw_string(int x, int y, string str);
draw_value(int x, int y, int val);
or you could overload the function, but I dont know if Lua supports it...EDIT: I just tested draw_string(..., ..., string str) in lua with draw_string(..., ..., 1) and it worked, mysterious...
EDIT2: Is there a way to add my function to LGM? It's not showing in the function list.
Code: [Select]
namespace enigma_user{
lua_State* lua_start();
}
14
Programming Help / Re: How are instances working?
« on: February 22, 2015, 01:51:02 pm »
Yeah, I fixed the instance_create error and it workd now, but I have a problem with variant...
Code: [Select]
In the function draw_text(gs_scalar x, gs_scalar y, variant str);
^
undefined reference to 'variant lua::stack::read<variant>(lua_State*, int)'
What I could make is to rewrite the function using string instead of variant, that would solve the problem and the user wouldn't know.
15
Programming Help / Re: How are instances working?
« on: February 22, 2015, 06:55:35 am »
I made a parser too (If you can called it like that, I just created a program that takes all the enigma_user functions and writes the code)
but ran into a problem. I have the function instance_create(...) but if I try to either set it in lua or try to external declare it I get the errors:
but ran into a problem. I have the function instance_create(...) but if I try to either set it in lua or try to external declare it I get the errors:
Code: [Select]
If I try to declare it:
extern enigma::instance_t instance_create(int x,int y,int object);
error: 'instance_t' in namespace 'enigma' does not name a type
If I try to set it:
state.set( "instance_create" , &instance_create);
error: 'instance_create' was not declared in this scope //I know why this error happens
Any solutions?