Homebrew RELEASE Kirikiri for Nintendo Switch / ニンテンドースイッチ用の吉里吉里

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
So how can I get commercial VN to work with this?
For example I have Fate Hollow Ataraxia with files
Code:
bgimage.xp3
bgm.xp3
data.xp3
fgimage.xp3
image.xp3
patch.xp3
patch2.xp3
sound.xp3
video.xp3

i've added to initialize.tjs
Code:
useArchiveIfExists("data.xp3");

Putted files to corresponding folders in romfs (data and patches to others).

NROs from sdk can be used to load files from other games or it needs to be compiled for each game (I don't want romfs integration to one file)?
Because I've tried to run krkrs.nro from root folder and krkrs.nro from romfs folder, always going back to home menu.
What is the difference between them?

krkrs.nro and romfs folder are in switch folder

Or is it too much hassle for someone who is not in this type of homebrew? :P
 
Last edited by masagrator,

uyjulian

Homebrewer
OP
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,886
Country
United States
So how can I get commercial VN to work with this?
For example I have Fate Hollow Ataraxia with files
Code:
bgimage.xp3
bgm.xp3
data.xp3
fgimage.xp3
image.xp3
patch.xp3
patch2.xp3
sound.xp3
video.xp3

i've added to initialize.tjs
Code:
useArchiveIfExists("data.xp3");

Putted files to corresponding folders in romfs (data and patches to others).

NROs from sdk can be used to load files from other games or it needs to be compiled for each game (I don't want romfs integration to one file)?
Because I've tried to run krkrs.nro from root folder and krkrs.nro from romfs folder, always going back to home menu.
What is the difference between them?

krkrs.nro and romfs folder are in switch folder

Or is it too much hassle for someone who is not in this type of homebrew? :P
"romfs" folder is the example game intended to be compiled into the nro in the build tree.
"krkrs.nro" included in "krkrs_sdk.7z" always sets the same directory as "krkrs.nro" as current directory and runs "startup.tjs" in the same directory as "krkrs.nro". This is meant for quickly debugging issues when using "nxlink" and "ftpd" with the "mirror -R" option of "lftp".
"System.exePath" is set to the same directory as where "krkrs.nro" is located.
"Storages.addAutoPath" can be used to automatically search directories.
For better error messages, run "krkrs.nro" from "nxlink".

If you are not familiar with Kirikiri API, I recommend that you read this documentation: http://krkrz.github.io/docs/kirikiriz/j/contents/index.html

Some games need adjustment to the script files due to the differing API and plugin implementation. Most of the time, you can comment the offending code out and the game will work just fine.
 

anixia

Member
Newcomer
Joined
Aug 21, 2019
Messages
7
Trophies
0
Age
27
XP
120
Country
Indonesia
damn this is awesome , hopefully you can release the ultimate ver. sooner . anyway any update on this?

actually i tried to play kirikiroid2 on switch android and it looks awesome , but the way to change sd card everytime you boot is kind of hassle , might as well just wait for these / wait till the android switch can do dual boot .

good luck !
 

uyjulian

Homebrewer
OP
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,886
Country
United States
damn this is awesome , hopefully you can release the ultimate ver. sooner . anyway any update on this?

actually i tried to play kirikiroid2 on switch android and it looks awesome , but the way to change sd card everytime you boot is kind of hassle , might as well just wait for these / wait till the android switch can do dual boot .

good luck !
Updates will be posted on Github.
Updates on Ultimate Edition are posted on Beast's Lair.
 
Last edited by uyjulian,
  • Like
Reactions: anixia

uyjulian

Homebrewer
OP
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,886
Country
United States
Next version will have a cleaned up codebase, based on the work done here: https://github.com/uyjulian/krkrz/tree/portability_fixes

Also, there will be the following features added in v2.0:
Partial fstat implementation
kri18n implementation
Proportional scaling
More sane font handling
TVPGL blending functions fixed (based on the work done here: https://github.com/uyjulian/tvpgl )
romfs, sdmc, etc are mounted as filesystems in the TVP storage system (because the non-DOS non-POSIX path handling is annoying)
Better touch screen handling

There won't be a port of Kirikiri1 (supporting KAG and KAG2) because the author lost the source code:
 
Last edited by uyjulian,

CrAZONE

Active Member
Newcomer
Joined
Feb 6, 2020
Messages
27
Trophies
0
Age
29
XP
117
Country
Italy
Hi there, sorry to annoy again but once I start the game in my hbmenu it just crashes me to the homescreen. Here what I did:
1. Commercial VN, Hashihime
The game structure is:
fonts/
plugin/
savedata/
data.xp3
hashihime.cf
hashihime.exe
2. I renamed all files to lowercase.
3. I extracted data.xp3 contents into a folder named romfs.
4. Copied krkrs.nro (from your main krkrs_sdk/ directory) into the game's main folder, and then your krkrs.nro from krkrs_sdk/romfs/ directory into my main game folder's romfs' folder. Finally, my final "setup" looks like this:
fonts/
plugin/
romfs/ (which contains the krkrs_sdk/krkrs.nro, startup.tjs and basically the gamefiles)
savedata/
hashihime.cf
hashihime.exe
krkrs.nro
What did I do wrong? Thanks for the help.
 

uyjulian

Homebrewer
OP
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,886
Country
United States
Hi there, sorry to annoy again but once I start the game in my hbmenu it just crashes me to the homescreen. Here what I did:
1. Commercial VN, Hashihime
The game structure is:
fonts/
plugin/
savedata/
data.xp3
hashihime.cf
hashihime.exe
2. I renamed all files to lowercase.
3. I extracted data.xp3 contents into a folder named romfs.
4. Copied krkrs.nro (from your main krkrs_sdk/ directory) into the game's main folder, and then your krkrs.nro from krkrs_sdk/romfs/ directory into my main game folder's romfs' folder. Finally, my final "setup" looks like this:
fonts/
plugin/
romfs/ (which contains the krkrs_sdk/krkrs.nro, startup.tjs and basically the gamefiles)
savedata/
hashihime.cf
hashihime.exe
krkrs.nro
What did I do wrong? Thanks for the help.
Romfs folder is only when packing files into romfs.
For execution from the filesystem, place startup.tjs into the same directory as the nro.

You will get a log and more helpful errors in the console window if you use nxlink to run the nro.
 
Last edited by uyjulian,

CrAZONE

Active Member
Newcomer
Joined
Feb 6, 2020
Messages
27
Trophies
0
Age
29
XP
117
Country
Italy
Sorry about answering this late, but didn't have wifi for a few days. Anyway, I have some questions.
What .nro file should I use? The sdk archive contains one in the main directory and another in the romfs directory
What if I don't have any startup.tjs file? There are only .xp3 files in the game.
 

uyjulian

Homebrewer
OP
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,886
Country
United States
Sorry about answering this late, but didn't have wifi for a few days. Anyway, I have some questions.
What .nro file should I use? The sdk archive contains one in the main directory and another in the romfs directory
What if I don't have any startup.tjs file? There are only .xp3 files in the game.
Either of the nro file will work.
You need a startup.tjs file.

If you want to run commercial games, consider using Kirikiroid2 on Switchroot Android.
 
Last edited by uyjulian,

CrAZONE

Active Member
Newcomer
Joined
Feb 6, 2020
Messages
27
Trophies
0
Age
29
XP
117
Country
Italy
Either of the nro file will work.
You need a startup.tjs file.

If you want to run commercial games, consider using Kirikiroid2 on Switchroot Android.
Ohh, ok, well I think I should give up on running commercial games with this. Awesome project anyway
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    DinohScene @ DinohScene: when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying