loam Posted August 26, 2020 Share Posted August 26, 2020 (edited) November 2021 message (I don't want to bump the thread): Hey there, it's been a while. I came back and just read messages from october last year, lol. There's been updates to the game but they've been somewhat trivial afaik, so I don't think it merits setting up again my whole setup for the project. Also, I think I have spotted at least one instance of someone attributing the patch to someone called "trigger_segfault". I don't think this was done in bad faith or anything, probably the result of some innocent confusion, but I want to clarify that only me, "loam", made the patches here. In the scope of these projects, I don't go by any other names on social media. That is all. Download numbers are low, but I hope someone out there enjoyed the patches. Thanks! Linux port comment here: https://forums.fuwanovel.net/topic/23163-ao-no-kanata-no-four-rythm-linux-port-18-patch-for-nintendo-switch/?tab=comments#comment-522629 Aokana - EXTRA1 Linux Port: https://forums.fuwanovel.net/topic/23163-linux-port-now-released-ao-no-kanata-no-four-rythm-linux-port-18-patch-for-nintendo-switch/page/2/?tab=comments#comment-523833 Switch patch: Hello, I made this patch some days ago out of pure boredom just to see if my hacked switch with Aokana installed on it would be able to handle R18 assets and I thought about releasing for other people who still haven't played the game and would like to on their hacked switch, but uncut, since otherwise it would be forever stuck for no reason on my hard drive as I already completed the game on PC. Keep in mind this only works with a Hacked Switch with Atmosphere. If you want to see if you can hack your switch follow this guide: https://nh-server.github.io/. The zip is premade so that, provided that you're using Atmosphere CFW (which you will if you finish carefully the guide there), you only have to unzip the contents of the patch to your SD card's root folder. For other CFW users (not necessary if you already have atmosphere/followed the guide I linked previously): It may work with other CFWs, provided they can patch romfs. Just make sure the path is the same (romfs/Data/StreamingAssets/patch.dat). Atmosphere is the most popular though, so I only tested there. The H-Scene button in the gallery replay menu, although blank in this release, still works, so if you unlocked some of them just click it. This works with the Base version + Update 1.01. I'm not sure if future updates will break this, so keep that in mind. To know if the mod works correctly, you'll see "1.01 SW (R18+PE)" on the bottom right corner when it's loaded (it's usually "SW 1.01" only). Screenshot (WARNING: NSFW): Spoiler Download link: http://www.mediafire.com/file/yf86ywni65n6ki8/file Some technical details in the making of this patch which may be or not interesting: This VN is made on a custom C# VN engine on top of Unity, made by NekoNyan. It's visibly made for reusability in the future, and according to some announcements it will be reused in future projects of them. It's very nicely done so kudos to them. While .NET binaries in the PC are unobfuscated, the Switch port used IL2CPP, probably due to platform limitations. Despite being in Unity, this engine loads content from a custom format instead of using Unity itself for them (not that it's a necessarily bad thing to do). It has some custom simple encryption, with the keys of the files themselves being inside of the archive. Other than that, it's just an archive with files and folders inside of it. They slightly changed the encryption algorithm for the Switch version. While the PC format was easily readable by looking at decompiled C# code about how the PC version itself loads it, it was trickier to see how the switch loaded it because of the game being compiled to C++. That said, this cool tool helped me to locate the encryption function for the Switch, which turned out to be a simple 2 lines change. This change doesn't affect size nor performance so I can only imagine why they did this.... With that figured out, I had to make an (re/un)packer for this game to pack the R18 assets since it needed to use the switch format for it to work. I can release the source code and binaries if anybody's interested, just hit me up here or by email. The switch version prefers different formats of its assets: swp (some Switch image format?) instead of webp, ogg vorbis instead of ogg opus, and some others. Even so, it supports loading all formats of the PC version. The switch version contains voices for H-Scenes on the base game (except for the Perfect Edition H-Scenes), even though they go completely unused. This effectively lowers the size of this patch. Some trivial metadata for the replay gallery is still there, but goes unused because you never unlock any H-Scenes. The binary as well as bs5 scripts (aokana's script format) still contains lots of code that handle R18 assets and scenes, if they somehow (heh) were to be available to the game, which facilitated this patch by a lot. This engine made by NekoNyan is very well done and I hope to see more VNs localized by them on it If you find a problem just let me know here or by email ([email protected]). I hope you enjoy it! I know Nintendo won't.... Edited November 2, 2021 by loam november 2021 message Anixia, Mupak, Dergonu and 3 others 3 2 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.