Search found 59 matches

by Cole S.
Mon Dec 08, 2008 8:23 pm
Forum: Game Development
Topic: Lua Question
Replies: 6
Views: 1001

Lua Question

Here is a short and simple question for anyone who knows anything about Lua. Is Lua able to access C++ functions or not?
by Cole S.
Mon Dec 08, 2008 6:18 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

Thx for the help u guys it's working now. :)
by Cole S.
Sun Dec 07, 2008 5:58 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

i downloaded a binary but now when i try to run a sample script i get a blank line in the exe, here is the code: #include <iostream> using namespace std; extern "C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h" } int main() { lua_State *L = lua_o...
by Cole S.
Sun Dec 07, 2008 3:58 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

can i redistribute the bin package?
by Cole S.
Sun Dec 07, 2008 3:54 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

Lol, I had to look up the definition for rhetorical (i'm 13) but yeah i kind of am!
by Cole S.
Sun Dec 07, 2008 11:45 am
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

You know what? I'm going to clear my computer of anything that has to do with lua and start all over again... Now if someone could write a short and sweet guide on how they installed it, or show me where they learned to, that would be great. For now I am going to download Lua 5.1.4 source code.
by Cole S.
Sun Dec 07, 2008 11:19 am
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

i have the .lib files now but also a dll not a static linked library
by Cole S.
Sun Dec 07, 2008 11:07 am
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

Where is the project root??
by Cole S.
Sun Dec 07, 2008 9:40 am
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

Okay I re-built it and found that i had lua5.1.4.lib and lua5.1.4-static the dependency thing worked. It compiles but when i run it it says "This application has failed to start because lua5.1.4.dll was not found. Re-installing the application may fix this problem." But i know my dll is fi...
by Cole S.
Sun Dec 07, 2008 9:13 am
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

I have the source package... the one with nothing compiled, and I followed this guide to build it http://media.wiley.com/product_data/excerpt/71/04700691/0470069171.pdf , and I have .obj files for every c file... so should i just include everything into a project file and compile it like that, or do...
by Cole S.
Sat Dec 06, 2008 10:53 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

Wait... I don't have .lib files i have .obj files?????
by Cole S.
Sat Dec 06, 2008 10:39 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

Nvm stupid question... but how would i add it... thorugh the project properties or global settings?
by Cole S.
Sat Dec 06, 2008 10:25 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Re: Embedding Lua in Visual C++ 2008

What do you mean Link Line...
by Cole S.
Sat Dec 06, 2008 9:18 pm
Forum: Game Development
Topic: Embedding Lua in Visual C++ 2008
Replies: 27
Views: 4773

Embedding Lua in Visual C++ 2008

Well, I am making a game engine for Windows with C++, Win32 API, DirectX, and Lua. So far everything has been working fine except for Lua and it's really getting annoying... Anyways, I have downloaded the Lua source code, built it, and i can run any script i put in the lua.exe application (the conso...