Atanok’s Weblog

2009/09/05

How to run Umineko no Naku Koro ni (en) portable and multi-OS

Filed under: Computers, Games, How-to, Linux, Umineko — atanok @ 23:56

Update: getting the Windows version and then the onscripter executables for Mac and GNU/Linux is the best method right now.
Get everything at this page.

The Linux executable on that page is statically linked, which drastically reduces dependencies, at the cost of being larger and… well… not being dynamically linked. But it’s better for portability.

[rest is outdated, Witch Hunt have released a new version of the patch, which makes things slightly harder for Mac users attempting this guide. Can still be used as a reference.]

v1 rev3

PREAMBLE

This how to is intended for those who want to:

  • Use ONScripter-EN to play graphic novels in GNU/Linux.
  • “Install” Umineko no Naku Koro ni in GNU/Linux. (With english patch)
  • Make the game portable so you can play it on multiple operating systems and/or machines.

That includes Windows users who want to play in multiple Windows installations/computers.

We will be using Ubuntu 8.10 (Intrepid Ibex) as the base distro.

I personally use Linux Mint 6, which is for all matters the same.

A great deal of credit for this guide must go to NegativeZero from pinkubentobox for his post on running Umineko in Linux.

This wouldn’t be possible without:

ONScripter-EN‘s maintainer, Haeleth

The original ONScripter.

The Witch Hunt Translation Project, who take all credit for the english translation patch.

07th Expansion‘s Ryukishi07 – need I say more?

TABLE OF CONTENTS

    1. ONscripter-EN for GNU/Linux

      1.1. Satisfying dependencies
      1.2. Grabbing the ONscripter-EN source code
      1.3. Compiling and installing ONscripter-EN
    2. Installing Umineko (without using Windows or WINE)

      2.1. Grabbing the files from the disc
      2.2. Grabbing the English patch
      2.3. Wrapping things up
    3. Making things portable

      3.1. Retrieving your saved files (optional)
      3.2. Creating portable launchers

        3.2.1. Windows
        3.2.2. GNU/Linux
        3.2.3. Mac OS X
      3.3. How to use it

NOTES

I am still looking into two things interesting for Debian/Ubuntu users – rolling a binary package, and the possibility of using a simple binary executable.

If you have any idea on those, let me know.

I also need help for OS X stuff.

Error reports go in the comments or to atanok@gmail.com

1.ONScripter-EN on GNU/Linux

This section covers the process of getting a native ONScripter-EN running on your GNU/Linux OS.

Remember, this is for Ubuntu 8.10, it might need adaptations for other distros.

1.1. Satisfying dependencies

We need to satisfy ONScripter-EN build dependencies if we are to compile it:

$ sudo apt-get install build-essential libpng12-dev libjpeg62-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libbz2-dev

If you are looking into compiling the original ONScripter, please note it has radically different dependencies.

1.2. Grabbing the ONScripter-EN source

There are two ways to go about this – either grab the last stable release, or latest ‘unstable’ code.

Choose only one of the following methods, A or B.

A – Latest code (recommended for Umineko)

This is the kind of code used in Witch Hunt’s translation patch. It implements recent features not available in the stable release, but stability is not guaranteed.

$ mkdir ~/onscripter-en_unstable

$ cd ~/onscripter-en_unstable

$ wget -e robots=off -r --no-parent -l 0 http://svn.haeleth.net/onscr/trunk -I /onscr/trunk -X /onscr/trunk/extlib,/onscr/trunk/win_dll,/onscr/trunk/macosx,/onscr/trunk/test -nH --cut-dirs=2 -Dsvn.haeleth.net

$ chmod +x config* install-sh

By now, you should have a directory in your home folder called “umineko-en_unstable” with everything we need in it.

You should also be in that directory for the next step, so don’t move away from it.

B – Stable code

This is supposed to provide a more stable program, but it does not implement some special effects and possibly other features used in Umineko.

$ cd ~

$ wget http://dev.haeleth.net/onscripter/onscripter-en-20080823-src.tar.bz2

$ tar -xvvzf onscripter-en-20080823-src.tar.bz2

