Homebrew COMPLETED PyNX - Game Redirector

Should I add NPDM editing to this?

  • Yes

  • No


Results are only viewable after voting.

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
GameRedirectory is a PyNX script for managing your LayeredFs games. Follow the installation and how-to section.
Features: NPDM editing, moving files between a storage location (/switch/games/) and donors (/atmosphere/titles/), configuration file to keep track of what is where.

Downloads
GITHUB: https://github.com/Kozlowlw/py-switch


Old releases:
v1.0.3: https://mega.nz/#!h6xhkQhY!rbzaB0mozAjoYSjcZ-dfcBIFiIkt4fmcvN_O9e7Y5Rw
v1.0.2: https://mega.nz/#!0rZTGKaY!DQxYZzXoQ0NFdClAvFz4GGWtr0gLardSB6EEh_2jcj0
Beta-v1.0.1: https://mega.nz/#!ImpzWYBC!C2vMSiJSDkNrww6F83J0M0t8prhZYjetNYeBESWzTtU
v1.0.0 - https://mega.nz/#!kiRlxCZK!DA3hl5dr_ea37tPsA_IWkXDQzf1x0fF5mhM8mrsw51g

Installation:
  1. Put PyNX in /switch
  2. Put GameRedirector.py in /switch
  3. Put your titles in /switch/games/
How To Use:
  1. Launch PyNX.nro from hbl/hbm
  2. Select GameRedirector.py from the list (Up/Down on dpad/left joycon to move, a to select)
  3. Press 'a' again. The dialog doesn't pop up that asks if you want to run with v0.5.1 for some reason.
  4. Use 'Select Donor Title' to pick which game to redirect to (overwrite)
  5. Use 'Select Game Folder' to pick the game you want to redirect (play)
  6. Use 'Swap Files' to begin the process
  7. Press the home button to exit. The 'End' option kills my script, but not PyNX. I couldn't find a method for doing that in there library.
  8. Start the donor game and enjoy.
FAQ:
Q: What file structure do the /switch/games/ need to be in?
A: {GameName}/RomFs/* <---- NOTE: It defaults to a folder. If you want it to use .bin or .romfs then change it in the config.ini in /switch/games/
{GameName}/ExeFs/*​

Q: How do I get my XCI into that structure?
A: You can use my python script (here) or any of the other XCI converters and just make the folders.

Q: What games work with what donors?
A: Check here [Also post what you try, so we get a better list]

Q: PyNX crashes/Homebrew doesn't load in LayeredFs patched kernel?
A: Right now you can only "sometimes" use homebrew alongside the LayeredFS kernels. Booting into a non-patched kernel [regular hetake] to use the script and then rebooting into your RomFS/LayeredFs patched kernel to run the game works too. This will hopefully be fixed at some point. I've heard Switchblade lets you run homebrew with less crashes.

Q: Your script crashed after running.
A: It happens. Try again.

Changelog:
V1.0.3 - Added .npdm editing. File structure has changed!!!! Games now go in /switch/games/{Game Name}/{ExeFs and RomFs dirs}. This also means that RomFs needs to be a folder now. You are welcome to change it in the code, but to make it better fit my python xci-to-lfs script its staying as a folder (literally change it to move '/RomFs/' to '/RomFs.bin' and it should work)

V1.0.2 - Updated.. Shouldn't have anymore issues with config files. Working on npdm and folder editing for v1.0.3. Will probably change file structure a bit if/when I do this.

V1.0.1 - Finished the config portion. Also managed to get moving files working instead of copying. It now takes less than a minute to move a previous redirect and move in a new game. #Success. This had very limited testing so... beta?

V1.0.0 - POC release. Works but super slow
 
Last edited by ChainedHope,

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
Sick! Will certainly serve very nicely for, well, swapping titles and play stuff that wasn't expected to run.
Tell me how it goes. I didn't even think to check save data between swaps. And well... its 8am and I've been up all night so I'm done for the now.
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
Hey, I notice you use shutils instead of os.rename(), is there any specific reason why?
I was having weird issues with os anything tbh. Mostly OSErrors, and when I would try to pass through them it would cause problems like files mysteriously disappearing as if they were being renamed or moved to hidden parts (or being deleted all together which shouldn't have happened). Other parts of PyNX use shutils so I figure they must have a good reason for it and just went with it. Originally the script only used os, sys, and a few nx imports.

-- e
I'm making a few changes. I want this configuration to work >.< its going to annoy me until its done....
 
Last edited by ChainedHope,
  • Like
Reactions: lutyj

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
If I could get someone to test the beta file out, that would be awesome. Cut down the time considerably and added the configuration file to keep track of everything. Config file might break tho so keep an eye on it. (Beta release)
 

bedbug1226

Well-Known Member
Newcomer
Joined
Dec 1, 2014
Messages
84
Trophies
0
Age
30
XP
517
Country
United States
I Tried it on The binding of isaac replaceing fallout shelter and it worked great.

Then I tested it and the config broke when I tried to put a game over the octopath demo. It seemed to put it over fortnight in the config for some reason?
 
Last edited by bedbug1226,

ReavoEnd

Member
Newcomer
Joined
Jun 17, 2018
Messages
22
Trophies
0
Age
34
XP
173
Country
United States
No idea, every game is binded with BlazBlue xD

Ditto. I selected Octopath Demo as the donor title and config states it instead used BlazBlue as the donor title. Since BlazBlue is the top entry, I'm guessing it is the default and the "Select Donor Title" menu is just not working/actually changing the selected donor title?
 

bedbug1226

Well-Known Member
Newcomer
Joined
Dec 1, 2014
Messages
84
Trophies
0
Age
30
XP
517
Country
United States
I think putting "current_settings[3] = selected" under "def donor_action(selected):" might fix this?

def donor_action(selected):
current_settings[0] = donor_tids[selected]
current_settings[3] = selected

(Ah I see this fixed the config but break the movement?)
 
Last edited by bedbug1226,

Cali-Bean

Member
Newcomer
Joined
Jun 17, 2018
Messages
13
Trophies
0
Age
22
XP
97
Country
United States
Is it possible to do this with a android phone?

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

Will it be possible to get the RomFS and ExeFS with an android?
 

bedbug1226

Well-Known Member
Newcomer
Joined
Dec 1, 2014
Messages
84
Trophies
0
Age
30
XP
517
Country
United States
Try this?
-DELETED-
Delete old config and place games back in correct directory

I'm not the best programmer and have no experience with python but i butchered the program and I fixed the bug added some checks for some common errors I could see people doing.

Trying to check for empty game folder or game already moved right now.
 
Last edited by bedbug1226,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
    +1
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
    +1
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
    +1
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    +1
  • AncientBoi @ AncientBoi:
    [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box] :tpi::rofl2::tpi:
    +1
  • BakerMan @ BakerMan:
    guys, should i change my pfp to one of these or keep it the same?
    iu

    iu

    (i guess i could change it to one of my other pfps too, but i just want to see what you guys think first)
  • SylverReZ @ SylverReZ:
    @BakerMan, Up to you.
  • BakerMan @ BakerMan:
    smug sonic time lmao
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Chronic The HempHog
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=EtapU5nI6G4 +1