Skip to content

nx2-flow 0.2.6

Latest

Choose a tag to compare

@Olmectron Olmectron released this 27 Nov 01:37

Warning

Experimental. Use it at your own risk. No warranty: the authors take no responsibility for any damage or loss (console, card, saved data, account).

Important

Use dumps of games you own, made by you. No game, key or console file is part of this release, and none will be provided.

Thank you, @ptichalouf

Everything new in this release is @ptichalouf's work: twenty pull requests, each with its finding written up, its tests and the logs of the game it was made for. They were read one by one, tried together on a console and merged as they are, with a few small changes on top. Thank you for the time and the care that went into them.

The loader (0.1.7): games that get further

  • The user picked when the game was started. A game that asks for it and was told there is none (the second game started in a session, or a host started without one) is given it (#18).
  • Online data. A game shown an error (2122-0098) because its host has no storage for delivered data is told the delivery is done, with nothing in it (#19).
  • Memory. A game whose own description asks for no "system resource" is told of all the memory there is less 64 MB (#20). A game whose table of heaps has 5 GB or more of fixed heaps and no entry for the address space it keeps apart is told of the console's whole memory (#22). A game with fixed heaps only gets back what it would not use, for what it maps as it runs, and the loader keeps less for itself (#38). The table of heaps is looked for in the add-on content too (#39).
  • Saved data. ExtendSaveData and GetSaveDataSize are answered for saved data kept on the card (#21). A game that asks for another title's saved data is no longer given its own: it gets "not found", or, asked read-only, that title's folder on the card when there is one (#23).
  • Files. The file system's command 205 (a program's files by its index) is answered (#24). Several of a game's threads reading its files at once no longer end the program (2168-0006) (#28).
  • The game's version as the game asks for it is its own, from the NUP file, not the host's (#41).
  • The game's folder. The menu and the loader now agree on the title id of a NUP file that holds an update alone, or packages with no id (#40).
  • Patches of the program. IPS and IPS32 patches in /nx2-flow/<title id>/exefs_patches/, each named by the build id of the module it is for; the log has every module's build id (#31).
  • Under all of it: answers in the system's newer, shorter form, a session kept that could be lost in a long play, waits on several handles (#42, #43), and locks that give way to a thread of lower priority (#44).

The menu (0.2.6)

  • Names of games dumped on system 21.0.0 or later are read: their name and maker were empty (#30).
  • Copying a slot of saved data writes each file under another name and gives it its own when it is whole: a copy cut short leaves no half-written file in its place (#32).
  • Which host. The top of the screen says which game the homebrew menu was started over and what it has, with a warning in a game's options when that is a poor host for it. The game's options also show its last log and its crash report (#33).
  • Checking a file. X in a game's options reads the NUP file's table: whether it is all there, and what it holds. A file that looks broken is said before the game is started, and can be started all the same (#37).

What changes for a game that already ran

  • A NUP file that holds an update alone: its folder is now named by the game's id, without the 800 at its end. Rename the old folder (/nx2-flow/<id ending in 800>/) to keep its saved data and settings.
  • A game may be told of a different amount of memory than before (see the log's line "the game is told of"). memory= in game.cfg, or Memory in the game's advanced options, still decides when it is set.
  • The loader's own heap is 64 MB where it was 128. A game with a very large mods/ folder is the first place to look if something ends early: say so in a report.
  • A game that asked for another title's saved data and was given its own now finds none.

Install

Unzip nx2-flow-0.2.6.zip onto the card's root, over the earlier one. It holds one folder:

/switch/nx2-flow/nx2-flow.nro      the menu (what the homebrew menu shows)
/switch/nx2-flow/nx2-game.nro      the game loader

Put your NUP files in /nx2-flow/games/, open the homebrew menu over a game (hold R while starting it), and start nx2-flow.

What to know

  • Tried with four games and one setup (kaiHEN 20261117.1, docked): all four run as with 0.2.5, one of them through several minutes of play with the same pace between pictures. Nearly every fix here is for a game that is not among those four, so those were seen working by their author only, in the games the pull requests name. The patches of the program were not tried with a real patch here.
  • The programs of this release are built from the source that was tried, with the version numbers changed; they have not themselves been run on a console yet.
  • Things are still being tested, and mods are in beta.
  • Which game the homebrew menu is started over matters: a Switch 2 game for a Switch 2 game, and the surest host is the same game. A user's table of hosts is in #5.
  • Not every game runs: one that doesn't fit the loader service needs a port made with nx2-relink.