Majipuri Translation Project: Tools

Disclaimer: No warranties expressed or implied, you use at your own risk.
Most of the tools were developed by sagara, some were developed by alamone.
Developed in objective C / GCC under mingw in Windows XP cmd prompt.

Note: Although the tools were developed for Majipuri, some of them are applicable to other Purple Software stuff like Majipuri Fandisc and Akiiro Renka. However, some stuff is incompatible due to differences in the new version of CVNS.

Preparation:
* Make a directory C:\majipuri\ and move the contents of the full Majipuri game over there.
* Use cpz-depacker to unpack the .CPZ files in data\
* Make a dir "unc" within data\code\
* Copy all the *.pss files to unc
* Use pss-decomp to uncompress the pss files in unc
* Overwrite the original cvns.exe with one provided below
* Convert all the .pb2 files to .png using the pb2 converter
* If you want the english materials (translated .pngs and .txts) just dump them from the english demo

Please select an area of interest:
  • Global
  • CVNS (Clearblue Visual Novel System)
  • Script
  • PB2 (image)
  • Distribution
  • Global stuff

    include files by sagara
    Some global .h files needed for compilation
    Use SET C_INCLUDE_PATH= to include them in GCC

    lib files by sagara
    Library files (*.a) needed for compilation
    Use SET LIBRARY_PATH= to include them in GCC

    dll files by open source
    Includes zlib1.dll and libpng.dll required for pb2 converter

    hacking notes by sagara
    Probably of little use to anyone else though.

    CVNS stuff

    mp-patcher by sagara
    This patches the CVNS.EXE to accept uncompressed .PSS files.
    It only works on certain versions of the .EXE due to hardcoded patch addresses.
    Alternatively just use the prepatched CVNS.EXEs below.

    CVNS.EXEs by sagara / alamone
    Includes the demoversion cvns.exe (for development, since it always refreshes the script cache)
    and the fullversion cvns.exe (caches script, reshacked into english and used for deployment).
    Also includes the cvns.cfg that specifies "MS Gothic" for compatibility with english locale.

    CPZ stuff

    cpz-packer by sagara
    Repacks a directory to .cpz file.

    cpz-depacker by sagara
    Depacks a .cpz file to a directory. Due to a bug in the program it may name the directory incorrectly, just fix it yourself.

    Script stuff

    Scripts translated by alamone and gp32
    Note: may not be the latest scripts. For the latest scripts, just unpack them from the demo itself.
    In start.txt, change:
    data\pack\se\ -> data\pack\se.cpz
    data\pack\voice\ -> data\pack\voice.cpz
    data\pack\data\ -> data\pack\data.cpz
    if you are repacking the archives.

    pss-decomp by sagara
    This decompresses the .pss files to .dat files. Rename the .dat back to .pss to use.

    pss-tools by alamone
    PSS script dumper and inserter. To use these, you should make a directory called
    "c:\majipuri\data\code\unc\" and copy all the uncompressed PSS files there, then
    unpack the contents of this zip (and the *.txt script files) to that dir.
    From there use the "run.bat" to insert the .txt scripts into the .pss files.
    (You can look at the .bat file itself to get a better idea)

    PB2 (image) stuff

    pb2conv by sagara
    This converts .pb2 files to .png. Does not work on the newer .pb2s with differential graphics.
    You need zlib1.dll, libpng.dll, and cvns.exe renamed to majipuri.exe to use this.
    The CVNS engine supports .pngs so it's much easier to convert everything to pngs.

    [pngcrush] (search google) - Used to reduce the .PNG filesize (not by much)

    prologue translation by alamone
    Used this as a guide to translate the pro*.png files.

    distro stuff

    [ntfilmon] (search google) - File auditor that aids in trimming down the distro to only the used files (.pngs and etc)

    logsift by alamone
    A quickie program that uses C:\Filemon-all.LOG to search for files used by CVNS in C:\majipuri,
    then copies all accessed files to c:\majipnew. Use in tandem with ntfilmon.

    [nsis] (search google) - The Nullsoft Install Scripter was used for the installation program.

    back to main...