WerWolv / EdiZon_CheatsConfigsAndScripts

The official EdiZon Editor Config and Editor Script repository.
464 stars 260 forks source link

Added cleanup script for cheats and modified cheat files with issues #76

Closed ghost closed 5 years ago

ghost commented 5 years ago

I made a little script to fix some common issues with the dumped cheat scripts on the "old" repo (repo that was only alive for a few days). So i'm including it here again, along with some fixes done by said script. There's still room for improvement as it was a quick job but serves well for some base cases like extra spaces, comments without brackets etc.

There are other cases where the script currently doesn't fix the issue, but modifies the file and a diff will tell you what the issue was. These were the cases:

Fix comment without brackets: https://github.com/WerWolv/EdiZon_CheatsConfigsAndScripts/blob/master/Cheats/0100A0500348A000/cheats/448E0F0E1C1CBADE.txt https://github.com/WerWolv/EdiZon_CheatsConfigsAndScripts/blob/master/Cheats/0100bde00862a000/cheats/88ef9ecb522d12db.txt

Fix last block to remove 1 zero (9 total): https://github.com/WerWolv/EdiZon_CheatsConfigsAndScripts/blob/master/Cheats/0100ADF0096F2000/cheats/49cf469a110921e7.txt https://github.com/WerWolv/EdiZon_CheatsConfigsAndScripts/blob/master/Cheats/01007AD00013E000/cheats/146EAADFE847C841.txt

Replace weird character at beginning that is not [ but looks like it: https://github.com/WerWolv/EdiZon_CheatsConfigsAndScripts/blob/master/Cheats/010057d006492000/cheats/0d8a6a8804a6654c.txt

WerWolv commented 5 years ago

Awesome! Thanks a lot!