$ cd onscripter-en-20080823

By now, you should have a directory in your home folder called “umineko-en-20080823” with everything we need in it.

You should also be in that directory for the next step, so don’t move away from it.

1.3. Compiling and installing ONScripter-EN

I’m assuming you’re still in the directory from the last step as I told you.

$ ./configure

$ make

If it doesn’t end on an error, keep going. Otherwise, we have a problem…

$ sudo make install

If everything went right, you can now use the command ‘onscripter-en’ anywhere.

Want to make sure it’s there? Try $ onscripter-en --version


2. Installing Umineko

If you already installed before or have a Windows installation, you can just copy the installation folder, or even use it as-is, depending on the situation.

2.1. Grabbing the files from the disc

This assumes you have the CD mounted at /media/cdrom

If it’s mounted somewhere else, you will have to adapt the code to your particular location.

If you don’t have a CD reader (eg. netbooks) or otherwise need to rely on a disc image, use the following example as a base to mount the CD:

$ mkdir /tmp/cdrom

$ sudo mount -t iso9660 -o loop -o utf8 path/to/Umineko.iso /tmp/cdrom

Got .mdf .mds files instead of an .iso? Use the .mdf file in place of the .iso in the line above.

Use $ sudo umount /tmp/cdrom when you are done.

Replace the purple text with your CD mount location. (default: /media/cdrom)

Replace the orange text with the path of your choice. This is where the game will be placed. (default: ~/umineko4)

