Homebrew RELEASE NSP Rename

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
New version with new Features is online.
Corrected an error in Master ID
The Main Game got an 32 bit id while the Updates and DLC got 16 Bit ID
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
I'm away for 3 days now so no Updates for a LONG time ;-)
Next version will get:
Search function.
Copy cell to Clipboard (maybe needed to search for an ID..)
Select needed Update (selects the Update for DLC with highest version)​

Any other wishes / Ideas
 
Last edited by PrixM,

Largooo

Well-Known Member
Newcomer
Joined
Aug 11, 2018
Messages
59
Trophies
0
XP
95
Country
Bangladesh
just tested 1.2.5




1 error message and Game tag seem doesnt work

58fa.png
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
@Largooo
You are right.
I forgot the %Type% Tag in the new Version ;-)
Both errors are reproduced an will be fixed in the next hour.


Fixed and Online:
The TAG was ok it was an error in the new MasterName Tag.
Games don't have a Mastername but the tool wanted one ;-)

Also online the new Functions
Search, Copy cell to clipboard & Select newest update for file under Mouse
 
Last edited by PrixM,
Joined
Aug 23, 2018
Messages
5
Trophies
0
Age
43
XP
74
Country
Brazil
BUG REPORT:

I had the same problem of @Largooo with 1.2.5.

Now with 1.2.6 I am having another error.

I haven`t changed any setting. I just chose my folder and rename.

After clicking in GO it says Run-time error 76, Path not found and closes.

See the pic
 

Attachments

  • Capture.PNG
    Capture.PNG
    26 KB · Views: 297

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
@SebastianValmontX360
Fu.. Uploaded the Testversion.
Sorry.
This version had some hardcoded file acess routines to a File E:\Test.txt (No such dir causes the error)
If you downloaded this version and you have a drive E: you could kill the Test.txt

Updated the Donwloadlink.
 

Largooo

Well-Known Member
Newcomer
Joined
Aug 11, 2018
Messages
59
Trophies
0
XP
95
Country
Bangladesh
well seems almost perfect now

almost ^^

i noticed each time you click on choose source directory , it always go back to the root of your desktop even if you select a specific directory just before
maybe you could start from the install directory of nsp rename and then memorise last directory used

ps : is the titlekeys.txt something like official or just cdnsp pattern for naming game ?
 
Last edited by Largooo,

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
well seems almost perfect now

almost ^^

i noticed each time you click on choose source directory , it always go back to the root of your desktop even if you select a specific directory just before
maybe you could start from the install directory of nsp rename and then memorise last directory used

ps : is the titlekeys.txt something like official or just cdnsp pattern for naming game ?

Next version starts with your selected dir. (it's done but this isn't enough for an release)

titlekeys.txt should have the official names but like everything there are sometimes errors.
Normaly they corret them with the new version.
If you look a little bit deeper cdnsp doesn't name games like they are written in titlekeys e.g.® is named r i name it ®
 

Largooo

Well-Known Member
Newcomer
Joined
Aug 11, 2018
Messages
59
Trophies
0
XP
95
Country
Bangladesh
i also noticed that you delete the "/" in name
maybe you can just replace it by "-" or "_"

it's just a suggestion not really necessary
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,317
Trophies
4
Location
Space
XP
13,900
Country
Norway
A small tool for Windows to rename NSP files.
Retrieves the ID from the NSP and uses titlekeys.txt to rename

Rename + Move + Copy
Naming/List criterias: Needed firmware, ID 16/32 bit, Key, Name, Type, Version, Master ID, Master Name, Needed Update
Hide/Show Games/Updates/DLC
Fileoperations Copy or Move with or without Rename or only Rename
Delete,Show in Explorer,

Open Nintendos webpage for your Country
Automark for old versions
Copy/Move NSP to Maingame subfolders incl. Updates & DLC
Create Gamelist as CSV,HTML,XML,XLS
Create "havelist" (installed.txt) for BOBs CDNSP-GUI
Use OwnTitlekeys.txt to overwrite or add files in titlekeys.txt


And REAL FAST
...


UPDATE:
Options for
Rename only
Rename and Move
Rename and Copy​
Use with
Game NSPs
DLC NSPs
Update NSPs​
Added Drag & Drop​
V1.0.4
Added VERSION [v196608] as naming option.
Hopefully fixed and error whateverg1012 found.​
V1.0.5
Export list of NSP in sourcedir to Excel (Filename, ID, Key, Name, Type. Version)
Fixed error in VERSION naming (Program stopped without any message)​
V1.0.6
Errorfix: Now driveselector also changes if you use drag&drop
Titel.txt is replaced with titelkeys.txt. Both work but takes titelkeys.txt if present.
Downloads actual titelkeys.txt if no titles/titelkeys is present.
Shows status under movebutton while working
Works with ini file to save all your settings readable (config.txt not longer needed)
Short names It seems switch has a installproblem with filenames longer than 67chr +.nsp
if option is selected it cuts the filename after 67 chars
Cuts of the last [] block bevore char 68 or the text if there is only text at the end.
V1.0.7
Errorfix: Download for titlekeys.txt worked only on win10 now should work from xp to 10
Naming with ID32 or ID16 is now possible : Thx to Bellebite2000 for info about the error and the idea with ID16/32
V1.0.8
Errorfix: Component mswinsck.ocx not correctly registered
V1.0.9
Added Update titlekeys button
Still not perfect suport for unicode files added (e.g.10秒走... 10 Second Run)
Files can be renamed.... but no corect display in error log + no creation of unicode names from titlekeys
V1.0.10
Now full support for Japanese filenames read/write
Only Errorlog shows ? for Japanese chars
Rewritten many codelines for better performance and compatibilit
V1.0.11
Added Source to BOB button
Creates a installed.txt compatible with BOBs GUI so you can name your files like you want it
V1.0.12
New way to create your filenames. Now much more possibilitie
V1.0.13
ErrorFix: Version got wrong result for Arms Update maybe also others
Spaces at the end of Text for Update,DLC,Game are now saved properly to ini.
Code size reduced and speed increased
Source to BOB now shows if you have som old Updates (e.g. v65536 & v131072)
Click on a file in errorlog opens it in explorer
V1.0.14
ErrorFox: In v13 the version was allways 65536.
V1.1.0
Rewritten many routines.

Gamelist creation as CSV,XML,HTML,XLS (Source to List Button)

New functions in Errorlog

Show file in Explorer
Show all files in Explorer
Delete file
Open Nintendos webpage for file
Short Names is now Length + Textbox
Now you can set the max length for filenames
If a path + filename in total is longer 67 chars the switch wont install it
You get Installation failed code 00002
Set your own value if you use subdirs
V1.1.1 only smal changes
New naming/list criteria: Needed Firmware
Wrote a complete new and faster routine to get the gameinfos.
V1.2.0 Complete rebuild
Now shows files incl. all Data (Filename,Name,ID16/32, Version, Needed Firmware, Key)
V1.2.1 Small Bugfix
Fixed error in Renaming routine. Now length is cut and actiondropdown works
V1.2.2 New Functions
You can include subdirectorys for NSP
Copy the actual line to clipboard
Create Destinatindirectorys for every Game incl. Updates & DLCs (Don't works for Rename only)
Added Multiselect to filelist.
Select all has the standard shortkey CTRL+A
Fixed error with wrong KEY in filename
V1.2.3 Errorhandlers total.
Added Errorhandlers for all 345 Routines. So you can tell me where exact it crashes.
Fixed error with colored text after sorting list.
Fixed new error with Renaming (Unicode files[Japanese...])
V1.2.4 More Infos
New Infos/Naming options:
Master ID & Master Name ID & Name of the Maingame for DLC/Updates
Needed Update If a DLC needs a path the you can see the ID
V1.2.5 Own Titlekeys
Select/Deselect all Files for this Game [Game+Update+DLC] (Right Click Menu or ALT+Click)
Copy infos for all selected to clipboard (Right Click Menu or CTRL + C)
Write infos for all selected to OwnTitlekeys.txt
OwnTitlekeys.txt to add/replace names and keys in titlekeys.txt (See ReadMe.txt)
See filesize and size for all selected files​
V1.2.6 Find the Game
Search function (CTRL+F).
Copy cell to Clipboard
Select newest Update (selects the newest Update for File under Mouse)?​


Download NSP Rename 184KB

screenshot.jpg

Maybe you need the VB6 Runtimes


Have Fun
VB6? ...Really?

Anyway, would it be possible to use http://nswdb.com/ to rename?
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
@Largooo Sure i remove it. \ / : * ? " < > | are not alowed in Filenames.
Next version use _ to replace them

@The Real Jdbye
Sure why not VB6. This was planed as quick 5 Min project (First Version 5KB Sourcecode now 797KB).
And for small easy projects i still use VB6 on Win10 ;-)
There is nothing you couldn't do with vb and inline assembler..
I was thinking about rewriting it in c but why?

No i still tried to use it but this NSWDB is not good enough for NSP.
NO DLC
Not all NSP games ...
The only thing i can do is a mix between both databases.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,317
Trophies
4
Location
Space
XP
13,900
Country
Norway
@Largooo Sure i remove it. \ / : * ? " < > | are not alowed in Filenames.
Next version use _ to replace them

@The Real Jdbye
Sure why not VB6. This was planed as quick 5 Min project (First Version 5KB Sourcecode now 797KB).
And for small easy projects i still use VB6 on Win10 ;-)
There is nothing you couldn't do with vb and inline assembler..
I was thinking about rewriting it in c but why?

No i still tried to use it but this NSWDB is not good enough for NSP.
NO DLC
Not all NSP games ...
The only thing i can do is a mix between both databases.
I just find VB6 too limiting. For one, it doesn't support every type of variable, making calling DLL functions tricky and in some cases impossible unless a wrapper is written (which also can't be written in VB6)
I use C# these days, but even if that's not your cup of tea, there's Visual Basic .NET which has basically the same functionality.
For the longest time I was using Delphi as my go to for small projects. Even though it's archaic and the writing style and syntax is confusing compared to other languages, I used it for so long that it became like second nature for me. And it has a really good UI toolkit. But so does .NET and C# is easier to use so I just use that now even though I'm not as used to it as I was with Delphi.
You would probably like C# though. The UI toolkit is still WinForms (unless you use WPF but that's a whole other beast) and many things are similar to VB6, but without the limitations caused by the language used.
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
I just find VB6 too limiting. For one, it doesn't support every type of variable, making calling DLL functions tricky and in some cases impossible unless a wrapper is written (which also can't be written in VB6)
I use C# these days, but even if that's not your cup of tea, there's Visual Basic .NET which has basically the same functionality.
For the longest time I was using Delphi as my go to for small projects. Even though it's archaic and the writing style and syntax is confusing compared to other languages, I used it for so long that it became like second nature for me. And it has a really good UI toolkit. But so does .NET and C# is easier to use so I just use that now even though I'm not as used to it as I was with Delphi.
You would probably like C# though. The UI toolkit is still WinForms (unless you use WPF but that's a whole other beast) and many things are similar to VB6, but without the limitations caused by the language used.

Thx for your Infos but i use c.., Java, ABAP/4 and many others for years.
The language depends on the Machine/Result i need.

But i still like VB/VBA (Small/Portable enviroment with about 4MB or 0MB for VBA)
The only dll's i use are packing dlls and i wrote my own wrappers Btw. they can be written in VB;-)
Like i sayd i use vb with inline assembler and some other tricks.
Everything is written by me. For private use i don't like to use code i haven't written by my own.
The "Limits" of VB are for beginners. After X years you find ways to go far over them. Like 128Bit Variables....
Writing such things is fun for me. Breaking limits and possibilities is even more fun.

I used Pascal, Modula 2 but never Delphi at this time i used c & vb
 

aln1k0

Member
Newcomer
Joined
Aug 23, 2018
Messages
11
Trophies
0
Age
40
XP
50
Country
United States
Very nice utility!

Is there a chance to add functionality to rename scene releases? For example, bbb-n-ak9ra.nsp to SteamWorld Dig.nsp? Or it is only supposed to work with NSPs downloaded using CDNSP?
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
Very nice utility!

Is there a chance to add functionality to rename scene releases? For example, bbb-n-ak9ra.nsp to SteamWorld Dig.nsp? Or it is only supposed to work with NSPs downloaded using CDNSP?
cdnsp or bbb-n-ak9ra should be the same for this tool
The renaming routine takes the ID from the File and not any filenames...
This id (01009320084A4000...) = SteamWorld Dig
So it should work without problems.

OK I tested it.
They dont use standard NSP fileformat!
So i hav to play a littlebit with this files.

OK i played for about 20 mins.
Now it works with SteamWorld Dig
Have to get 2 or 3 other "scene" releases to do some more tests.
 
Last edited by PrixM,

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,317
Trophies
4
Location
Space
XP
13,900
Country
Norway
cdnsp or bbb-n-ak9ra should be the same for this tool
The renaming routine takes the ID from the File and not any filenames...
This id (01009320084A4000...) = SteamWorld Dig
So it should work without problems.

OK I tested it.
They dont use standard NSP fileformat!
So i hav to play a littlebit with this files.
According to BBB that is the standard NSP format. Everyone else is doing it wrong.
 

aln1k0

Member
Newcomer
Joined
Aug 23, 2018
Messages
11
Trophies
0
Age
40
XP
50
Country
United States
Thanks, PrixM! I tested and received this warning/error at the end:

The Flame In The Flood Complete Edition [UPD][0100c38004dcc800][v131072].nsp
New name too long
The Flame In The Flood_ Complete Edition [UPD] [0100c38004dcc800][v131072].nsp
Cut to
The Flame In The Flood_ Complete Edition [UPD] [0100c38004dcc800].nsp

It's only 76 characters and sits in C:\NSPs path. Is this character count check in place to make sure it can be installed on Switch (I'm using SX PRO)?
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
Thanks, PrixM! I tested and received this warning/error at the end:

The Flame In The Flood Complete Edition [UPD][0100c38004dcc800][v131072].nsp
New name too long
The Flame In The Flood_ Complete Edition [UPD] [0100c38004dcc800][v131072].nsp
Cut to
The Flame In The Flood_ Complete Edition [UPD] [0100c38004dcc800].nsp

It's only 76 characters and sits in C:\NSPs path. Is this character count check in place to make sure it can be installed on Switch (I'm using SX PRO)?

There is a problem installing files with names longer than 67 chars.
If you dont want to cut the Filename
Remove the Lengthcheck
upload_2018-8-25_6-36-40.png
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Keep current Gen consoles stock mod last gen imo