resmenu.lua:86 attempt to index local 'file' (a nil value)
A classic JRPG
Re: A classic JRPG
I get an error :-/.
-
- Prole
- Posts: 9
- Joined: Mon Jan 05, 2015 9:45 pm
Re: A classic JRPG
Are you running it on Linux, Mac, or Windows?
Did the error happen right away, or after choosing from the resolution menu?
Did the error happen right away, or after choosing from the resolution menu?
Re: A classic JRPG
Yup, it does crash for me too on there right after choosing one of the resolutions. I am using windows 7.retropower wrote:Are you running it on Linux, Mac, or Windows?
Did the error happen right away, or after choosing from the resolution menu?
-
- Prole
- Posts: 9
- Joined: Mon Jan 05, 2015 9:45 pm
Re: A classic JRPG
Can you do me a favor and check this executable? This seems to work on every Windows 7 I've tested it on (the .exe).
https://dl.dropboxusercontent.com/u/635 ... indows.zip
Thank you so much for letting this come to my attention. Hopefully I can narrow down what the issue is and fix it, since it works fine on my machine.
https://dl.dropboxusercontent.com/u/635 ... indows.zip
Thank you so much for letting this come to my attention. Hopefully I can narrow down what the issue is and fix it, since it works fine on my machine.
Re: A classic JRPG
Me too (on linux). The reason is that at this point it tries to save a file in a directory which does not yet exist. For me, the fix was to create it:SiENcE wrote:I get an error :-/.
resmenu.lua:86 attempt to index local 'file' (a nil value)
Code: Select all
mkdir ~/.local/share/love/lunar
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
Re: A classic JRPG
@retropower
I didn't check but you have to set your game folder identity upon release.
I didn't check but you have to set your game folder identity upon release.
-
- Prole
- Posts: 9
- Joined: Mon Jan 05, 2015 9:45 pm
Re: A classic JRPG
Okay, made some fixes with file system access-
https://dl.dropboxusercontent.com/u/635 ... lunar.love
https://dl.dropboxusercontent.com/u/635 ... lunar.love
Re: A classic JRPG
It still doesn't create the lunar-folder inside love-directory. If I manually create lunar-directory in %APPDATA%/LOVE, it works. Is there a specific reason to not use loves filesystem but io.open?
The game itself really has this old school jrpg feeling to it. This could be just my personal thing, but I feel that the a and b-buttons for controller should be reversed, or maybe make option that you can reverse them. At least in my opinion it should offer some name instead of having to always choose one, well you can leave it as blank, maybe randomly generated or something when creating characters. While checking the stats, you can actually move around the map. The attack sounds were terribly loud compared to other sounds.
The game really did have the old school feeling to it and I did quite like what you had in there. Nice music, nice retro style graphics, the day-night cycle. I just happened to finish Mother 1-3 (Earthbound 0-2) in the past few days ago and the combat system really felt familiar. I do hope that youll get to finish the game one day.
The game itself really has this old school jrpg feeling to it. This could be just my personal thing, but I feel that the a and b-buttons for controller should be reversed, or maybe make option that you can reverse them. At least in my opinion it should offer some name instead of having to always choose one, well you can leave it as blank, maybe randomly generated or something when creating characters. While checking the stats, you can actually move around the map. The attack sounds were terribly loud compared to other sounds.
The game really did have the old school feeling to it and I did quite like what you had in there. Nice music, nice retro style graphics, the day-night cycle. I just happened to finish Mother 1-3 (Earthbound 0-2) in the past few days ago and the combat system really felt familiar. I do hope that youll get to finish the game one day.
Re: A classic JRPG
So, I found a solution here for those of you having issues getting past the resolution menu. You have a couple lines of code that are commented that should not be in your engine/snesgui/resmenu.lua file:
If you uncomment these, it will allow the game to create the necessary directory, and the necessary 'res' file.
To test it, make sure you delete your save directory, otherwise, you don't know if it creates one or not
Code: Select all
function res_menu:save(size, fullscreen)
local file
-- file = love.filesystem.newFile("res") <-- UNCOMMENT ME
-- file:open("w") <-- UNCOMMENT ME
local file = io.open(love.filesystem.getSaveDirectory() .."/res", "w")
local l={}
l.size=size
l.fullscreen=fullscreen
file:write( TSerial.pack(l) )
file:close()
end
To test it, make sure you delete your save directory, otherwise, you don't know if it creates one or not
-
- Prole
- Posts: 9
- Joined: Mon Jan 05, 2015 9:45 pm
Re: A classic JRPG
That was added in for one reason alone- the binary combined exe and .love file won't find the save files otherwise.
I'll have a fix later.
I'll have a fix later.
Who is online
Users browsing this forum: No registered users and 4 guests