Skip to content

Commit 63a37be

Browse files
committed
Supported Diff
Supported Diff . . . . . . . . .
1 parent 6c9df73 commit 63a37be

123 files changed

Lines changed: 6073 additions & 9351 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/workspace.xml

Lines changed: 65 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ Run the server with the following arguments:
2323
- `game` (optional): Game type - `OLDSCHOOL` or `RUNESCAPE3` (default: `OLDSCHOOL`)
2424
- `environment` (optional): Environment - `LIVE`, `BETA`, or `TEST` (default: `LIVE`)
2525
- `port` (optional): Network port (default: 8090)
26+
- `navDisplayOverrides` (optional): Comma/semicolon-separated `key=value` list for nav display-name overrides.
27+
28+
### Nav Display Name Overrides
29+
30+
You can override sidebar labels returned by `/cache/nav` and `/cache/gameval/groups`.
31+
32+
Supported input formats:
33+
34+
- CLI arg 5: `worldentity=World Entities;worldmaparea=World Map Area;spotanim=SpotAnim;inv=Inventories`
35+
- Env var `OPENRUNE_NAV_DISPLAY_OVERRIDES` with the same format.
36+
37+
Examples:
38+
39+
```bash
40+
# CLI argument
41+
./gradlew run --args="237 OLDSCHOOL LIVE 8090 worldentity=World Entities;worldmaparea=World Map Area;spotanim=SpotAnim;inv=Inventories"
42+
43+
# Environment variable
44+
OPENRUNE_NAV_DISPLAY_OVERRIDES="worldentity=World Entities;worldmaparea=World Map Area;spotanim=SpotAnim;inv=Inventories" ./gradlew run --args="237 OLDSCHOOL LIVE 8090"
45+
```
2646

2747
### Examples
2848

build.gradle.kts

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ repositories {
1515
}
1616

1717
dependencies {
18+
implementation(kotlin("reflect"))
1819
implementation("io.ktor:ktor-server-core:2.3.5")
1920
implementation("io.ktor:ktor-server-netty:2.3.5")
2021
implementation("io.ktor:ktor-server-content-negotiation:2.3.5")
22+
implementation("io.ktor:ktor-server-compression:2.3.5")
2123
implementation("io.ktor:ktor-serialization-gson:2.3.5")
2224
implementation("io.ktor:ktor-server-status-pages:2.3.5")
23-
implementation("dev.or2:all:2.3.4")
25+
implementation("dev.or2:all:2.4.1")
2426
implementation("cc.ekblad:4koma:1.2.2-openrune")
2527

2628
// JSON serialization with Gson
@@ -36,6 +38,9 @@ dependencies {
3638
// Progress bar (cross-platform, works on Linux)
3739
implementation("me.tongfei:progressbar:0.9.5")
3840

41+
// Zstd compression for diff binary format
42+
implementation("com.github.luben:zstd-jni:1.5.5-11")
43+
3944
testImplementation(kotlin("test"))
4045
}
4146

@@ -69,20 +74,35 @@ tasks {
6974
group = null
7075
}
7176

72-
fun registerBootTask(name: String, rev: Int, gameType: String, environment: String) {
77+
fun registerBootTask(name: String, cacheID : Int,gameType: String, environment: String) {
7378
register<JavaExec>(name) {
7479
group = "application"
7580
description = "Boots the RuneScape cache with $gameType ($environment)"
7681
mainClass.set("dev.openrune.MainKt")
7782
classpath = sourceSets["main"].runtimeClasspath
78-
args = listOf(rev.toString(), gameType, environment)
79-
jvmArgs("-Xmx4G")
83+
args = listOf(cacheID.toString(),gameType, environment)
84+
jvmArgs("-Xmx4G","-Dopenrune.perf.logs=true")
8085
}
8186
}
8287

83-
registerBootTask("bootRunescape", -1, "RUNESCAPE3", "LIVE")
84-
registerBootTask("bootOldschool", 235, "OLDSCHOOL", "LIVE")
85-
registerBootTask("bootSailing", 232, "OLDSCHOOL", "BETA")
88+
registerBootTask("bootRunescape", -1,"RUNESCAPE3", "LIVE")
89+
registerBootTask("bootOldschool", 2518,"OLDSCHOOL", "LIVE")
90+
registerBootTask("bootSailing", -1,"OLDSCHOOL", "BETA")
91+
92+
register<JavaExec>("runDownloadAllCaches") {
93+
group = "application"
94+
description = "Download and unzip all OSRS caches (rev 1 to latest) one by one for later dumping"
95+
mainClass.set("dev.openrune.DownloadAllCachesMainKt")
96+
classpath = sourceSets["main"].runtimeClasspath
97+
}
98+
99+
register<JavaExec>("runDumperMain") {
100+
group = "application"
101+
description = "Runs the DiffDumper entrypoint in DumperMainKt"
102+
mainClass.set("dev.openrune.DumperMainKt")
103+
classpath = sourceSets["main"].runtimeClasspath
104+
jvmArgs("-Xmx4G")
105+
}
86106
}
87107

88108

0 commit comments

Comments
 (0)