Hacking FunkiiU bug. Alternative program to generate tickets?

iriez

Well-Known Member
OP
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
49
Website
www.xbins.org
XP
1,867
Country
United States
FunKiiU crashes when attempting to download Romance of the 3 Kingdoms IV Wall of Fire. See output below for particulars, though it looks like the "IV" is a character that is unaccepted and halts the program.

I would be able to mitigate the issue if there was a way to specify via cmd line to auto-generate the ticket along with specifying output dir. There is a output dir argument but only in conjunction with specifying onlinetickets or the key itself.

AFAIK there is no way to run cmd line to tell it "generate .tik for titleidhere", and yes I've read through the github instructions and command line arguments. If anyone knows how to accomplish this with funkiiu I would appreciate the knowledge.


Are there any other tools that can do this? I recall a certain windows installer made by a south american that was a really nice interface and had a full game manager. Anyone remember the name of that app? I know it generated .tik files for unsigned execution.

Here is the output from FunkiiU -

Succesfully populated the selection box..
b'Starting work in: "install\\0005000010134700 _ USA _ Romance of the 3 kingdoms
? _wall of fire"'
Downloading TMD...
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Desktop\AppData\Local\Programs\Python\Python35\lib\tkinter\__in
it__.py", line 1550, in __call__
return self.func(*args)
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\gui.py", line 1180, in
download_clicked
patch_dlc=ptch_demo, simulate=sim, tickets_only=tick_only)
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU.py", line 264,
in process_title_id
if not download_file(baseurl + '/tmd', tmd_path, retry_count):
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU.py", line 116,
in download_file
print('-Downloading {}.\n-File size is {}.\n-File in disk is {}.'.format(out
fname, expected_size,diskFilesize))
File "C:\Users\Desktop\AppData\Local\Programs\Python\Python35\lib\encodings\cp
437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2173' in position
72: character maps to <undefined>
Traceback (most recent call last):
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\gui.py", line 1198, in
<module>
root.mainloop()
File "C:\Users\Desktop\AppData\Local\Programs\Python\Python35\lib\tkinter\__in
it__.py", line 1131, in mainloop
self.tk.mainloop(n)
 

dojafoja

life elevated
Member
Joined
Jan 2, 2014
Messages
696
Trophies
1
XP
2,612
Country
Its a known issue and easy to fix but we're lazy :P
Also in the options tab of FunKii-UI there is a tickets only option. Enable it and download like normal to generate only ticket. The cmd line version has a -ticketsonly argument. You can use the FunKiiU master branch on cearp's github in conjunction with Python 2 it will download that title successfully. The other app you are thinking of is WiiU USB Helper.
 
Last edited by dojafoja,

iriez

Well-Known Member
OP
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
49
Website
www.xbins.org
XP
1,867
Country
United States
Thank you very much for the quick reply. At https://github.com/cearp?tab=repositories

I do not see a funkiiu branch?

Here's what happens when I use the -ticketsonly arg.

H:\Wii U games\FunKiiU-2.2 - Used to generate tik>FunKiiU.py -title 000500001013
4700 -outputdir ROM3 -ticketsonly
*******
FunKiiU 2.2 by cearp and the cerea1killer
*******

You also need to provide '-keys' or use '-onlinekeys' or '-onlinetickets'

(which seems to defeat the purpose of -ticketsonly)

What is the proper synatx? And could you point me to the correct branch? I see the master here - https://github.com/llakssz/FunKiiU/branches , but I dont see it on cearp's github?

Thanks!
 

dojafoja

life elevated
Member
Joined
Jan 2, 2014
Messages
696
Trophies
1
XP
2,612
Country
That latter is cearps github or at least one he is a member of. If there isn't a legit ticket available in the key site then a fake one needs to be generated. You need a key to generate the fake ticket which is why you need to specify -onlinekeys or -keys
 
Last edited by dojafoja,

iriez

Well-Known Member
OP
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
49
Website
www.xbins.org
XP
1,867
Country
United States
That latter is cearps github or at least one he is a member of. If there isn't a legit ticket available in the key site then a fake one needs to be generated. You need a key to generate the fake ticket which is why you need to specify -onlinekeys or -keys

I attempted to specify -onlinekeys and it throws a similar error....is it because im using python 3.5.x? Just looked at the appdata dir and says python35 ....

H:\Wii U games\FunKiiU-2.2 - Used to generate tik>FunKiiU2.py -title 00050000101
34700 -outputdir ROM3 -ticketsonly -onlinekeys
*******
FunKiiU 2.2 by cearp and the cerea1killer
*******

Downloading/updating data from wiiu.titlekeys.com
-Downloading titlekeys.json.
-File size is None.
-File in disk is 246631.
Downloaded data OK!
b'Starting work in: "install\\0005000010134700 _ USA _ Romance of The 3 Kingdoms
? _Wall of Fire"'
Downloading TMD...
Traceback (most recent call last):
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU2.py", line 117
, in download_file
print('-Downloading {}.\n-File size is {}.\n-File in disk is {}.'.format(out
fname, expected_size,diskFilesize))
File "C:\Users\Desktop\AppData\Local\Programs\Python\Python35\lib\encodings\cp
437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2163' in position
77: character maps to <undefined>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU2.py", line 444
, in <module>
tickets_only=arguments.tickets_only)
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU2.py", line 405
, in main
process_title_id(title_id, title_key, name, region, output_dir, retry_count,
onlinetickets, patch_demo, patch_dlc, simulate, tickets_only)
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU2.py", line 267
, in process_title_id
if not download_file(baseurl + '/tmd', tmd_path, retry_count):
File "H:\Wii U games\FunKiiU-2.2 - Used to generate tik\FunKiiU2.py", line 119
, in download_file
print('-Downloading {}.\n-File size is {}.\n-File in disk is {}.'.format(rep
r(outfname), expected_size,diskFilesize))
File "C:\Users\Desktop\AppData\Local\Programs\Python\Python35\lib\encodings\cp
437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2163' in position
80: character maps to <undefined>
 

dojafoja

life elevated
Member
Joined
Jan 2, 2014
Messages
696
Trophies
1
XP
2,612
Country
Yes. The current fix for the obscure unicode characters is only working in Python 2. It is still breaking in Python 3. There is a known better fix that works in both versions of python but I have yet to sit down and implement it. Im not sure if anybody else is even still working on the project or had interest in fixing it but basically all the print statements just need to be rewritten to use the existing log function instead to fix the issue.
 
  • Like
Reactions: pelago and iriez

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/wZgjSNb-o4c?si=ajt4Lgq_LTYcXxs2 +1