Skip to content

Commit

Permalink
Merge branch 'Melledy:development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
imHaruuu authored Sep 23, 2024
2 parents ebff38b + 8639827 commit 029be66
Show file tree
Hide file tree
Showing 499 changed files with 34,535 additions and 25,101 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%202.4.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%202.5.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
<div align="center"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/Melledy/LunarCore?logo=java&style=for-the-badge"> <img alt="GitHub" src="https://img.shields.io/github/license/Melledy/LunarCore?style=for-the-badge"> <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/Melledy/LunarCore?style=for-the-badge"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/Melledy/LunarCore/build.yml?branch=development&logo=github&style=for-the-badge"></div>

<div align="center"><a href="https://discord.gg/cfPKJ6N5hw"><img alt="Discord - LunarCore" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>

[EN](README.md) | [简中](docs/README_zh-CN.md) | [繁中](docs/README_zh-TW.md) | [JP](docs/README_ja-JP.md) | [RU](docs/README_ru-RU.md) | [FR](docs/README_fr-FR.md) | [KR](docs/README_ko-KR.md) | [VI](docs/README_vi-VI.md)
[EN](README.md) | [ID](docs/README_id-ID.md) | [简中](docs/README_zh-CN.md) | [繁中](docs/README_zh-TW.md) | [JP](docs/README_ja-JP.md) | [RU](docs/README_ru-RU.md) | [FR](docs/README_fr-FR.md) | [KR](docs/README_ko-KR.md) | [VI](docs/README_vi-VI.md)

**Attention:** For any extra support, questions, or discussions, check out our [Discord](https://discord.gg/cfPKJ6N5hw).

Expand Down
30 changes: 29 additions & 1 deletion data/Banners.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,5 +734,33 @@
21012,
21046
]
},
{
"id": 2041,
"gachaType": "AvatarUp",
"beginTime": 0,
"endTime": 1924992000,
"rateUpItems5": [
1220
],
"rateUpItems4": [
1009,
1111,
1223
]
},
{
"id": 3041,
"gachaType": "WeaponUp",
"beginTime": 0,
"endTime": 1924992000,
"rateUpItems5": [
23031
],
"rateUpItems4": [
21015,
21006,
21010
]
}
]
]
2 changes: 1 addition & 1 deletion docs/README_fr-FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div align="center"><a href="https://discord.gg/cfPKJ6N5hw"><img alt="Discord - Grasscutter" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>

[EN](../README.md) | [简中](README_zh-CN.md) | [繁中](README_zh-TW.md) | [JP](README_ja-JP.md) | [RU](README_ru-RU.md) | [FR](README_fr-FR.md) | [KR](README_ko-KR.md) | [VI](README_vi-VI.md)
[EN](../README.md) | [ID](docs/README_id-ID.md) | [简中](README_zh-CN.md) | [繁中](README_zh-TW.md) | [JP](README_ja-JP.md) | [RU](README_ru-RU.md) | [FR](README_fr-FR.md) | [KR](README_ko-KR.md) | [VI](README_vi-VI.md)

