WIP GUI for 'NSP File Renamer' - CODER WANTED

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by morrison22, Jul 29, 2018.

  1. morrison22
    OP

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    I have created a basic mockup of what a GUI could look like for an NSP File Renamer. I think a project like this would benefit a lot of people that are interested in organizing their NSP Files in a precise method.

    I do not know how to program so I need some help. If I am not mistaken, this would need to work in coordination with the way CDNSP outputs information to NSP Files and how the text within the titlekeys.txt file is formatted.

    If you fit this role and have motivation to bring this image to life, please feel free to discuss in this thread. Optimally it would be preferred to have have a client that is cross compatible (perhaps programmed in python?) Feel free to add suggestions for functionality or interface.

    SCREENSHOT:

    morrison22-GUI.

    LEGEND FOR NAMING SCHEME:

    [TITLE] = Title of Game
    [REGION] = Region (US) (EU), etc.
    [TYPE] = [BASE] [UPD] [DLC] [DEMO]

    BASE (Initial Game Identifier)
    UPD (Update Identifier)
    DLC (Downloadable Content Identifier)

    DEMO (Demo Identifier)
    [TITLEID] = Title ID of Game
    [VERSION] = Game Version


    EXAMPLE OUTPUT:

    Game Name [US] [BASE] [1234567890123456] [v0].nsp
    Game Name [US] [UPD] [1234567890123456] [v65536].nsp
    Game Name [US] [DLC] [1234567890123456] [v0].nsp
    Game Name [US] [DEMO] [BASE] [1234567890123456] [v0].nsp
    Game Name [US] [DEMO] [UPD] [1234567890123456] [v65536].nsp
     
    Last edited by morrison22, Jul 29, 2018
  2. Legendre

    Legendre Advanced Member

    Newcomer
    3
    Aug 30, 2017
    Venezuela
    Dude, this is a great tool!
     
  3. WiiuGold

    WiiuGold GBAtemp Advanced Fan

    Member
    7
    Jan 5, 2015
    United States
    Why Dont you put all Updates in A Update Folder , DLC in a diff Folder , very Simple .. that format you have Dont like it .. There is already a program in testing .. with NSP files.. :)
     
  4. morrison22
    OP

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    Thanks. I sure hope to bring it to life!

    The point is to make it customizable so one can rename to their liking. So, with proper coding, indeed an option can be implemented to create a folder structure for specified [TYPE] (BASE/DLC/UPD/DEMO) NSP Files.
     
  5. blawar

    blawar GBAtemp Advanced Fan

    Member
    9
    Nov 21, 2016
    United States
    You will have to enforce a certain format for the title id in the file name, unless you want to parse the NSP files for the ticket (slow)

    You will not need a progress bar for renaming as long as the files stay on the same partition (nearly instant)

    You will not reliably get the region with the current title databases out there, and you will have to use some fuzzy string matching logic to try to extract it from the names of the ones that do have it. Switch games aren't region specific also.

    I can definitely see how a GUI would be helpful to a lot of people. I would offer to help, but I hate writing GUI's, and I do not have a lot of free time as is :(
     
    morrison22 likes this.
  6. Phlambo

    Phlambo Newbie

    Newcomer
    1
    Jul 12, 2018
    United States
    You can cut the GUI in half by either removing or turning everything in the blue bubbles into tool tips.

    The way your mock-up is now, there’s too much text.
     
  7. morrison22
    OP

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    On a network drive for me it takes about 10 seconds to scan all files (1500+ NSPs) and aesthetically it looks nice. I don’t think it would hurt to have a progress bar.

    I agree it is impossible to get region as it is now, but if a list of titlekeys was created with regions indicated it would be easier. Aren’t titles that are not region specific considered “world” as the region?

    Understood. Just trying to gather ideas here for anyone that can potentially make this happen. And you already know about renaming as you created NUT. So let’s see what the fig
     
  8. blawar

    blawar GBAtemp Advanced Fan

    Member
    9
    Nov 21, 2016
    United States
    Technically, none of the games are region specific. You can install any title / game on your US switch. But you do occasionally run into titles they they split into separate title ID's for RELEASE in different regions, such as Splatoon US and Splatoon EU. However you can play the european splatoon just fine on any switch.

    And then you run into the issue of the different regions not being well defined. For instance, there is a german / austrian only versio nof wolfeinstein, which I assume has its own title ID:

    https://nintendosoup.com/wolfenstein-ii-for-switch-censored-in-germany-and-austria/

    — Posts automatically merged - Please don't double post! —


    This page lists out the various regions and such for the games. There are a lot of diferent regions, and most games have more than one region. I dont know i would recommend stuffing that many regions in a file name:

    http://switchbrew.org/index.php?title=Title_list/Games
     
    morrison22 likes this.
  9. morrison22
    OP

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    I see what you mean. Idk if this would help anyone but I also want to mention that there is also this exhaustive list in this post that was created by keroppi667
     
    Last edited by morrison22, Jul 29, 2018
  10. PrixM

    PrixM GBAtemp Regular

    Member
    3
    Apr 14, 2009
    Germany
    I released a similar tool yesterday and updated it using some of your Ideas.
    I can get the ID from the NSP in milliseconds but to use all the Infos you put in your Filename i need a database


    [TITLE] Done
    [REGION] or better Languages Need DB i can access and get infos thru ID or Key
    [TYPE] Done for [UPD] [DLC] not testet for [DEMO] No [BASE] at the moment but about 1 Min work if anybody wants it.
    [TITLEID] Done
    [VERSION] Need DB i can access and get infos thru ID or Key
    Also Done [KEY]

    See: https://gbatemp.net/threads/nsp-rename.512989/
     
    morrison22 and blawar like this.
  11. morrison22
    OP

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    Took looks nice and has some features listed here.

    Would is be possible to port to OS-X or Python so it can be cross-platform?
     
  12. morrison22
    OP

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    Thanks. It's just an idea and people are welcome to use the idea to come up with something. I'm willing to help in any capacity I can.

    Ultimately, a way to rename, cross platform, and consistently, all items including base upd dlc and demo.

    There are a couple projects now in the works.. I am on a mac, so I have been using a program called NUT by @blawar as it is written in Python so cross-compatible. It has worked so far. The thread for it is here: https://gbatemp.net/threads/nsp-organizer-and-mass-downloader.512783/
     
    Last edited by morrison22, Jul 29, 2018
Loading...