Homebrew COMPLETED PyNX - Game Redirector

  • Thread starter Thread starter ChainedHope
  • Start date Start date
  • Views Views 18,951
  • Replies Replies 79
  • Likes Likes 21

Should I add NPDM editing to this?

  • Yes

  • No


Results are only viewable after voting.
It is working for me with Splatoon 2 - PokeQuest as donor. Also deleted config.ini
Does the homebrew menu crash for y'all too after testing the games? Or are you swapping successfully after exiting the game?
 
Should be updated and better maybe? (except my really bad coding)
I probably wont touch this again but I hope ChainedHope will up keep doing awesome work like this. I really didn't do much and he deserves all the credit.

IMPORTANT. I JUST REALIZED A (potential) BUG in my code.
I honestly don't remember since in not looking at it but If you install a game to a wrong donor it might mess up the config if another game uses that id.

Might be fixable by changing this

else: #Result for missing game data
print_std('This game has been already moved , wrongly titled, or is missing files.')
print_std('Clearing screen in 5 seconds.')
current_settings[1] = config[index][1]
current_settings[2] = config[index][1]
for i in range(5):
print_std('{0}...'.format(5 - i))
time.sleep(1)
clear()
 
Last edited by bedbug1226,
  • Like
Reactions: mikerm
Thanks for the feedback guys on the beta. I'll try fixing it soon. Just woke up from a slight coma haha (Was up for 38 hours at the point I uploaded the beta, slept for 16 hours after)

>using two arrays
>not objects
Yeah I just wanted to get it working. I'm rewriting it now.
 
Last edited by ChainedHope,
I don't quite understand is it like this? Root/switch/games/gamename/atmosphere/titles/donor title id/{romfs & exefs}

But leave root/atmosphere/titles blank?
 
I don't understand is it like this? Root/switch/games/gamename/atmosphere
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/RomFs <-- Can be a .bin/.romfs/or a folder
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/ExeFs <-- Must be the extracted folder with main.npdm and the other files in it

or if you prefer the directory-style nomenclature.
{Root of SD Card}
->switch
->games
->{GAME NAME}
->atmosphere
->titles
->{DONOR TITLEID}
->RomFs
->ExeFs​
 
Last edited by ChainedHope,
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/RomFs <-- Can be a .bin/.romfs/or a folder
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/ExeFs <-- Must be the extracted folder with main.npdm and the other files in it

or if you prefer the directory-style nomenclature.
{Root of SD Card}
->switch
->games
->{GAME NAME}
->atmosphere
->titles
->{DONOR TITLEID}
->RomFs
->ExeFs​


Thanks for the help are the donor title id in the main.npdm? Cause what ever donor title id i choose it always choose blazblue
 
Thanks for the help are the donor title id in the main.npdm? Cause what ever donor title id i choose it always choose blazblue

Thats odd. I tested with Fortnite so I know the menu works (fortnite is the third or fourth one down if iirc).
Give me a few to test this new version and I'll upload it. A lot of design changes so I still need to run it through its gambit but it should be up within the next hour. It should fix most of the issues people are having.

(Just a note, this only swaps files. It won't rename files or do anything with NPDM (yet). So in its current state the donor selection is just for keeping track of where files are so that if you say have 2 games that use the same donor it will swap them for you. It will not let you put a game that has been modified for say Fortnite into another title id (yet! I might add this))
 
Thats odd. I tested with Fortnite so I know the menu works (fortnite is the third or fourth one down if iirc).
Give me a few to test this new version and I'll upload it. A lot of design changes so I still need to run it through its gambit but it should be up within the next hour. It should fix most of the issues people are having.

(Just a note, this only swaps files. It won't rename files or do anything with NPDM (yet). So in its current state the donor selection is just for keeping track of where files are so that if you say have 2 games that use the same donor it will swap them for you. It will not let you put a game that has been modified for say Fortnite into another title id (yet! I might add this))

Ahhhh! Your note there explains a lot.

I was under the assumption that this script auto-performed the TitleID swap for the folder name, given that there is a limited selection of "donor" titles. I guess you never said that your script does that, but I don't suppose it was explicitly stated that it doesn't do that, either. The cause for my issues is completely clear, now.
 
Ahhhh! Your note there explains a lot.

I was under the assumption that this script auto-performed the TitleID swap for the folder name, given that there is a limited selection of "donor" titles. I guess you never said that your script does that, but I don't suppose it was explicitly stated that it doesn't do that, either. The cause for my issues is completely clear, now.

I'm considering adding it. I already have the function in my xci_to_lfs python script in the other forum section. Wouldn't take long to add it into this.

The donors included are just the 13 or so free ones on the tutorial page. Most people aren't overwriting SMO or TLOZ, they are using the free ones. As well, if someone wants to add a donor, they just need to pop the Title and the TitleID into those arrays at the top and use that custom version of the script.
 
I'm considering adding it. I already have the function in my xci_to_lfs python script in the other forum section. Wouldn't take long to add it into this.

The donors included are just the 13 or so free ones on the tutorial page. Most people aren't overwriting SMO or TLOZ, they are using the free ones. As well, if someone wants to add a donor, they just need to pop the Title and the TitleID into those arrays at the top and use that custom version of the script.

Right. It certainly wouldn't be difficult to add to the list of donors.

In that regard, if your script is going to continue to function that way, it would be more straightforward if the script auto-detected which donor title a replacement title is going to use based on its title folder name, then automatically moved the files based on that (instead of giving you a menu for which donor title it needs to be). But yeah I mean, if you're going to add the renaming, why bother eh?

Anyway, don't think I'd properly thanked you. This is a great idea done well, so thanks!
 
Right. It certainly wouldn't be difficult to add to the list of donors.

In that regard, if your script is going to continue to function that way, it would be more straightforward if the script auto-detected which donor title a replacement title is going to use based on its title folder name, then automatically moved the files based on that (instead of giving you a menu for which donor title it needs to be). But yeah I mean, if you're going to add the renaming, why bother eh?

Anyway, don't think I'd properly thanked you. This is a great idea done well, so thanks!

The idea for the donor selection was so that I could keep track of files in the configuration. But yeah I'm just going to add npdm editing and folder renaming.
 
V1.0.2 update!
Shouldn't have issues with your config.ini files anymore. Made the code a bit more "readable" and did things "mostly" proper.

I am going to be updating it in V1.0.3 to edit npdm and there will be a file structure change. But version 1.0.3 will probably be the last one.
 
1.0.2 isn't working for me deleted config before I started now when I hit swap titles I get a a screen of errors.

--------------------- MERGED ---------------------------

seems its trying to move the old game out but of course there isnt anything to move
 
1.0.2 isn't working for me deleted config before I started now when I hit swap titles I get a a screen of errors.

--------------------- MERGED ---------------------------

seems its trying to move the old game out but of course there isnt anything to move

Delete the folder from /atmosphere/titles/{DONOR ID}
It expects that folder to not be there and will error out if it sees it so it doesn't remove whats there.

Basically I didn't want to accidentally delete someones game.
 

Site & Scene News

Popular threads in this forum