ROM Hack Release: GenTickets

Would you like TitleID to be included in the file name?


  • Total voters
    23

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
The download process is relatively slow when processing the entire encTitleKeys from that one key site.

Is it possible to add a feature to only download new tickets when running it a second time?
Done. The script now skips TitleIDs that already exist in the 'Tickets\titles.csv' file. This also allows you to add titles to the CSV without worrying about duplicates.

I can't speed up the region filtering as it requires the metadata to be downloaded and parsed to obtain the region. So out of region titles will still be processed and that can take some time.
 

temper999

Well-Known Member
Member
Joined
Sep 22, 2015
Messages
327
Trophies
0
XP
520
Country
Gambia, The
All of the generated titles have a blank space in name at start.
Also it would be great if the titleid would be attached also to the file name.
 

Leeful

GBAtemp Member
Developer
Joined
Sep 4, 2015
Messages
1,903
Trophies
1
XP
7,068
Country
United Kingdom
All of the generated titles have a blank space in name at start.
Also it would be great if the titleid would be attached also to the file name.
To remove the space at the start of the filename edit line 228:

FROM:
outfile = 'Tickets/ ' + ret_title_name_stripped + ' (' + ret_region + ').tik'
TO:
outfile = 'Tickets/' + ret_title_name_stripped + ' (' + ret_region + ').tik'

To include the titleID in the filename, edit the same line to:

outfile = 'Tickets/' + ret_title_name_stripped + ' (' + ret_region + ')(' + titleid + ').tik'

This worked for me.
 

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
All of the generated titles have a blank space in name at start.
Also it would be great if the titleid would be attached also to the file name.
Fixed, don't know why I did not notice that.

It didn't fix it for me, it still crashes with "OSError: [Errno 22] Invalid argument: 'Tickets/ THE "DENPA" MEN 2 Beyond the Waves (USA).tik'
It works on my test machine, but I think this may have to do with how Windows command prompt handles double-quotes. I've uploaded a new version which simply removes the quotes, could you test just Denpa Men using its TitleID and Encrypted TitleKey first before running the whole BIN file?
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
3,004
Trophies
2
XP
2,812
Country
Fixed, don't know why I did not notice that.


It works on my test machine, but I think this may have to do with how Windows command prompt handles double-quotes. I've uploaded a new version which simply removes the quotes, could you test just Denpa Men using its TitleID and Encrypted TitleKey first before running the whole BIN file?

It failed when using the individual title id and encrypted title key (it just said
Processing Ticket 1 of 1 ; Creation Failed) but it works fine when processing the entire database.
 

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
It failed when using the individual title id and encrypted title key (it just said
Processing Ticket 1 of 1 ; Creation Failed) but it works fine when processing the entire database.
I am even more confused. Will have to fire up my Windows machine for some more testing. Thanks for the report.

Out of curiosity, any other Windows users having issues?
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
3,004
Trophies
2
XP
2,812
Country
I am even more confused. Will have to fire up my Windows machine for some more testing. Thanks for the report.

Out of curiosity, any other Windows users having issues?

It is possible the key didn't get copied properly or some other user error. I might try again tomorrow.
 

jaykureno

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
219
Trophies
0
Age
33
XP
556
Country
I just get this when trying to run on mac
Traceback (most recent call last):

File "gentickets.py", line 35, in <module>

from Crypto.Cipher import AES

ImportError: No module named 'Crypto'
 
Last edited by jaykureno,

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
I just get this when trying to run on mac
Traceback (most recent call last):

File "gentickets.py", line 35, in <module>

from Crypto.Cipher import AES

ImportError: No module named 'Crypto'
You need to install PyCrypto as listed in the requirements. If you're on a Mac (like I am) first install Homebrew for Mac OS X if you have not:

Code:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install PyCrypto

Code:
pip3 install PyCrypto
 

jaykureno

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
219
Trophies
0
Age
33
XP
556
Country
You need to install PyCrypto as listed in the requirements. If you're on a Mac (like I am) first install Homebrew for Mac OS X if you have not:

Code:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install PyCrypto

Code:
pip3 install PyCrypto
ofc I aldready had homebrew installed and I installed paramiko earlier today. I thought that included pycrypto.
 

jaykureno

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
219
Trophies
0
Age
33
XP
556
Country
Okay so now that I have my tickets generated how do I go about installing them to my console through FBIv2?
 

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Okay so now that I have my tickets generated how do I go about installing them to my console through FBIv2?
Get FBI v2.0.5 or newer. Copy the tickets folder to your memory card. Open FBI and go to SD > Tickets and you'll see all the tickets. Press A on one and choose the install all option. Then you can exit FBI, open the eShop, search for the title and tap to re-download it.
 

jaykureno

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
219
Trophies
0
Age
33
XP
556
Country
Get FBI v2.0.5 or newer. Copy the tickets folder to your memory card. Open FBI and go to SD > Tickets and you'll see all the tickets. Press A on one and choose the install all option. Then you can exit FBI, open the eShop, search for the title and tap to re-download it.
Well there is no install option on my tickets.
 

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,378
Trophies
2
XP
18,295
Country
Sweden
wohsh, wasn't easy to get Python3 to work for me. Not really familiar with these things. A youtube video later and pycrypto downloaded it works. I really hope @cearp adds region select in FunKeyCIA later on.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and with yourself :creep:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    As a reminder crack pipes left in the lobby will be thrown away, the DMV is not responsible for lost crack pipes!
  • K3Nv2 @ K3Nv2:
    I got a camera I can film what I want
    +1
  • BigOnYa @ BigOnYa:
    Gotta give my fans what they want...
    +1
  • K3Nv2 @ K3Nv2:
    Deeze nuts
  • ZeroT21 @ ZeroT21:
    get crackin'
  • Psionic Roshambo @ Psionic Roshambo:
    Well hmm got that Eeros 6+ router working so no need for a new one for now lol
  • Psionic Roshambo @ Psionic Roshambo:
    Scratch!!! In broad daylight!!!
  • BakerMan @ BakerMan:
    guys, is it truly discrimination if you dislike everyone equally? like, if i dislike everyone, then am i racist, sexist, homophobic, transphobic, ableist, etc., or am i just a hater?
    +1
  • BigOnYa @ BigOnYa:
    All of the above...
  • K3Nv2 @ K3Nv2:
    You gotta be on Psis level and hate your own people
    +2
  • BakerMan @ BakerMan:
    i meant everyone, even my own people, and myself
  • BigOnYa @ BigOnYa:
    Oh, well thats ok then
  • BakerMan @ BakerMan:
    (i don't dislike people, it's just a hypothe- aaaaaand i'm banned aren't i?)
  • Psionic Roshambo @ Psionic Roshambo:
    Good good let your hate flow through you!!!
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Emperor Palpetine reveals that he is trans Jewish pro abortion and drives a Prius!
  • Psionic Roshambo @ Psionic Roshambo:
    Unlimited Power!!!
  • K3Nv2 @ K3Nv2:
    Hate fuels your cybertruck
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah this Eero router is way better than the one my ISP gave me, still might need to buy one but until then this one is better lol
  • Psionic Roshambo @ Psionic Roshambo:
    The one Comcast provided is apparently powered by a comadore 64 chip lol
  • Psionic Roshambo @ Psionic Roshambo:
    What's weird is that they both have about the same speed in bandwidth but the Comcast one feels laggy like click something and it takes a second to load, the Eero one is just instant lol
    Psionic Roshambo @ Psionic Roshambo: What's weird is that they both have about the same speed in bandwidth but the Comcast one feels...