Hacking TKRom Organizer

Status
Not open for further replies.

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The

This CC-License applies to all versions of TKRom Organizer. Also the DemoVersions.


Please
>>Donate>Download TKRom Organizer here
 

macearl

Active Member
Newcomer
Joined
Jun 7, 2009
Messages
28
Trophies
0
XP
212
Country
Gambia, The
just a quick question, will the "custom rename" function be implemented first or is the gui your main priority right now?
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
I think ill first add a settingsfile wich also includes the custom rename function.
I also intend to release two parallel versions in the future one with a gui and one commandline only.
Does the tool work for you?
 

macearl

Active Member
Newcomer
Joined
Jun 7, 2009
Messages
28
Trophies
0
XP
212
Country
Gambia, The
works great for me, havent found any bugs either.

What would be great so if you could implenent some options like

Code:
tkro.exe -p D:\roms\ -r all --pattern "%N %T %R"

where -p would be path, -r rename and pattern the custom rename pattern where %N would be Number, %T title and %R region
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
macearl said:
works great for me, havent found any bugs either.

What would be great so if you could implenent some options like

Code:
tkro.exe -p D:\roms\ -r all --pattern "%N %T %R"

where -p would be path, -r rename and pattern the custom rename pattern where %N would be Number, %T title and %R region

I plan to do so after i implemented the settingsfileusage

I know that this is only a minor update as i just implemented the copyall-function and a few other little things but i considered the copyall-function to be important enpugh to release this version now
smile.gif
 

macearl

Active Member
Newcomer
Joined
Jun 7, 2009
Messages
28
Trophies
0
XP
212
Country
Gambia, The
just a small correction

it should be "progress bar" not "process bar"

and i get an error when i try to rename all roms:

CODEC:/Users/MacEarl/AppData/Local/Temp/ocr7D6D.tmp/src/tkro.rb:108:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr7D6D.tmp/src/tkro.rb:104:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr7D6D.tmp/src/tkro.rb:104:in `'

when i try to copy all roms to another folder i get this error:

CODEDestpath set to default (D:/testroms/).
copying all romfiles to D:/testroms/...
1/4:ÂÂÂÂ
C:/Users/MacEarl/AppData/Local/Temp/ocr9F5E.tmp/src/tkro.rb:122:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr9F5E.tmp/src/tkro.rb:119:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr9F5E.tmp/src/tkro.rb:119:in `'

when i try to listall roms i get this error:
CODElistroms
C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:130:in `+': can't convert nil into String (TypeError)
from C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:130:in `block in '
from C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:129:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:129:in `'

when i try to copy a single rom i get this error:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr9003.tmp/src/tkro.rb:138:in `': undefined method `chomp' for nil:NilClass (NoMethodError)


edit:

just checked the older Version tkro0005ademo3.zip which worked earlier but now i get this error when i try to rename all roms (different roms then last time)
CODEC:/Users/MacEarl/AppData/Local/Temp/ocrFCF8.tmp/src/tkro.rb:71:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocrFCF8.tmp/src/tkro.rb:67:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocrFCF8.tmp/src/tkro.rb:67:in `'


edit2:

now version 0.001a

error when renaming all:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr762D.tmp/src/tkro.rb:84:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr762D.tmp/src/tkro.rb:80:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr762D.tmp/src/tkro.rb:80:in `'

