mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-12 12:24:35 +01:00
Initial Commit
This commit is contained in:
57
README.md
Normal file
57
README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Nebula
|
||||
|
||||
A game server emulator for a certain anime game.
|
||||
|
||||
### Notable features
|
||||
- Basic game features: Logging in, team setup, inventory, characters
|
||||
- Monoliths
|
||||
- Mail system
|
||||
|
||||
# Running the server and client
|
||||
|
||||
### Prerequisites
|
||||
* [Java 25](https://www.oracle.com/java/technologies/javase/jdk25-archive-downloads.html)
|
||||
|
||||
### Recommended
|
||||
* [MongoDB 4.0+](https://www.mongodb.com/try/download/community)
|
||||
|
||||
### Compiling the server
|
||||
1. Open your system terminal, and compile the server with `./gradlew jar`
|
||||
2. Create a folder named `resources` in your server directory
|
||||
3. Download the `bin`, `language` folders from a repository with datamined game data and place them into your resources folder.
|
||||
4. Run the server with `java -jar Nebula.jar` from your system terminal. This server comes with a built-in internal MongoDB server for its database, so no Mongodb installation is required. However, it is highly recommended to install Mongodb anyway.
|
||||
|
||||
### Connecting with the client (Fiddler method)
|
||||
1. **Log in with the client to an official server at least once to download game data.**
|
||||
2. Install and have [Fiddler Classic](https://www.telerik.com/fiddler) running.
|
||||
3. Copy and paste the following code into the Fiddlerscript tab of Fiddler Classic. Remember to save the fiddler script after you copy and paste it:
|
||||
|
||||
```
|
||||
import System;
|
||||
import System.Windows.Forms;
|
||||
import Fiddler;
|
||||
import System.Text.RegularExpressions;
|
||||
|
||||
class Handlers
|
||||
{
|
||||
static function OnBeforeRequest(oS: Session) {
|
||||
if (oS.host.EndsWith(".yostarplat.com") || oS.host.EndsWith(".stellasora.global")) {
|
||||
oS.oRequest.headers.UriScheme = "http";
|
||||
oS.host = "localhost"; // This can also be replaced with another IP address.
|
||||
}
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
4. If `autoCreateAccount` is set to true in the config, then you can skip this step. Otherwise, type `/account create [account name]` in the server console to create an account.
|
||||
5. Login with your account name, the password field is ignored by the server and can be set to anything.
|
||||
|
||||
### Server commands
|
||||
Server commands need to be run in the server console.
|
||||
|
||||
```
|
||||
/account {create | delete} [username] (reserved player uid) = Creates or deletes an account.
|
||||
/give [item id] x[amount] = Gives the targetted player an item.
|
||||
/mail = Sends the targeted player a system mail.
|
||||
/reload = Reloads the server config.
|
||||
```
|
||||
Reference in New Issue
Block a user