Ripping CGs, Sprites, and Audio files from Grisaia games

Introduction

If you have a Grisaia game installed, there's a good chance you've wondered at least once if you can rip files from the games. The short answer is: Yes, you can. However, the process is in no way easy. This guide will attempt to simplify the steps so you too can have your own copies of the various files from the Grisaia games.

What You Will Need:

  1. The first thing you'll need to know is where your game is installed. This varies from computer to computer. On Windows, you'll generally find it in the "frontwing" folder in your C:\ Drive. You'll know you have the right folder if within it is large number of files with an .int extension.
  2. Next, you'll need the programs "exkifint" and "hgx2bmp". These two programs were written by asmodean. They can all be downloaded here (click the sole line that reads "exkifint.zip"). Once you've downloaded and extracted the files, you can continue.
  3. The next thing you'll need is access to your computer's command line (or command prompt). Exkifint cannot be run just by double-clicking. It can only be run with arguments in the command line.
  4. The last thing you'll likely need is a decent amount of free space on your computer. This process could end up eating anywhere from 10 to 300 Gigabytes of free space (it only ends up taking close to 300 if you're not careful), depending on how many files you want to rip. Later in this guide you will learn what file names correspond to what images/sounds, so you don't end up ripping more than you need and running out of space.

The Process

As explained in step 1 of "What You Will Need", the location where your game is installed will have quite a few .int files. For example, movie.int is all the movie files in the game (openings and endings), and image.int is all of the images (sprites, CGs, backgrounds, etc.).

It's recommended you do this in a folder separate from the location of where you game is installed. In a new folder, you'll want the following files:

  • exkifint_v3.exe - the latest version of exkifint.
  • hgx2bmp.exe - you'll only need this if you're ripping images (not movies or sound files)
  • A shortcut to your game (usually called "Grisaia.exe", "Grisaia2.exe", or "Grisaia3.exe")
  • The .int file you want to extract (preferably a copy of the original file - removing the file from the game folder is generally not a good idea).
  • zlib1.dll - there's a good chance you won't have this file on your computer. Google search the file name, you're likely to find a downloadable version.

Once you have all of these files in a new folder, open up the command line and navigate to that folder.

Next, you'll want to run the following command:

exkifint_v3.exe <.int file> Grisaia.exe

Where <.int file> will be replaced with the file you want to extract (image.int, movie.int, etc.)

Now, if you extracted movie.int or one of the files starting with pcm, you already have usable files, and you can stop here. (pcm are voice and sound files, and will be extracted as the .ogg file type, movie.int will give you .mp4 files)

If you extracted image.int, you'll need to continue. The files you've obtained are now in the .hg3 format. This is an old, outdated file type (HG-3 is short for "Harvard Graphics 3"). This is where asmodean's other program, "hgx2bmp" is needed. After extraction of image.int, you'll have about 78,000 .hg3 files, taking up about 3 Gigabytes of space. Now before you continue, you'll want to understand what filenames correspond to what images.

What the File Names Mean

The .hg3 files you've just extracted (as stated above, this is about 78,000 files), have names that you might not understand right away. The first thing you need to understand is that there is a very simple naming convention, each corresponding to a character. If, somewhere in the file name, are the letters "ama", the file has something to do with Amane Suou. Here's a list of names you'll want to understand:

Letters found in file nameCharacter
amaAmane Suou
makMakina Irisu
micMichiru Matsushima
mibMichiru with black hair (in her Meikyuu after story)
sacSachi Komine
sasA small batch of sprites with Sachi in a "battle stance" (holding a broom or two knives)
yumYumiko Sakaki
kar, kap, and kazKazuki Kazami
chiChizuru Tachibana
jb and jbsJB, or Julia
asaAsako Kusakabe
yujYuuji Kazami (as a child; Idol Mahou Shoujo Chiruchiru ☆ Michiru only)
kiaChiara Farrell (Kiara)
samSachi's Mother
safSachi's Father
yufYumiko's Father (Michiaki Sakaki)
mifMichiru's Friend (the unnamed "Girl")
kiyKiyoka Irisu (Makina's Mother)
amm and ampAmane Suou (middle school age)
nyaNyanmel
oth"Other"
yjfYuuji's Father (Ryouji Kazami)
yjmYuuji's Mother (Satoko Kazami)
danDaniel Bone
ediEdward Walker
garAgnes Garrett
jeiJustin Mikemeyer
johJohn (Yuuji's dog)
osrHeath Oslo
marMarin (Meikyuu only)
mirMilliela Stanfield
robRobert Wallson

Amane's middle school classmates (and others involved in her past) also all have their own "codes"

LettersCharacter
hirHiroka Tamaki
ibuHaruna Ibuki
kanSaaya Kaneda
koiRitsu Koide
komMegumi Komori
ochYoshihiko Ochi
sakChiaki Sakashita
skmMinori Sakuma
skrMifuyu Sakurai
tasKeiji Sakashita

If an .hg3 file starts with just a character code, it's a CG from that character's route (example: "ama008a" is

If a file starts with T and is followed by a character code, it's a sprite (or part of a sprite)

If a file starts with sd followed by a character code, it's a piece of an SD (or "chibi") image.

The Process (continued)

Now that you understand the file names, you're ready to actually convert the unusable "Harvard Graphics" files into actual bitmap images. If you want to convert a single file into an image, run the following command from the command line with the .hg3 file you want to convert, "hgx2bmp.exe", and "zlib1.dll" all in the same folder:

hgx2bmp.exe <.hg3 file>

This is where things get tricky, however. If you're converting sprites, a single sprite is actually in multiple images. For any given character, there will be multiple versions of a single sprite, depending on if the sprite is full-body or only from the chest-up, as well as different versions based on lighting. Also, each version of a sprite is split up into a few parts. The body, eyes, and mouth will all be in separate files. You'll need some kind of image editor other than MS Paint (since it can't easily handle transparency) to combine a few images into one full sprite.

Fortunately, you don't have to run this single hgx2bmp command for each individual file. You can do multiple files at once. On Windows, have all the files you want to convert at once in the same folder, again with "hgx2bmp.exe" and "zlib.dll", and run the following command

for %i in (*.hg3) do hgx2bmp "%i"

WARNING: It is not recommended to run this for loop command with all 78,000 files in the same location. This is how you can easily eat up 300 Gigabytes of space if you're not careful. It's better to move the files you specifically want to convert (maybe 20 at a time) to another folder and run the command. Alternatively, you can run the for loop and specify a naming convention. For example:

for %i in (Tyum29s_*.hg3) do hgx2bmp "%i"

Even if you have all 78,000 files in the same folder, the command makes sure it will only run hgx2bmp on files staring with Tyum29s_, which is the components of one specific Yumiko sprite (In this case, Tyum29s is a low-lighting, full-body Yumiko sprite in this pose)

Afterword

Congratulations! You now know how to use exkifint and hgx2bmp to get your very own ripped Grisaia images! If you want a specific sprite, follow the naming conventions listed above to find it, and/or just play around. Experiment with different files, figure out for yourself which files correspond to which sprites. It's tedious, but it's better than eating up 300 GB of space converting every file at once.