Skip to content

Commit

Permalink
S;GLBP 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Enorovan committed Oct 15, 2024
1 parent 0649b3f commit bf92e4e
Show file tree
Hide file tree
Showing 65 changed files with 13,700 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
config.ps1
temp/
DIST/
symbols/
pheno-edited-images/*
!pheno-edited-images/.gitkeep
script_archive_steam/*
!script_archive_steam/.gitkeep
sglbp-scripts/*
!sglbp-scripts/.gitkeep
/*.zip
/*.rar

content/languagebarrier/audio/*
!content/languagebarrier/audio/.gitkeep
content/languagebarrier/subs/fonts/*
!content/languagebarrier/subs/fonts/.gitkeep
content/languagebarrier/videos/*
!content/languagebarrier/videos/.gitkeep

# noidget
installer/build/*
!installer/build/.gitkeep
installer/deploy/
installer/deployUninstaller/
installer/userdata/enscriptToc.json
installer/userdata/enscriptTocC.json

# realboot
launcher/build/*
!launcher/build/.gitkeep
launcher/deploy/
20 changes: 20 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[submodule "mgsfontgen-dx"]
path = mgsfontgen-dx
url = https://github.com/CommitteeOfZero/mgsfontgen-dx.git
branch = master
[submodule "installer/noidget"]
path = installer/noidget
url = https://github.com/CommitteeOfZero/noidget.git
branch = master
[submodule "launcher/realboot"]
path = launcher/realboot
url = https://github.com/CommitteeOfZero/realboot.git
branch = master
[submodule "sc3tools"]
path = sc3tools
url = https://github.com/CommitteeOfZero/sc3tools.git
branch = main
[submodule "LanguageBarrier"]
path = LanguageBarrier
url = https://github.com/CommitteeOfZero/LanguageBarrier.git
branch = lbp-changes
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"list": "cpp"
}
}
Binary file added 7zS2.sfx
Binary file not shown.
Binary file added CoZIcon.ico
Binary file not shown.
68 changes: 68 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Building C;C Patch

**THIS PAGE IS ONLY OF INTEREST TO NERDS** and people who'd like to make their own patches for Chaos;Child (or some other SciADV titles) - and even then, you'll need a nerd to deal with this.

This is a snapshot of our root project for the C;C patch, with some assets removed.

**It's going to be painful** and these instructions may not be complete. As you can see, our build is kind of a mess, and *you'll need to extract assets from an already patched game installation*. This isn't the release we'd like to have made, but we hope it's better than nothing.

**Clone this repository recursively.** Some of our internal dependencies are submodules.

### Licensing and stuff

- Most of our code is released under liberal open source licenses, check the repositories
- Please do not pirate the game
- **If you release a patch, take care to find and change all relevant text to not misrepresent us as the authors of your patch**. There is a lot of such text scattered throughout:
- `content/languagebarrier/patchdef.json` (please use your own AppData directory too)
- `installer/userdata`
- Hardcoded in the launcher source code at `launcher/realboot` (note, there's a technical support link pointing to our Discord, please don't keep it that way without asking us first)
- EXE metadata in `terribuild.ps1`
- We probably forgot something

Third-party dependencies included in *this* repository:

- `7zS2.sfx`: [Customised 7-Zip SFX module](https://github.com/CommitteeOfZero/lzma-sdk) (public domain)
- `rcedit-x86.exe`: [rcedit](https://github.com/electron/rcedit) (MIT)
- `xdelta3.exe`: [xdelta3](https://github.com/jmacd/xdelta) version 3.1.1 (Apache 2.0)
- `Newtonsoft.Json.dll`: [Json.NET](https://github.com/JamesNK/Newtonsoft.Json) (MIT)

This doesn't fit anywhere else:

- We made [REEEEEEGen](https://github.com/CommitteeOfZero/REEEEEEGen) (MIT) to generate some images.

### External dependencies

- Visual Studio 2015
- Maybe Visual Studio 2017? Not sure if we need it for anything in here
- Qt 5.9+ for Visual Studio 2015
- Libraries for noidget (see `installer/noidget/conf.pri.sample`)
- DirectX 9 SDK - make sure the `DXSDK_DIR` environment variable is set to e.g. `C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\`
- Python 2.7 - make sure it's in PATH
- [LanguageBarrier](https://github.com/CommitteeOfZero/LanguageBarrier/tree/multi-game) on branch `multi-game`
- 7-Zip - make sure it's in PATH

### Building dependencies

- Build `SciAdv.Net` using the `build.cmd` in its subfolder (this also happens during the main build but you'll need it for asset extraction first).
- You do not need to build LanguageBarrier or xdelta3, these are built during the main build and noidget build, respectively.

### Preparing assets

- Export edited images to the `cc-edited-images` subfolder in this repository. Sorry, no convenient way to do this right now - take `languagebarrier/c0data.mpk` from a patched copy and copy things to the appropriate paths according to `c0data_toc.csv`.
- Build SciAdv.Net with its `build.cmd`.
- Extract `languagebarrier/enscript.mpk` and `languagebarrier/enscript_c.mpk` with `ungelify` from SciAdv.Net somewhere.
- Dump patched script text with `sc3tools` (also from SciAdv.Net): `sc3tools.exe extract-text *.scx cc` in the extraction folders.
- Copy the output .txt files from `enscript.mpk` into a `cc-scripts` subfolder and the output .txt files from `enscript_c.mpk` into a `cc-scripts-consistency` subfolder.
- Extract the Steam version's original `USRDIR/script.mpk` into the `script_archive_steam` subfolder.
- Copy `languagebarrier/audio`, `languagebarrier/subs` and `languagebarrier/video` to `content/languagebarrier`

### Configuration

- Copy `installer/noidget/conf.pri.sample` to `installer/noidget/conf.pri` and adjust for your system.
- Copy `config.ps1.sample` to `config.ps1` and adjust for your system

### Actually doing the build

- Run `terribuild.ps1`
- Get a billion errors
- [Cry](https://discord.gg/rq4GGCh)
1 change: 1 addition & 0 deletions LanguageBarrier
Submodule LanguageBarrier added at d6a65b
Binary file added LauncherIcon.ico
Binary file not shown.
Binary file added Newtonsoft.Json.dll
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# sglbp-patch

Issue tracker and downloads for our STEINS;GATE: Linear Bounded Phenogram patch
84 changes: 84 additions & 0 deletions c0data_toc.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# id,filename_on_disk,filename_in_archive
# font replacement
0,temp\FONT.png,FONT.PNG
1,pheno-edited-images\bg\BG06A1.png,BG06A1.png
2,pheno-edited-images\bg\IBG002A.png,IBG002A.png
3,pheno-edited-images\bg\IBG004A.png,IBG004A.png
4,pheno-edited-images\bg\IBG032A.png,IBG032A.png
5,pheno-edited-images\bg\IBG035A.png,IBG035A.png
6,pheno-edited-images\bg\IBG053A.png,IBG053A.png
7,pheno-edited-images\bg\IBGX041.png,IBGX041.png
8,pheno-edited-images\bg\IBGX043.png,IBGX043.png
9,pheno-edited-images\bg\IBGX058J.png,IBGX058J.png
10,pheno-edited-images\bg\IBGX099.png,IBGX099.png
11,pheno-edited-images\chara\TEN_BLA.png,TEN_BLA.png
12,pheno-edited-images\chara\TEN_BLA_.lay,TEN_BLA_.lay
13,pheno-edited-images\chara\TEN_BMA.png,TEN_BMA.png
14,pheno-edited-images\chara\TEN_BMA_.lay,TEN_BMA_.lay
15,pheno-edited-images\chara\TEN_BSA.png,TEN_BSA.png
16,pheno-edited-images\chara\TEN_BSA_.lay,TEN_BSA_.lay
17,pheno-edited-images\bg\IBG013A.png,IBG013A.png
18,pheno-edited-images\bg\IBG016C.png,IBG016C.png
19,pheno-edited-images\bg\IBG048A.png,IBG048A.png
20,pheno-edited-images\bg\PBG09A.png,PBG09A.png
21,pheno-edited-images\bg\PBG09B.png,PBG09B.png
22,pheno-edited-images\bg\PBG09C.png,PBG09C.png
23,pheno-edited-images\bg\PBG10A.png,PBG10A.png
24,pheno-edited-images\bg\PBG10B.png,PBG10B.png
25,pheno-edited-images\bg\PBG11A.png,PBG11A.png
26,pheno-edited-images\bg\PBG11B.png,PBG11B.png
27,pheno-edited-images\bg\PBG11C.png,PBG11C.png
28,pheno-edited-images\bg\PBG12A.png,PBG12A.png
29,pheno-edited-images\bg\PBG12B.png,PBG12B.png
30,pheno-edited-images\bg\PBG12C.png,PBG12C.png
31,pheno-edited-images\bg\PBG13A.png,PBG13A.png
32,pheno-edited-images\bg\PBG14A.png,PBG14A.png
33,pheno-edited-images\bg\PBG15A.png,PBG15A.png
34,pheno-edited-images\bg\PBG15B.png,PBG15B.png
35,pheno-edited-images\bg\PBG15C.png,PBG15C.png
36,pheno-edited-images\bg\PBG16A.png,PBG16A.png
37,pheno-edited-images\bg\PBG16B.png,PBG16B.png
38,pheno-edited-images\bg\PBG16C.png,PBG16C.png
39,pheno-edited-images\bg\PBG16D.png,PBG16D.png
40,pheno-edited-images\bg\PBG16E.png,PBG16E.png
41,pheno-edited-images\bg\PBG16F.png,PBG16F.png
42,pheno-edited-images\bg\PBG17A.png,PBG17A.png
43,pheno-edited-images\bg\PBG17B.png,PBG17B.png
44,pheno-edited-images\bg\PBG17C.png,PBG17C.png
45,pheno-edited-images\bg\PBG18A.png,PBG18A.png
46,pheno-edited-images\bg\PBG19A.png,PBG19A.png
47,pheno-edited-images\bg\PBG20A.png,PBG20A.png
48,pheno-edited-images\bg\PBG21A.png,PBG21A.png
49,pheno-edited-images\bg\PBG21B.png,PBG21B.png
50,pheno-edited-images\bg\PBG21C.png,PBG21C.png
51,pheno-edited-images\bg\PBG21D.png,PBG21D.png
52,pheno-edited-images\bg\PBG22A.png,PBG22A.png
53,pheno-edited-images\system\DATA01.dds,DATA01.dds
54,pheno-edited-images\system\OPTION.dds,OPTION.dds
55,pheno-edited-images\system\SNRSELECT.dds,SNRSELECT.dds
56,pheno-edited-images\bg\IBG001B.png,IBG001B.png
57,pheno-edited-images\bg\IBG007A.png,IBG007A.png
58,pheno-edited-images\bg\IBG010A.png,IBG010A.png
59,pheno-edited-images\bg\IBG014A.png,IBG014A.png
60,pheno-edited-images\bg\IBG014B.png,IBG014B.png
61,pheno-edited-images\bg\IBG014C.png,IBG014C.png
62,pheno-edited-images\bg\IBG023A.png,IBG023A.png
63,pheno-edited-images\bg\IBG023B.png,IBG023B.png
64,pheno-edited-images\bg\IBG023C.png,IBG023C.png
65,pheno-edited-images\bg\IBG047A.png,IBG047A.png
66,pheno-edited-images\bg\IBG051A.png,IBG051A.png
67,pheno-edited-images\system\CLEARLIST.dds,CLEARLIST.dds
68,pheno-edited-images\bg\TIT001.png,TIT001.png
69,pheno-edited-images\bg\TIT002.png,TIT002.png
70,pheno-edited-images\bg\TIT003.png,TIT003.png
71,pheno-edited-images\bg\TIT004.png,TIT004.png
72,pheno-edited-images\bg\TIT005.png,TIT005.png
73,pheno-edited-images\bg\TIT006.png,TIT006.png
74,pheno-edited-images\bg\TIT007.png,TIT007.png
75,pheno-edited-images\bg\TIT008.png,TIT008.png
76,pheno-edited-images\bg\TIT009.png,TIT009.png
77,pheno-edited-images\bg\TIT010.png,TIT010.png
78,pheno-edited-images\bg\TIT011.png,TIT011.png
79,pheno-edited-images\bg\IBG024A.png,IBG024A.png
80,pheno-edited-images\bg\IBG028A.png,IBG028A.png
81,pheno-edited-images\system\PHONE_FEI.dds,PHONE_FEI.dds
25 changes: 25 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"defaultEditor": "notepad",

"editors": {
"notepad": {
"path": "notepad.exe",
"args": ""
},

"notepad++": {
"path": "%ProgramFiles%/Notepad++/notepad++.exe",
"args": ""
},

"code": {
"path": "%ProgramFiles%/Microsoft VS Code/Code.exe",
"args": ""
}
},

"languages": {
"default": "",
"russian": "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя"
}
}
9 changes: 9 additions & 0 deletions config.ps1.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# MSVC 2015's MSBuild executable. This is probably already correct.
$msbuild = "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"

# Root of your LanguageBarrier repository (https://github.com/CommitteeOfZero/LanguageBarrier/tree/multi-game), i.e. where LanguageBarrier.sln is
$languagebarrier_dir = $env:USERPROFILE + "\Documents\Visual Studio 2015\Projects\LanguageBarrier"
# Build configuration. This is probably already correct.
$languagebarrier_configuration = "dinput8-Release"
# Add things that need to be on your PATH for this build here, e.g. Visual C++ 2015 binary dir, Qt 5.x for MSVC 2015 binary dir, 7-Zip binary dir
$env:path = "C:\Qt\5.9.2\msvc2015\bin;G:\VS2015_2\VC;" + $env:path
54 changes: 54 additions & 0 deletions content/SGLBPPatch-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
STEINS;GATE: Linear Bounded Phenogram Improvement Patch
Committee of Zero
Version 1.0.0 - October 15, 2024
==============================
https://sonome.dareno.me
https://twitter.com/CommitteeOf0
https://discord.gg/rq4GGCh
https://github.com/CommitteeOfZero
https://www.youtube.com/@committeeofzero
https://www.twitch.tv/CommitteeOfZero
==============================

See https://sonome.dareno.me/projects/sglbp-patch.html for details, contact information and further instructions.

For troubleshooting, please come to our Discord. You can always find the latest version of the patch at https://github.com/CommitteeOfZero/sglbp-patch/releases

==============================
Credits:
==============================

Image editing:
* Choccy
* Bloody
* Enorovan
* Rile_Zugo
* LkProd

Hacking:
* JoseJL
* Dextinfire
* Enorovan
* SomeAnon
* daxxy
* MrComputerRevo

Quality Assurance:
* Dextinfire
* Llednar

Translation:
* Enorovan
* fl4t_is_justice

Subtitles:
* zahj

Subtitles Editing:
* Kumin

Video Editing:
* Rile_Zugo

Special thanks to our vetted laboratory assistants for playtesting and proofreading!
Special thanks to the team who made the STEINS;GATE Steam Patch as some assets were reused!
Binary file added content/d3d10
Binary file not shown.
Binary file added content/d3d10_1
Binary file not shown.
Binary file added content/d3d10core
Binary file not shown.
Binary file added content/d3d11
Binary file not shown.
Binary file added content/d3d9
Binary file not shown.
Binary file added content/dxgi
Binary file not shown.
Loading

0 comments on commit bf92e4e

Please sign in to comment.