|
| 1 | +#How To Setup |
| 2 | + |
| 3 | +This page will guide you step-by-step how to run DEPLS2 for the first time. The key of getting DEPLS2 run is not hard, but not easy either. |
| 4 | + |
| 5 | +##System Requirements |
| 6 | + |
| 7 | +Before you proceed, make sure your device comply these requirements |
| 8 | + |
| 9 | +* At least 1.3GHz dual core. More complex storyboard system requires more power and RAM |
| 10 | + |
| 11 | +* At least 256MB of free RAM. |
| 12 | + |
| 13 | +* OpenGL 2.1 (or OpenGLES 2 for Android) capable graphics card |
| 14 | + |
| 15 | +* Windows: Windows Vista or above (sorry Windows XP users) |
| 16 | + |
| 17 | +* Ubuntu: Ubuntu 14.04 - 16.10 |
| 18 | + |
| 19 | +* Mac OS X: Mac OS X v10.7 or above. |
| 20 | + |
| 21 | +* Android: Android v2.3 or above. |
| 22 | + |
| 23 | +* **iOS: Not supported!** |
| 24 | + |
| 25 | +##Getting LOVE2D and run DEPLS |
| 26 | + |
| 27 | +If your device comply with requirements above, then proceed. DEPLS2 requires LOVE2D v0.10.0 (or later) game framework. Below are steps to get LOVE2D installed. |
| 28 | + |
| 29 | +###Windows |
| 30 | + |
| 31 | +1. Clone this repository with git or download it as zip. Make sure you extract the zip. |
| 32 | + |
| 33 | +2. Download LOVE2D [here](https://love2d.org/). Zip file is recommended. |
| 34 | + |
| 35 | +3. Extract it somewhere and open command prompt in location where you extracted LOVE2D. |
| 36 | + |
| 37 | +4. Now, type `lovec <DEPLS2 folder>`. If it works correctly, you'll see DEPLS2 main menu. |
| 38 | + |
| 39 | +> `lovec` is available in LOVE2D v0.10.2 and later. It's not hard to create one for older version if you have VS command prompt. To create `lovec`, run `copy love.exe lovec.exe && editbin /SUBSYSTEM:CONSOLE lovec.exe` in VS command prompt. |
| 40 | +
|
| 41 | +###Ubuntu |
| 42 | + |
| 43 | +1. Clone this repository with git or download it as zip. Make sure you extract the zip. |
| 44 | + |
| 45 | +2. Add [this PPA](https://launchpad.net/~bartbes/+archive/love-stable) to your apt repository. |
| 46 | + |
| 47 | +3. Type `sudo apt-get update` and `sudo apt-get install love`. |
| 48 | + |
| 49 | +4. Type `love <DEPLS2 folder>`. If it works correctly, you'll see DEPLS2 main menu |
| 50 | + |
| 51 | +###Mac OS X |
| 52 | + |
| 53 | +*TODO: Add Mac OS X instructions* |
| 54 | + |
| 55 | +###Android |
| 56 | + |
| 57 | +1. Clone this repository or download zip. Push all files to somewhere in your phone in `DEPLS-DEPLS2` folder if you download it as ZIP, or simply push all files to your phone except `.git` folder (might be hidden). |
| 58 | + |
| 59 | +2. Download LOVE2D APK from [LOVE2D](https://love2d.org/) website, or from Play Store. |
| 60 | + |
| 61 | +3. Find DEPLS2 `main.lua` in your phone, and open it with LOVE2D |
| 62 | + |
| 63 | +4. If it works, you'll see DEPLS2 main menu, but to play beatmaps, you have to specify it **in command-line**. Well, you can't pass the beatmap name in command-line because there is no such thing in Android, so special steps is required for Android. See below |
| 64 | + |
| 65 | +##Determining DEPLS R/W directory |
| 66 | + |
| 67 | +It's necessary so that you can add beatmaps. If you're under Windows, Ubuntu, or Mac OS X, look at the terminal output (in Windows, use `lovec` instead of `love`). It will write `R/W Directory: <DEPLS2 R/W directory>`. Example in Windows: `R/W Directory: C:/Users/User/AppData/Roaming/LOVE/DEPLS`. |
| 68 | + |
| 69 | +If you're under Android, most of the time it's in `/sdcard/Android/data/org.love2d.android/files/save/DEPLS`. If you didn't see that folder, open a new issue specifying your device. It is because if you run it for the first time, DEPLS will create it's own R/W directory, and guaranteed to be created. |
| 70 | + |
| 71 | +##Adding beatmaps |
| 72 | + |
| 73 | +DEPLS2 supports these beatmap formats: |
| 74 | + |
| 75 | +* DEPLS beatmap folder. It combines CBF format and raw SIF format. Additionaly with storyboard support. |
| 76 | + |
| 77 | +* raw SIF beatmap, without score information. Stripped from SIF response data. This is beatmap format internally used by DEPLS, without any modification. The extension is `.json` |
| 78 | + |
| 79 | +* yuyu live simulator beatmap, the one with `.txt` extension (not `.ssp` one) |
| 80 | + |
| 81 | +* Custom Beatmap Festival project folder. CBF to SIF beatmap conversion will be done, and actually converts it to DEPLS beatmap folder. |
| 82 | + |
| 83 | +* Specialized MIDI file. The extension is `.mid` |
| 84 | + |
| 85 | +* LLPractice beatmap. The extension is `.llp` (make sure to rename it to prevent confusion) |
| 86 | + |
| 87 | +* SIFTrain beatmap. The extension is `.rs`. **Currently disabled due to processing bug**. There's problem in SIFTrain beatmap which causes JSON parse error. This is SIFTrain fault, since DEPLS2 uses JSON library which comply with JSON standards. To fix it, open the beatmap with text editor and add double quote the value in the `music_file`. |
| 88 | + |
| 89 | +DEPLS supports these audio formats |
| 90 | + |
| 91 | +* Raw PCM in WAV container |
| 92 | + |
| 93 | +* Vorbis in OGG container |
| 94 | + |
| 95 | +* MPEG Audio Layer 3/MP3 |
| 96 | + |
| 97 | +DEPLS also uses that order to load audio files. So if you have `beatmap.ogg` and `beatmap.wav`, `beatmap.wav` will be loaded because it has higher priority. |
| 98 | + |
| 99 | +Add the beatmap file/folder in `<DEPLS2 R/W directory>/beatmap` and the optionally the audio in `<DEPLS2 R/W directory>/audio`. The audio name must same with the beatmap name, or explictly specify the used audio in the command-line (discussed later). |
| 100 | + |
| 101 | +##Starting beatmap |
| 102 | + |
| 103 | +Note: Beatmap name and audio file is relative to `<DEPLS2 R/W dir>/beatmap/` and `<DEPLS2 R/W dir>/audio/` folder respectively. Specifying audio file argument is optional, and DEPLS will try to load audio in beatmap folder (if it's DEPLS/CBF beatmap folder) or in audio folder with the audio filename same as the beatmap name (and will try to load WAV or OGG audio). |
| 104 | + |
| 105 | +###Android |
| 106 | + |
| 107 | +In Android, write file named `command_line.txt` in DEPLS2 R/W directory with this contents |
| 108 | + |
| 109 | + livesim |
| 110 | + <beatmap name without extension> |
| 111 | + <used audio with extension (optional)> |
| 112 | + |
| 113 | +Then start DEPLS like the way described above. |
| 114 | + |
| 115 | +###Desktop (Windows, Ubuntu, Mac OS X) |
| 116 | + |
| 117 | +Start LOVE2D with this command-line arguments |
| 118 | + |
| 119 | + love <DEPLS2 folder> livesim <beatmap name without extension> [audio filename with extension] |
| 120 | + |
| 121 | +Note: in windows, use `lovec` instead of `love` to keep the terminal waits for love to exits. |
| 122 | + |
| 123 | +##Example Beatmap |
| 124 | + |
| 125 | +To run example beatmap, the beatmap name must be start with two colons then followed by the example beatmap ID. So it will be |
| 126 | + |
| 127 | + love <DEPLS2 folder> livesim ::<id> |
| 128 | + |
| 129 | +Here is example beatmap IDs: |
| 130 | + |
| 131 | +1. [Daydream Warrior beatmap](https://www.youtube.com/watch?v=PpZqNjv0HUw) |
| 132 | + |
| 133 | +2. [MOMENT RING beatmap](https://www.youtube.com/watch?v=u76q9x7lOzA) |
| 134 | + |
| 135 | +As times goes on, I might add more exampe beatmaps. |
0 commit comments