Lua Error

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Lua Error

Post by Light-Dark »

when ever i try to run my program with the luaL_loadfile("filennammehere"); or luaL_dofile("filename"); call stack comes up with this:

#0 10013863 luaL_loadfile() (C:\Users\Owner\Documents\C++\Engine\lua5.1.dll:??)
#1 00402AD0 SDL_main(argc=1, args=0xc12f50) (C:\Users\Owner\Documents\C++\Engine\main.cpp:852)
#2 00403B1B console_main(argc=1, argv=0xc12f50) (./src/main/win32/SDL_win32_main.c:315)
#3 00403BD8 WinMain(hInst=0x400000, hPrev=0x0, szCmdLine=0x9239c1 "", sw=10) (./src/main/win32/SDL_win32_main.c:398)
#4 00000000 0x004034a6 in main() (??:??)

Help?... please?
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Lua Error

Post by Falco Girgis »

...you aren't even passing the Lua state to either function...

You might want to have another look at those prototypes.
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Re: Lua Error

Post by Light-Dark »

luaL_dofile(L,"filenamehere")

woops forgot it but i have that in there ._.

it still wont work :(
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
Post Reply