Re: Big FTL changes are coming!
Posted: Sun Dec 03, 2017 12:23 am
Hello again, I ported the extract-pkg and build-pkg SIL tools to Python (3.5+). They're extremely megacrummy (everything's hardcoded and such, lacks comments) for the time being but they seem to do the job just fine. I probably spent at least 6 hours wondering why FTL wasn't accepting the repacked ftl.dat while I was working on builder.py, only to figure out I needed the line inside the loop in pkg_hash
Here it is:
https://github.com/fdagpigj/newftldat
Next step of course is porting it to Java, the reason I went python first was because I'm way more experienced and comfortable with python than I am with Java, and even if this doesn't make it easier for anyone else to port it to Java, it does for me. I'll try to add comments tomorrow because atm it's hardly more readable than the C code
Code: Select all
hash_ &= 0xFFFFFFFF
Here it is:
https://github.com/fdagpigj/newftldat
Next step of course is porting it to Java, the reason I went python first was because I'm way more experienced and comfortable with python than I am with Java, and even if this doesn't make it easier for anyone else to port it to Java, it does for me. I'll try to add comments tomorrow because atm it's hardly more readable than the C code