Automatically converting 0.5.0 games to 0.6.0
Posted: Fri Jan 08, 2010 11:27 am
Well, that won't happen. But I have a script that finds things that have changed, and warns you about them.
It is not completely ready. I must have forgotten a few things, and it might crash, but general this will find quite some things.
To use it, run
If you have feedback, especially negative, please report it here.
Known issues
None at the moment.
Edits
It is not completely ready. I must have forgotten a few things, and it might crash, but general this will find quite some things.
To use it, run
Code: Select all
cd /my/game/project/folder/
lua /path/to/downloads/hand-holder.lua
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.
- new version (v0.5.2), which handles all callbacks, instead of just load, update and draw. See http://love2d.org/forum/viewtopic.php?f ... =20#p13803.