Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 394 results for
lua
- Page 1
Re: Lua wrapper
Programming
Software Development
10 Years Ago
by AceStryker
…); } static int ExecuteLUAFunction(lua_State* L, char* FuncName) { //FuncName =
LUA
Function int iErr; if ((iErr = lua_pcall (L, 0, LUA_MULTRET, 0…0 parameters } //AddLUAFunction(L, "printMessage", printMessage); //In
LUA
: //printMessage("Testing is: %s", "OK"); For…
Re: Lua Problems
Programming
Software Development
16 Years Ago
by Comatose
… acts as both). Second, you need to find the
lua
executable, and run it first. On a linux system,… it might look like: [inlinecode]./
lua
myfile.
lua
[/inlinecode]. Alternately, you could open the .
lua
file that you are making and make…first line something like: [inlinecode]#!/usr/bin/
lua
[/inlinecode] or if the .
lua
file is in the same directory as …
Lua how do I make a Text Adventure?
Programming
Software Development
15 Years Ago
by python user
… a long time python programmer and just began programming in
Lua
(I might like it better than python). How might I… began to program a text adventure/IF in
Lua
? Any tips, Pointers? I have a basic knowledge of… great e-book called "Programming in
Lua
" by Roberto Lerusalimschy. Any good
lua
text adventure tutorials on the world wide…
Re: lua and sdl having a hard time
Programming
Software Development
13 Years Ago
by Celtrix
…? or just a lacking feature?). Putting the
Lua
interpreter in its own thread still doesn't …have either done it wrong(most likely that
Lua
is hogging CPU cycles) or SDL just …static) and so that I can use interpret
lua
without having to have a while loop in … all my previous code. ie SDL runs,
Lua
runs both are functioning just fine except that …
Lua wrapper
Programming
Software Development
10 Years Ago
by Daneos
… with clean code? I want to call from c++
lua
functions but I dont really get it.. I only know …a little
LUA
and C++. Example
lua
function I have: Get the level: function Lv… get level ATTR_LP = to get life points Any idea which
lua
wrapper would be the best for me?
Re: Lua execute string of code
Programming
Game Development
14 Years Ago
by gusano79
… some code that'll execute a string of code in
Lua
. If anyone is familiar with Python, It would be the… if I posted in the wrong area, Daniweb has no
Lua
forum and game development would be the closest area to… engines. Any help is appreciated, Thanks![/QUOTE] For future reference,
Lua
questions might fit better in the [URL="http://www…
lua and sdl having a hard time
Programming
Software Development
13 Years Ago
by Celtrix
I am having trouble running the
lua
interpreter at the same time im running sdl and… also having trouble with processing events in sdl while
lua
is embedded basically in some pseudo code this is …what it looks like so far [CODE] #include <
lua
.hpp> #include <SDL/SDL.h> #include … of concept as i'm looking to use
lua
for configuration.
Re: lua methods starting with a double underscore
Programming
Software Development
13 Years Ago
by gusano79
…;1642107]Hi, I would like to know the significance of
lua
methods beginning with an underscore.. for example __init().. Thanks !![/…of that double underscores mean anything to
Lua
is in [URL="http://www.
lua
.org/manual/5.1/manual.html#… will be called when your objects are added in
Lua
with the [ICODE]+[/ICODE] operator. The section of the…
Re: lua and sdl having a hard time
Programming
Software Development
13 Years Ago
by Celtrix
…;stdio.h> #include<string.h> #include<
lua
.hpp> #include<cstdlib> #include<SDL/SDL… * L){ int error; char buf[256]; cout<<"
Lua
>> "; while(fgets(buf,sizeof(buf),stdin) != NULL…") || lua_pcall(L,0,0,0); cout<<"
Lua
>> "; if(error){ fprintf(stderr,"%s\n…
Re: lua and sdl having a hard time
Programming
Software Development
13 Years Ago
by Celtrix
I was leaning towards using
lua
as a backend for the program(well to tell you … and close right and when ran from terminal have a
lua
prompt running. which I have accomplished two of the three… it runs right and
lua
is in the back i just can't close it…
Re: lua and sdl having a hard time
Programming
Software Development
13 Years Ago
by Celtrix
… to parse the events its so simple: [CODE]initialize
lua
and sdl; loop{
lua
interpreter(); while(pollevent){ if ( event.type == sdl_quit){ sdl_quit… it refuse to parse the events? I even tried giving
lua
its own thread and it still doesn't parse correctly.
Re: Lua how do I make a Text Adventure?
Programming
Software Development
15 Years Ago
by Salem
… might I began to program a text adventure/IF in
Lua
? The same way you would in any other programming language…
Re: Lua how do I make a Text Adventure?
Programming
Software Development
15 Years Ago
by python user
… might I began to program a text adventure/IF in
Lua
? The same way you would in any other programming language…
Re: Lua how do I make a Text Adventure?
Programming
Software Development
14 Years Ago
by Isaac Remuant
You might find interesting source code samples from the book "Programming AI by Example" from Matt Buckland. Check out the
Lua
projects. Do not copy paste. Much of that code is educational and a graphic adventure probably requires a pretty good design to avoid spaguetti patterns.
Lua execute string of code
Programming
Game Development
14 Years Ago
by fallopiano
… some code that'll execute a string of code in
Lua
. If anyone is familiar with Python, It would be the…] Essentially, I'd like to do that same thing in
Lua
. BTW sorry if I posted in the wrong area, Daniweb… has no
Lua
forum and game development would be the closest area to…
Re: lua and sdl having a hard time
Programming
Software Development
13 Years Ago
by m4ster_r0shi
… what you want is to make a GUI for a
lua
interpreter, I suggest handling [I]all[/I] kind of input… the buffer, etc...). If the user hits enter, run the
lua
interpreter on your buffer.
Re: Lua Problems
Programming
Software Development
16 Years Ago
by skatamatic
…]Hey, I'm trying to make a basic engine in
Lua
that prints out "Hello World" now I have… downloaded
lua
and put the files include files into the same folder…? Please help :( thanks[/QUOTE] You seem to have posted a
Lua
language question in the C++ forum. I wouldn't expect…
Re: Lua execute string of code
Programming
Game Development
14 Years Ago
by 0x69
[QUOTE=fallopiano;1464979]Hey everyone, as the title suggests I'm trying to find a function or some code that'll execute a string of code in
Lua
. [/QUOTE] [URL="http://www.
lua
.org/manual/5.1/manual.html#pdf-loadstring"]LoadString()[/URL]
Lua Problems
Programming
Software Development
16 Years Ago
by Phil++
Hey, I'm trying to make a basic engine in
Lua
that prints out "Hello World" now I have downloaded
lua
and put the files include files into the same folder. But it won't compile. Is there a linker I need? Please help :( thanks
Lua in Visual C++ 2008
Programming
Software Development
15 Years Ago
by chrishtones
So I am trying to set up
Lua
on Visual C++ 2008 and I keep getting this error: […] #include <iostream> extern "C" { #include "
lua
.h" } using namespace std; int main(int argc, char…
lua methods starting with a double underscore
Programming
Software Development
13 Years Ago
by kartik14
Hi, I would like to know the significance of
lua
methods beginning with an underscore.. for example __init().. Thanks !!
Re: Python or Lua
Programming
Software Development
14 Years Ago
by jcao219
Lua
has a really small standard library. Also, I think it's used a lot as a game scripting language.
Integrating Lua into C++ problem...
Programming
Software Development
15 Years Ago
by nickguletskii
…Builder is used for build **** g++ -LD:\Program Files\
Lua
\5.1\lib -oMacroLua.exe MainLuaTest.o MainLuaTest.o: In…site: [CODE]extern "C" { #include "
lua
.h" #include "lualib.h" #include &…;); lua_close(L); return 0; } [/CODE] I have
Lua
for Windows installed... What is the problem? :?: Thanks in…
Integrating Lua into C++ problem...
Programming
Software Development
14 Years Ago
by greeran
…here but it didn't help me. i have installed
lua
and i can see it in /usr/include and /usr… the same code as the previous descussion [CODE] #include <
lua
.h> #include <lualib.h> #include <…// load the libs luaL_openlibs(L); //run a
Lua
scrip here luaL_dofile(L,"test.
lua
"); printf("\nI am done with…
Re: Integrating Lua into C++ problem...
Programming
Software Development
14 Years Ago
by StuXYZ
…++] #include <iostream> extern "C" { #include <
lua
.h> #include <lualib.h> #include <lauxlib… need to add a -I flag to point to the
lua
include directories and -L flag to point to your liblua….so library. [In your case, your
lua
files are in /usr/include and /usr/lib so it…
Re: Integrating Lua into C++ problem...
Programming
Software Development
15 Years Ago
by Salem
> g++ -LD:\Program Files\
Lua
\5.1\lib -oMacroLua.exe MainLuaTest.o You told the … L). If the library is lib[COLOR="Red"]
lua
[/COLOR].a for example, you would add -l[COLOR="…
Re: Integrating Lua into C++ problem...
Programming
Software Development
15 Years Ago
by nickguletskii
… **** **** Internal Builder is used for build **** g++ -LD:\Program Files\
Lua
\5.1\lib -oMacroLua.exe MainLuaTest.o -llua5.1.lib…
Re: Integrating Lua into C++ problem...
Programming
Software Development
14 Years Ago
by greeran
the compiler dosent seem to find the
lua
lib. i compiled and installed the
lua
again and verified that its in /use/lib. but i still can't seem to compile my application. ???
Re: How to get file path in Lua...
Programming
Software Development
14 Years Ago
by gusano79
…? For now, I'm assuming that we're talking about
Lua
5.1.4 because it's the current release. Are…;)[/ICODE] if you need a 100% standard
Lua
solution. I don't think
Lua
can help you directly on this one. [ICODE… [ICODE]userdata[/ICODE] objects, which you can't modify from
Lua
, so you can't just stick the filename string in…
Help recreating a LUA function into a VB.NET function
Programming
Software Development
13 Years Ago
by Archades
… small project. A video game uses a scripting engine called
LUA
so people can create their own UI modifications in game…. Which is why I am also using
LUA
. I am trying to convert this
LUA
function into a VB.NET function and…
1
2
3
7
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC