Skip to content

Releases

nx2-relink 0.1.12

Choose a tag to compare

@Olmectron Olmectron released this 26 Nov 09:57

A game with more than 128 MB of code starts. A module's system calls are reached through small pieces of code at the start of its image, and a branch reaches 128 MB at most: in a game with more code than that, the calls further in went to the wrong place and the game ended as it started, with nothing in its log. Those calls now have theirs after the code. A game with less code is put together exactly as before. Thanks to @zakthompson, who found it and sent the change (#24).

Sound for a game that plays through AudioOut. Most games play their sound through the SDK's audio renderer, and had it. A game that uses the SDK's AudioOut instead was given a silent output, which is what a Switch game's port needs and a mistake here: such a game ran with no sound, and one that waits for its sound to be played could stay on a black screen. Its AudioOut is now left to its own SDK, as its audio renderer always was. If a game that ran before now stops as it starts, put an empty file named silentaudio in its folder on the card (/nx2-relink/<name>/) to have the silent output back, and report it.

A game with add-on content on the card opens its user. With an add-on's aocN.romfs beside the game's files, the console's own add-on service was told of content it knows nothing about, answered the SDK's check with an error, and the game ended on a black screen as it opened its user (2166-0400). The port answers those three requests itself now. Thanks to @hellmew, who found it and sent the change (#25).

A game its SDK ends closes again. Since 0.1.8, a game ended by its own SDK (a service it can't do without is refused, for one) stayed on a black screen until it was closed from the HOME menu, where it should close and leave its crash.txt. It does again.

A game kept as a few very large files is put on the card. Each of a dump's files was read whole into memory before a byte of it was sent: for a game kept as two files of several GB each, that was minutes of waiting and as much memory as the file. They are read a piece at a time now.

Also: a game that takes all the memory there is no longer writes a line in its log for every request the console refuses (about sixty a second, and each one waited for the card: short stops as it played); and the log's frame-rate line also says the longest wait between two pictures.

Build your ports again with this release: python nxrelink.py remake --sd <drive> (or --ftp <host>) does it for all of them, and the window has it in My ports.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.11

Choose a tag to compare

@Olmectron Olmectron released this 26 Nov 01:51

One thing, not two, when two modules define it. When several of a game's modules define the same symbol (a function's static object or a type's description built into more than one module, the game's own operator new), the console's loader has all of them use the first module's. The port gave each module its own. The SDK's video player was split so: one half set its memory manager up and the other half asked a different one, and a game ended as it started a film's sound. Now it is as on the console. This is in how every port is put together, so it may help a game that ended for no reason its log could show.

remake: every port built again in one go. After you update the tool, python nxrelink.py remake --sd <drive> (or --ftp <host>) builds every port again with the new version and copies each one's program to the card. No dump is needed: it uses what was kept of each port when it was made, with its own settings, and the game's files on the card stay. The window has it in My ports.

Also: a module's thread-local storage is said in the log to be left to the game's SDK (it is, as on the console) where the log said it "isn't handled".

Build your ports again with this release to have the first: remake does it for all of them, once you have it.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.10

Choose a tag to compare

@Olmectron Olmectron released this 26 Nov 00:39

A service the host game lacks is stood in for (since 0.1.9). To the console a port is the game the homebrew menu was started over, and may open only the services that game may. When the console refuses one that a game can run without (the network and its sockets, online data, amiibo, friends, parental controls, play reports and the like), the port answers in its place: the game goes on, and what it does with that service doesn't work. It is a fallback only, and log.txt has a line for each: THE PORT STANDS IN FOR "<service>". Not for graphics, display, controllers or the game's files, nor for the host game's two memory figures.

New in 0.1.10

  • Cache storage. A game that keeps a second kind of saved data ("cache storage") and asks its size was ended by its own SDK: the system has none for the host game. The port answers now; it is kept with the saved data, in the port's save folder.
  • More memory told by default. A game is told of what the port really has less 400 MB (8192 MB at most) where it was told of 7800. Some games size an allocator of their own by that figure and closed themselves at their start when it was too small. A figure given in Advanced options is used as it is.
  • The log says how much memory for graphics is in use, with the pictures shown a second: a game that ends as it loads a new place with that at its top ended for lack of it, which is the host game's to give.
  • A game that aborts with memory left that it wasn't told of has that said in crash.txt, as a thing to try.

Also since 0.1.6: calls from a game's code go straight to its SDK after the first (0.1.8: a game ran at a fraction of its speed, worst in handheld); a port keeps some 700 MB less of the console's memory for itself; the log says what the host game gives beside what the game was made for, whether the game's files on the card are whole, and the console's mode and performance configuration.

Which game you start the homebrew menu over matters. Start it over the same game the port was made from whenever you can: it has exactly what the game needs. See the README.

Build your port again with this release (the program only: "Copy only the program" or --nro-only) to have these.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.9 (pre-release)

Pre-release

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 22:54

Pre-release. These changes come from reports that are still being looked into, and things are still being tried.

A service the host game lacks is stood in for. To the console a port is the game the homebrew menu was started over, and may open only the services that game may. A game that asked for one more was ended by its own SDK, however little it needed the service. Now, when the console refuses a service and it is one a game can run without (the network and its sockets, online data, amiibo, friends, parental controls, play reports and the like), the port answers in its place: every request is "done" with nothing in the answer, and the network is "down". What the game does with that service won't work; the game itself goes on.

  • It is a fallback only: with a host game that has the service, the game talks to the console's own, as before.
  • log.txt has a line for each: THE PORT STANDS IN FOR "<service>".
  • Not for the services of the graphics processor, the display, the controllers or the game's files: there the refusal stands, and crash.txt names the service in its ended: line. Nor for the two memory figures (memory for graphics, system resource), which are the host game's.
  • Tried by having services refused on purpose, a dozen at once, with three games: all three ran into play.

More memory for the game. A port keeps 170 MB less of the console's memory for itself. A game that maps memory as it runs is refused it later, or not at all.

The log says more. The console's mode (docked or handheld) and the performance configuration the program is on, each time either changes.

Build your port again with this release (the program only: "Copy only the program" or --nro-only) to have these.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.8 (pre-release)

Pre-release

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 20:13

Pre-release. These changes come from reports that are still being looked into, and things are still being tried.

Less work for every call a game makes. Every call from a game's own code to its SDK and its C library went through the port's logging path, for the whole run. Now only a function's first call does (it is still named in the log), and later calls go straight to the function, as on the console. A game in play makes such calls by the hundred thousand for each picture.

The log says how fast the game runs: a line for each 256 pictures shown, with the pictures a second. If a game is slow somewhere, send log.txt from that run.

Which game you start the homebrew menu over matters. To the console, a port is that game, and has what that game's own description allows, not what its own game was made for. The reports so far show three such things: the memory for graphics, the "system resource" (without any, a program can't map memory as it runs, which some games do from their start), and the system services a program may open. A port whose game needs more than the host game has ends at its start, or as it runs.

