Page 3 of 5
Posted: Wed Mar 08, 2006 1:37 pm
by FloHimself
@JC
see the post above. The include file will be used for further versions.
Posted: Wed May 14, 2008 11:44 pm
by SofT MANiAC
damnnnn.. 5.1 wrapper doesn't work and 5.0 confilcts with Irrlicht wrapper..
I love this world

Posted: Thu May 15, 2008 12:11 am
by ts-soft
SofT MANiAC wrote:damnnnn.. 5.1 wrapper doesn't work and 5.0 confilcts with Irrlicht wrapper..
I love this world

have a look on my website
http://www.realsource.de/downloads/doc_ ... pb-include
greetings
Thomas
Posted: Thu May 15, 2008 1:45 am
by ker2x
Haaa YES !!
A LUA Wrapper, it's an awesome idea !!!
Thx

Posted: Thu May 15, 2008 2:01 am
by ts-soft
The LUA-Include was updated to work with PB 4.20 Beta 5 and 6
If you use this version, please download again.
greetings
Thomas
Posted: Thu May 15, 2008 7:41 am
by SofT MANiAC
@ts-soft
thanks! all works (maybe)
Posted: Thu May 15, 2008 8:50 am
by SofT MANiAC
nevermind, in anyway it also conflicts with Irrlicht wrapper:
Code: Select all
IncludeFile ("lua.pbi")
XIncludeFile "IrrlichtWrapper_Include.pbi"
ProcedureC CheckFail(L)
PrintN("Fehler")
ProcedureReturn 0 ; Funktion gibt 0 argumente zurueck
EndProcedure
ProcedureC CheckTest(L)
lua_pushnumber(L, 1 )
ProcedureReturn 1 ; <==== Invalid memory access. Read error...
EndProcedure
Procedure load()
script.s = "if CheckTest() == 0 then"
script.s + " CheckFail()"
script.s + "else"
script.s + " print('OK')"
script.s + "end"
If OpenConsole()
L = lua_open()
luaopen_base(L)
lua_register(L,"CheckTest", @CheckTest())
lua_register(L,"CheckFail", @CheckFail())
luaL_dostring(L, script)
Input()
CloseConsole()
EndIf
EndProcedure
load()
Posted: Thu May 15, 2008 2:37 pm
by hallodri
I can not reproduce this error.
PB version and settings ?
Posted: Thu May 15, 2008 5:57 pm
by SofT MANiAC
PureBasic 4.10 + Irrlicht Wrapper by neotoma/Thalius...
Re: Embedding LUA in PureBasic!?
Posted: Tue Feb 16, 2010 3:03 pm
by LuaDev
Hi, sorry for bringing up such an old post ... but i have a request for ts-soft
I have been working with PB and lua for some time making internal tools for the company I work for, my boss has asked me to update the lua engine in our main database engine (custom engine written in PB and lua) from 5.1.2 to 5.1.4
I have added the 5.1.4 lib and dll to the engine and it works very well but I would like a static lib for the sake of portability, like the 5.1.2 lib at the RealSource website
is there any chance of getting the lib recompiled with the current stable version of lua (5.1.4), this would save me a huge headache as the task has fallen on my shoulders and I am no C++ dev, im strictly PB+lua
if you are to busy or just don't want to, then I understand, we all have busy lives, i will just carry on with the external dll, but if you could then I would be eternally grateful
Re: Embedding LUA in PureBasic!?
Posted: Fri Jul 09, 2010 11:38 pm
by DoubleDutch
V5.1.4 would be useful.
Re: Embedding LUA in PureBasic!?
Posted: Sat Jul 10, 2010 11:47 am
by hallodri
http://luaforge.net/frs/download.php/37 ... w4_lib.zip
Extract to your lib directory and change the import to "liblua5.1.a".
Re: Embedding LUA in PureBasic!?
Posted: Sat Jul 10, 2010 5:20 pm
by DoubleDutch
thanks.

Re: Embedding LUA in PureBasic!?
Posted: Sat Jul 17, 2010 3:36 pm
by LuaDev
many thanks, i had given up on the idea and resided myself to using the dll, you just made my day, thanks again

Re: Embedding LUA in PureBasic!?
Posted: Sun Jul 24, 2016 3:43 am
by DoubleDutch
Here is the latest include file built and tested for the new PureBasic 5.50b3
https://dl.dropboxusercontent.com/u/171 ... lua514.zip
I have no Lua 5.1.4 osx lib though that will work - can anyone help?