cd /my/game/project/folder/
lua /path/to/downloads/hand-holder.lua
If you have feedback, especially negative, please report it here.
Known issues
None at the moment.
Edits
the file has no license attached, but I release it under CC0/Public Domain.
new version uploaded (v0.1), which does a lot to ensure every bit of code is run
new version (v0.1.1), which is helluva lot better at handling for loops (thank you, bartbes), and also removes a superfluous print() statement (sorry 'bout that)
new version (v0.2), which adds a list of constants straight from constants.lua, to give proper suggestions for string constants to be used instead.
new version (v0.3), which skips replacement added in v0.1 for secs.lua and, more generally, any file that doesn't mention love, is nicer when crashing, doesn't crash so easily, and reports newColor as removed (which it didn't do previously) (thank you, TechnoCat).
new version (v0.4), which has an aggressive option (use -a on the command line), that replaces old-style constants to string constants, so you don't have to bother replacing them by hand. I recommend you make a backup first though.
new version (v0.4.1), which (hopefully) fixes a rather stupid mistake.
new version (v0.5), which is truly horrible.
It no longer assumes everybody knows load/update/draw are now in the love table.
It now recognises use of love.filesystem.require and incorrect filenames ('my/lib.lua' instead of 'my.lib.lua') and gives an appropriate warning
Fixes all kind of bad stuff related to tables with key names 'draw', 'load' or 'update'.
Added LUBE to safe libs that don't need to be checked.
new version (v0.5.1), I can't remember what I did, but it hopefully solves some crashes.
eddie@thefunk:~/love/garfield-0.6$ lua /home/eddie/Desktop/hand-holder.lua
hand-holder (v0.2) for converting LÖVE 0.5.0 to 0.6.0
lua: /home/eddie/Desktop/hand-holder.lua:144: bad argument #1 to 'setfenv' (number expected, got nil)
stack traceback:
[C]: in function 'setfenv'
/home/eddie/Desktop/hand-holder.lua:144: in main chunk
[C]: ?
As the top post states, it has many improvements now, and I'm working on a feature that automatically replaces constants with strings (activated by command line switch).
hand-holder (v0.4) for porting games for LÖVE 0.5.0 to 0.6.0
lua: /home/lfcorreia/Download/hand-holder.lua:20: attempt to get length of global 'cfiles' (a nil value)
stack traceback:
/home/lfcorreia/Download/hand-holder.lua:20: in function 'warn'
/home/lfcorreia/Download/hand-holder.lua:35: in main chunk
[C]: ?
hand-holder (v0.4) for porting games for LÖVE 0.5.0 to 0.6.0
lua: /home/lfcorreia/Download/hand-holder.lua:225: bad argument #1 to 'setfenv' (number expected, got nil)
stack traceback:
[C]: in function 'setfenv'
/home/lfcorreia/Download/hand-holder.lua:225: in main chunk
[C]: ?