Onigiri Online

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
hotsalazar
Posts: 3
Joined: Wed May 04, 2016 6:07 pm

Re: Onigiri Online

Post by hotsalazar »

Hi there, im totally new on this i just wanna ask what this script will do to the game when i unpack it? Sorry for the rookie question but can anyone answer me pls
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Onigiri Online

Post by aluigi »

The script about you refer is this one: http://aluigi.org/bms/onigiri_online.bms
It works with quickbms.
The topic for this game is the following:
viewtopic.php?t=56
hotsalazar
Posts: 3
Joined: Wed May 04, 2016 6:07 pm

Re: Onigiri Online

Post by hotsalazar »

aluigi wrote:The script about you refer is this one: http://aluigi.org/bms/onigiri_online.bms
It works with quickbms.
The topic for this game is the following:
viewtopic.php?t=56



Hi aluigi ty for the reply, i as just wondering what the script will change on the game cause my friend told me that theres a hack for this game which need to unpack the files and change something on it and when i read the topic i realized that could be it. Sorry i do not understand any kind of programing codes and maybe the script is just to make the archives avaliable for unpacking and do not change anything on it (for what i understand is this what the script really does).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Onigiri Online

Post by aluigi »

quickbms allows to reimport/reinject the files back in the original archive.
If you need info about this method read section 3 of quickbms.txt:
http://aluigi.org/papers/quickbms.txt

Regarding this specific script I can say that the files with type 0 "may" or "may not" be reimported, type 4 should work (I don't know if it's zlib or deflate) and all the other types work.
hotsalazar
Posts: 3
Joined: Wed May 04, 2016 6:07 pm

Re: Onigiri Online

Post by hotsalazar »

I got it, yesterday i read tutorials a out the quickbms and is exaclty what i as looking for but sadly i have no use for it sin e i don't know what to change on the archives onde i get tem and either do i have the modified archives to reinject. I don't really want to learn complex codes just to modify this single game so i'll give up. Ty very much for the replies and sorry for wasting tour time.
huehuehue
Posts: 36
Joined: Tue Aug 26, 2014 7:33 am

Re: Onigiri Online

Post by huehuehue »

is it possible for the script to be updated? won't work on switch/steam version of .kxr
sample file:
https://www101.zippyshare.com/v/qbLy6iI2/file.html
huehuehue
Posts: 36
Joined: Tue Aug 26, 2014 7:33 am

Re: Onigiri Online

Post by huehuehue »

not sure if it will help but found this

// switch用パッケージ対応 16byteごとにアライン
local _s = kxr.datasize % 16;
local _alignbuf = null;
if (_s) {
local _offs = kxr.datasize;
local _align = 16 - _s;
_alignbuf = ByteBuffer(_align);
_alignbuf.fill(0, _align);
kxr.datasize += _align;
kxr.write(_offs,_alignbuf);
}
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Onigiri Online

Post by spiritovod »

@huehuehue: But aluigi's script works fine with the provided sample.
huehuehue
Posts: 36
Joined: Tue Aug 26, 2014 7:33 am

Re: Onigiri Online

Post by huehuehue »

spiritovod wrote:@huehuehue: But aluigi's script works fine with the provided sample.


the file was garble and not readable compared when extracting kxr from pc release.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Onigiri Online

Post by spiritovod »

@huehuehue: This doesn't look like garble to me, you should be more specific. I think file format may be different for different platforms.
huehuehue
Posts: 36
Joined: Tue Aug 26, 2014 7:33 am

Re: Onigiri Online

Post by huehuehue »

spiritovod wrote:@huehuehue: This doesn't look like garble to me, you should be more specific. I think file format may be different for different platforms.


i mean something like this. the left one was from the steam/switch kxr, and the right one was from the pc.

Image
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Onigiri Online

Post by spiritovod »

@huehuehue: Files after 2203 still has the same format, while previous ones looks like pairs of header for script system (first file) and opcodes+actual data (second file). From my point of view it doesn't related to the script, which works fine, but to changes in the script system.
AlexLing641
Posts: 5
Joined: Thu Sep 16, 2021 4:16 pm

Re: Onigiri Online

Post by AlexLing641 »

Good afternoon, sorry for my English, the problem arose with the fact that after extracting the archives, the file format has the following extensions
.dat
.cpp
.dds
The question is how to open these models and use working textures, apparently they are encrypted in a text file "sorry, I do not work with such formats"
AlexLing641
Posts: 5
Joined: Thu Sep 16, 2021 4:16 pm

Re: Onigiri Online

Post by AlexLing641 »

I managed to get the models, but it is not clear how to convert the following files, only the texture works (
http://joxi.ru/BA0nVvgIM68pam
cic
Posts: 45
Joined: Fri Jan 07, 2022 7:44 pm

Re: Onigiri Online

Post by cic »

aluigi wrote:I thought that the getamped2.bms script worked, right?
It's valid also for reimporting.

Yes it is :|