Created
January 22, 2014 01:34
-
-
Save racerxdl/842b929d11c55051d806 to your computer and use it in GitHub Desktop.
Extra Keys Directory List Generator for Fiesta 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def HexRange(start,end): | |
a = int(start, 16) | |
b = int(end, 16) | |
return range(a,b) | |
f = open("extralist","w") | |
# 100 to 2000 | |
for i in HexRange("100","2000"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() # Add F at end, some musics has | |
# 2000 to 3FFF | |
for i in HexRange("2000","3FFF"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() | |
# AFF00 to AFFFF | |
for i in HexRange("AFF00","AFFFF"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() | |
# BF000 to BFFFF | |
for i in HexRange("BF000","BFFFF"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() | |
# DF000 to DFFFF | |
for i in HexRange("DF000","DFFFF"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() | |
# E0000000 to E000FFFF | |
for i in HexRange("E0000000","E000FFFF"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() | |
for i in HexRange("EF0000","EFFFFF"): | |
f.write("/D/%s\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/%s\n"%(hex(i)[2:].upper(),hex(i)[2:].upper())) | |
f.write("/D/%s/A\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/V\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/EN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/KR\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/CN\n"%hex(i)[2:].upper()) | |
f.write("/D/%s/P/A\n"%hex(i)[2:].upper()) | |
print hex(i)[2:].upper() | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment