Lua PureLibrary deprecated?

Just starting out? Need help? Post your questions and find answers here.
tutiplain
User
User
Posts: 43
Joined: Wed Jun 30, 2010 3:00 am

Lua PureLibrary deprecated?

Post by tutiplain »

Hi,

I was just looking for a Lua plugin/library for PureBasic, but the only one I can find, called PBLua is deprecated. Does this mean it is no longer developed, that it doesn't work with the latest version of PB, or what? Is there a newer library that can be used? Thanks for any info!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Lua PureLibrary deprecated?

Post by ts-soft »

User avatar
PureLeo
Enthusiast
Enthusiast
Posts: 221
Joined: Fri Jan 29, 2010 1:05 pm
Location: Brazil

Re: Lua PureLibrary deprecated?

Post by PureLeo »

Cool ts-soft!

Do I need to include any dll with the compiled app?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Lua PureLibrary deprecated?

Post by ts-soft »

PureLeo wrote:Cool ts-soft!

Do I need to include any dll with the compiled app?
no, is a static lib, not a importlib
User avatar
PureLeo
Enthusiast
Enthusiast
Posts: 221
Joined: Fri Jan 29, 2010 1:05 pm
Location: Brazil

Re: Lua PureLibrary deprecated?

Post by PureLeo »

Very nice!
Do you have a help file?


Thanks!
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: Lua PureLibrary deprecated?

Post by cas »

You kidding? Its Lua, you can find it all over the web.
http://www.lua.org/manual/5.1/
User avatar
PureLeo
Enthusiast
Enthusiast
Posts: 221
Joined: Fri Jan 29, 2010 1:05 pm
Location: Brazil

Re: Lua PureLibrary deprecated?

Post by PureLeo »

I know cas, :oops:

It's because i had another lua lib and it's functions names were different in some cases, like

lua_baseopen -> luaopen_base

So i didn't know if these functions were documented, etc
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Lua PureLibrary deprecated?

Post by Peyman »

and you can download lua library 5.1.4 from here :
http://sourceforge.net/projects/luabina ... p/download
or lua 5.2work2 from here :
http://sourceforge.net/projects/luabina ... p/download

but i wonder if somebody know a link to a X64 lua library or can create it with mingw.
Sorry for my bad english.
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: Lua PureLibrary deprecated?

Post by X »

I need to 2nd this request as well. A 64bit version would be extremely helpful.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Lua PureLibrary deprecated?

Post by hallodri »

Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Lua PureLibrary deprecated?

Post by Peyman »

thanks hallodri, you create this lib by yourself ? i think this a lua 4 library because it use lua_open for creating lua state instead luaL_newstate, but anyway it works on PB 64 bit.
can you explain more ?
Sorry for my bad english.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Lua PureLibrary deprecated?

Post by hallodri »

That was an old version. Although I have tried to compile the new version, but there were a few mistakes in PureBasic.
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Lua PureLibrary deprecated?

Post by Peyman »

what mistakes ? actually i have mistake to build static lua library by myself (because i want modify lua then compile it) i use latest MinGW compiler but all time it creates a lua library for me that cant load lua strings and gets me Invalid memory access in calling luaL_loadstring and dont know what is my mistake (i want break my head), can you create a 32bit static lua library that works good with PB (by yourself)?
Sorry for my bad english.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Lua PureLibrary deprecated?

Post by hallodri »

Peyman wrote:what mistakes ? actually i have mistake to build static lua library by myself (because i want modify lua then compile it) i use latest MinGW compiler but all time it creates a lua library for me that cant load lua strings and gets me Invalid memory access in calling luaL_loadstring and dont know what is my mistake (i want break my head), can you create a 32bit static lua library that works good with PB (by yourself)?
try this 32bit version
www.realsource.de/tmp/lua5.1.32.rar
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Lua PureLibrary deprecated?

Post by Peyman »

wow, yea its work. you create it by yourself ? can you say how you create it or share source ? with what compiler ?
Sorry for my bad english.
Post Reply