**Attention:** Pour tout soutien supplémentaire, questions ou discussions, consultez notre [Discord](https://discord.gg/cfPKJ6N5hw).

Expand Down
85 changes: 85 additions & 0 deletions docs/README_id-ID.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%202.4.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
<div align="center"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/Melledy/LunarCore?logo=java&style=for-the-badge"> <img alt="GitHub" src="https://img.shields.io/github/license/Melledy/LunarCore?style=for-the-badge"> <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/Melledy/LunarCore?style=for-the-badge"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/Melledy/LunarCore/build.yml?branch=development&logo=github&style=for-the-badge"></div>

<div align="center"><a href="https://discord.gg/cfPKJ6N5hw"><img alt="Discord - LunarCore" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>

[EN](README.md) | [ID](docs/README_id-ID.md) | [简中](docs/README_zh-CN.md) | [繁中](docs/README_zh-TW.md) | [JP](docs/README_ja-JP.md) | [RU](docs/README_ru-RU.md) | [FR](docs/README_fr-FR.md) | [KR](docs/README_ko-KR.md) | [VI](docs/README_vi-VI.md)

**Perhatian:** Untuk dukungan, pertanyaan, atau diskusi tambahan, lihat di [Discord](https://discord.gg/cfPKJ6N5hw).

### Fitur penting
- Fitur game umum: Log in, setup team, inventory, scene/menegemen entitas
- Pertarungan monster
- Natural world monster/prop/NPC spawns
- Teknik char(trace)
- Crafting/Consumables working
- NPC shops handled
- Sistem Gacha
- Sistem Pesan
- Friendlist (assist masih belum berfungsi)
- Forgotten hall
- Pure Fiction
- Simulated universe (Beberapa fitur mungkin akan bug)

# Menjalankan server dan client

### Prasyarat
* [Java 17 JDK](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)

### Recommended
* [MongoDB 4.0+](https://www.mongodb.com/try/download/community)

### Kompilasi servernya
1. Buka sistem terminal-mu, dan kompilasi server dengan `./gradlew jar`
2. Buat folder dengan nama `resources` di server ditactorymu
3. Download `Config`, `TextMap`, dan `ExcelBin` folders dari [https://github.com/Dimbreath/StarRailData](https://github.com/Dimbreath/StarRailData) dan taruh di dalam folder resource mu
4. Run server dengan `java -jar LunarCore.jar` dari sistem terminal mu. Lunar Core dilengkapi dengan server MongoDB internal bawaan untuk databasenya, jadi tidak diperlukan instalasi Mongodb. Namun, sangat disarankan untuk tetap menginstal Mongodb.

### Konek dengan client (metode Fiddler)
1. **Masuk dengan klien ke server resmi dan akun Hoyoverse setidaknya sekali untuk mengunduh data game.**
2. Install dan dapatkan [Fiddler Classic](https://www.telerik.com/fiddler) berjalan.
3. Salin dan tempel kode berikut ke tab Fiddlerscript di Fiddler Classic. Ingatlah untuk menyimpan skrip fiddler setelah Anda menyalin dan menempelkannya:

```
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
class Handlers
{
static function OnBeforeRequest(oS: Session) {
if (oS.host.EndsWith(".starrails.com") || oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".mihoyo.com") || oS.host.EndsWith(".bhsr.com")) {
oS.oRequest.headers.UriScheme = "http";
oS.host = "localhost"; // This can also be replaced with another IP address.
}
}
};
```

4. Jika `autoCreateAccount` disetel ke true di konfigurasi, maka Anda dapat melewati langkah ini. Jika tidak, ketik `/account create [nama akun]` di konsol server untuk membuat akun.
5. Login dengan nama akun Anda, kolom kata sandi diabaikan oleh server dan dapat diatur ke apa saja(bebas isi apa saja).

### Server commands
Perintah server dapat dijalankan di konsol server atau dalam game. Ada pengguna tiruan bernama "Server" di setiap daftar teman pemain yang dapat Anda kirimi pesan(Command) untuk menggunakan perintah dalam game.

```
/account {create | delete} [nama pengguna] (uid pemain yang dipesan). Membuat atau menghapus akun.
/avatar lv(level) p(ascension) r(eidolon) s(skill levels). Mengatur properti avatar saat ini.
/clear {relics | lightcones | materials | items}. Menghapus item yang difilter dari inventaris pemain.
/gender {male | female}. Menetapkan jenis kelamin Trailblazer.
/give [item id] x[amount] lv[number]. Memberi pemain target sebuah item.
/giveall {materials | avatars | lightcones | relics}. Memberikan item pemain yang ditargetkan.(tapi semua item)
/heal. Heals.
/help. Menampilkan daftar command yang tersedia.
/kick @[player id]. Kicks a player dari server.
/mail [content]. Mengirimkan email sistem kepada pemain yang ditargetkan.
/permission {add | remove | clear} [permission]. Memberi/menghapus izin dari pemain yang ditargetkan.
/refill. Isi ulang skill point Anda di dunia terbuka.
/reload. Muat ulang konfigurasi server.
/scene [scene id] [floor id]. Teleportasi pemain ke adegan yang ditentukan.
/spawn [npc monster id/prop id] s[stage id] x[amount] lv[level] r[radius] <battle monster ids...>. Memunculkan monster atau prop di dekat pemain yang ditargetkan.
/stop. Stop server
/unstuck @[player id]. Unstuck pemain offline jika mereka berada dalam adegan yang tidak dapat dimuat.
/worldlevel [world level]. Menetapkan tingkat keseimbangan pemain yang ditargetkan.
```
2 changes: 1 addition & 1 deletion docs/README_ja-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div align="center"><a href="https://discord.gg/cfPKJ6N5hw"><img alt="Discord - LunarCore" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>

[EN](README.md) | [简中](docs/README_zh-CN.md) | [繁中](docs/README_zh-TW.md) | [JP](docs/README_ja-JP.md) | [RU](docs/README_ru-RU.md) | [FR](docs/README_fr-FR.md) | [KR](docs/README_ko-KR.md) | [VI](docs/README_vi-VI.md)
[EN](README.md) | [ID](docs/README_id-ID.md) | [简中](docs/README_zh-CN.md) | [繁中](docs/README_zh-TW.md) | [JP](docs/README_ja-JP.md) | [RU](docs/README_ru-RU.md) | [FR](docs/README_fr-FR.md) | [KR](docs/README_ko-KR.md) | [VI](docs/README_vi-VI.md)

**Attention:** 追加のサポート、質問、または議論がある場合は、 [Discord](https://discord.gg/cfPKJ6N5hw).

Expand Down
2 changes: 1 addition & 1 deletion docs/README_ko-KR.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div align="center"><a href="https://discord.gg/cfPKJ6N5hw"><img alt="Discord - Grasscutter" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>

[EN](../README.md) | [简中](README_zh-CN.md) | [繁中](README_zh-TW.md) | [JP](README_ja-JP.md) | [RU](README_ru-RU.md) | [FR](README_fr-FR.md) | [KR](README_ko-KR.md) | [VI](README_vi-VI.md)
[EN](../README.md) | [ID](docs/README_id-ID.md) | [简中](README_zh-CN.md) | [繁中](README_zh-TW.md) | [JP](README_ja-JP.md) | [RU](README_ru-RU.md) | [FR](README_fr-FR.md) | [KR](README_ko-KR.md) | [VI](README_vi-VI.md)

**주의: **추가 지원, 질문 또는 토론이 필요한 경우, [Discord](https://discord.gg/cfPKJ6N5hw) 를 확인하세요.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public static final class ActivateFarmElementCsReq extends ProtoMessage<Activate
private static final long serialVersionUID = 0L;

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
*/
private int worldLevel;

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
*/
private int entityId;

Expand All @@ -39,15 +39,15 @@ public static ActivateFarmElementCsReq newInstance() {
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @return whether the worldLevel field is set
*/
public boolean hasWorldLevel() {
return (bitField0_ & 0x00000001) != 0;
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @return this
*/
public ActivateFarmElementCsReq clearWorldLevel() {
Expand All @@ -57,15 +57,15 @@ public ActivateFarmElementCsReq clearWorldLevel() {
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @return the worldLevel
*/
public int getWorldLevel() {
return worldLevel;
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @param value the worldLevel to set
* @return this
*/
Expand All @@ -76,15 +76,15 @@ public ActivateFarmElementCsReq setWorldLevel(final int value) {
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @return whether the entityId field is set
*/
public boolean hasEntityId() {
return (bitField0_ & 0x00000002) != 0;
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @return this
*/
public ActivateFarmElementCsReq clearEntityId() {
Expand All @@ -94,15 +94,15 @@ public ActivateFarmElementCsReq clearEntityId() {
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @return the entityId
*/
public int getEntityId() {
return entityId;
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @param value the entityId to set
* @return this
*/
Expand Down Expand Up @@ -177,11 +177,11 @@ public boolean equals(Object o) {
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(worldLevel);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 120);
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(entityId);
}
}
Expand All @@ -205,16 +205,16 @@ public ActivateFarmElementCsReq mergeFrom(final ProtoSource input) throws IOExce
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
case 72: {
// worldLevel
worldLevel = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 120) {
if (tag != 104) {
break;
}
}
case 120: {
case 104: {
// entityId
entityId = input.readUInt32();
bitField0_ |= 0x00000002;
Expand Down
Loading

0 comments on commit 029be66

Please sign in to comment.