error list all roms:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `+': can't convert nil into String (TypeError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `block in '
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `'

error copy rom:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `+': can't convert nil into String (TypeError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `block in '
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `'

So in conclusion right now nothing except the exit function works...

Not sure if its because of the roms, they may be not in the database by now...

edit3:

So just checked all Versions with older Roms which are definitely in the Database, all functions work. So just need to do something about "unknown" roms maybe just an if query (not sure if this is right "if Abfrage" in German
wink.gif
) like If $SERIAL in DATABASE do ... else echo Game not in Database.

Also it would be nice if you could use shorter commands like ra = rename all, r = rename, c = copy, ca = copyall ... would save some time
wink.gif
 

Valzi

Well-Known Member
Newcomer
Joined
Jul 12, 2011
Messages
70
Trophies
0
Location
New Mexico
XP
128
Country
United States
Looking good! Eagerly awaiting the gui and custom renaming features (especially the folder renaming bit!) Excited! Thanks!
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
macearl said:
just a small correction

it should be "progress bar" not "process bar"

and i get an error when i try to rename all roms:

CODEC:/Users/MacEarl/AppData/Local/Temp/ocr7D6D.tmp/src/tkro.rb:108:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr7D6D.tmp/src/tkro.rb:104:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr7D6D.tmp/src/tkro.rb:104:in `'

when i try to copy all roms to another folder i get this error:

CODEDestpath set to default (D:/testroms/).
copying all romfiles to D:/testroms/...
1/4:ÂÂÂÂ
C:/Users/MacEarl/AppData/Local/Temp/ocr9F5E.tmp/src/tkro.rb:122:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr9F5E.tmp/src/tkro.rb:119:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr9F5E.tmp/src/tkro.rb:119:in `'

when i try to listall roms i get this error:
CODElistroms
C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:130:in `+': can't convert nil into String (TypeError)
from C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:130:in `block in '
from C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:129:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocrFE.tmp/src/tkro.rb:129:in `'

when i try to copy a single rom i get this error:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr9003.tmp/src/tkro.rb:138:in `': undefined method `chomp' for nil:NilClass (NoMethodError)


edit:

just checked the older Version tkro0005ademo3.zip which worked earlier but now i get this error when i try to rename all roms (different roms then last time)
CODEC:/Users/MacEarl/AppData/Local/Temp/ocrFCF8.tmp/src/tkro.rb:71:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocrFCF8.tmp/src/tkro.rb:67:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocrFCF8.tmp/src/tkro.rb:67:in `'


edit2:

now version 0.001a

error when renaming all:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr762D.tmp/src/tkro.rb:84:in `block in ': undefined method `chomp' for nil:NilClass (NoMethodError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr762D.tmp/src/tkro.rb:80:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr762D.tmp/src/tkro.rb:80:in `'

error list all roms:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `+': can't convert nil into String (TypeError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `block in '
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `'

error copy rom:
CODEC:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `+': can't convert nil into String (TypeError)
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:90:in `block in '
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `each'
from C:/Users/MacEarl/AppData/Local/Temp/ocr5998.tmp/src/tkro.rb:89:in `'

So in conclusion right now nothing except the exit function works...

Not sure if its because of the roms, they may be not in the database by now...

edit3:

So just checked all Versions with older Roms which are definitely in the Database, all functions work. So just need to do something about "unknown" roms maybe just an if query (not sure if this is right "if Abfrage" in German
wink.gif
) like If $SERIAL in DATABASE do ... else echo Game not in Database.

Also it would be nice if you could use shorter commands like ra = rename all, r = rename, c = copy, ca = copyall ... would save some time
wink.gif


Yeah the problem really might be because of unknown roms. Ill fix that with the next update also the shorter names maybe the long and the short terms will be possible then
smile.gif


QUOTELooking good! Eagerly awaiting the gui and custom renaming features (especially the folder renaming bit!) Excited! Thanks!

Thank you
smile.gif
I am afraid you've got to wait till the weekend for the next ubpdate as i am still working the whole day (wont change in the next 2 weeks ;( but ill post updates in a higher frequency then
smile.gif
)

v0.003a release:

i added the renamepatternfeature
smile.gif


change the pattern by editing the settings.tkr file

for now youve only got the options %romserial%, %romname%

please post your wishes for future renameoptions
smile.gif


also you can change the rompath within the settings.tkr so you wont have to type it in everytime you start the tool
smile.gif


Download at the first post of this Thread
 

macearl

Active Member
Newcomer
Joined
Jun 7, 2009
Messages
28
Trophies
0
XP
212
Country
Gambia, The
Doesnt work
wink.gif


maybe just because you forgot to include the settings.tkr?

CODED:\Downloads\tkro0.003a\tkro>tkro.exe
C:/Users/MacEarl/AppData/Local/Temp/ocrD2E.tmp/src/tkro.rb:99:in `readlines': No such file or directory - settings.tkr (Errno::ENOENT)
from C:/Users/MacEarl/AppData/Local/Temp/ocrD2E.tmp/src/tkro.rb:99:in `'

here some ideas for the rename function:
Title
Publisher
Rom Number (i would like the ones from ds scene, in Offline List they are the ones with %e (comment) and not the %u (Rom Number) i dont know which rom numbers the %u are)
Language
Country of Origin
Source
Rom size
Number of Languages
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
macearl said:
Doesnt work
wink.gif


maybe just because you forgot to include the settings.tkr?

CODED:\Downloads\tkro0.003a\tkro>tkro.exe
C:/Users/MacEarl/AppData/Local/Temp/ocrD2E.tmp/src/tkro.rb:99:in `readlines': No such file or directory - settings.tkr (Errno::ENOENT)
from C:/Users/MacEarl/AppData/Local/Temp/ocrD2E.tmp/src/tkro.rb:99:in `'

here some ideas for the rename function:
Title
Publisher
Rom Number (i would like the ones from ds scene, in Offline List they are the ones with %e (comment) and not the %u (Rom Number) i dont know which rom numbers the %u are)
Language
Country of Origin
Source
Rom size
Number of Languages

Damn youre right
biggrin.gif

i updated the archive just download it again
smile.gif

thanks for your suggestions
smile.gif
 

macearl

Active Member
Newcomer
Joined
Jun 7, 2009
Messages
28
Trophies
0
XP
212
Country
Gambia, The
Some new problems.

Path with \ and without "":
CODED:\Downloads\tkro0.003a\tkro>tkro.exe
D:\Dokumente\Konsolen\nds\Nintendo DS Spiele\unbekannt\
Debug-Logging on? (off by default, type "on" and Enter to enable)
on
C:/Users/MacEarl/AppData/Local/Temp/ocr892.tmp/src/tkro.rb:52:in `initdb': undefined local variable or method `logFile' for main:Object (NameError)
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocr892.tmp/src/tkro.rb:110:in `'

Path with / instead of \ in settings file and without "":
CODED:\Downloads\tkro0.003a\tkro>tkro.exe
D:/Dokumente/Konsolen/nds/Nintendo DS Spiele/unbekannt/
Debug-Logging on? (off by default, type "on" and Enter to enable)
on
C:/Users/MacEarl/AppData/Local/Temp/ocrA6E3.tmp/src/tkro.rb:52:in `initdb': undefined local variable or method `logFile' for main:Object (NameError)
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocrA6E3.tmp/src/tkro.rb:110:in `'

Path with \ and "":
CODED:\Downloads\tkro0.003a\tkro>tkro.exe
"D:\Dokumente\Konsolen\nds\Nintendo DS Spiele\unbekannt\"
Debug-Logging on? (off by default, type "on" and Enter to enable)
on
C:/Users/MacEarl/AppData/Local/Temp/ocr7C7.tmp/src/tkro.rb:50:in `open': No such file or directory - "D:\Dokumente\Konsolen\nds\Nintendo DS Spiele\unbekannt\" (Errno::ENOENT)
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocr7C7.tmp/src/tkro.rb:50:in `entries'
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocr7C7.tmp/src/tkro.rb:50:in `initdb'
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocr7C7.tmp/src/tkro.rb:110:in `'

Path with / instead of \ and with "":
CODED:\Downloads\tkro0.003a\tkro>tkro.exe
"D:/Dokumente/Konsolen/nds/Nintendo DS Spiele/unbekannt/"
Debug-Logging on? (off by default, type "on" and Enter to enable)
on
C:/Users/MacEarl/AppData/Local/Temp/ocrD717.tmp/src/tkro.rb:50:in `open': No such file or directory - "D:/Dokumente/Konsolen/nds/Nintendo DS Spiele/unbekannt/" (Errno::ENOENT)
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocrD717.tmp/src/tkro.rb:50:in `entries'
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocrD717.tmp/src/tkro.rb:50:in `initdb'
ÂÂÂÂÂÂÂÂfrom C:/Users/MacEarl/AppData/Local/Temp/ocrD717.tmp/src/tkro.rb:110:in `'

settingsfile:
Code:
Renamepattern (possible: %romname%, %romserial%):
%romserial% - %romname%
Romfolder:
D:\Dokumente\Konsolen\nds\Nintendo DS Spiele\unbekannt\

I believe the one with "" doesnt work because you probably hardcoded those in the code so now the path looks like this for the program: ""D:\..."" and the one without "" doesnt work because of a bug with the log function (the log file gets created but it is empty)
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
Does it work for you with debugging off and without additional ""?

I think i forgot to put the debugfilehandler global ^^
Thank you for your support
smile.gif
 

macearl

Active Member
Newcomer
Joined
Jun 7, 2009
Messages
28
Trophies
0
XP
212
Country
Gambia, The
Yes with debugging off it works

I just noticed a "peep" while it scans the directory is this because there are some 7z files in the folder?
 

Valzi

Well-Known Member
Newcomer
Joined
Jul 12, 2011
Messages
70
Trophies
0
Location
New Mexico
XP
128
Country
United States
t_kiddie said:
v0.003a release:

[...]

please post your wishes for future renameoptions
smile.gif

I'd really like Genre. It's the only option I want/need. Also, it would be even better if you made it so that you could specify path name options, like so: c:\ds_roms\%genre%\%romname%. That would totally be all I needed from your tool.
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
Valzi said:
t_kiddie said:
v0.003a release:

[...]

please post your wishes for future renameoptions
smile.gif

I'd really like Genre. It's the only option I want/need. Also, it would be even better if you made it so that you could specify path name options, like so: c:\ds_roms\%genre%\%romname%. That would totally be all I needed from your tool.

I think a full customisable path is a great idea i will try to implement it as soon as i can. thanks
smile.gif
 

Valzi

Well-Known Member
Newcomer
Joined
Jul 12, 2011
Messages
70
Trophies
0
Location
New Mexico
XP
128
Country
United States
t_kiddie said:
Valzi said:
t_kiddie said:
v0.003a release:

[...]

please post your wishes for future renameoptions
smile.gif

I'd really like Genre. It's the only option I want/need. Also, it would be even better if you made it so that you could specify path name options, like so: c:\ds_roms\%genre%\%romname%. That would totally be all I needed from your tool.

I think a full customisable path is a great idea i will try to implement it as soon as i can. thanks
smile.gif

I'm excited!
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
Does anybody off you have an idea of what the tkro icon should look like?
Maybe someone even could design one and send it to me but i will be also happy of some suggestions on how it shall look like
smile.gif
 

Valzi

Well-Known Member
Newcomer
Joined
Jul 12, 2011
Messages
70
Trophies
0
Location
New Mexico
XP
128
Country
United States
The T, K, and the O could be larger and capitalized and the r could be smaller and not capitalized. This makes a KO (as in "knockout!") Then the icon could be made to look like this:

punchout-ko.jpg


Or you could make the t small as well and make the icon look like this:

F_4_Street_Fighter_IV_ScreenShot_02.jpg


You could make the splash screen be a knock-off of one of those images too!
 

t_kiddie

Well-Known Member
OP
Newcomer
Joined
Jun 27, 2011
Messages
75
Trophies
0
Age
33
Location
Heilbronn
XP
73
Country
Gambia, The
biggrin.gif

I like the idea i think i will give it a try
biggrin.gif

Of course you will be mentioned in the credits then
smile.gif


this will be the last week i am working all day. so you can expect more updates after this week
smile.gif
 
Status
Not open for further replies.

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/Y9WKPRUjNQ4?si=raUf8jEiET8rmH2P