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?
Lua Error
Moderator: Coders of Rage
- Light-Dark
- 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
<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
- Falco Girgis
- 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
...you aren't even passing the Lua state to either function...
You might want to have another look at those prototypes.
You might want to have another look at those prototypes.
- Light-Dark
- 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
luaL_dofile(L,"filenamehere")
woops forgot it but i have that in there ._.
it still wont work
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