Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gettitles #31

Open
retrosapien opened this issue Jan 2, 2025 · 1 comment
Open

gettitles #31

retrosapien opened this issue Jan 2, 2025 · 1 comment

Comments

@retrosapien
Copy link

retrosapien commented Jan 2, 2025

I am having trouble updating the titles file;

wit -t gettitles
mkdir: cannot create directory ‘./share’: Permission denied
***    load ./share/titles.txt from http://gametdb.com/titles.txt
./load-titles.sh: line 71: ./share/titles.txt.tmp: No such file or directory
***    load ./share/titles-de.txt from http://gametdb.com/titles.txt?LANG=DE
./load-titles.sh: line 71: ./share/titles-de.txt.tmp: No such file or directory
***    load ./share/titles-es.txt from http://gametdb.com/titles.txt?LANG=ES
./load-titles.sh: line 71: ./share/titles-es.txt.tmp: No such file or directory
***    load ./share/titles-fr.txt from http://gametdb.com/titles.txt?LANG=FR
./load-titles.sh: line 71: ./share/titles-fr.txt.tmp: No such file or directory
***    load ./share/titles-it.txt from http://gametdb.com/titles.txt?LANG=IT
./load-titles.sh: line 71: ./share/titles-it.txt.tmp: No such file or directory
***    load ./share/titles-ja.txt from http://gametdb.com/titles.txt?LANG=JA
./load-titles.sh: line 71: ./share/titles-ja.txt.tmp: No such file or directory
***    load ./share/titles-ko.txt from http://gametdb.com/titles.txt?LANG=KO
./load-titles.sh: line 71: ./share/titles-ko.txt.tmp: No such file or directory
***    load ./share/titles-nl.txt from http://gametdb.com/titles.txt?LANG=NL
./load-titles.sh: line 71: ./share/titles-nl.txt.tmp: No such file or directory
***    load ./share/titles-pt.txt from http://gametdb.com/titles.txt?LANG=PT
./load-titles.sh: line 71: ./share/titles-pt.txt.tmp: No such file or directory
***    load ./share/titles-ru.txt from http://gametdb.com/titles.txt?LANG=RU
./load-titles.sh: line 71: ./share/titles-ru.txt.tmp: No such file or directory
***    load ./share/titles-zhcn.txt from http://gametdb.com/titles.txt?LANG=ZHCN
./load-titles.sh: line 71: ./share/titles-zhcn.txt.tmp: No such file or directory
***    load ./share/titles-zhtw.txt from http://gametdb.com/titles.txt?LANG=ZHTW
./load-titles.sh: line 71: ./share/titles-zhtw.txt.tmp: No such file or directory
*** install titles to /usr/share/wit
cp: cannot stat './share/titles*.txt': No such file or directory

Where is the ./share dir? I have read through wit.wiimm.de and can not find any mention of it.
Is it in the same dir as wit? Home dir? It would probably more useful if this error message had an absolute path.
And on the same subject, is there an option to this command to only get the default language titles.txt? Or to specify one? Also, why is it even writing anything? I used the -t option??

EDIT
I think i found it
/usr/share/wit/titles.txt
But it is owned by root
I tried editing the script to save the files in my home dir, but that was useless.
Despite the name of the script, wit does not use it to load the titles. It only uses it to update them.
So, begrudgingly, i had to take ownership of /usr/share/wit.

still got another error, though. I don't think it matters much, though.

wit gettitles
***    load ./share/titles.txt from http://gametdb.com/titles.txt
***    load ./share/titles-de.txt from http://gametdb.com/titles.txt?LANG=DE
***    load ./share/titles-es.txt from http://gametdb.com/titles.txt?LANG=ES
***    load ./share/titles-fr.txt from http://gametdb.com/titles.txt?LANG=FR
***    load ./share/titles-it.txt from http://gametdb.com/titles.txt?LANG=IT
***    load ./share/titles-ja.txt from http://gametdb.com/titles.txt?LANG=JA
***    load ./share/titles-ko.txt from http://gametdb.com/titles.txt?LANG=KO
***    load ./share/titles-nl.txt from http://gametdb.com/titles.txt?LANG=NL
***    load ./share/titles-pt.txt from http://gametdb.com/titles.txt?LANG=PT
***    load ./share/titles-ru.txt from http://gametdb.com/titles.txt?LANG=RU
***    load ./share/titles-zhcn.txt from http://gametdb.com/titles.txt?LANG=ZHCN
***    load ./share/titles-zhtw.txt from http://gametdb.com/titles.txt?LANG=ZHTW
*** install titles to /usr/share/wit
cp: preserving times for '/usr/share/wit/titles-de.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-es.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-fr.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-it.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-ja.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-ko.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-nl.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-pt.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-ru.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-zhcn.txt': Operation not permitted
cp: preserving times for '/usr/share/wit/titles-zhtw.txt': Operation not permitted

Thanks
RS

@retrosapien
Copy link
Author

retrosapien commented Jan 3, 2025

How is your script downloading titles.txt with /n endings instead of /r/n??
I don't see anything that is it because it is parsed by wit, first?
Also, what else is wit doing to the titles.txt file?
It is removing 300 titles, but i couldn't see which ones, because when i compared the files, thats when i noticed the line endings.

echo $(( 10147 - 9837 ))
310

wget -q -O- http://gametdb.com/titles.txt|sort|grep "TITLES" -v|wc -l
10147

wget -q -O- http://gametdb.com/titles.txt|sort|grep "TITLES" -v|head|cat -A

000E01 = NDDEMO^M$
007E01 = Wii Auto Erase Disc^M$
091E00 = Movie-Ch Install Disc Ver. A^M$
23EE41 = Just Dance 2023 Wii Edition^M$
301E01 = GameCube Service Disc^M$
410E01 = Wii Backup Disc v1.31^M$
413E01 = DiscUpdate Disc^M$
5NEA = NWC24Editor^M$
9XGX = SNES9xGX^M$
AFRE01 = New Super Mario Bros. Wii ANDY AFRO'S Custom Collection Volume 8.^M$
wget -q -O- http://gametdb.com/titles.txt|sort|wit titles|wc -l
9759
wget -q -O- http://gametdb.com/titles.txt|sort|wit titles / -|wc -l
9837

wget -q -O- http://gametdb.com/titles.txt|sort|wit titles|head|cat -A

000E01 = NDDEMO$
007E01 = Wii Auto Erase Disc$
091E00 = Movie-Ch Install Disc Ver. A$
23EE41 = Just Dance 2023 Wii Edition$
301E01 = GameCube Service Disc$
410E01 = Wii Backup Disc v1.31$
413E01 = DiscUpdate Disc$
5NEA   = NWC24Editor$
9XGX   = SNES9xGX$
AFRE01 = New Super Mario Bros. Wii ANDY AFRO'S Custom Collection Volume 8.$

I see now why i am have such a hard time with comm and diff, even after using tr -d /r;
the tab formating is different. wit is adding an extra space after the id4 titles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant