Error: launching the .love in same directory than love.exe
Posted: Sun Mar 20, 2011 9:48 pm
Hi,
I've started to develop an original game call Tetris with love !
The game run correctly if I launch the game like that from the command prompt:
../love.exe tetris.love (in this case the file is in the same directory than love.exe
or like that
../love.exe ../tetris.love (here in the sub directory tetris)
I launch it from the directory tetris.
(windows XP SP3)
directory structure is:
love
love\tetris
love\tetris\resources
love\tetris\txt
but If I launch it
love.exe tetris.love or drag the .love in the love.exe
I get an error it seems that the "system" is unable to read or find a text file in the subdirectory txt.
I use the lua library libSaveTableToFile
Error: [string "menu.lua"]:9: attempt to get length of field 'menuItems' (a nil
value)
stack traceback:
the call is :
self.menuItems = table.load("txt/menu_"..lang..".txt")
self.nbItems = #self.menuItems
I've try to put the directory "txt" in the same directory than love.exe without success.
Any help are very welcome. I'm
Thank you.
I've started to develop an original game call Tetris with love !
The game run correctly if I launch the game like that from the command prompt:
../love.exe tetris.love (in this case the file is in the same directory than love.exe
or like that
../love.exe ../tetris.love (here in the sub directory tetris)
I launch it from the directory tetris.
(windows XP SP3)
directory structure is:
love
love\tetris
love\tetris\resources
love\tetris\txt
but If I launch it
love.exe tetris.love or drag the .love in the love.exe
I get an error it seems that the "system" is unable to read or find a text file in the subdirectory txt.
I use the lua library libSaveTableToFile
Error: [string "menu.lua"]:9: attempt to get length of field 'menuItems' (a nil
value)
stack traceback:
the call is :
self.menuItems = table.load("txt/menu_"..lang..".txt")
self.nbItems = #self.menuItems
I've try to put the directory "txt" in the same directory than love.exe without success.
Any help are very welcome. I'm
Thank you.