Page 3 of 4
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 4:42 am
by qubodup
When I cd to git://git.assembla.com/castlead.git and run lua ~/hand-holder.lua, I get the following.
Code: Select all
lua: /home/qubodup/hand-holder.lua:247: bad argument #1 to 'setfenv' (number expected, got nil)
stack traceback:
[C]: in function 'setfenv'
/home/qubodup/hand-holder.lua:247: in main chunk
[C]: ?
hand-holder (v0.5) for porting games for LÖVE 0.5.0 to 0.6.0
Am I doing something wrong?
PS: thanks for your effort. If it worked for anybody, it was probably a nice peace of help!
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 7:06 am
by Robin
It's not supposed to do that. It means one of the required() files can't be loaded for some reason... Maybe the new version that I haven't uploaded yet fixes that?
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 7:32 am
by qubodup
Unfortunately
Code: Select all
$ lua ~/hand-holder.lua
hand-holder (v0.5.1) for porting games for LÖVE 0.5.0 to 0.6.0
lua: /home/qubodup/hand-holder.lua:250: bad argument #1 to 'setfenv' (number expected, got nil)
stack traceback:
[C]: in function 'setfenv'
/home/qubodup/hand-holder.lua:250: in main chunk
[C]: ?
Hm, I'm missing some file?
Code: Select all
AUTHORS.txt
conf.lua
LICENSE.txt
main.lua
README.txt
lib/
clock.lua
data.lua
draw_functions.lua
getheight.lua
logic.lua
messages.lua
sound.lua
unit_manager.lua
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 7:51 am
by Robin
It doesn't make sense. If the file has syntax errors, (i.e. the chunk is nil) it is supposed to give a warning and return, not continue to setfenv...
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 8:43 am
by kikito
Just wondering: maybe it is a lua version issue? Which lua version are you guys (robin & qubodup) using?
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 10:09 am
by qubodup
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Wed Feb 10, 2010 1:42 pm
by Robin
qubodup wrote:Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
Same. I don't think there are many people who use another version. 5.1 is pretty old, and 5.2 isn't released yet.
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Sat Mar 13, 2010 7:55 pm
by farvardin
nice script, it helped me.
You could had mousepressed which was replaced by love.mousepressed
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Sat Mar 13, 2010 11:33 pm
by Robin
farvardin wrote:You could had mousepressed which was replaced by love.mousepressed
It didn't catch that?
EDIT: new version catches all callbacks and fixes all bugs found since last release.
Re: Automatically converting 0.5.0 games to 0.6.0
Posted: Sun Mar 14, 2010 8:14 am
by farvardin
thank you. Maybe you could also edit your first post to warn people about the latest release being at the end of this thread.