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".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().
Lady: making savegames easy
Re: Lady: making savegames easy
Re: Lady: making savegames easy
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.
- Attachments
-
- helppls.love
- (13.07 KiB) Downloaded 107 times
-
- helppls.zip
- (13.07 KiB) Downloaded 105 times
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Lady: making savegames easy
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.
Edit: okay, this should work.
Help us help you: attach a .love.
Re: Lady: making savegames easy
OMG thank you!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.
Re: Lady: making savegames easy
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.
It seems like Lady is now not able to load the savefile properly, but instead returns nil.
Thank you in advance.
- Attachments
-
- Treasury of the Mad King.love
- (40.24 KiB) Downloaded 293 times
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Lady: making savegames easy
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.
Help us help you: attach a .love.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Lady: making savegames easy
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
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.
((_((_CRAYOLA_((_((_> GitHub <_((_((_CRAYOLA_((_(()
Re: Lady: making savegames easy
Ah, I see. Thank you for the response. I'll see what I can/should do.
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests