Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Tassone <tassoneroberto@outlook.com>
  • Loading branch information
tassoneroberto committed Jul 25, 2022
0 parents commit f150592
Show file tree
Hide file tree
Showing 31 changed files with 6,741 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.unity3d filter=lfs diff=lfs merge=lfs -text
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.idsig
build/
extracted_apk/
data.unity3d-decompressed
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Roberto Tassone

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# NOTE: Windows commands. Not compatible with UNIX OSs

.PHONY: unpack generate-key clear, pack, align, sign, build

# extract the APK file
unpack:
java -jar .\apktool.jar d .\original.apk -o .\extracted_apk

# generate a self-signed key with one century of validity to sign the APK
generate-key:
keytool -genkey -v -keystore key.keystore -alias apk_key -keyalg RSA -keysize 2048 -validity 36500

# delete build artifacts and the extracted APK folder
clear-all: clear-build
- rmdir /s /q extracted_apk

# delete build artifacts
clear-build:
- rmdir /s /q build

# re-pack the folder into an APK file
pack:
java -jar .\apktool.jar b .\extracted_apk\ -o .\build\packed.apk

# zipalign the APK file
align:
zipalign -v 4 .\build\packed.apk .\build\aligned.apk

# sign the APK file with a key
sign:
apksigner sign -v --out .\build\signed.apk --ks .\key.keystore --ks-key-alias apk_key .\build\aligned.apk

# delete unneeded files and re-pack/align/sign the APK from the `extracted_apk` folder
build: clear-build pack align sign
200 changes: 200 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
# バンジージャンプ イントゥ アビス - English translation

![logo](./images/logo.png)

English translation project for the `メイドインアビス (Made in Abyss)` based game `バンジージャンプ イントゥ アビス (Bungy Jump Into Abyss)`.

The game is available for Android and PC Windows.

Official website: [https://kokoromati.orz.hm/bjia/](https://kokoromati.orz.hm/bjia/)

## Progress

- ✔️ All items, explorer' skills, abyss' events, special unit's description have been translated.

- ❌ The image assets (blackboard-like background images) have been found in the extracted files but they have not been translated yet.

- ❌ The menu/UI texts have not been found yet in the extracted files.

## Preview

<img src="./images/preview1.jpg" alt="Shop" width="500" />

<img src="./images/preview2.jpg" alt="Special Unit Riko" width="500" />

<img src="./images/preview3.jpg" alt="Special Unit Nanachi" width="500" />

<img src="./images/preview4.jpg" alt="Explorer skills" width="500" />

## Requirements

Please note that this procedure is based on `Windows 10` and `Powershell`.

- [Java JDK/JRE](https://www.oracle.com/java/technologies/downloads/): needed to run Apktool
- [AssetBundleExtractor](https://github.com/SeriousCache/UABE): needed to manually patch the Unity assets
- (optional) [AssetStudio](https://github.com/Perfare/AssetStudio): can be used to easily navigate the Unity assets
- [APKsigner](https://developer.android.com/studio/command-line/apksigner): needed to sign the APK
- (optional) [Makefile](https://community.chocolatey.org/packages/make): needed to sign the APK

## Patch the Android version

1. Extract the original APK file `.\original.apk` using the already included software `Apktool` (more info [here](https://ibotpeaches.github.io/Apktool/documentation/)):

```powershell
java -jar .\apktool.jar d .\original.apk -o .\extracted_apk
```
or
```powershell
make unpack
```
2. From `AssetBundleExtractor` go to `File -> Open` and select the file `.\extracted_apk\assets\bin\Data\data.unity3d`. Select a folder to save the uncompressed files (you can use the current folder `.\`).
Select the element `resources.assets (Assets)` as shown below:
![AssetBundleExtractor1](./images/assetBundleExtractor.png)
Search and patch the text assets. To patch a text asset you have to select it and then `Plugin -> Import from .txt` selecting the appropriate translated file from the folder `.\translation_files\en\`.
![AssetBundleExtractor2](./images/assetBundleExtractor2.png)
The files to be patched are the following:
- abyss
- event
- item
- skill
- spchar
When all the files are patched go to `File -> Apply and Save All`. Replace the original file `.\extracted_apk\assets\bin\Data\data.unity3d` with the modded one. Keep the same name otherwise it will not work.
Additionally you can change the app name by opening the file `extracted_apk\res\values\strings.xml` and replacing
```xml
<string name="app_name">バンジージャンプ イントゥ アビス</string>
```
with
```xml
<string name="app_name">Bungy Jump Into Abyss</string>
```
3. Generate the APK file from the modified files (more info [here](https://ibotpeaches.github.io/Apktool/documentation/)):
```powershell
java -jar .\apktool.jar b .\extracted_apk\ -o .\build\packed.apk
```
or
```powershell
make pack
```
4. Execute the `zipalign` command to optimize the APK (more info [here](https://developer.android.com/studio/command-line/zipalign)):
```powershell
zipalign -v 4 .\build\packed.apk .\build\aligned.apk
```
or
```powershell
make align
```
5. Generate a self-signed key to sign the APK (more info [here](https://developer.android.com/studio/publish/app-signing#certificates-keystores)):
```powershell
keytool -genkey -v -keystore key.keystore -alias apk_key -keyalg RSA -keysize 2048 -validity 36500
```
or
```powershell
make generate-key
```
When asked to input some information you can leave it blank and press ENTER. You don't have to choose a complex password unless you plan to re-use this key for other projects.
6. Sign the APK with the already generated key (more info [here](https://developer.android.com/studio/command-line/apksigner)):
```powershell
apksigner sign -v --out .\build\signed.apk --ks .\key.keystore --ks-key-alias apk_key .\build\aligned.apk
```
or
```powershell
make sign
```
Enter the password when asked.
The English patched APK file will be located in `.\build\signed.apk`.
## Patch the PC Windows version
1. Extract the file `.\original_installers\BungyJumpIntoAbyss.zip`.
2. From `AssetBundleExtractor` go to `File -> Open` and select the extracted file `.\BungyJumpIntoAbyss_Data\resources.assets`.
Follow the same procedure used for the Android version (step 2.) to patch the text assets.
When all the files are patched go to `File -> Apply and Save All`. Replace the original file `.\BungyJumpIntoAbyss_Data\resources.assets` with the modded one. Keep the same name otherwise it will not work.
Note: gamesave will be located in `C:\Users\{USER}\AppData\LocalLow\kokoromati\バンジージャンプ イントゥ アビス`.
## Cheat mode
It is possible to modify the text assets to add a special item that gives invulnerability against all entities in the Abyss (except the final unknown entity found below depth 15500m).
To add this item you need to modify the file `.\translation_files\en\item.txt` by adding the following code:
```json
{
"id":"item-godmode",
"name":"God Mode",
"desc":"Invincible. Exp. multiplier. Shared exp. Time relic selection.",
"buy":1,
"sell":9999999,
"avertDrowning":true,
"avertSickness":true,
"avertCursing":true
"fixPP":99999,
"fixMP":99999,
"ratioAvertMenPower":100.0,
"ratioAvertPhyPower":100.0,
"ratioPPDamageEvent":0.01,
"ratioMPDamageEvent":0.01,
"ratioMPCureEvent":10.0,
"ratioExp":1000.0,
"avertPhysical":999999,
"avertMental":999999,
"shareExp":1.0,
"percentTakeout":100,
"selectTime":5.0,
}
```

You also need to add this item in the in-game shop by modifying the file `.\translation_files\en\shopProduct.txt` and including an extra element in the list:

```json
{"shopProducts":[
"item-ツルハシ",
"item-良いツルハシ",
"item-最高のツルハシ",
"item-石灯",
"item-良い石灯",
"item-最高の石灯",
"item-予防接種",
"item-酸素ボンベ",
"item-白笛レプリカ",
"item-辛子饅頭",
"item-行動食4号",
"item-ヒガ油",
"item-電気椅子",
"item-godmode"
]}
```
Binary file added apktool.jar
Binary file not shown.
Binary file added images/assetBundleExtractor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/assetBundleExtractor2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/preview1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/preview2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/preview3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/preview4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added original.apk
Binary file not shown.
Binary file added original_installers/BungyJumpIntoAbyss.zip
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f150592

Please sign in to comment.