Start the homebrew menu over the same game the port was made from, whenever you can: it has exactly what the game needs. Otherwise try another game.

What a port now says of it:

  • log.txt and crash.txt have, near their start, what the host game had and what the port's game was made for: the lines memory for graphics and system resource.
  • A service the console doesn't give is named in the log, and crash.txt says so in its ended: line when the game ends on it.
  • The tool says the game's own figures when it builds a port.

Reports say more.

  • When the port's own side ends the program, its last lines now reach the card. They were lost, and the report said nothing of the end.
  • The game's files on the card are checked at start: an image that is incomplete (a copy cut short, a card with no room left) is said so, in place of the game's SDK ending the program with "data is corrupted".
  • A game that moves its threads between cores all the time no longer fills the end of the log with it.

Build your port again with this release (the program only: "Copy only the program" or --nro-only) to have these.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.7 (pre-release)

Pre-release

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 18:18

Pre-release. These changes come from reports that are still being looked into, and things are still being tried. If 0.1.6 works for you, there is no need to move yet.

More memory for the game. A port kept some 500 MB of the console's memory for tables of its own that a game never uses. They are gone: the game has that much more. A game that maps memory as it runs could be refused it with none left.

The host game's memory for graphics is said in the log. The console keeps an amount of memory for each program's graphics, set by the game the homebrew menu was started over, not by the port. A port whose game was made for more than the host game has may end when it runs out. log.txt and crash.txt now have this line near their start:

