Skip to content

Commit

Permalink
merge conflict and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyZanark committed Jun 15, 2023
2 parents 786b210 + 7bcfbc2 commit 8b6c330
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
# Priconne Utils

Scripts written in Python to get the master database, BGM files, L2D, UB Cutin, etc. from the game Princess Connect! Re: Dive JP Server. Made in Windows 10, so it might not work as intended on other OSs.
Scripts written in Python to get the master database, BGM files, L2D, UB Cutin, etc. from the game Princess Connect! Re: Dive JP Server. Made and compiled in Windows 10, so it might not work as intended on other OSs.


## Requirements

- Internet Connection (obviously)
- [acb2wavs (for audio files)](https://github.com/hozuki/libcgss)
- [UsmToolkit (for video files)](https://github.com/MightyZanark/UsmToolkit)
- [FFmpeg (for audio files and UsmToolkit)](https://ffmpeg.org/download.html)

Note: If you don't already have FFmpeg installed, then you can just do it from UsmToolkit. UsmToolkit have a command to download FFmpeg.
- [FFmpeg (for video and audio files)](https://ffmpeg.org/download.html)


## How to Use

1. Well first of all, install all the requirements, won't work without it.
2. If you haven't already, add acb2wavs, UsmToolkit, and FFmpeg to PATH in System Variables. If you don't know how to do that then check out the later section. Additionally, if you got FFmpeg from UsmToolkit, then as long as UsmToolkit is in PATH, you are good to go.
2. If you haven't already, add acb2wavs and FFmpeg to PATH in System Variables. If you don't know how to do that then check out the later section.
3. Don't forget to download the executable from [latest](https://github.com/MightyZanark/PriconneUtils/releases/latest).
4. If you got everything set up already, then you can double click on `PriconneUtils.exe` to run the program. After running, a window will pop up and there are instructions there as well.
5. Type the option that you would like to do, upper/lowercases doesn't matter.
Expand All @@ -29,23 +26,29 @@ Note: If you don't already have FFmpeg installed, then you can just do it from U
1. Open up the search bar and search for `system variables`, `Edit the system environment variables` should appear so click on it.
2. A window called `System Properties` should open and you should be in the `Advanced` tab.
3. At the very bottom, there should be a button called `Environment Variables...`, click that.
4. Another window called `Environment Variables` should open up. There are 2 section in it, the upper part is the variables for the **CURRENT USER**, while the bottom part is for the **WHOLE SYSTEM** (or ALL USER). You can choose whether you like acb2wavs, UsmToolkit, and FFmpeg to be available to only the **CURRENT USER** or to **ALL USER**.
4. Another window called `Environment Variables` should open up. There are 2 section in it, the upper part is the variables for the **CURRENT USER**, while the bottom part is for the **WHOLE SYSTEM** (or ALL USER). You can choose whether you like acb2wavs and FFmpeg to be available to only the **CURRENT USER** or to **ALL USER**.
5. After you decided which one you want to edit, find the variable called `Path` (not `PATHEXT`), select it, and press `Edit` or double click it. That should open up yet another window.
6. In that window, there should be all kinds of options like `New`, `Edit`, `Browse`, `Delete`, etc. To add acb2wavs and UsmToolkit to it, press `New`.
7. Copy and paste the full path of acb2wavs and UsmToolkit, and by full path I meant something like this `D:\libcgss-win-x86-vc14.2-0.3.7.89\bin\x86\Release` (acb2wavs). At the end of it, you should have something along this line

![Image of completed path](./path.png)

I have FFmpeg as a separate line because I already have FFmpeg installed way before I have UsmToolkit, but if you don't have both and you downloaded FFmpeg from UsmToolkit command, then you just need to have UsmToolkit in `Path` and it will work just fine.
If for some reason, while running the script, something like `acb2wavs is not recognized as an internal or external command, operable program or batch file` appears, try adding an ending backlash ("\\") to the path (from `D:\libcgss-win-x86-vc14.2-0.3.7.89\bin\x86\Release` to `D:\libcgss-win-x86-vc14.2-0.3.7.89\bin\x86\Release\`)

If this still wasn't clear, you can contact me through Discord from [Priconne Unofficial Server](https://discord.gg/priconne), if you're not from the server, chances are I will just ignore your DM/friend req. My tag is **MightyZanark#0138**.
If this still wasn't clear, you can contact me through Discord from [Priconne Unofficial Server](https://discord.gg/priconne), if you're not from the server, chances are I will just ignore your DM/friend req. My username is **mightyzanark**.


## Building

If you want to modify and build the program yourself, you will need:
- [Python 3.9.6](https://www.python.org/downloads/)
- Requests `pip install requests`
- Pyinstaller `pip install pyinstaller`
- Requests
- Pyinstaller
- PyCriCodecs

You can download and install the libraries by doing this command in your terminal
```
pip install -r requirements.txt
```

After installing those, you can just run the `build.bat` file under the scripts folder.
After installing those, you can just run the `build.bat` file under the scripts folder.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"movie": "http://prd-priconne-redive.akamaized.net/dl/Resources/version/Jpn/Movie/PC/High/manifest/moviemanifest",
"sound": "http://prd-priconne-redive.akamaized.net/dl/Resources/version/Jpn/Sound/manifest/sound2manifest",
"db": "http://prd-priconne-redive.akamaized.net/dl/pool/AssetBundles"
}
}

0 comments on commit 8b6c330

Please sign in to comment.