LUA xx

Just starting out? Need help? Post your questions and find answers here.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

LUA xx

Post by Zach »

So, this is what happens when I open my mouth, huh?

No, I would maybe attempt to work on it if I thought I had the skill/capacity to understand what I was doing; but I do not. I still have a lot to learn unfortunately, and I'm meeting enough challenges with my first project, in the limited time I have for programming.

But also, I do not agree that just because I lack the technical and logical understanding of how to write such a program, that disqualifies me (or anyone else) from using it /asking for it to be updated. Since the point of most libraries is to make complicated tasks easier / bring easier functionality that did not exist before, the whole point is for other people to not have to bash their head against the wall until their brain leaks out of their eye sockets.

This strikes me as interesting though.
eesau wrote:Lua already has bindings for PB, I suggest you use those. They are easy to use and Lua is pretty versatile. DracScript, while interesting, is somewhat limited, it doesn't even have functions.
Are you saying LUA has official PB bindings, or are you just talking about an include file? Most of the stuff I looked for on scripting wrappers, is older work that I don't believe is kept up to date with changes in w/ever language it was written for. Although I admit LUA seems very terse and cryptic to me, if you can give me a link to something easy to do for myself, I would doubtless look into it.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Kuron »

Zach wrote:So, this is what happens when I open my mouth, huh?
Not at all, this is what happens when I open my mouth. :mrgreen:
Zach wrote:Although I admit LUA seems very terse and cryptic to me
There are a lot of online resources for LUA and books on LUA (some of which are designed for "beginners"). I recommend Game Development With LUA, although there are other good LUA books out there.
Best wishes to the PB community. Thank you for the memories. ♥️
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Zach »

The only reference I could find on the LUA site for PB bindings, is listed as Deprecated, and doesn't have any actual download links that I could find.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Kuron »

Zach wrote:The only reference I could find on the LUA site for PB bindings, is listed as Deprecated, and doesn't have any actual download links that I could find.
I just went to PureArea and downloaded it with no problems. I installed it and tried compiling several of the included examples with PureBasic 4.60 beta 4 and had zero problems except for a syntax error in one example that was easily corrected.

The PureBasic bindings haven't been updated in a couple of years, but in fairness the last stable version of LUA was a couple of years ago, too. The PureBasic bindings for LUA include the source code so you can easily handle any incompatibilities you may find with the current version of PureBasic.

If you do not like the PureBasic bindings for some reason, there are bindings available on community sites for other BASIC's which could easily be converted to PureBasic. I have seen them around for Blitz Max, Free BASIC, etc. and I have seen a couple of versions floating around for LuaJIT.
Best wishes to the PB community. Thank you for the memories. ♥️
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Zach »

I will probably give it a try.

I just want to be sure, which version of LUA I should download / which versions were the bindings made for?
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Kuron »

Zach wrote: I just want to be sure, which version of LUA I should download / which versions were the bindings made for?
The bindings are made for the version of LUA that is included with the bindings. You don't need to download LUA separately.

Once you get more familiar with PB, you might want to consider updating DracScript for your needs. If you are creating something that is supposed to be moddable by your EUs, the syntax of DracScript may be easier for them to work with.

You might also consider writing your own. There is a book called Game Scripting Mastery which is the bible on this.

If you have any more questions about LUA, it would probably be best to start a new thread as this thread is for DracScript. :wink:
Best wishes to the PB community. Thank you for the memories. ♥️
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Zach »

Well I doubt the author would care much about a thread no one uses for a disco'd utility :|

Be that as it may. I would never be able to write my own scripting language, no matter how experienced I got. There is a finite boundary I cannot pass when it comes to really complex things, no matter the subject.


In any case, I won't post in this thread any more. I did receive a PM from Steven (srod) that he is working on something that might interest me, and he might have a release ready in a month or so. So I will play around with this LUA thing and see how it goes until then.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by Kuron »

Zach wrote:Well I doubt the author would care much about a thread no one uses for a disco'd utility :|
See the post the author made in this thread on Mon Sep 05, 2011 11:52 am. :wink:
Best wishes to the PB community. Thank you for the memories. ♥️
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Re: DracScript 1.06 Released! LGPL Scripting Language

Post by dracflamloc »

Mods if you see this please split the lua discussion into it's own thread.
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: LUA xx

Post by cas »

http://www.lua.org/about.html wrote:"Lua" (pronounced LOO-ah) means "Moon" in Portuguese. As such, it is neither an acronym nor an abbreviation, but a noun. More specifically, "Lua" is a name, the name of the Earth's moon and the name of the language. Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!
Post Reply