$ mkdir ~/umineko4
$ cd /media/cdrom
$ cp -r BGM ME movie screenshot SE sys_se  ~/umineko4
$ cp fullsrc/* ~/umineko4

You should now have the game ‘installed’ in the orange location, ~/umineko4 by default.

2.2. Grabbing the English patch

The english patch we will be using was created by The Witch Hunt Translation Project – all credit goes to them.

Head over to http://witch-hunt.com/stage.html and grab the patch:

For GNU/Linux, any will do.

If you also use Mac OSX or Windows, choose accordingly.

If you use both Mac OSX and Windows, grab this instead: http://www.mediafire.com/?npyt01tymyb

Place the file in the game folder (default: ~/umineko4), then change to it…

$ cd ~/umineko4

If you got your patch from The Witch Hunt:

$ sudo apt-get install unrar

If you got the Windows patch:

$ unrar -x _WH__Umineko_4_v4.1.rar

If you got the OS X patch:

$ unrar -x _WH__Umineko_4_v4.1_for_Mac_OSX.rar


If you got the patch for both Windows and OSX:

$ tar --lzma -xvvf _WH__Umineko_4_v4.1_dual.tar.lzma

You should now have a “[WH] Umineko English” directory in the main game directory.

Let us test it:

$ cd \[WH\]\ Umineko\ English

$ onscripter-en

The game should start, but close it for now.

2.3. Wrapping things up

Rename the english patch folder to something easy

$ cd ~/umineko4

$ mv \[WH\]\ Umineko\ English english

Create a folder for the upcoming section

$ mkdir english/saves

3. Making things portable

Right now, you can put the game folder in a portable drive and use it wherever you want, but your save files will stay in the computers you used.

Let’s take care of that.

3.1. Retrieving your saved files

If you don’t mind starting anew or have never played, skip this section.

The game by default saves your progress in a folder named “Umineko4final”, which is  in different places for the various operating systems:

Windows (example):

C:\Documents and Settings\All Users\Application Data\Umineko4final

Wine on GNU/Linux (example):

~/.wine/drive_c/windows/profiles/All Users/Application Data/Umineko4final

GNU/Linux:

~/.Umineko4final

Mac OSX:

Unknown. (please comment or email me if you know)

Copy the content of that directory to the one we prepared earlier inside “english”, named “saves”

3.2. Creating portable launchers

We will be creating simple scripts to launch the game with the option “-s ./saves”. This tells the game to use the “saves” directory as the place to store your progress.

3.2.1 GNU/Linux

Assuming you are in the “english” folder:

$ echo ‘#! /bin/sh’ > umineko.sh

$ echo ‘onscripter-en -s ./saves’ >> umineko.sh

$ chmod +x umineko.sh

You now have an executable bash script named “umineko.sh”.

Run it to start the game.

Note that this still requires you to have onscripter-en installed on the system.

3.2.2 Windows

You can do it on GNU/Linux:

$ echo ‘onscripter-en.exe -s .\saves’ > umineko.bat

But if you are on windows, just create a .bat file (eg.: umineko.bat) with the following line in it:

onscripter-en.exe -s .\saves

Run the .bat file to start the game.

3.2.3 Mac OS X

Unfortunately, I don’t have a system to test this on right now.

It should be the similar to the GNU/Linux method.

If you find out, let me know and I will include it here.

3.3. How to use it

Remember that directory where we placed all the game files, english patch and save files?

The one marked orange, ~/umineko4 by default.

You can now move it around as much as you want.

You can take it into a USB flash drive/SD card/external HDD/whatever and run it from there.

As long as you use the launchers we created in 3.2 and the place is writeable, you should be able to seamlessly carry it from one computer to another.

Enjoy.

Advertisements

15 Comments »

  1. gj nerd

    Comment by bbot — 2009/09/06 @ 02:02

  2. I knew I shouldn’t have used that WYSIWYG editor.

    Now I’m stuck repairing html code by hand.

    Comment by atanok — 2009/09/06 @ 02:35

  3. The Umineko4final directory in Mac OS X is under:

    ~/Library/Application Support/Umineko4final

    Comment by Michał Moroz — 2009/09/23 @ 03:40

    • Thanks.

      I finally tested things in a Mac today but forgot to find that out.

      I’ll update the post with my findings when I get the time.

      also, there were a few updates regarding the English patch that I need to include.

      Comment by atanok — 2009/09/23 @ 16:58

  4. Really nice posts. I will be checking back here regularly.

    Comment by Kelli Garner — 2009/09/26 @ 05:16

  5. Vista see it fit to be odd and put the Umineko4final folder somewhere completely different.

    C:\ProgramData\Umineko4final

    Just saying in-case anyone else has Windows Vista.

    Comment by Deviant Discordian — 2009/10/21 @ 13:15

    • Yes, it should be saved wherever %APPDATA% is in your system.

      Comment by atanok — 2009/11/01 @ 23:43

  6. ONScripterLabel_command.cpp:1139: error: invalid conversion from ‘const char*’ to ‘char*’
    make: *** [ONScripterLabel_command.o] Error 1

    any help? Thanks.

    Comment by Karl takaguchi — 2010/05/15 @ 13:40

    • using 10.o4 BTW.

      Comment by Karl takaguchi — 2010/05/15 @ 13:57

    • I’m afraid that looks like a plain ol’ error in the ONScripter code.
      Doesn’t look like there is any problem with your system.

      You can simply get the binaries from http://onscripter.denpa.mobi/?page_id=26
      instead of compiling yourself.

      You can also try compiling the source code in that page, since it seems to be much more stable than the one at haeleth’s subversion repository.

      Comment by atanok — 2010/05/15 @ 15:22

      • I’ll probably write a new version of this guide.
        Hopefully not as messy and verbose as this one turned out.

        Comment by atanok — 2010/05/15 @ 15:24

  7. HEY THANKS A LOT!

    Actually following your guide i had a problem at compiling onscripter-en, but downloading the source code with dependencies from official site actually did it.
    Also at creating the umineko.sh there are some syntax problems.
    I recommend creating the .sh with gedit or some editor and add the line for the saves:
    onscripter-en -s ./saves

    Comment by Arturito — 2010/06/06 @ 01:26

  8. On newest ponscripter (20100502), the default savepath/env path is directly a folder (i.e. $HOME//) on gnu linux.

    Comment by tatose — 2011/05/26 @ 16:09

  9. Is it possible to add the patch to the psp one?

    Comment by hiro — 2012/05/04 @ 15:25

  10. *Sigh* Yosh! ガムバロ! (Wishing this to have a video…) -_-“

    Comment by yumeyume13 — 2013/08/11 @ 12:39


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: