Replacing elements in all levels
Posted: Fri Feb 17, 2017 6:48 pm
Hello. I have written short program in python that replaces some simple elements to another simple elements in all levels.
It works fine with original supaplex levels imported from levels.dat.
So, in a directory I have 111 files (001.level .. 111.level) and this program.
Example what I have replaced you can see in screen.txt file.
All zonks to stones.
All electrons to diamonds.
All base to dirt.
After all this replacements I have changed game engine to Rocks'n'Diamonds (It was necessary).
I was trying to change another levels but program damaged them.
Probably they have different hex codes for elements.
For example it is not possible to replace empty space - level will be unusable.
I know that is a little bit crazy using it, but I just wanted quickly replace some elements in all levels in 'one click'.
If you would like to use it make a backup of your levels necessarily.
Please tell me what you think about it.
Will be nice to see any suggestions.
Edit: I have added to this program random number of replaces.
It works fine with original supaplex levels imported from levels.dat.
So, in a directory I have 111 files (001.level .. 111.level) and this program.
Example what I have replaced you can see in screen.txt file.
All zonks to stones.
All electrons to diamonds.
All base to dirt.
After all this replacements I have changed game engine to Rocks'n'Diamonds (It was necessary).
I was trying to change another levels but program damaged them.
Probably they have different hex codes for elements.
For example it is not possible to replace empty space - level will be unusable.
I know that is a little bit crazy using it, but I just wanted quickly replace some elements in all levels in 'one click'.
If you would like to use it make a backup of your levels necessarily.
Please tell me what you think about it.
Will be nice to see any suggestions.
Edit: I have added to this program random number of replaces.