Page 3 of 3
Re: Lady: making savegames easy
Posted: Sun Sep 13, 2015 10:50 am
by s-ol
ejmr wrote:setfenv() was removed in Lua 5.2. LÖVE uses LuaJIT, however, which maintains a lot of compatibility with Lua 5.1 and thus still has setfenv(). So my guess is that you are trying to run your code with a verison of Lua that no longer supports setfenv().
If setfenv didn't exist, the error would have to look differently. The only reason I can imagine for that error is that you are passing a wrong "savename".
Re: Lady: making savegames easy
Posted: Fri Sep 18, 2015 8:03 am
by prixt
Here are the basic files that caused the problem. Not sure if Lady doesn't support triple-tables within a middleclass class, but work-arounds are rather unintuitive and would be a hassle in the long run.
Re: Lady: making savegames easy
Posted: Fri Sep 18, 2015 9:04 am
by Robin
Ah, I see the problem. You've reached the maximum amount of locals in your save file, and that's possible because I forgot to fix Lady the same way I did Ser. I'm fixing it right now and will edit this post when you can re-download Lady from GitHub.
Edit: okay, this should work.
Re: Lady: making savegames easy
Posted: Fri Sep 18, 2015 10:04 am
by prixt
Robin wrote:Ah, I see the problem. You've reached the maximum amount of locals in your save file, and that's possible because I forgot to fix Lady the same way I did Ser. I'm fixing it right now and will edit this post when you can re-download Lady from GitHub.
Edit: okay, this should work.
OMG thank you!
Re: Lady: making savegames easy
Posted: Wed Sep 30, 2015 8:27 am
by prixt
Hi, sorry to bother you again. Managed to get some progress on the game, but stumbled on another problem.
It seems like Lady is now not able to load the savefile properly, but instead returns nil.
Thank you in advance.
Re: Lady: making savegames easy
Posted: Sun Oct 04, 2015 2:36 pm
by Robin
I'm sorry, your save file has more than 65536 constants, and Lua can't handle it. There is no way Lady can help you, unless you find a way to make the dungeon much, much smaller in terms of values used. I suggest using [wiki]binser[/wiki], which doesn't store you savegame as Lua. Binser supports middleclass just like Lady does, so the change should be relatively painless.
Re: Lady: making savegames easy
Posted: Mon Oct 05, 2015 12:40 am
by Jasoco
Would be best to try and break the file into multiple parts. And discard any data beforehand that is just empty by setting it to nil.
Re: Lady: making savegames easy
Posted: Mon Oct 05, 2015 2:58 am
by bakpakin
As the author of binser, I agree that it should work and save your game. However, it might not be as easy to set up as Lady. If you do decide to use binser, I'll be glad to help.
Re: Lady: making savegames easy
Posted: Mon Oct 05, 2015 11:45 am
by prixt
Ah, I see. Thank you for the response. I'll see what I can/should do.