[nx2] memory for graphics in this program's name ("remote memory"): the title this was started over has N MB (n in use); the game was made for M MB

When the host game has less (the line says so), start the homebrew menu over another game. The tool also says the game's figure when it builds a port.

Build your port again with this release (the program only: "Copy only the program" or --nro-only) to have both.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.6

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 17:46

Mods (beta): replacing a game's files. A file put on the card in the port's folder under mods/, at the path it has inside the game, is what the game gets in place of its own, from the next time it is started:

/nx2-relink/<name>/mods/Tex/Some_Texture.bntx.zs      in place of the game's  Tex/Some_Texture.bntx.zs
  • This is a beta: it has been tried with few files and few games. Reports are welcome, with the port's log.txt.
  • Nothing is built again and the game's image isn't touched. To take a mod out, delete its file.
  • It is optional: with no mods/ folder a port runs exactly as before.
  • Only files the game already has are replaced for now. The file must be in the form the game expects, its packing included.
  • log.txt has a [mods] line for each file laid over the game's, and another the first time the game reads it.

Build your port again with this release (the program only: "Copy only the program" or --nro-only) to have it. See the README.

Experimental. Use it at your own risk, and with your own backups only.

nx2-relink 0.1.5

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 17:14

Three faults, from the first reports. Thank you for the crash.txt files: each of these came from one.

  • A game that grows its heap until it is refused was ended by the refusal. It is refused now with the system's own "no more memory", which the game expects, and it goes on with what it has.
  • Sound. The port's silent audio output now has the channels and the rate the game asked for. A game that asked for six channels and was told of two ended at once.
  • A game whose own code is a module it loads itself. A function its first module calls into that module is found when it is called, as on the console. When a game does call a function that no module has, the log names it.

If a game ended at its start with an earlier release, build its port again with this one.

Experimental. Use it at your own risk, and with your own backups only. See the README.

nx2-relink 0.1.4

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 16:58

Games made with SDK 22 now run. Two things kept them from starting:

  • Such a game reads its thread's identity from a word the system keeps in the thread's local region, which the port was clearing. It ended in its own start-up, at its first lock.
  • A game that sizes itself by the console's whole memory was told of less than that, and its heaps didn't fit. The tool now reads the game's own table of heaps when the port is made: a game that keeps a part of the console's memory apart from its heap is told of the console's full figure, and every other game is told of what the port really has, as before. --memory takes up to 8992.

Also:

  • A game closed from the HOME menu no longer leaves a crash.txt behind: the port tells a close from a fault by the console's own record, and a fault's kind is written in the file.
  • At an abort, the log names the game's own callers.
  • The README shows the window's first page.

If a game ended at its start with an earlier release, build its port again with this one.

Experimental. Use it at your own risk, and with your own backups only. See the README.

nx2-relink 0.1.3

Choose a tag to compare

@Olmectron Olmectron released this 25 Nov 11:33

First public release of nx2-relink: a Nintendo Switch 2 game you own, relinked into a homebrew program (.nro) that runs it on a Switch 2. A fork of nx-relink.

Experimental. Use it at your own risk, and with your own backups only: no games, keys or console files are part of this project. See the README.

  • python nxrelink.py: a window, and the same steps from a terminal. python nxrelink.py setup checks what the tool needs and installs the Python packages it lacks.
  • A port's program goes in the homebrew menu's folder, /switch/nx2-relink/<name>.nro. Everything else of it is in a folder at the card's root, /nx2-relink/<name>/: the game's files, its saved data (save/) and its logs.
  • crash.txt in that folder after a run that ended badly: the file to attach to an issue. A game closed from the HOME menu leaves none.
  • A game from its NUP container, or from a folder of its loose files, with its updates laid over it. Modules packed as LZ4 or as ZBIC are both read.
  • Advanced options, behind a warning: the memory the game is told of, which modules are kept whole, the detailed log.
  • Tried with kaiHEN 20261117.1 only.

There is nothing to download but the source: a port is built on your computer from your own game.