How to change this script so it just decrypts only [Onigiri Online]

Doubts, help and support about QuickBMS and other game research tools
DDAAMMNN
Posts: 2
Joined: Tue Nov 14, 2017 10:20 pm

How to change this script so it just decrypts only [Onigiri Online]

Post by DDAAMMNN »

Hello,
I have a question regarding a QuickBMS script...have been trying a little over an hour, but can't get it.

Question: How can I change this script so that it decrypts the file & remains as a single file? [and doesn't generate 100s of files or files within folders]. *basically, no extraction.

Script here: http://aluigi.org/papers/bms/others/onigiri_online.bms


[I have no background in programming btw]

-thanks-

**Edit: The current script works this way for 1 particular file only [decrypt+no extraction]
--
Edit 2: If I change this in the script:
get EXT extension
if EXT != "kxr"


To something like this:
get EXT extension
if EXT != "kxl"
--
...The file remains as a single file [how I want it]...but the file is not decrypted correctly. Maybe I need to play with this more
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to change this script so it just decrypts only

Post by aluigi »

The script already does that.
The non-kxr are encrypted archives that are decrypted in a new file without any extraction.
kxr are archives and so there is nothing to decrypt, archives are meant to be extracted.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to change this script so it just decrypts only

Post by aluigi »

If you meant something else please provide a sample file because I'm not sure to have understood.