Compare commits

...
282 Commits
Author SHA1 Message Date
Josh Shippam 60463d7c31 Client, Script & Plugin Improvements (#687)
* fix(audio,client): start music immediately on login/track change and remove non-HD tooltip jitter

Eliminates artificial client-side music start and fade-out delays across all platforms, prioritizes music packets at the start of server login, and replaces jittery non-HD hover tooltips in Game.java.

### Core & Client Rendering
- 2006Scape Client/src/main/java/Game.java:
  - Updated method49() to call method853(musicVolume2, is, aBoolean995) directly on all platforms instead of routing through method684/method899 fade-out queues.
  - Reset anInt720 to 0 in constructMusic(), method853(), and method368() when stopped so the initial track and post-login music start without a 20-tick (~400ms) delay.
  - Replaced the non-HD chatTextDrawingArea.method390(..., loopCycle / 1000, ...) fallback with chatTextDrawingArea.textLeftShadow(...) so Walk here and hover tooltips render crisply with HD disabled.

### Server Login Audio
- 2006Scape Server/src/main/java/com/rs2/net/PacketSender.java:
  - Moved music/sound volume configs (168, 169), player.getPlayList().sendMusicConfigs(), and Music.playMusic(player) to run right after frame 249 and duplicate-login checks in loginPlayer(), flushing the login song before quest, skill, sidebar, and equipment packets.

* refactor(ui): use ClientSettings.SERVER_NAME in Plugin Hub modal title

Replaces the hardcoded RUNELITE prefix in the Plugin Hub modal header with ClientSettings.SERVER_NAME so the UI branding stays consistent with the configured server name.

### UI & Styling
- 2006Scape Client/src/main/java/PluginPanelUI.java:
  - Updated drawViewportModal title formatting to use ClientSettings.SERVER_NAME + " PLUGIN & SCRIPT HUB" (and " PLUGIN HUB" when scripts are unavailable).

* feat(client): migrate Ground Items and Menu Entry Swapper plugins to online repository

Removes the built-in `GroundItemsOverlayPlugin` and `MenuEntrySwapperPlugin` classes from the client bundle so players install them manually from the Online Repo tab (`2006scape-plugins`), and adds minimal `ScriptInterpreter`, `PluginContext`, and `PluginGraphics` host support so both plugins run natively in the interpreted plugin dialect.

### Plugin Host Infrastructure
- `ScriptInterpreter.java`:
  - Added `@defaultEnabled` metadata parsing (`ScriptMetadata.defaultEnabled`) and overrode `InterpretedPlugin.isEnabledByDefault()`.
  - Registered `MenuEntry.class` in `compile(String)` so interpreted plugins can invoke `MenuEntry.stripColorTags(...)` and menu entry helpers.
  - Overrode `InterpretedPlugin.onCommand(String, String[])` to forward chat commands (`command`, joined `args`) to interpreted plugins.
- `PluginContext.java`:
  - Added `createList()` and `createMap()` collection helpers for interpreted plugins.
- `PluginGraphics.java`:
  - Added `worldToScreenList(int, int, int)` returning a 2-element `List<Integer>` for array-free coordinate projection.

### Cleanups & Deprecations
- `PluginManager.java`:
  - Removed `MenuEntrySwapperPlugin` and `GroundItemsOverlayPlugin` registrations from `registerBuiltIns()`, leaving `Hd317Plugin`.
- `MenuEntrySwapperPlugin.java`, `GroundItemsOverlayPlugin.java`:
  - Removed built-in plugin classes (migrated to `2006scape-plugins/plugins/MenuEntrySwapper.java` and `GroundItems.java`).

* perf(plugins): optimize ScriptInterpreter/PluginContext and fix Web Online Repo SHA lookup

Improve script/plugin execution speed for TeaVM/Web and Desktop/Android, add throttled in-game chat error reporting, and fix Online Repo commit SHA resolution on Web.

### Script & Plugin Engine
- `PluginContext.java`
  - Added `getGroundItems(int radius)` to scan only `[plx - radius, plx + radius]` x `[ply - radius, ply + radius]` instead of the full 104x104 tile grid, with a `game == null` fallback to `getGroundItems()` for unit test mocks.
- `ScriptInterpreter.java`
  - Pre-parsed `FunctionDef` bodies into `List<Stmt>` (`parseBlock`, `parseIfStatement`, `parseSimpleStatement`) at compile time, removing per-execution substring scanning in `executeStmts`.
  - Added `METHOD_CACHE` (`getCachedMethods`) to index public methods by lowercase name per `Class<?>`, eliminating repeated `clazz.getMethods()` scans in `invokeReflectiveMethod`.
  - Added `Environment.reportedErrors` and `reportRuntimeError` to surface the first uncaught runtime error per function to in-game chat.
- `PluginManager.java`
  - Added `reportedPluginErrors` (cleared on `reloadExternal()`) and `reportPluginError` across `onGameTick`, `onPostBuildMenu`, and `onRenderOverlays` to surface the first error per plugin/phase to in-game chat.

### Online Repository
- `PluginRepoClient.java`
  - Added `REPO_COMMIT_API_URL` using `PLUGIN_REPO_SLUG` (`2006-Scape/Client-Extensions`) and `PLUGIN_REPO_BRANCH` (`main`) as a CORS-friendly fallback in `resolveLatestMainSha()` when `.git/info/refs` is unavailable in the browser.

* perf(graphics): add native drawTileLabelBatches for ground item overlays

Move per-frame ground item tile and label rendering loops from interpreted script execution into compiled Java on `PluginGraphics` to eliminate per-frame TeaVM reflection and AST overhead.

### Graphics Pipeline
- `PluginGraphics.java`
  - Added `drawTileLabelBatches(List<?>, int, int)` to project cached tile coordinates (`worldToScreen` with `worldToScreenList` fallback for unit test mocks), lazily cache `getTextWidth`, render lootbeams, and draw label boxes/text in compiled Java.

* perf(plugins): add ground item signature and native tile batch builder to PluginContext

Eliminate periodic stutters caused by `GroundItems` rebuilding its tile cache in `ScriptInterpreter` every 500ms by providing a zero-allocation ground item fingerprint and compiled batch builder.

### Plugin API
- `PluginContext.java`
  - Added `getGroundItemsSignature(int radius)` to compute a lightweight FNV-1a fingerprint of ground items within `radius` tiles without allocating `GroundItemWrapper` objects or looking up `ItemDef`.
  - Added `buildGroundItemTiles(...)` to perform wildcard filtering, duplicate collapsing, sorting, label/quantity/value formatting, and border/lootbeam preparation in compiled Java.

* refactor(plugins): remove GroundItems-specific buildGroundItemTiles from PluginContext

Keep `PluginContext` limited to generic client API primitives (`getGroundItems(int)` and `getGroundItemsSignature(int)`) while moving Ground Items-specific grouping, tier coloring, and label formatting back into the plugin.

### Cleanups & Deprecations
- `PluginContext.java`
  - Removed `buildGroundItemTiles(...)` and its private helpers (`matchesAnyPattern`, `getGroundItemColor`, `formatItemQuantity`, `formatItemValue`) along with unused `Map`/`HashMap`/`LinkedHashMap` imports.

* feat(scripts): add ternary, modulo, compound assignments, constructors, list literals, and indexing

Expand `ScriptInterpreter` expression and statement support to simplify plugin and script authoring across Desktop, Android, and Web.

### Script & Plugin Engine
- `ScriptInterpreter.java`
  - Added short-circuiting ternary (`cond ? a : b` with `findMatchingTernaryColon`), `%` modulo operator, and unified `+=`, `-=`, `*=`, `/=`, `%=` compound assignments.
  - Added `target[index]` reads and `target[index] = value` writes for `List`, `Map`, arrays, and `String`, plus bracket-aware `findTopLevelOp` and `parseArguments`.
  - Added `[a, b, c]` list literals and `new ClassName(...)` constructors (`ArrayList`, `HashMap`, `LinkedHashMap`, `HashSet`, `StringBuilder`, `WorldArea`, `MenuEntry`, plus reflective constructor fallback).
  - Fast-pathed `StringBuilder` (`append`, `toString`, `length`, `setLength`) in `invokeMethod` and fixed `findMethodOpenParen` to ignore parentheses inside string literals.
- `ScriptInterpreterTest.java`
  - Added `evaluatesTernaryModuloConstructorsAndIndexing` covering ternary, `%`, `*=`, `/=`, `%=`, list literals, `new HashMap()`, `new StringBuilder()`, indexing, and unbalanced parentheses inside strings.

* fix(scripts): support long literals with L suffix in ScriptInterpreter

Parse integer literals ending in `l` or `L` (e.g. `0L`) as `Long` instead of returning `null`.

### Bug Fixes & Edge Cases
- `ScriptInterpreter.java`
  - Added `^-?\d+[lL]$` literal handling in `evalExpression` before standard integer literal parsing.

* feat(scripts): add for/for-each/switch/break/continue, braceless blocks, and TeaVM fast-paths

Expand `ScriptInterpreter` control-flow support and add direct non-reflective fast-paths for `PluginContext`, `PluginGraphics`, `MenuEntry`, and `GroundItemWrapper` to eliminate TeaVM `Class.getMethods()` `ReferenceError`s and per-tick reflection overhead.

### Script & Plugin Engine
- `ScriptInterpreter.java`
  - Added `for (init; cond; update)`, enhanced `for (var : iterable)`, `switch`/`case`/`default`, `break`/`continue` (`BreakSignal`, `ContinueSignal`), and braceless single-statement bodies (`parseBodyOrSingleStatement`) for `if`, `else`, `while`, and `for`.
  - Added direct fast-paths in `invokeMethod` for `PluginContext` (`isLoggedIn`, `getGroundItems`, `getGroundItemsSignature`, `createList`, `createMap`, `sendClientMessage`, `getPlayerX`, `getPlayerY`, `getPlayerAnim`, `isBankOpen`, `getInventoryCount`, `walkTo`), `PluginContext.GroundItemWrapper` (`getDistance`), `MenuEntry` (`stripColorTags`, `matches`, `getAction`, `getTarget`, `getRawText`, `setRawText`), and `PluginGraphics` (`drawTileLabelBatches`, `fillRect`, `drawRect`, `drawCenteredString`, `drawString`, `drawStringBold`, `getTextWidth`, `getTextWidthBold`, `worldToScreenList`, `drawLootbeam`, `getViewportWidth`, `getViewportHeight`).
  - Added `try/catch` guard around `clazz.getMethods()` in `getCachedMethods` and included `[expr|phase]` diagnostics in `reportRuntimeError`.

### Unit Tests
- `ScriptInterpreterTest.java`
  - Added `evaluatesForLoopsBreakContinueBracelessAndSwitch` covering `for`, `for-each`, `break`, `continue`, braceless `if`, `switch` fallthrough/default, and `MenuEntry` fast-paths.

* feat(plugin-hub): add multi-line STRING config editor overlay and localStorage config seeding

Replaces the non-editable "(Edit in .properties or chat)" placeholder in Plugin Hub settings with an interactive multi-line text editor overlay supporting cursor navigation and click positioning. Also seeds plugin settings on first boot and adds live localStorage reload support for web/cross-platform storage editing.

### Command Infrastructure
- `PluginManager.java`:
  - Added `reloadStorage()` and `applyConfigToPlugin(...)` so external storage edits hot-reload `2006scape_plugin_settings` and `2006scape_script_*` entries into active plugins and scripts.
  - Updated `loadConfig()` to call `saveConfig()` when `DesktopHooks.loadPluginConfig()` returns `null`, seeding `2006scape_plugin_settings` on first boot.
- `RSApplet.java`:
  - Queued Left (`1`) and Right (`2`) arrow keys into `charQueue` when `PluginPanelUI.isSearchFocused()` is true so arrow-key cursor movement reaches the modal editor without affecting normal gameplay.

### UI & Edge Cases
- `PluginPanelUI.java`:
  - Replaced `(Edit in .properties or chat)` with a `220px` preview box in `drawConfigEditor` and `handleConfigTab`.
  - Added `drawConfigStringEditorOverlay`, `getStringEditorBounds`, and `wrapTextForWidth` to render a focused multi-line wrapped editor (up to 1,024 chars) with Clear, Cancel, and Save buttons.
  - Added `editingStringCursor` with Left/Right arrow, Home/End, mid-string insert/backspace, vertical gold caret rendering, auto-scroll to keep the cursor line visible, and pixel-accurate click-to-place-cursor support.
  - Added `commitStringEdit(PluginManager)` to auto-commit on blur, Back, or Close.
2026-12-02 18:29:47 +00:00
Josh Shippam c37e3e8dfb Various Changes & Issue Fixes (#686)
* fix(client): restore authentic 317/377 minimap fallback walk radius in doWalkTo

Restores the client-side pathfinding fallback search radius in `Game.doWalkTo` to match authentic 2006 RS2 / 317 client behavior when clicking unreachable tiles such as underground void or blocked terrain. Previously, the search radius was restricted to a single tile, causing minimap and ground clicks more than one tile into unwalkable areas to be silently ignored.

### Bug Fixes & Edge Cases
- `2006Scape Client/src/main/java/Game.java` (`doWalkTo`):
  - Expanded the alternative-destination search loop from `k5 < 2` (1-tile radius) to `k5 < 11` (10-tile Chebyshev radius, matching authentic 317/377 clients) when `flag` is `true` and the exact target tile is unreachable.
  - Preserves the existing `i5 = 100` maximum path-cost threshold and `104x104` region boundary checks (`i6 >= 0 && l6 >= 0 && i6 < 104 && l6 < 104`), allowing players to walk to the nearest reachable tile when clicking black void on the minimap.

Closes #380

* fix(firemaking): fix fire lighting race, object sync, level scaling, and log walk-on

Fixes firemaking reliability, object lifecycle desyncs, and authentic 2006 RS2 movement and level-scaling behavior on the server. Previously, rapid firemaking could cancel the next attempt and still spawn phantom ashes, fires were spawned on hardcoded height 0 with mismatched ObjectManager/ObjectHandler state, and ground-log lighting triggered from an adjacent tile instead of walking onto the logs first.

### Bug Fixes & Edge Cases
- `2006Scape Server/src/main/java/com/rs2/game/content/skills/firemaking/Firemaking.java`:
  - Removed the delayed `stopFiremaking(c)` call from the 2-tick post-lighting `turnPlayerTo` event so rapid consecutive firemaking attempts no longer cancel the next log's cycle.
  - Moved the `100 + Misc.random(98)` tick fire-despawn and ashes (`592`) event inside the lit branch so aborted/cancelled attempts never leave behind phantom ashes.
  - Spawned fires on `c.heightLevel` (instead of `0`) and removed `fireObj` directly from `GameEngine.objectManager.objects` via `updateObject(fireObj)` on burnout, eliminating `ObjectManager` stale-entry desyncs.
  - Replaced the redundant 4-iteration `firemakingItems` loop with `isFiremakingItem(...)`, gated colored firelighters (`7329`, `7330`, `7331`) to regular logs (`1511`), and ensured `stopFiremaking` / skilling interruptions call `container.stop()`.
- `2006Scape Server/src/main/java/com/rs2/game/items/UseItem.java`:
  - Fixed the `||` / `&&` operator precedence bug on `firemakingItems` checks and added `break` after matching a firemaking item.
- `2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnGroundItem.java`:
  - Added `isFiremakingItem(...)` and `isInRange(...)` so using a tinderbox or firelighter on ground logs requires standing on `(gItemX, gItemY)` rather than stopping 1 tile away.

### Authentic 2006 RS2 Behavior
- `2006Scape Server/src/main/java/com/rs2/game/content/skills/firemaking/Firemaking.java`:
  - Moved `Region.getClipping` step-off (`West -> East -> South -> North`) and `walkTo` to execute when the fire catches rather than when lighting begins, and turned the player to `(x, y)` after stepping off.
  - Added `canLightLog(int level, LogData log)` using RS2 `interpolate(low, high, level)` rolls out of 256 (re-rolling every 3 ticks on failure with animation `733` and `SoundList.FIRE_LIGHT`).
- `2006Scape Server/src/main/java/com/rs2/world/clip/Region.java` & `Firemaking.java`:
  - Added `Region.hasSceneryObject(x, y, z)` (`objectType >= 9 && objectType != 22`) and `Firemaking.isTileBlocked(x, y, height)` checking `ObjectManager`, `ObjectHandler`, static scenery objects, and tile clipping (`0x1280100`) before starting and before spawning the fire.

Closes #295
Closes #543

* fix(objects): preserve cache-defined orientation when opening and closing chests

Fixes chest and toggleable object rotation bugs where opening or closing an object not listed in `ObjectDefaults.GET_FACE` rotated it to face South (`0`), and `OpenObject` passed swapped `type`/`face` arguments to `Region.addObject`. Looking up the existing object's orientation from `Region` and `ObjectHandler` ensures all toggleable objects preserve their cache-defined facing across the world.

### Bug Fixes & Edge Cases
- `2006Scape Server/src/main/java/com/rs2/game/objects/ObjectDefaults.java`:
  - Updated `getObjectFace(Player, int)` to check `Region.getObject(...)` and `GameEngine.objectHandler.objectExists(...)` for the current object's `objectFace` before falling back to the hardcoded `GET_FACE` / `switch` defaults.
- `2006Scape Server/src/main/java/com/rs2/game/objects/impl/OpenObject.java`:
  - Preserved the object's `face` and `objectType` when toggling between closed and open IDs in `OBJECT_DATA`.
  - Removed the previous object from `Region` and `GameEngine.objectHandler.globalObjects` before adding and placing the toggled object, and fixed the swapped `type`/`face` parameter order in `Region.addObject(newId, x, y, h, type, face, false)`.

Closes #549

* fix(desert): start desert heat timer on entry and remove shared static state

Fixes instantaneous desert heat damage when entering the desert, eliminates per-tick `CycleEvent` accumulation, and removes shared `static` state across players. Previously, `player.lastDesert` defaulted to `0` on login and was never reset on exit, causing immediate damage on the first tick inside `Boundary.DESERT`, while `Player.process()` queued a new `CycleEvent` every tick.

### Bug Fixes & Edge Cases
- `2006Scape Server/src/main/java/com/rs2/game/players/Player.java`:
  - Updated `process()` to invoke `DesertHeat.callHeat(this)` unconditionally so `lastDesert` resets whenever the player leaves `Boundary.DESERT`, moves off `heightLevel == 0`, or enters `Boundary.NO_HEAT`.
- `2006Scape Server/src/main/java/com/rs2/game/content/traveling/DesertHeat.java`:
  - Initialized `player.lastDesert = now` on desert heat entry (`lastDesert == 0`) instead of applying damage on the first tick, and reset `lastDesert = 0` when outside desert heat.
  - Evaluated the `90s` base (`+10s` per equipped desert clothing piece) timer directly per tick in `callHeat(Player)` rather than spawning duplicate 1-tick `CycleEvent`s.
  - Replaced shared `static int DAMAGE` and `static int waterskin` fields with per-hit `1 + Misc.random(9)` (`1-10`) damage rolls and a local `checkWaterskin(Player)` loop.
  - Replaced hardcoded waterskin item IDs with `StaticItemList.WATERSKIN0` through `StaticItemList.WATERSKIN4` ordered from lowest to highest dose.

Closes #596

* fix(shops): start restock timer on purchase from full stock

Fixes instantaneous restocking of the first item purchased from a fully stocked shop and cleans up shop tick processing. Previously, `shopItemsRestock[shop_id][j]` remained `0` (or stale) when a player bought from full stock, causing `ShopHandler.process()` to immediately restock 1 item on the next tick.

### Bug Fixes & Edge Cases
- `2006Scape Server/src/main/java/com/rs2/game/shops/ShopHandler.java`:
  - Updated `buyItem(int, int, int)` to set `shopItemsRestock[shop_id][j] = System.currentTimeMillis()` and reset `shopItemsDelay[shop_id][j] = 0` when a purchase reduces stock from at/above standard stock (`shopItemsSN`) to below `shopItemsSN`, without resetting an in-progress restock timer on subsequent purchases.
  - Fixed the off-by-one standard-stock boundary in `process()` (`j < shopItemsStandard[i]` instead of `<=`), removed the redundant `shopItemsDelay[i][j] = 1;` assignment, and gated `refreshshop(i)` on `shopUpdated` so unchanged shops are not broadcast every tick.
  - Cleared `shopItemsRestock[shopID][ArrayID] = 0` in `ResetItem(int, int)` when a shop slot is emptied.

Closes #595

* feat(randomevents): migrate random events, lamps, and Thessalia to Kotlin plugins and add ::randomevent

Rewrite all legacy Java random events, experience lamps, and Thessalia interactions into Kotlin plugins under plugins/game/content/randomevents/, plugins/game/content/items/lamps/, plugins/npc/thessalia/, and Revision 377 quest packages, while adding Zanaris Choir and developer testing commands. Core Java hooks now post RandomActionEvent and NpcDeathEvent, preserve legacy save migration via PlayerPluginData, and enforce authentic 2006 RS2 (Revision 377) mechanics, dialogues, and variable XP rate scaling.

### Command Infrastructure
- `RandomActionEvent.java` & `NpcDeathEvent.java`:
  - Added core event classes posted from skilling/action/shop handlers (`Fishing`, `Woodcutting`, `Mining`, `Prayer`, `ShopAssistant.openShop`, `Cooking`, `Potatoes`, `Runecrafting`, `SoftClay`, `SearchForTraps`, `Pickpocket`, `Stalls`, `MagicTeleports`, `PlayerAssistant`, `NpcHandler`) and NPC death processing.
- `ClickNPC.java` & `NpcHandler.java`:
  - Fixed `ClickNPC` to pass `npc.npcId` instead of `player.npcClickIndex` (which `firstClickNpc` resets to `0`) to `NpcFirstClickEvent`.
  - Added `NpcHandler.spawnNpcReturn` and guarded `npcs[i] == null` after `Player.postNpcTick` to prevent NPEs when tick plugins despawn NPCs.
- `Player.java` & `PlayerSave.java`:
  - Removed obsolete random event fields from `Player` while migrating legacy `randomActions` and `recievedReward` save keys into `PlayerPluginData`.

### Migrated Command Plugins
- `RandomToggle.kt` (`::random`, `::randomtoggle`, `::togglerandom`):
  - Migrated `randomEventsEnabled` toggling out of `Commands.java` into `plugins/commands/`.
- `Teleport.kt` (`::teleport`, `::tele`):
  - Added `zanaris` (`2452, 4470, 0`) to `NAMED_LOCATIONS` and `VALID_CITIES_MESSAGES`.

### New Search Commands
- `TriggerRandomEvent.kt` (`::randomevent <name>`, `::randomevents`, `::revent`):
  - Added developer command plugin to trigger `sandwich`, `chicken`, `forester`, `swarm`, `genie`, `frog`, `troll`, `golem`, `spirit`, `shade`, `zombie`, and `choir` on demand, with multi-line help and Zanaris location hint.

### Random Event & Lamp Plugins
- `RandomEventSupport.kt`, `RandomEventDispatcherPlugin.kt`, `RandomEventNpcDeathPlugin.kt`, & `RandomEventFollowPlugin.kt`:
  - Implemented per-player session state, clipped adjacent tile spawning, active NPC slot tracking, unified non-combat NPC following/facing/despawn (`GENIE`, `SANDWICH_LADY`, `FROG_PRINCE`, `FROG_PRINCESS`, `ZANARIS_CHOIR`), and global guards (`randomEventsEnabled`, `!inFightCaves()`, `tutorialProgress >= 36`, `MONKEY_GREEGREE`).
- `CombatRandoms.kt`:
  - Unified `EvilChicken`, `RiverTroll` (Fishing), `RockGolem` (Mining), `TreeSpirit` (Woodcutting), `Shade` & `Zombie` (Prayer bone burying), and `Swarm` with full `3..138` combat level coverage.
- `GeniePlugin.kt`, `SandwichLadyPlugin.kt`, `SandwichLadyTalkPlugin.kt`, `FrogPlugin.kt`, `FreakyForesterPlugin.kt`, `FreakyForesterPortalPlugin.kt`, `ZanarisChoirPlugin.kt`, & `ZanarisChoirTalkPlugin.kt`:
  - Implemented authentic 2006 RS2 NPC spawns, dialogues (`Master`/`Mistress` Genie greeting, Kiss-the-Frog, Freaky Forester 1–4 tail pheasants, Sandwich Lady tray `16135`, Zanaris Choir), and `DialogueFactory.onAction` reward/despawn sequencing.
- `LampInterfaceSupport.kt` & Revision 377 Lamp Plugins:
  - Replaced `ExperienceLamp.java` with config `261` (`1..21`) skill highlighting and `VARIABLE_XP_RATE` / `XP_RATE` scaling across Genie Lamp (`2528`, `10 * level`), One Small Favour (`4447`, level 30+, `10,000` XP), A Tail of Two Cats (`6543`, level 30+, `2,500` XP), Shadow of the Storm (`6796`, combat skills, `10,000` XP), and Recipe for Disaster (`7498`, level 50+, `20,000` XP).
- `ThessaliaFirstClickPlugin.kt` & `ThessaliaSecondClickPlugin.kt`:
  - Migrated Thessalia (`548`) Talk-to shop/Frog Token (`6183`) exchange and Trade (`shop 12`) actions out of `DialogueHandler` and `Shops.java` into `plugins/npc/thessalia/`.

### Cleanups & Deprecations
- Removed all 12 legacy Java classes under `com/rs2/game/content/randomevents/`, `ExperienceLamp.java`, and dead random-event/dialogue/button hooks across `ClickingButtons.java`, `ClickItem.java`, `DialogueHandler.java`, `NpcActions.java`, `ObjectsActions.java`, and `Shops.java`.

* feat(audio): overhaul 377 music, audio playback, and GameOptionsPlugin

Overhauls the 2006Scape Server and Client audio systems to match authentic 2006 RS2 (Revision 377) behavior, fixing MIDI deadlocks, volume persistence, title-screen music handoff, and varp-driven track unlocking. Consolidates all interface 904 Settings-tab buttons into a single Kotlin plugin and populates PlayList and Music with cache-verified 377 track and region mappings.

### Audio & Client Playback Fixes
- `Class56_Sub1_Sub1.java` & `Class56.java` & `Class56_Sub1_Sub2.java`
  - Split `RECEIVER_LOCK` from `MIDI_LOCK` so Java Sound's `Sequencer.stop()` cannot deadlock against `Receiver.send(...)` when switching tracks.
  - Replaced `method835(0, i, -1L)` with `method840(i, -1L)` in `method827` to reset all 16 channel volumes and unconditionally apply `musicVolume` on track changes.
  - Added `setLoop(boolean loop, boolean restartIfStopped)` to toggle looping live via `config 19` and rewind/restart finished tracks when `LOOP` is enabled while unmuted.
- `Game.java` & `DesktopHooks.java` & `SoundPlayer.java`
  - Stops title-screen `Scape Main` on login (`method55(false); currentSong = -1;`) so region music starts immediately.
  - Respects `!loggedIn || variousSettings[19] == 1` for track looping while keeping jingles one-shot.
  - Replaced unbounded per-sound thread creation in `SoundPlayer` with a 4-thread daemon executor and try-with-resources stream/line cleanup, and fixed `DesktopHooks` MIDI receiver/synthesizer cleanup.
- `HdMaterial.java`
  - Added `populateSingleLayer(int layerId, ByteBuffer diffuseLayerBuf, ByteBuffer normalLayerBuf)` sharing `writeLayerToBuffers` for memory-constrained Android texture streaming.

### Server Music & Playlist Architecture
- `PlayList.java`
  - Mapped all 383 clickable songs from `interface 962` to cache-verified `idx3` MIDI IDs and the 14 native RS2 music unlock varps (`20, 21, 22, 23, 24, 25, 298, 311, 346, 414, 464, 598, 662, 721`), fixing 25 legacy mis-mapped song IDs and `FAITHLESS` `childId` (`10129`).
  - Replaced `fixAllColors()` `sendColor` bursts with `sendMusicConfigs()` sending the 14 music varps plus `config 18` (`AUTO`/`MAN`) and `config 19` (`LOOP`), handling `Strange Place` (`464`, bit `17`) natively.
  - Fixed `AUTO` (`24125`), `MAN` (`24126`), and `LOOP` (`38197`) action button IDs in `handleButton`.
- `Music.java`
  - Expanded `MUSIC_DATA` to 517 unique regions cross-checked against the 377 `map_index`, `LostCityRS`, and OSRS Wiki polygons, and fixed Ape Atoll `(43, 43)` to `303` (`Monkey Madness`) and 73 legacy mismatches.
  - Removed `player.musicOn` gates in `Music.playMusic`, `ChangeRegions`, `ClickingButtons`, and `PacketSender.login` so tracks still unlock and `PlayList` controls work while muted.
- `PacketSender.java` & `Player.java` & `PlayerSave.java`
  - Flushed `sendSong` immediately and standardized `sendSound` on packet 174 (`id`, `volume`, `delay`).
  - Persisted `musicVolume`, `soundVolume`, `mouseButton`, `chatEffects`, and `acceptAid` in `PlayerSave` and synced configs `168`, `169`, `170`, `171`, `287`, and `427` on login.

### New & Migrated Plugins
- `GameOptionsPlugin.kt`
  - Migrated `BrightnessButtons.java`, `MusicVolumeButtons.java`, `SoundVolumeButtons.java`, and `ToggleSplitChatButtons.java` plus `Mouse Buttons` (`3145`/`3146`), `Chat Effects` (`3147`/`3148`), and `Accept Aid` (`48176`/`48177`) into a single Kotlin plugin using named constants and lookup maps, removing legacy `500`–`503` configs and stale `74176`/`74180`/`74188` cases from `ClickingButtons.java`.
- `UnlockSongs.kt`
  - Added developer command `::unlocksongs` (`::unlockmusic`, `::allsongs`) to unlock all playlist tracks and refresh music varps.

* fix(client): replace ThreadFactory lambda in SoundPlayer for JDK 8 javac

Replaces the `ThreadFactory` lambda in `SoundPlayer.SOUND_EXECUTOR` with an anonymous `ThreadFactory` class to resolve a JDK 8 `javac` definite-assignment bug (`variable r might not have been initialized`) hit by GitHub Actions CI on PR #686.

### Bug Fixes
- `SoundPlayer.java`
  - Replaced `r -> { ... }` in `Executors.newFixedThreadPool(4, ...)` with an anonymous `ThreadFactory` implementation.

* refactor(combat): replace DeprecatedItems.getItemName with ItemDefinition.lookup in AutocastCancelButtonPlugin

Removes the deprecated `DeprecatedItems.getItemName(weaponId)` call from `AutocastCancelButtonPlugin.kt` in favor of `ItemDefinition.lookup(weaponId)?.name`, eliminating the Kotlin compiler deprecation warning.

### Cleanups & Deprecations
- `AutocastCancelButtonPlugin.kt`
  - Replaced `DeprecatedItems.getItemName(weaponId)` with `ItemDefinition.lookup(weaponId)?.name ?: "Unarmed"` (preserving `"Unarmed"` when `weaponId == -1`).

* build(maven): set explicit UTF-8 source and reporting encoding across modules

Configures `project.build.sourceEncoding` and `project.reporting.outputEncoding` to `UTF-8` in the root and server POMs so resource filtering and Java compilation are platform-independent and free of platform-encoding warnings.

### Build Configuration
- `pom.xml` & `2006Scape Server/pom.xml`
  - Added `<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>` and `<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>`.

* style(client): fix space-before-tab indentation in Class56_Sub1_Sub2

Replace mixed space-and-tab indentation with spaces in Class56_Sub1_Sub2 to clear the git diff --check whitespace lint prior to merging PR #686.

### Cleanups & Deprecations
- 2006Scape Client/src/main/java/Class56_Sub1_Sub2.java:
  - Normalized line 34 indentation inside setLoop(boolean, boolean) from space-before-tab to 8 spaces.

* fix(audio): remove post-377 Stronghold of Security song entries from Music

Remove the four legacy Stronghold of Security region music mappings from Music.java so MUSIC_DATA stays strictly aligned with Revision 377 (May 2006) tracks and PlayList idx3 entries.

### Cleanups & Deprecations
- 2006Scape Server/src/main/java/com/rs2/game/content/music/Music.java:
  - Removed pre-existing post-377 Stronghold of Security entries { 29, 81, 537 }, { 31, 81, 558 }, { 33, 82, 559 }, and { 36, 81, 560 } from MUSIC_DATA.
2026-12-02 00:08:13 +00:00
Josh Shippamandipkpjersi 26f1c6d2ac Read Description (#685)
* refactor(commands): organize command plugins into permission-tiered subfolders

* feat(commands): Rename Drops Command to SearchDrops and make Drops an alias

* refactor(client): remove unofficial client-side search command implementation

Remove the hardcoded client-side ::search command interception and definitionSearch
handler from Game.java in favor of the server-side interface-driven
search plugins (::searchitem, ::searchnpc, and ::searchdrops).

### Input Handling
- Game.java:
  - Remove ::search prefix checks and inputDialogState mutators during character
    typing and backspacing in the chatbox input loop.

### Cleanups & Deprecations
- Game.java:
  - Remove definitionSearch(String, int) method, eliminating unused client-side
    item/NPC/object cache iteration, fake bank interface manipulation, and local
    chat message flooding.

* feat(clipping): implement authentic 377 object and npc reachability, collision bounds, and fallback pathfinding

Implements authentic Revision 377 RS2 collision detection, object interaction reachability, and fallback pathfinding across the game server. Replaces custom coordinate workarounds and hardcoded checks with cache-driven collision rules, decoding opcode 69 (`walkToMask`) and enforcing authentic line-of-sight and perimeter validation for both objects and entities. When an unreachable entity or object is clicked, pathfinding smoothly navigates the player to the nearest valid alternative tile before halting with an authentic "I can't reach that." message.

### Core System Architecture
* `Region.java`:
  - Implemented `canReach` to handle all standard RS2 object types: wall objects (types 0–3, 9), wall decorations (types 6–8), multi-tile landscape objects (types 10–11), and ground decorations (type 22).
  - Implemented `canReachObject` supporting rectangular object bounding boxes ($sizeX \times sizeY$) and directional walk-to masks rotated according to object orientation (`(walkToMask << face & 0xf) | (walkToMask >> (4 - face))`).
  - Implemented `canReachNpcMelee` strictly enforcing cardinal adjacency for $1 \times 1$ NPCs while allowing diagonal melee contact against larger monsters ($size > 1$) when intervening corners are unblocked.
  - Implemented `canReachNpc` supporting distance-2 interactions over impassable low barriers (e.g. bank counters, tables) by validating that the intermediate tile is collision-blocked (`(getClipping & 0x1280100) != 0`) while projectile line-of-sight remains clear.
* `ObjectDefinitionDecoder.java` & `ObjectDefinition.java`:
  - Decoded opcode 69 (`walkToMask`) from the Revision 377 cache definition buffer (`definition.setWalkToMask(data.get() & 0xFF)`).
  - Added `walkToMask` getter and setter to `ObjectDefinition`.
* `PathFinder.java`:
  - Updated `findRoute` to return a `boolean` status indicating whether an authentic path or closest alternative destination was found.
  - Handled the edge case where the closest alternative coordinate matches the player's current coordinate (`curX == player.getLocalX() && curY == player.getLocalY()`), clearing the queue and returning `false`.
* `Objects.java`:
  - Added safety boundaries against negative or out-of-range object definitions (`objectId < 0 || objectId >= ObjectDefinition.count()`).
  - Added `getWalkToMask()` helper delegating to the decoded `ObjectDefinition`.

### Object & NPC Interaction Infrastructure
* `ClickObject.java`:
  - Implemented `isObjectReached` combining `Region.canReach`, door reachability (`Doors.canReachDoor`, `DoubleDoors.canReachDoor`), and generic door/gate adjacency.
  - Added fallback pathfinding (`PathFinder.findRoute(player, objectX, objectY, true, size[0], size[1])`) when an unreachable object is clicked from a distance.
  - Triggered instant interaction upon reaching interaction bounds (`if (reached)`), stopping character movement and resetting the walking queue without tick lag.
  - Replaced raw magic numbers with `StaticObjectList` (`TARGET_2513`, `DRAMEN_TREE`, `TREE_2409`) and `StaticNpcList` (`TREE_SPIRIT_655`, `SHAMUS`) constants.
* `ClickNPC.java`:
  - Extracted shared interaction logic across `FIRST_CLICK`, `SECOND_CLICK`, and `THIRD_CLICK` into a unified `handleNpcInteraction(Player, int, Consumer<Npc>)` method, removing redundant cycle event boilerplate.
  - Added fallback pathfinding towards the target NPC's bounds on initial click if not immediately reachable.
  - Ensured `"I can't reach that."` is sent only after walking finishes at the closest blocking perimeter (e.g. Al-Kharid border fence).
* `ItemOnNpc.java`:
  - Added NPC array index and null validation (`i < 0 || i >= NpcHandler.npcs.length || NpcHandler.npcs[i] == null`).
  - Added reachability check via `Region.canReachNpc`, halting player movement and sending `"I can't reach that."` if unreachable.
  - Replaced raw item and NPC magic numbers with `StaticItemList` (`SHEARS`, `WOOL`, `COINS_995`, `BUCKET_OF_MILK`, `BUCKET`, `SEASONED_SARDINE`, `FLUFFS_KITTEN`) and `StaticNpcList` (`TOOL_LEPRECHAUN`, `SHEEP_43`, `EMILY`, `GERTRUDES_CAT_2997`) constants.
* `PlayerAssistant.java`:
  - Implemented `getFollowNpcLocation` to determine the closest reachable perimeter tile around an NPC, preventing invalid diagonal melee coordinates for $1 \times 1$ NPCs.
  - Consolidated fallback route error handling in `followNpc()` for both melee and ranged/magic attack paths.
* `Player.java`:
  - Prevented walking directly inside an NPC's collision tile during combat and interaction approach in `getNextWalkingDirection()`.

### Combat Collision & Line of Sight
* `CombatAssistant.java`:
  - Added `Region.canReachNpcMelee` verification in both `attackingNpcTick()` and `attackNpc()` to prevent hitting NPCs through walls or fences.
  - Added projectile path clearance verification (`PathFinder.isProjectilePathClear`) for ranged weapons, bows, magic spells, and halberds.
  - Cleared attack and follow state cleanly when a target cannot be reached without freezing character movement.

### Doors & Gates Mechanics
* `GateHandler.java` & `DoubleGates.java`:
  - Replaced raw gate IDs with `StaticObjectList` constants (`GATE_1551`, `GATE_1552`, `GATE_7049`, `GATE_7050`, `GATE_7051`, `GATE_7052`, etc.).
  - Added `getOpenGateId`, `getClosedGateId`, and `isOpenGate` to support toggling open gates shut on interaction.
  - Consolidated `openDoubleGate` to delegate directly to `openSpecialGate`, eliminating redundant gate despawn/respawn code.
  - Added `SoundList.OPEN_GATE` audio triggers on gate interaction.
* `Doors.java` & `DoubleDoors.java`:
  - Added `canReachDoor(player, id, x, y, z)` proximity checking for both single and double doors, allowing players to reach doors by checking both current and original coordinates within distance 1.
  - Removed unused `isDoor` dead helper methods.

### Cleanups & Deprecations
* `Woodcutting.java`:
  - Removed custom coordinate check hack `p.absX == 2717 && p.absY == 3461` ("You can't cut the tree from here!"), now natively handled by authentic object collision bounds.
  - Removed redundant movement stopping inside `startWoodcutting`, now handled uniformly at the packet level in `ClickObject.java`.
* `BorderGuardFirstClick.kt`:
  - Removed plugin-specific coordinate gate check (`absX <= 3267`) and redundant `facePlayer` calls, relying on global collision flags and `ClickNPC.java` pathfinding.

* feat(client): implement android modern resizable viewport support and platform gating

Add dynamic viewport sizing and modern resizable display mode hooks to the shared 317 client while strictly isolating all mobile changes behind platform checks. All additions are gated behind ClientSettings.ANDROID and ClientSettings.RESIZABLE flags so that desktop client rendering, coordinates, and fixed 512x334 gameplay remain 100% authentic and unaffected. This enables Android Mobile to render an edge-to-edge 3D world with floating HUD panels while guaranteeing complete regression-free desktop parity.

### System Architecture
- Game.java:
  - Introduce updateViewportSize(int width, int height) synchronized method to dynamically resize the aRSImageProducer_1165 viewport buffer, recalculate texture scanline offsets, and invoke WorldController.method310 with custom dimensions.
  - Enforce explicit ClientSettings.ANDROID platform guards across all viewport-dimension checks to ensure desktop builds unconditionally retain fixed 512x334 behavior.

### Display & Viewport Handling
- WorldController.java:
  - Adjust vertical camera offset (anInt494) in portrait mobile mode to (int) (l * 0.38f) when ClientSettings.ANDROID && ClientSettings.RESIZABLE && k < l, ensuring the player character remains centered above bottom UI sheets, falling back to authentic l / 2 on desktop and landscape.
- Game.java:
  - Gate action tooltip coordinates behind ClientSettings.ANDROID: modern mobile displays render at (16, 28) in portrait or (72, 28) in landscape, while desktop preserves the original 317 baseline at (4, 15).
  - Gate debug and XP overlay positions behind platform checks, preventing mobile offsets from shifting desktop stats.
  - Retain desktop frame border drawing (drawFixedFrameBorders()) unconditionally whenever needDrawFrameBorders is raised.

### Input & Click Hit-Testing
- Game.java:
  - Update touch target validation in processChatModeClick(), processMinimapActions(), and processTabClick() to verify ClientSettings.ANDROID && (ClientSettings.RESIZABLE || ClientSettings.VIEWPORT_WIDTH > 512).
  - Preserve standard 317 desktop tab boundary hit-testing (saveClickX >= 539 && saveClickX <= 573, etc.) when !ClientSettings.ANDROID.
  - Update custom settings tab and scrollbar hit-testing to respect target touch areas without altering desktop mouse interactions.

* refactor(server): clean up redundant interaction checks, consolidate packet logic, and harden packet boundaries

Consolidates redundant distance checks and interaction logic made obsolete by cache-driven Revision 377 collision and reachability systems across the server. Enforces strict array bounds and packet validation on item, object, player, and magic interaction packets to prevent remote exploitation and index out-of-bounds exceptions. Eliminates memory leaks, duplicate iterations, and legacy PI distance hacks while preserving 2006 RS2 gameplay authenticity.

### Core & Packet Infrastructure
* `AttackPlayer.java`:
  - Added strict array index boundary checks (`player.playerIndex < 0 || player.playerIndex >= PlayerHandler.players.length || PlayerHandler.players[player.playerIndex] == null`) for both `ATTACK_PLAYER` and `MAGE_PLAYER` packets.
  - Replaced dead/impossible non-crystal bow condition (`playerEquipment < 4212 && playerEquipment > 4223`) with `!RangeData.usingCrystalBow(player)` to correctly trigger the out-of-arrows message in PvP.
* `ClickNPC.java`:
  - Added array index and null validation on `player.npcIndex` in `ATTACK_NPC` and `MAGE_NPC` packet processing.
  - Removed duplicate `NpcHandler.npcs[player.npcIndex] == null` check in `ATTACK_NPC`.
  - Replaced dead condition (`< 4212 && > 4223`) with `!RangeData.usingCrystalBow(player)` in PvN combat.
* `FollowPlayer.java`:
  - Added index boundary validation on target `followPlayer` ID before array indexing.
* `Walking.java`:
  - Removed 47 lines of legacy commented-out walking packet code to keep the packet pipeline clean.

### Reachability & Interaction Handlers
* `ItemOnObject.java`:
  - Migrated from crude Manhattan distance (`goodDistance(..., 3)`) to `ClickObject.isObjectReached(...)`, validating object boundaries, facing direction, wall clipping, and cache `walkToMask`.
  - Preserved explicit 5-tile radius for Ectofuntus interactions while halting unreachable attempts with "I can't reach that.".
* `ItemOnPlayer.java`:
  - Added authentic 1-tile reachability distance check (`!player.goodDistance(..., 1)`) with "I can't reach that." before Christmas cracker interactions.
  - Added array boundary validation for `playerId` and inventory `slot`.
  - Replaced magic number `962` with `StaticItemList.CHRISTMAS_CRACKER`.
* `ItemOnGroundItem.java`:
  - Added authentic 1-tile reachability check (`!player.goodDistance(..., 1)`) with "I can't reach that." before firemaking ground logs, preventing remote fire lighting.
  - Replaced magic numbers `590`, `7329`, `7330`, and `7331` with `StaticItemList` constants (`TINDERBOX`, `RED_FIRELIGHTER`, `GREEN_FIRELIGHTER`, `BLUE_FIRELIGHTER`).
* `ItemClick2OnGroundItem.java`:
  - Removed debugging `System.out.println(...)` output.
  - Replaced magic number `590` with `StaticItemList.TINDERBOX`.
* `ItemOnItem.java`:
  - Added boundary validation on `usedWithSlot` and `itemUsedSlot` before indexing `player.playerItems`.
* `MagicOnObject.java`:
  - Added `player.endCurrentTask()` to properly cancel active player walking/skilling events.
  - Added `Region.objectExists` check and a 4-tile reachability check (`!player.goodDistance(..., 4)`) with "I can't reach that.", preventing remote orb charging.
  - Replaced raw magic numbers `2150..2153` with `StaticObjectList` constants (`OBELISK_OF_EARTH`, `OBELISK_OF_WATER`, `OBELISK_OF_AIR`, `OBELISK_OF_FIRE`).
* `MagicOnFloorItems.java`:
  - Removed redundant second `player.stopMovement()` call inside telegrab packet handling.

### Door & World Object Mechanics
* `ChangeRegions.java`:
  - Removed redundant and harmful `Doors.getSingleton().load();` call on region loading (packet 121), which repeatedly re-read `doors.json` from disk and duplicated door instances in memory.
* `Doors.java` & `DoubleDoors.java`:
  - Replaced raw distance calculations in `Doors.handleDoor` with `canReachDoor(player, id, x, y, z)`.
  - Added `canReachDoor` check to `DoubleDoors.handleDoor` before processing double door state changes.
* `ClickObject.java`:
  - Removed obsolete `> 25` tile check in `completeObjectClick` (already guaranteed reachable by `onObjectReached`).
  - Removed redundant `stopMovement()` and `resetWalkingQueue()` calls in `case 9472` (already performed upon reach).
  - Replaced raw target ID `2513` with `StaticObjectList.TARGET_2513`.
* `AlKharidGateFirstClick.kt`:
  - Removed redundant `if (!isNearGate(player))` check, as `ClickObject.isObjectReached` already enforces gate reachability prior to event dispatch.

### Bug Fixes & Edge Cases
* `NpcActions.java`:
  - Removed erroneous `player.turnPlayerTo(player.objectX, player.objectY)` in `case 8689` (dairy cow milking), which incorrectly rotated the player to face coordinates `(0, 0)` due to uninitialized object coordinates in NPC packets.
* `ObjectsActions.java`:
  - Removed duplicate `player.turnPlayerTo(player.objectX, player.objectY)` calls in lines 1413, 1417, and 1887, already handled uniformly at the start of `ClickObject.completeObjectClick`.
* `DropItem.java` & `PickupItem.java`:
  - Consolidated duplicate consecutive loops over `LogData.values()` into a single loop with an early `break;`.
  - Removed redundant duplicate `resetPlayerAttack()` call in `PickupItem.java`.

### Cleanups & Deprecations
* `Woodcutting.java`:
  - Removed legacy PI distance check `if (Misc.goodDistance(p.objectX, p.objectY, p.absX, p.absY, 3))` in `startWoodcutting`, now handled by authentic 377 collision bounds in `ClickObject.java`.
  - Removed redundant duplicate `if (p.isWoodcutting)` guard inside `startWoodcutting`.
* `Fishing.java` & `SilverCrafting.java`:
  - Removed redundant chained `.toLowerCase().toLowerCase()` invocations in chat and message strings.

* feat(client): add android platform hooks and 117hd pipeline bridge behind ClientSettings.ANDROID

Integrates dynamic viewport sizing and pure-Java 117HD GPU pipeline bridge hooks into the shared 317 client codebase while strictly isolating all mobile features behind ClientSettings.ANDROID. Ensures 100% authentic fixed 512x334 Revision 377 desktop gameplay without file duplication between desktop and mobile repositories.

### Core / System Architecture
- `HD117Pipeline.java`:
  - Introduced pure-Java GPU bridge interface (`HdRendererBackend`) strictly gated by `ClientSettings.ANDROID && ClientSettings.HD_117`.
  - Defined callback lifecycle signatures for scene upload, per-frame camera matrix uniform updates, simple/shaped tile dispatch, and model rendering.
- `Game.java`:
  - Added synchronized `updateViewportSize(int width, int height)` and `setHD117Enabled(boolean enabled)` guarded by `ClientSettings.ANDROID`.
  - Gated mobile touch target areas (`TARGET_VIEWPORT`, `TARGET_MINIMAP`, `TARGET_TAB`) and responsive action tooltips behind `ClientSettings.ANDROID`.
- `ClientSettings.java`:
  - Added `RESIZABLE` and `HD_117` flags (`false` by default on desktop) and made RSA modulus/exponent mutable for mobile world switching.

### Display & Viewport Handling
- `WorldController.java`:
  - Gated portrait mobile camera vertical offset `(int) (l * 0.38f)` behind `ClientSettings.ANDROID && ClientSettings.RESIZABLE && k < l`, defaulting to authentic `l / 2` on desktop.
  - Implemented concentric ring tile traversal `r = 0..drawDistance` and 3D frustum culling (`isHdTileInFrustum`) gated behind `ClientSettings.ANDROID && ClientSettings.HD_117 && HD117Pipeline.isGpuActive()`.
- `Model.java`:
  - Gated near-plane clipping threshold `(ClientSettings.ANDROID ? 20 : 50)` so desktop retains authentic 50-unit threshold.
  - Preserved vertex normals and model GPU dispatch strictly when `ClientSettings.ANDROID` is active.
- `Class40.java` & `Class43.java`:
  - Gated overlay face and tile tracking strictly behind `ClientSettings.ANDROID`.

### Bug Fixes & Edge Cases
- `ObjectManager.java`:
  - Gated upper-floor ground tile roof checking (`!hideRoofs && !lowMem`) behind `ClientSettings.ANDROID`, ensuring Lumbridge Castle gatehouse upper floors render properly on mobile while preserving authentic desktop `hideBuggyVarrockSwordShopSnow`.

### Submodule Updates
- `2006Scape-Android`:
  - Updated submodule pointer to commit `8b74a318` containing v3.32 launcher UI polish and 117HD OpenGL ES 3.0 renderer.

* chore(mobile): update 2006Scape-Android submodule to v3.33 authentic rs2 launcher ui

Updates the 2006Scape-Android mobile submodule to commit 11e754e2. Integrates authentic 2006 RS2 beveled stone boxes, crimson-and-gold login buttons, and custom stone checkmark widgets.

### Submodule Updates
- `2006Scape-Android`:
  - Updated submodule pointer to commit `11e754e2` containing v3.33 authentic 2006 RS2 launcher redesign.

* feat(mobile): update android submodule to v3.34 with live world indicators and stone dividers

Updates the Android mobile client submodule to release v3.34. Introduces real-time server socket reachability indicators on world selector buttons and classic 2006 RS2 etched stone bevel dividers framing launcher panels without modifying server or desktop client logic.

### UI & Visual Improvements
- `2006Scape-Android`:
  - Added live socket connectivity pings to World 1 (port 43594) and World 2 (port 43598).
  - Integrated authentic etched stone bevel dividers (`divider_rs_stone.xml`) under the header and across configuration sections.
  - Formatted Display Mode selectors with two-line layout descriptions (`Fixed 4:3` and `Resizable`).
  - Bumped release version to v3.34 (versionCode 94).

* feat(mobile): update android submodule to v3.35 with classic touch ribbon toggle

Updates the Android mobile submodule to release v3.35. Adds a user setting in the client launcher to enable or disable onscreen touch ribbons when running in Classic (Fixed 4:3) display mode.

### Migrated Features
- `2006Scape-Android`:
  - Added `Classic Mode Touch Ribbons` launcher toggle under Client Features.
  - Wired preference persistence and intent propagation into `GameSurfaceView`.
  - Bumped release build to v3.35 (versionCode 95).

* feat(mobile): update android submodule to v3.36 with classic portrait console and landscape lock

Updates the Android mobile submodule to release v3.36. Integrates portrait bottom console layout for Classic (Fixed 4:3) mode and a launcher toggle to lock landscape orientation.

### UI & Visual Improvements
- `2006Scape-Android`:
  - Added dedicated two-row bottom thumb console for portrait orientation in Classic mode.
  - Added `Lock Landscape in Classic` startup preference toggle.
  - Clamped ribbon text width and added landscape safety bounds checks.
  - Bumped release build to v3.36 (versionCode 96).

* feat(mobile): update android submodule to v3.37 with portrait launcher support

Updates the Android mobile submodule to release v3.37. Adds full portrait orientation support to the client launcher with a dedicated stacked panel layout and bottom-anchored Play button.

### UI & Visual Improvements
- `2006Scape-Android`:
  - Created `res/layout-port/activity_launcher.xml` for portrait orientation.
  - Enabled dynamic orientation handling in `LauncherActivity.java` with instant status cache preservation.
  - Bumped release build to v3.37 (versionCode 97).

* fix(mobile): update android submodule to v3.38 with centered classic portrait canvas

Updates the Android mobile submodule to release v3.38. Restores exact vertical centering for the 4:3 game canvas in Classic mode across all screen orientations.

### UI & Visual Improvements
- `2006Scape-Android`:
  - Centered the 4:3 game canvas vertically in portrait mode.
  - Positioned the portrait touch console inside the lower letterbox region below the centered view.
  - Bumped release build to v3.38 (versionCode 98).

* feat(mobile): update android submodule to v3.39 with authentic cache sprite ribbons

Updates the Android mobile submodule to release v3.39. Introduces authentic Revision 377 game cache sprite rendering for mobile touch ribbons, accompanied by 3D beveled stone button tiles, RS Red-Stone active tab fills, live rotating compass needle, and glowing runic gems.

### UI & Visual Formatting
- `2006Scape-Android`:
  - Converted Revision 377 `sideIcons` and `compass` sprite into ARGB Android Bitmaps with nearest-neighbor crisp filtering.
  - Implemented 3D beveled stone tiles with directional chisel lighting (top/left highlight, bottom/right shadow).
  - Added authentic RS Red-Stone active tab fills (`#731818`) with glowing gold borders (`#FFD700`).
  - Added dynamic real-time compass yaw rotation on the NORTH button tracking `game.minimapInt1`.
  - Added RuneScape Gold (`#FF981F`) and Yellow (`#FFFF00`) typography with authentic 1px solid black drop-shadows.
  - Added 3D glowing runic gems for utility controls (`DROP` emerald green, `117 HD` cyan).
  - Added medieval stone backing pillars in landscape and unified console deck in portrait.
  - Bumped release build to v3.39 (versionCode 99).

* fix(mobile): update android submodule to v3.40 with masked circular compass

Updates the Android mobile submodule to release v3.40. Masks out the raw Revision 377 red square boundary surrounding the circular compass sprite for clean presentation on the ribbon stone tile.

### UI & Visual Formatting
- `2006Scape-Android`:
  - Clipped raw `compass` sprite to its circular diameter (`dx^2 + dy^2 <= r^2`).
  - Chroma-keyed the red border pixels to 100% transparency.
  - Bumped release build to v3.40 (versionCode 100).

* fix(mobile): update android submodule to v3.41 with enlarged tightly cropped compass

Updates the Android mobile submodule to release v3.41. Tightly crops the circular compass rose and scales it up to 35dp to match the prominent size of the other tab sprites.

### UI & Visual Formatting
- `2006Scape-Android`:
  - Cropped non-transparent compass bounds tightly, removing outer dead space.
  - Centered the cropped circular compass rose inside an exact square bitmap.
  - Omitted sublabel on the NORTH button and raised icon size to 35dp.
  - Bumped release build to v3.41 (versionCode 101).

* feat(mobile): update android submodule to v3.42 with 1:1 authentic tab order ribbons

Updates the Android mobile submodule to release v3.42. Reorders the touch ribbons so that the left ribbon (and portrait row 1) directly mirrors the game's top-row tabs (0..6), and the right ribbon (portrait row 2) mirrors the bottom-row tabs (7..13).

### UI & Visual Formatting
- `2006Scape-Android`:
  - Reordered left buttons to: NORTH, Combat (0), Stats (1), Quests (2), Inventory (3), Equip (4), Prayer (5), Magic (6), DROP.
  - Reordered right buttons to: CHAT, QoL (7), Friends (8), Ignore (9), Logout (10), Options (11), Music (13), 117 HD, 60 FPS.
  - Bumped release build to v3.42 (versionCode 102).

* fix(renderer): dynamic camera traversal bounds and GPU clipping for 117 HD terrain

Resolve missing terrain tiles during camera rotation and zoom in 117 HD mode by dynamically expanding the traversal radius around the player and delegating frustum culling to GPU hardware. Preserves Revision 377 client compatibility while preventing camera orbit clipping across region boundaries.

### Core Architecture
- `WorldController.java`:
  - Calculate `effectiveDrawDist` dynamically using `Math.min(60, drawDistance + (hdCamDistToPlayer >> 7) + 12)` for Android HD mode.
  - Expand loop bounds `anInt449..anInt450` and `anInt451..anInt452` to prevent camera orbit culling at map borders.
  - Remove inaccurate 2D CPU screen-space frustum bounds checking in favor of exact hardware OpenGL ES 3.0 clipping.
  - Retain safe camera-depth rejection (`cz < -1280`) to protect shadow casters and multi-tile structures behind the camera.

* feat(renderer): extended software draw distance, synchronized model culling, and QoL zoom gating

Synchronize 3D model culling with active terrain boundaries to prevent entities from floating over the black void, dynamically extend software draw distance during camera orbit zoom, and gate zoom controls in classic display mode behind the QoL client argument. Maintains exact Revision 377 parity while improving visual consistency on mobile widescreen viewports.

### Core Architecture
- `WorldController.java`:
  - Calculate `effectiveDrawDist` dynamically up to 38 tiles in software mode on Android based on camera-to-player orbit distance (`hdCamDistToPlayer`).
  - Update rasterizer `loopDist` to use `effectiveDrawDist` in software passes so ground tiles fully cover the playfield when zoomed out.
  - Expose `effectiveDrawDist` as a public static field for entity and model distance synchronization.
- `Model.java`:
  - In software mode on Android, clamp model draw distance strictly to `effectiveDrawDist * 128 + 128` to guarantee models are never rendered over unrendered ground voids.
  - In 117 HD mode, scale model distance to match dynamic fog horizon (`4800+` units).
  - Preserve desktop Revision 377 culling formula (`drawDistance * 256`) when not running on Android.
- `Game.java`:
  - Update `hdCamDistToPlayer` across all Android display modes regardless of whether 117 HD is toggled on or off.
  - Restrict `adjustZoom` and `handleMouseWheel` in fixed classic display mode (`!RESIZABLE`) so camera zoom is locked to 0 unless `CUSTOM_SETTINGS_TAB` (QoL) is enabled.

* feat(client): add -resizable modern desktop layout with shared ModernLayout engine and floating stone HUD overlays

Implement a native resizable modern window mode for the desktop client activated via the `-resizable` (or `-resize`) launch argument while preserving 100% shared source parity with the Android client. Consolidates layout geometry, elliptical/rounded-corner hit-testing, and coordinate translation into a pure-Java `ModernLayout` class, and renders zero-flicker double-buffered floating Revision 377 stone HUD widgets (circular lizard minimap, stone-framed chatbox, and symmetrical 4-way masked rounded stone tab block).

### Core / System Architecture
- `ModernLayout.java`:
  - Implemented platform-neutral layout engine with zero `java.awt` or `android.*` imports for automatic sharing with the Android `syncSharedSources` build pipeline.
  - Added `hit(int x, int y)` routing cursor and click coordinates to `TARGET_MINIMAP`, `TARGET_TAB`, `TARGET_CHAT`, `TARGET_VIEWPORT`, or `TARGET_DEFAULT` when `!inGame`.
  - Implemented `isInsideMinimap(int localX, int localY)` using circular compass bounds ($r = 16$ at $(16, 16)$) and elliptical map bounds ($R_x = 76, R_y = 78$ at $(132, 84)$) so clicks in transparent air fall through to `TARGET_VIEWPORT`.
  - Implemented `isInsideTabArea(int localX, int localY)` with a 4-way symmetrical corner inset profile (`TAB_CORNER_DX`) matching the sculpted Revision 377 corner stone contour ($234 \times 335$ active ring inside the $249 \times 343$ region).
  - Added `toGameCoords(int area, int x, int y)` and `toWindow(int fixedX, int fixedY, int width, int height)` for bidirectional mapping between dynamic window dimensions and classic $765 \times 503$ coordinates.
- `ClientSettings.java`:
  - Added `isModernLayout()`, `isDesktopModern()`, `usesTouchTargets()`, and `usesClassicTabHitboxes()` predicates to unify desktop resizable and Android modern layout conditionals.
- `ClientArgs.java`:
  - Added `-resizable` and `-resize` launch arguments enabling `ClientSettings.RESIZABLE = true` and automatically hiding the top browser navigation bar (`ClientSettings.SHOW_NAVBAR = false`).

### UI & Visual Formatting
- `DesktopHooks.java` & `AndroidHooks.java`:
  - Added offscreen double buffering (`getRenderGraphics` and `flip`) backed by a window-sized `BufferedImage` so 3D viewport rendering and floating HUD overlays composite atomically without 50 Hz screen flickering.
  - Implemented `drawModernMinimap` compositing the live $172 \times 156$ minimap producer (`1164`) masked via `AlphaComposite.DstIn` against `hud_minimap_hole.png` and overlaid with `hud_minimap_bezel.png` at $(w - 249, 0)$.
  - Implemented `drawModernChat` compositing `hud_chat_frame.png` ($519 \times 165$) with chat parchment (`1166`, $479 \times 96$) at $(17, 19)$ and chat buttons (`1123`, $496 \times 50$) at $(0, 115)$, docked at $(0, h - 165)$.
  - Implemented `drawModernTab` stitching the 3-part left vertical stone pillar (`backVmidIP2` $37 \times 133$, `backVmidIP2_2` $553 \times 19$ rightmost $37\text{px}$, and `backVmidIP3` $57 \times 109$ rightmost $37\text{px}$) alongside top tabs (`1125`), tab body (`1163`), right pillar (`backRightIP2`), and left-cropped bottom tabs (`1124` at offset $20\text{px}$), masked to 100% transparency outside the rounded stone contour.
- `hud_chat_frame.png`, `hud_minimap_bezel.png`, & `hud_minimap_hole.png`:
  - Added authentic floating stone HUD bezel and alpha mask resources to `2006Scape Client/src/main/resources/`.

### Bug Fixes & Edge Cases
- `Game.java`:
  - Added `applyWindowSize(int w, int h)` and `drawModernDesktopOverlays()` to dynamically resize the 3D software rasterizer and `WorldController` frustum while docking floating HUD overlays.
  - Tracked `ModernLayout.inGame` across `drawLoginScreen()`, `drawGameScreen()`, and `resetLogout()` so the 9-tile login screen and fullscreen interfaces center cleanly with black letterboxing.
  - Fixed `processLoginScreenInput()` to evaluate button hitboxes against the $765 \times 503$ reference frame rather than dynamic window dimensions.
- `RSFrame.java`, `RSApplet.java`, & `RSImageProducer.java`:
  - Enabled window resizing and maximize controls when `ClientSettings.RESIZABLE` is active, enforcing a minimum frame size of $765 \times 503$ plus window insets.
  - Queued `ComponentListener` resize events safely onto the game thread via `pendingResize` and mapped mouse press, move, drag, and wheel events through `ModernLayout`.

* feat(client): add aspect-ratio-scaled login and loading screens with flicker-free resize rendering

Scale and center the classic 765x503 Revision 377 login screen and startup loading progress bars across resizable desktop window dimensions to match the Android client's welcomeScale architecture. Consolidates background tile assembly and offscreen bilinear scaling into a thread-synchronized composite buffer, eliminating multi-threaded race conditions between game rendering and flame animations while preserving aspect-ratio-locked button hitboxes. Implements flicker-free live window resizing by handling AWT paint cycles immediately and suppressing front-buffer background erasures.

### System Architecture
- `ModernLayout.java`:
  - Added `getScaledScreenBounds(int w, int h)` computing aspect-ratio-preserved scaled dimensions and centering offsets `[originX, originY, scaledW, scaledH]`.
  - Updated `toGameCoords` and `toWindow` when `!inGame` to bidirectionally project cursor inputs and full-screen coordinates between scaled window dimensions and the classic 765x503 reference coordinate space.
- `DesktopHooks.java`:
  - Added `updateLoginTile()` and `redrawScaledLoginScreen()` synchronized under a dedicated `loginLock` mutex to serialize buffer updates across the main game loop, flame worker thread, and AWT Event Dispatch Thread.
  - Implemented smooth bilinear interpolation (`KEY_INTERPOLATION` / `VALUE_INTERPOLATION_BILINEAR`) scaling from `loginScreenBuffer` to dynamic window bounds with clean black letterbox/pillarbox margins.
  - Decoupled tile `1110` (left torch) from triggering intermediate screen blits so both torch flames composite atomically and flip on tile `1111` (right torch).
  - Implemented `checkResize(Component comp)` to synchronously synchronize window dimensions during early startup.

### UI & Visual Formatting
- `Game.java`:
  - In `drawLogo()`, atomically populates all 9 background tiles (`1107` through `1115`) into `loginScreenBuffer` as soon as `title.dat` and `logo` are decoded, guaranteeing complete stone archway, pillars, and logo coverage during all loading stages.
  - In `drawLoadingText()`, polls window resizing via `DesktopHooks.checkResize()` on each loading step so progress bars ("Unpacking config", "Unpacking textures", etc.) remain centered and scaled to window height on top of the background.
- `RSApplet.java`:
  - Enabled `sun.awt.noerasebackground` on client frame creation and suppressed live `graphics.fillRect(0, 0, w, h)` clears in `handleResize()` when modern desktop mode is active to prevent front-buffer black flashes.
  - Routed `paint(Graphics g)` and `update(Graphics g)` during `!inGame` directly into `DesktopHooks.redrawScaledLoginScreen(g)`, repainting the scaled buffer immediately on every AWT expose event without waiting for background game loop ticks.
  - In `componentResized(ComponentEvent e)`, updates `ModernLayout` bounds and triggers immediate offscreen repaint during interactive window dragging.
- `RSImageProducer.java`:
  - Intercepts 765x503 drawing area blits during `!inGame` to route pixel updates directly into `DesktopHooks.drawScaledLoginTile()`.

* feat(client): migrate shared 117 HD core and add desktop OpenGL renderer with -hd flag and ::hd command

Unify the 117 HD / RLHD 3D rendering pipeline across desktop and Android by migrating `HdMaterial`, `HdGroundMaterial`, `HdProceduralGenerator`, `HdSceneUploader`, and GLSL shader definitions into the shared `2006Scape Client` source tree. Introduces `DesktopHd117Renderer` backed by JNA OpenGL (EGL/GLES 3.0+ on Linux and WGL/OpenGL 3.3 on Windows), disabled by default and toggleable via the `-hd` launch argument or the `::hd` in-game client command while preserving full Java 8 `java.nio.Buffer` bytecode compatibility.

### Core / System Architecture
- `HD117Pipeline.java`:
  - Removed `ClientSettings.ANDROID` platform restrictions from `isGpuActive()`, `onSceneLoad()`, `beginFrame()`, `endFrame()`, and `onToggle()` so the 117 HD pipeline operates identically across Desktop and Android.
  - Consolidated the shared GLSL shader sources (`SHADOW_VERT`, `SHADOW_FRAG`, `SCENE_VERT`, `SCENE_FRAG`, `POST_VERT`, `POST_FRAG`), `adaptGlslForDesktop330()`, and pure-Java 4x4 matrix functions (`setLookAtM`, `orthoM`, `multiplyMM`).
- `DesktopHd117Renderer.java` & `pom.xml`:
  - Added `net.java.dev.jna:jna:4.4.0` dependency and implemented `HD117Pipeline.HdRendererBackend` for desktop platforms.
  - Implemented cross-platform offscreen OpenGL context initialization using JNA (`libEGL.so.1` + `libGLESv2.so.2` with `EGL_PLATFORM_SURFACELESS_MESA` fallback on Linux, and `opengl32.dll` / `gdi32.dll` / `user32.dll` WGL OpenGL 3.3 context creation on Windows).
  - Executed the 3-pass 117 HD pipeline: Pass 1 ($2048 \times 2048$ directional sun shadow depth FBO), Pass 2 (3-vertex height-splatted terrain, Sobel normal mapping, 9-tap PCF soft shadows, Fresnel water waves, 16 dynamic point lights, and distance fog), and Pass 3 (5-tap highlight bloom, S-curve tonemapping, and zero-copy BGRA readout into `DrawingArea.pixels`).
- `DesktopHooks.java`:
  - Added `initHdBackend()` to lazily instantiate and register `DesktopHd117Renderer` onto `HD117Pipeline.backend`.

### Migrated 117 HD Shared Modules
- `HdMaterial.java` & `HdGroundMaterial.java`:
  - Migrated material layer definitions (`0..49` enhanced RS2 cache textures and `50..63` procedural 117 HD PBR materials) and the 64-layer $128 \times 128$ RGBA8 diffuse + heightfield and Sobel tangent-space normal-map generator (`populateTextureBuffers`) into shared client sources.
  - Added deterministic spatial vertex hashing (`getMaterialForVertex`) and 317 floor/HSL classification (`resolve`).
- `HdProceduralGenerator.java`:
  - Migrated smooth $105 \times 105$ terrain normal calculation, per-tile underlay/overlay resolution, corner splatting, and dynamic point light extraction from world objects.
  - Added `tileIsIndoor` detection from the RS2 map roof flag (`(byteGroundArray[plane][x][z] & 4) != 0`) and adjacent doorway thresholds.
- `HdSceneUploader.java`:
  - Migrated 64-byte cache-aligned vertex staging for `Class43` simple tiles, `Class40` shaped tiles, and 3D `Model` geometry with exact $(P, M, N)$ texture triangle UV projection.

### New Commands & Launch Arguments
- `ClientArgs.java`:
  - Added `-hd` and `-117hd` launch flags enabling `ClientSettings.HD_117 = true` at startup (disabled by default).
- `Game.java`:
  - Added the `::hd` (and `::117hd`) in-game client command available to all players, toggling `setHD117Enabled(!ClientSettings.HD_117)` and printing `"117 HD is now: enabled"` or `"117 HD is now: disabled"` in the chatbox.
  - Updated `setHD117Enabled(boolean)` and the 3D viewport render pass (`method146`) to support runtime toggling on both Desktop and Android.

### Bug Fixes & Edge Cases
- `HdSceneUploader.java` & `HD117Pipeline.java`:
  - Fixed coplanar stacked polygon Z-fighting on multi-layer models (such as the Varrock Castle blue rug's gold border and white stars, red dining room rug lion crests, and wall shields) by encoding a strictly monotonic per-face priority (`anIntArray1638`) and face-order (`f / faceCount`) fraction into `aMatAndBary.w` and applying a zoom-invariant clip-space depth offset in `SCENE_VERT`.
  - Fixed pillow/cylinder shading distortion on flat horizontal floor models (`vyA == vyB && vyB == vyC`) by assigning pure vertical geometric normals $(0, -1, 0)$ instead of corner normals averaged with vertical perimeter skirts.
  - Fixed indoor castle checkered flooring by assigning roofed interior tiles (`tileIsIndoor`) a uniform, smooth honed architectural stone material (`HD_STONE_PAVERS_2`) without outdoor Voronoi cobblestone bumps or cross-corner dirt splatting, and made `HD_DIRT_1..2` hue-neutral.
  - Replaced GLSL reserved keyword `packed` with `packedVal` in `SCENE_VERT` and cast all `Buffer.position(int)` calls to `((Buffer) ...).position(...)` to prevent `NoSuchMethodError` on Java 8 runtimes.
- `Model.java`, `Class40.java`, & `WorldController.java`:
  - Preserved `hdVertexNormals`, `anIntArray1640`, and `isOverlayFace` during scene loading regardless of initial HD state so toggling `::hd` mid-session renders smooth normals and overlay seams without reloading the map region.

* feat(client): add automatic fixed and modern gameframe switching at original 765x503 size in resizable mode

Decouples desktop window resizability from active modern floating HUD mode so that a `-resizable` client automatically renders the authentic 765x503 classic fixed gameframe (with a 512x334 3D viewport and stone border producers) whenever sized at 765x503, and transitions to the full-window modern floating HUD gameframe whenever expanded beyond 765x503. Preserves full Revision 377 coordinate translation, login screen tile caching, and Android client parity.

### Layout Mode & Coordinate Infrastructure
- `ClientSettings.java`:
  - Updated `isDesktopModern()` to evaluate `!ANDROID && RESIZABLE && (ModernLayout.windowWidth > 765 || ModernLayout.windowHeight > 503)`, distinguishing window resizability (`RESIZABLE`) from the active modern HUD layout.
  - Updated `isModernLayout()` to delegate to `isDesktopModern()` on desktop while preserving `RESIZABLE || VIEWPORT_WIDTH > 512` on Android.
  - Updated `usesTouchTargets()` to return `ANDROID || isDesktopModern()` so hit-area target routing is disabled when the desktop window is at the classic 765x503 dimensions.
- `ModernLayout.java`:
  - Updated `hit(int x, int y)`, `toGameCoords(int area, int x, int y)`, and `toWindow(int fixedX, int fixedY, int width, int height)` guards from `!ClientSettings.RESIZABLE` to `!ClientSettings.isModernLayout()` so fixed-mode coordinates pass through untranslated at 765x503.

### Dynamic Viewport & Gameframe Switching
- `Game.java`:
  - Updated `applyWindowSize(int w, int h)` to dynamically select a `512x334` 3D viewport when `ClientSettings.isDesktopModern()` is false and a full-window `w x h` 3D viewport when `ClientSettings.isDesktopModern()` is true.
  - Set `needDrawFrameBorders = !ClientSettings.isDesktopModern()` and `welcomeScreenRaised = true` on resize so returning to 765x503 immediately redraws all 9 classic stone border image producers (`backLeftIP1..backVmidIP2_2`) and fixed UI panels.
  - Kept `updateViewportSize(int width, int height)`, `drawLogo()`, and `drawLoadingText()` gated on `!ClientSettings.ANDROID && ClientSettings.RESIZABLE` so viewport resizing and login tile caching remain active across all window sizes.
- `DesktopHooks.java`:
  - Updated `checkResize(Component comp)` to run whenever `ClientSettings.RESIZABLE` is enabled on desktop and compute `VIEWPORT_WIDTH` / `VIEWPORT_HEIGHT` as `512x334` at `765x503` or `w x h` when larger.

### AWT Event & Image Producer Routing
- `RSApplet.java`:
  - Registered the AWT `ComponentListener` and routed `createClientFrame`, `paint`, `handleResize`, `componentResized`, and `drawLoadingText` whenever `!ClientSettings.ANDROID && ClientSettings.RESIZABLE` is active.
  - Reset `touchTargetArea = 0` in the `else` branches of `mousePressed`, `mouseDragged`, and `mouseMoved` when `ClientSettings.isDesktopModern()` transitions to false so stale modern HUD hit targets never leak into classic fixed mode.
- `RSImageProducer.java`:
  - Updated `drawGraphics(int i, Graphics g, int k)` to cache login screen tiles via `DesktopHooks.updateLoginTile(...)` whenever `ClientSettings.RESIZABLE && !ClientSettings.ANDROID && !ModernLayout.inGame` is true, while only intercepting with scaled offscreen rendering and `ModernLayout.toWindow(...)` offsets when `ClientSettings.isDesktopModern()` is active.

* fix(combat): resolve autocast interface selection, weapon style sync, and pathfinding clipping

This commit addresses interface synchronization, autocasting state persistence, and authentic 2006 RS2 combat pathfinding and clipping across both player and NPC interactions. Interface 328 configuration bitmasks and style configs have been aligned with authentic Revision 377 cache behavior, ensuring single-style selection and proper style persistence across weapon swaps. Melee reach, projectile line-of-sight, and halberd distance mechanics have been corrected to strictly prevent attacks through solid masonry and low fences.

### Combat Infrastructure
- `Player.java`:
  - Reclassified halberds (`isUsingHally()`) as melee combat under `isMeleeCombat()` while keeping `isUsingProjectileCombat()` strictly for actual ranged and magic attacks.
  - Implemented centralized attack distance calculation supporting bows, darts, throwing knives, magic spells, halberds (distance 2), and standard melee (distance 1).
  - Added authentic `assignAutocast()` handling with interface 328 restoration, spell name text updates on child 352, and bitmask tracking.

### Autocasting & Combat Style Synchronization
- `PlayerAssistant.java` & `ItemAssistant.java`:
  - Enhanced `handleWeaponStyle()` to dynamically evaluate active autocasting versus physical staff attack modes (`0` Bash, `2` Focus-Block, `1` Pound).
  - Wired `handleWeaponStyle()` into `ItemAssistant.sendWeapon()` to ensure equipped styles are immediately highlighted when swapping between swords, bows, and staves.
  - Corrected autocast config 108 bitmask transmission: bit 0 controls active autocast red box (`1`), bit 1 controls spell name visibility (`2`), transmitting `3` when active, `2` when configured, and `0` when reset.
- `ClickingButtons.java`:
  - Dispatched `sendConfig(43, -1)` on autocast selection (buttons 1093/1094 and spell selection) to clear melee style highlights on interface 328, preventing simultaneous dual red box highlights.
  - Added interface cancel/close button handling for normal (1829/2004), ancient (1689/6161), and slayer staff (12050/12101) autocast menus.

### Pathfinding & Collision Clipping
- `Region.java`:
  - Refactored `getClipping(int x, int y, int height, int moveTypeX, int moveTypeY)` to delegate directly to `canMove(x, y, height, dir)` via `Misc.directionFromDelta()`, eliminating start-tile coordinate checks and off-by-one errors on diagonal steps.
  - Relaxed `canReachNpc()` distance-2 halberd checks to allow cardinal attacks across open space as well as projectile-penetrable low barriers (fences, railings, counters).
- `CombatAssistant.java`:
  - Integrated `Region.canReachNpcMelee()` for 1-tile melee and `Region.canReachNpc()` for halberds in `attackingPlayerTick()` and `attackPlayer()`, preventing PvP attacks through fences, closed doors, and walls.
  - Updated NPC melee reach checks in `attackingNpcTick()` and `attackNpc()` to support distance-2 reach when wielding halberds.
  - Updated `getRequiredDistance()` to return `CombatConstants.HALBERD_ATTACK_DISTANCE` when using halberds.
- `NpcData.java` & `NpcCombat.java`:
  - Updated `checkClip(Npc n)` so ranged and magic NPCs (`!melee`) verify `PathFinder.isProjectilePathClear(...)` before launching attacks.
  - Added line-of-sight verification to `multiAttackDamage()` and `multiAttackGfx()` to prevent area spells and dragonfire from penetrating solid obstacles.
- `PlayerAssistant.java`:
  - Enhanced `followPlayer()` so ranged and magic attackers halt upon entering attack distance with a clear projectile line of sight.
  - Updated `getFollowLocation()` so candidate melee tiles evaluate line-of-sight and reach against obstacles.
  - Updated `getFollowNpcLocation()` and `followNpc()` to allow valid 2-tile safe-spotting positions for halberd users.
- `NpcHandler.java`:
  - Updated `followPlayer()` so pursuing NPCs do not freeze when separated by barriers; ranged/magic NPCs require clear projectile paths to halt, while melee NPCs require valid melee reach.

### Bug Fixes & Edge Cases
- `AttackPlayer.java` & `ClickNPC.java`:
  - Unified follow distance initialization to use `player.getAttackDistance()`.
  - Replaced raw projectile checks for halberds with `Region.canReachNpc()` to prevent diagonal distance-2 halberd attacks against NPCs.
  - Handled frozen state attack resets when target cannot be reached behind obstacles.

### Cleanups & Deprecations
- `NpcHandler.java` & `NpcData.java`:
  - Consolidated redundant attack distance checks and removed duplicate hardcoded switch branches.
  - Deprecated legacy hardcoded distance conditionals in favor of unified `distanceRequired()` and `getAttackDistance()` lookups.

* feat(client): isolate modal openInterface into dedicated producer and expose dynamic bounds

This update decouples modal interfaces (Bank, Shop, Trade) from the main game scene rasterizer when running on mobile resizable layouts. By rasterizing modal interfaces into an independent off-screen buffer with transparent backgrounds, the client enables responsive floating positioning without viewport stretching or clipping. Exact interface dimensions are resolved dynamically through the interface cache to eliminate artificial padding and coordinate misalignments.

### Core Architecture & Producer Pipelines
- `src/main/java/Game.java`:
  - Implemented dedicated off-screen `openInterfaceProducer` (12 \times 334$) and pre-allocated line offsets `openInterfaceOffsets` for Android resizable rendering.
  - Initialized isolated drawing area before rasterizing `drawInterface()` and cleared pixels to zero (`DrawingArea.setAllPixelsToZero()`) to ensure transparent compositing over the 3D scene.
  - Added `getOpenInterfaceWidth()` and `getOpenInterfaceHeight()` helper methods querying `RSInterface.interfaceCache` to report true interface boundaries (88 \times 314$ for bank interfaces).
  - Normalized mouse input tracking and scrollbar hit-testing to top-left origin coordinates under mobile resizable configurations.

* fix(client): return canonical 512x334 bounds for modal viewport interfaces

Resolves an issue where query methods for open modal interface dimensions returned sub-container cache widths (e.g. 154x110) rather than the standard 512x334 viewport interface dimensions. In Revision 317, parent interface definitions in cache store sub-element sizes while modal interfaces are rasterized across the standard 512x334 drawing canvas. Returning canonical 512x334 dimensions ensures consumers correctly sample and crop the full interface surface.

### System Architecture & Viewport Dimensions
- `src/main/java/Game.java`:
  - Updated `getOpenInterfaceWidth()` and `getOpenInterfaceHeight()` to return canonical 12 \times 334$ dimensions for all modal viewport interfaces.
  - Eliminated erroneous sub-element `RSInterface.interfaceCache` width/height queries that caused partial rendering and severe viewport cropping.

* fix(client): preserve opaque black text drop shadows and primitive fills

Prevents intentional black text glyphs, text drop shadows, and drawing primitives from being erased as transparent background pixels on direct alpha composited viewports. Remaps zero color arguments (black) to 0x000001 so off-screen alpha producers distinguish drawn black pixels from unwritten transparent background pixels.

### Rasterization & Alpha Transparency
- `src/main/java/TextDrawingArea.java`:
  - Remapped `i1 == 0` in `method392` to `1` (`0x000001`) to ensure drop shadows (`_shadow` pass) and black text render as solid opaque pixels rather than transparent alpha cutouts.
  - Remapped `j1 == 0` in `method394` to `1` for identical shadow preservation across colored text drawing.
- `src/main/java/DrawingArea.java`:
  - Remapped zero color fills and horizontal/vertical drawing lines to `1` to prevent solid black geometric frames from punching transparent holes through modal interfaces.

* fix(client): revert DrawingArea zero-fill color remapping to restore sprite transparency

Reverts zero-color remapping in DrawingArea fillArea and line routines. ItemDef.getSprite initializes transparent 32x32 sprite rasters using DrawingArea.fillArea(32, 0, 0, 32, 0), where color 0 is required as the transparent keying value for sprite clipping. Reverting restores transparent item backgrounds across inventory and bank containers while TextDrawingArea retains opaque black drop shadow preservation for typography.

### Rasterization & Sprites
- `src/main/java/DrawingArea.java`:
  - Reverted `_color == 0` remapping in `fillArea`, `drawHorizontalLine`, and `drawVerticalLine` to restore authentic 0-keyed alpha transparency in dynamic sprite generation.

* feat(plugins): implement client plugin engine, ground items overlay, menu swapper, and script runtime

Implements an extensible client plugin and scripting architecture for 2006Scape, enabling modular overlays, menu modifications, and automation hooks while preserving vanilla 317 client timing and protocol integrity. Replaces the legacy hardcoded QoL options tab with an interactive tab and viewport modal interface for configuring built-in and externally loaded plugins. Integrates seamless cross-platform hooks to support runtime script interpretation, ground item tracking, and dynamic menu action rewrites.

### System Architecture
* `PluginManager.java`:
  * Central singleton managing plugin and script lifecycles (`init`, `onGameTick`, `onRenderOverlays`, `onPostBuildMenu`, `onMenuAction`, `onChatMessage`, `onGroundItemSpawn`, `onCommand`).
  * Implements event dispatching with isolated try-catch error boundaries and state persistence for user preferences.
* `ClientPlugin.java` & `ClientScript.java`:
  * Base lifecycle interfaces defining metadata (`getName`, `getDescription`, `getVersion`, `getAuthor`), configuration schemas, and activation states.
* `PluginContext.java` & `PluginGraphics.java`:
  * Encapsulates safe client interactions, viewport coordinate transforms, world-to-screen projections, and 317 `DrawingArea` rendering utilities.
* `ExternalPluginLoader.java` & `ScriptInterpreter.java`:
  * Facilitates loading external compiled plugins (.jar / .dex) and parsing custom automation scripts at runtime from user storage.

### Migrated Features
* `PluginPanelUI.java`:
  * Migrated legacy Tab 7 options into a modernized in-game plugin configuration hub and interactive modal UI.
  * Implemented clickable toggle buttons, category navigation, dynamic scrollable configuration panels, and modal dismiss handling.
* `Game.java` & `AndroidHooks.java`:
  * Integrated plugin dispatch triggers across game loop ticks, chat message reception, ground item registration, and action menu construction.
  * Added native dialog hooks and bridge methods to delegate plugin management to native Android or desktop modal UIs.

### New Features & Additions
* `GroundItemsOverlayPlugin.java`:
  * Renders world-projected labels and item quantity text for items on the ground with configurable price-tier coloring and despawn timers.
  * Automatically filters and highlights valuable drops based on configurable coin value thresholds.
* `MenuEntrySwapperPlugin.java`:
  * Rewrites contextual right-click option menus to swap default actions (e.g., Talk-to -> Bank/Trade, Shift-click drop).
  * Provides configurable entry prioritization based on opcode and menu index ordering.
* `ChickenFeatherFarmerScript.java`:
  * Example automated routine demonstrating state machine architecture for targeting NPCs, pathing, and collecting dropped items.

### Bug Fixes & Edge Cases
* `processMenuClick`:
  * Intercepts viewport modal click events to prevent unintended pathfinding or entity interaction clicks when interacting with open plugin menus.
* `onGroundItemSpawn`:
  * Validates coordinate bounds and height plane offsets to avoid out-of-bounds array access during region chunk transitions.

* fix(ui): show explicit on-off toggle states and clean up redundant qol buttons

Improves plugin configuration usability by adding explicit visual state rendering and click interactions for boolean and integer config items within the Plugin Hub modal. Cleans up the Tab 7 QoL panel by removing hardcoded buttons for Menu Entry Swapper and Feather Farmer, restoring the canonical client quality-of-life options while delegating plugin controls entirely to the modal hub.

### Core / System Architecture
* `PluginManager.java`:
  * Added `getConfigValue`, `getConfigBoolean`, `getConfigInt`, and `setConfigValue` accessor/mutator methods to query live config properties with default fallbacks.
  * Automatically serializes altered plugin and script configurations to `plugin_settings.properties` and triggers live `onConfigChanged` callbacks.

### UI & Visual Formatting
* `PluginPanelUI.java`:
  * Replaced ambiguous `"TOGGLE"` button labels with explicit colored states: `[ ON ]` with green fill (`0x1e6828`), green border (`0x3cd04f`), and emerald text (`0x50c878`), vs `[ OFF ]` with red fill (`0x6e2222`), red border (`0xd03c3c`), and coral text (`0xff7070`).
  * Added integer value indicators rendered between `[-]` and `[+]` stepper buttons in gold (`0xffd700`).
  * Added touch-forgiving click handling for the Config subtab in `handleModalClick`, allowing instant toggling of boolean settings and bounds-checked stepping of numeric values.

### Cleanups & Deprecations
* `drawTab7` & `handleTab7Click`:
  * Removed redundant persistent buttons for Menu Entry Swapper and Feather Farmer from the Tab 7 sidebar.
  * Restored standard QoL button stack below `PLUGIN HUB [Open Modal]`: Player Names, Item Drops Visible, Draw Distance, Exp Info, Debug Info, and Visual Fixes with 36px vertical stride.

* fix(combat): resolve npc attack opcode mapping and accurate chicken combat tracking

Fixes an issue where the Chicken Feather Farmer script became stuck in a stagnant "Fighting chicken" state while standing idle. Resolves the client NPC interaction action ID mapping to dispatch authentic packet 72 (`ATTACK_NPC`) rather than dialogue packet 155, and introduces precise target-matching logic to discern active combat from passive entity interactions.

### Core / System Architecture
* `PluginContext.java`:
  * `interactNpc`: Explicitly maps the `"Attack"` action to actionId `412` (the 317 client action ID sending packet 72 `ATTACK_NPC`) instead of fallback option index 0 which incorrectly sent packet 155 (`FIRST_CLICK` / `Talk-to`).
  * `getPlayerInteractingNpc`: Added helper to query the exact NPC instance `myPlayer` is currently interacting with via `interactingEntity` bounds validation.
  * `getNpcAttackingPlayer`: Added helper scanning `npcIndices` to detect any NPC currently targeting the player (`npc.interactingEntity == myPlayerIndex + 32768`).
  * `isPlayerInCombat`: Refactored to require an alive, combat-capable opponent (`combatLevel > 0`) or active incoming attacks, eliminating false combat flags caused by previous dialogue interactions (e.g. Fred the Farmer).
  * `NpcWrapper.isDead`: Added check for chicken death animation (`anim == 5389`) in addition to zero health points.

### Migrated Command Plugins
* `ChickenFeatherFarmerScript.java`:
  * Replaced generic `isPlayerInCombat()` / `isPlayerIdle()` check with specific chicken target verification: checks if the player is actively fighting a living chicken or being attacked by one before falling through to target scanning.
  * Automatically retaliates against attacking chickens and dispatches authentic attack interactions to the nearest idle chicken when not in combat.

* fix(combat): resolve NPC fence attack reach, multi-tile wandering clipping, and step-away desync

Enforces authentic 2006 RS2 melee clipping and entity positioning boundaries between players and NPCs across Revision 377 tile and object collision flags. Fixes a critical ray trace off-by-one bug in NPC combat line-of-sight that permitted melee attacks across fences and obstacles, and resolves multi-tile NPC wandering overlap and follow/step-away desynchronization.

### Core / System Architecture
- `Region.java`:
  - Updated `canReachNpcMelee(int playerX, int playerY, int height, int npcX, int npcY, int npcSize)` to perform bidirectional wall and fence collision validation.
  - Ensures both the player's tile (`playerX, playerY`) and the NPC's corresponding border tile (`npcX, playerY`, `npcMaxX, playerY`, etc.) are checked against directional wall bits (`0x8`, `0x80`, `0x2`, `0x20`), preventing attacks across one-sided or multi-sided boundary fences.
- `NpcData.java`:
  - Refactored `checkClip(Npc n)` to eliminate the broken Bresenham ray trace for melee attacks, which previously incremented coordinates to the destination tile before querying clipping flags.
  - Directly delegates melee reach checks to `Region.canReachNpcMelee()`, guaranteeing authentic path and fence blocking, and returns `false` immediately if the target is underneath the NPC (`inNpc`).
  - Preserves `PathFinder.isProjectilePathClear()` for ranged and magic combat, maintaining authentic safespots over low fences.

### Bug Fixes & Edge Cases
- `Npc.java`:
  - Rewrote `getNextWalkingDirection()` player and NPC collision detection from single-tile South-West corner comparison (`p.absX == nextX && p.absY == nextY`) to complete bounding-box footprint validation (`p.absX >= nextX && p.absX < nextX + mySize && p.absY >= nextY && p.absY < nextY + mySize`).
  - Completely prevents multi-tile NPCs (e.g. 2x2 Cows, Bears, 3x3 Demons) from randomly wandering onto and overlapping players.
- `NpcHandler.java`:
  - Made `stepAway()` and `followPlayer()` mutually exclusive during NPC retaliation processing: when `playerInside` is true, the NPC exclusively attempts to step away and cannot initiate attacks.
  - Replaced `getRandomAndHomeNPCWalking()` inside `followPlayer()` with `getNextNPCMovement()`, unifying collision-checked movement and eliminating duplicate coordinate increments and client-server direction desyncs.

* fix(feather-farmer): implement combat target locking and ground bone looting and burying

Resolved multi-target thrashing and missing bone prayer processing in the automated Chicken Feather Farmer script. The client engine now evaluates NPC interacting entity targets against the dynamic server-assigned player ID (unknownInt10) rather than the static local player array index constant, enabling accurate combat detection. Ground bones are now actively collected and sequentially buried within the coop radius while locking onto active combat targets until defeat.

### Script Combat Engine
- `ChickenFeatherFarmerScript.java`:
  - Added stateful target locking (`currentTargetNpcIndex`, `lastAttackTime`) preventing target swapping mid-combat.
  - Implemented `isEngagedWithTarget` to verify target vitality, proximity, and reciprocal interaction state before scanning for new enemies.
  - Prioritized active combat lock and retaliatory defense before ground looting to ensure engagements complete naturally.
  - Added ground bone looting for Item ID 526 ("Bones") and sequential inventory bone burying with 900ms cycle spacing.
  - Enhanced feather looting to bypass inventory full checks when stackable feathers are already in inventory.
  - Accurate chicken kill tracking upon target death detection rather than per-click dispatch.

### Plugin Context Infrastructure
- `PluginContext.java`:
  - Updated `NpcWrapper` to evaluate `isAttackingPlayer` and `isUnderAttackByOther` using `game.unknownInt10` and `game.myPlayerIndex`.
  - Added `getNpcByIndex(int index)` for direct entity inspection by index.
  - Fixed `getNpcAttackingPlayer()` and `findNearestAttackableNpc()` to properly recognise NPCs targeting the local player.
  - Extended death animation detection to cover both Chicken (5389) and Rooster (57) models.

* fix(spawns): adjust Farmer Groat chicken spawn out of stone wall boundary

Resolves an entity placement conflict where a Chicken (NPC 41) spawned directly inside the perimeter stone wall of Farmer Groat's chicken coop near Lumbridge. Revision 377 cache map data places an impassable stone wall (Object 1902) and wall buttress (Object 1838) at tile (3233, 3300), which blocked entity movement and melee attack pathing through the coop boundary. Relocating the spawn coordinates two tiles west inside the coop perimeter restores authentic movement wandering and melee attack reachability.

### Bug Fixes & Edge Cases
- `spawns.json`:
  - Adjusted Chicken spawn X coordinate from 3233 to 3231 at Y=3300 (height 0).
  - Cleared tile collision overlap with Revision 377 East stone wall (Object ID 1902, type 0, orientation 2) and corner buttress (Object ID 1838, type 5, orientation 2).
  - Resolved unreachable melee attack state ("I can't reach that.") caused by directional wall clipping flags (0x8 and 0x80) between pen interior and wall boundary.
  - Enabled proper 1-tile wandering radius within the pen interior bounds (X=3227..3232, Y=3296..3300).

* fix(combat): resolve NPC follow destination clipping and Fred chicken spawns

Resolves entity reachability failures and boundary clipping where Chicken (NPC 41) entities at Farmer Fred's farm wandered into the western stone wall (Object 979) at tile (3184, 3277) and players received "I can't reach that." errors during combat. Melee follow target selection in PlayerAssistant now verifies candidate tiles against solid object clipping flags and pathfinder accessibility, preventing the engine from attempting to path players onto impassable boundary wall or building tiles. Chicken spawn coordinates at Farmer Fred's pen are relocated inward from the boundary to keep wandering paths strictly within the pen interior.

### Combat & Pathfinding Infrastructure
- `PlayerAssistant.java`:
  - Updated `getFollowNpcLocation(Npc npc)` to filter out candidate attack tiles blocked by solid objects (`(getClipping(x, y, player.heightLevel) & 0x1280100) != 0`).
  - Added `PathFinder.accessible()` validation on candidate attack tiles, ensuring the selected destination is genuinely reachable from the player's current location before routing.
  - Prevents nearest-distance selection from picking impassable building or wall tiles (e.g. tile `(3184, 3276)`), eliminating erroneous "I can't reach that." combat lockouts.

### Bug Fixes & Edge Cases
- `spawns.json`:
  - Relocated duplicate chicken spawns at Farmer Fred's coop from `(3185, 3277)` to `(3186, 3277)` and `(3188, 3277)`.
  - Keeps the chickens' 1-tile wandering radius within `X = 3185..3189`, preventing entities from wandering onto the Revision 377 western stone wall line at `X = 3184`.

* fix(npcs): resolve asymmetric wandering bounds in random walking routine

Fixes a fundamental arithmetic and inequality defect in NpcHandler's random walking routine that skewed all 1-tile wandering NPCs into wandering up to two tiles South-West while completely preventing movement North and East. By correcting the proposed coordinate delta evaluation against the NPC's home spawn coordinates, entity wandering now adheres to authentic symmetric boundaries in all four directions.

### Core / System Architecture
- `NpcHandler.java`:
  - Fixed `MoveX == -1` boundary check from `absX - MoveX > makeX - 1` to `absX + MoveX >= makeX - 1`, eliminating double-negation that permitted NPCs to wander 2 tiles West of their home coordinate.
  - Fixed `MoveX == 1` boundary check from strict `<` to inclusive `<=` (`absX + MoveX <= makeX + 1`), restoring authentic Eastward wandering from spawn.
  - Symmetrically corrected `MoveY == -1` and `MoveY == 1` boundary checks, restoring authentic Northward wandering and restricting Southward movement to 1 tile.
  - Prevents pen-bound entities (e.g. Chickens at Farmer Fred's coop) from over-wandering their configured radius onto perimeter wall tiles.

* feat(plugins): implement RuneLite plugin and script hub, ground items, swapper, static IDs, and automation scripts

Introduces a high-performance, modular plugin and automation script framework for the Revision 377 client and Android platform. Implements full UI modals, config persistence, dynamic dex/jar loading, RuneLite-style overlays, static ID constants (ItemID, ObjectID, NpcID, SkillID), and tick-safe scripts for chicken feather farming and cow combat.

### Plugin & Script Infrastructure
- PluginManager.java, ClientPlugin.java, ClientScript.java
  * Core lifecycle management supporting enable/disable toggles, config change notifications, and background script tick processing.
  * Added external JAR/DEX loading capabilities through ExternalPluginLoader.java and Android SAF via PluginDocumentsProvider.java.
- PluginPanelUI.java
  * Complete interactive modal interface featuring tab switching ("Plugins", "Scripts", "Config"), scrolling viewport, toggle switches, and numeric stepper controls.
  * Adaptive orientation layouts for portrait and landscape mobile screens with non-overlapping descriptions and scroll bars.
- PluginContext.java & PluginGraphics.java
  * High-level client API exposing entity querying, spatial coordinate transforms, ground item manipulation, authentic menu injection, and hardware-accelerated overlay drawing.

### Built-in Plugins & Automation Scripts
- GroundItemsOverlayPlugin.java
  * RuneLite-style ground item labels, configurable price tiers (Low, Medium, High, Insane), tile collapsing, item highlights, and lootbeams.
  * Configurable label opacity and semi-transparent backgrounds with responsive touch menu actions.
- MenuEntrySwapperPlugin.java
  * Menu action prioritization for Bank, Pickpocket, Trade, and custom left-click overrides.
- ChickenFeatherFarmerScript.java & CowKillerScript.java
  * Tick-safe combat automation with target lock, retaliation, ground item looting (feathers, bones, cowhide, raw beef, raw chicken), and automatic bone burial for Prayer XP.
  * Smart gate and door approach navigation with state verification and cooldown prevention.

### Static ID & Game Definition APIs
- StaticItemList.java, StaticObjectList.java, StaticNpcList.java, SkillConstants.java
  * Ported 26,000+ server-side Revision 377 static ID constants directly into the client package.
- ItemID.java, ObjectID.java, NpcID.java, SkillID.java
  * Added RuneLite-compatible ID alias classes and skill identifier utilities eliminating magic numbers across all scripts.

### Bug Fixes & Edge Cases
- Gate Navigation & Prevention of Infinite Loops
  * Fixed PluginContext.interactObject action verification to prevent falling back to packet 502 ("Close") when "Open" is absent.
  * Added isOpenGateOrDoor to distinguish open gates (IDs 1552, 1556, 1560, 1561, 7051, 7052) from closed gates.
  * Reordered script loop priority so gate approach and opening precedes looting and combat targeting, eliminating fence path-blocking.
- Text & Stepper UI Overlaps
  * Resolved description truncation and button overlap across modal tabs and fixed numeric stepper value overflowing past increment buttons.

* fix(world): synchronize dynamic gate and door collision in region clipping

Implement bidirectional object collision manipulation in Region and synchronize dynamic gate and door state transitions to eliminate pathfinding desyncs. When wooden and metal gates or doors swing open or closed, directional wall and solid object collision flags are now updated accurately in the server's collision matrix to match client-side object transforms and prevent false unreachable path rejections during NPC combat.

### Core / System Architecture
- Region.java:
  - Implemented removeObject(int objectId, int x, int y, int height, int type, int direction) along with helper overloads accepting Objects and ID coordinates.
  - Implemented bitwise removeClipping and removeProjectileClipping routines (&= ~shift) mirroring addClipping to safely clear collision flags without wiping floor or tile metadata.
  - Implemented removeClippingForSolidObject, removeProjectileClippingForSolidObject, removeClippingForVariableObject, and removeProjectileClippingForVariableObject to accurately reverse collision flags across directional straight walls (type 0), diagonal walls (types 1 & 3), corner walls (type 2), and solid objects (types 9+).
  - Added object instance removal from realObjects list on object unregister.

### Bug Fixes & Edge Cases
- GateHandler.java:
  - Updated openSpecialGate, openSingleGate, and openMetalGateWalk to unclip closed gate objects in Region upon opening and dynamically add clipping for open gates.
  - Updated manual gate closing branches to remove open gate collision and restore closed gate collision.
  - Fixed "I can't reach that" false rejections in PlayerAssistant.followNpc() and PathFinder.accessible() when interacting across open cow pen and farm gates.
- ObjectManager.java:
  - Updated doubleGateTicks and singleGateTicks to dynamically remove open gate collision flags and restore closed gate collision flags in Region upon timer expiration.
- Doors.java & DoubleDoors.java:
  - Connected door opening and closing mechanics to Region.removeObject and Region.addObject to ensure single and double swinging doors maintain parity between visual placement and pathfinding collision.

* fix(pathfinding): resolve premature attack rejections, circular BFS buffers, and NPC wall leashing

Refactors RS2 pathfinding, projectile line of sight, and melee attack routing to authentic Revision 377 collision rules. Resolves premature 'I can't reach that' rejections across fences and gates by delegating inaccessible positions to follow route generation, and replaces LinkedList BFS queues with primitive circular buffers.

### Core / System Architecture
- `PathFinder.java`:
  - Replaced `LinkedList<Integer>` queues in `findRoute()` and `accessible()` with primitive `int[4096]` circular buffers using bitwise wrapping `(writePath + 1) & 4095`.
  - Converted BFS retrieval from O(N) pointer traversals to O(1) direct array index access, eliminating GC allocations during tile search.

### Bug Fixes & Edge Cases
- `ClickNPC.java`, `CombatAssistant.java`, and `PlayerAssistant.java`:
  - Removed premature rejection checks that aborted attacks on click when Chebyshev proximity was satisfied across an obstacle (e.g. pen fences and gates).
  - Maintained movement toward nearest accessible attack tile via `getFollowNpcLocation()`, only sending 'I can't reach that.' if no candidate attack tile is accessible.
- `PathFinder.java`:
  - Added early return when source and destination match to prevent division-by-zero (Double.NaN) in Bresenham delta calculations.
- `Npc.java` & `NpcHandler.java`:
  - Added `walkingHomeStuckTicks` counter to NPC state.
  - Implemented authentic RS2 leashing: if an NPC is blocked by walls/fences while walking home for 10 consecutive ticks, it teleports back to its original `(makeX, makeY)` spawn point and resets `walkingHome`.
- `PlayerAssistant.java`:
  - Pre-filtered follow candidate nodes by distance and clipping masks before invoking full BFS accessibility checks.
  - Enabled `moveNear = true` in `followPlayer()` so player following approaches adjacent reachable tiles when the target tile is blocked.

### Cleanups & Deprecations
- `PathFinder.java`:
  - Removed debug chatbox message `sendMessage("ERROR!")` when pathfinding to the player's current coordinate.

* fix(packets): add authentic pathfinding to item-on actions, ground pickup, and restore player movement clipping

Synchronizes packet interaction workflows with authentic Revision 377 movement and collision behavior. Item-on-object, item-on-npc, item-on-ground, and magic-on-object packets now route and follow until in interaction proximity rather than aborting prematurely, ground item pickups require standing directly on the item tile or line-of-contact across tables, and server-side player movement collision verification is restored in getNextWalkingDirection().

### Core / System Architecture
- `Player.java`:
  - Restored server-side step collision verification with `Region.canMove()` in `getNextWalkingDirection()`.
  - Position updates (`currentX`, `currentY`, `absX`, `absY`) are guarded so blocked steps immediately clear the walking queue without coordinate desynchronization.
- `ClickObject.java` & `ClickNPC.java`:
  - Exposed `onObjectReached()` and `handleNpcInteraction()` as static utilities for packet handlers.

### Bug Fixes & Edge Cases
- `ItemOnObject.java`:
  - Delegated item-on-object processing through `ClickObject.onObjectReached()`, enabling players to use items on furnaces, anvils, and ranges from a distance.
- `ItemOnNpc.java`:
  - Routed item-on-npc interactions through `ClickNPC.handleNpcInteraction()` so players approach NPCs (e.g. shearing sheep) before executing.
- `ItemOnPlayer.java` & `ItemOnGroundItem.java`:
  - Added approach cycle events that pathfind until line-of-contact is achieved before executing the item action.
- `PickupItem.java` & `Walking.java`:
  - Enforced exact tile positioning for ground items on traversable tiles, preventing pickup through fences and walls.
  - Enabled cardinal line-of-contact pickup for items situated on non-walkable objects (e.g. tables).
  - Cleared `player.walkingToItem` on walking packets to cancel stale pickup tasks.
- `MagicOnObject.java`:
  - Added approach routing and `PathFinder.isProjectilePathClear()` line-of-sight checks for spellcasting on world objects.

* feat(scripts): add collision reachability API, world-gated scripts, and gate-safe chicken/cow automation

Adds a collision-aware reachability and line-of-sight API to PluginContext, restricts automation scripts to World 1 while keeping plugins on both worlds, and fixes gate/door handling and "I can't reach that" loops in the Chicken Feather Farmer and Cow Killer scripts.

### Core Automation Architecture
* `PluginContext.java`:
  - Added directional collision masks and `getClipping`, `isTileWalkable`, and two-sided `canStep` validation (exit and entry wall flags, strict diagonal checks) backed by the client CollisionMap.
  - Added `canMeleeReach` mirroring server `Region.canReachNpcMelee` (cardinal adjacency for 1x1 NPCs, wall flags on both tiles).
  - Added `hasLineOfSight` raycasting (coordinates, NPCs, ground items) and bounded BFS `canReach` overloads for tiles, NPCs, ground items, and objects.
  - Added `randomDelay(minMs, maxMs)` producing bell-curve timing jitter.
  - Added `isAnyGateOpenNearby` and `isAnyGateOrDoorOpenNearby` using Revision 377 open gate IDs and "Close" actions.

### World Availability & Plugin Hub
* `PluginManager.java`:
  - Added `isScriptsAvailable()` (World 1 only); script lists, start, ticks, and event hooks are blocked on World 2, plugins remain active on both worlds.
  - `::scripts` redirects to the Plugins tab on World 2.
* `PluginPanelUI.java`:
  - Header and tab strip adapt per world (Plugins | Scripts | Config on World 1, Plugins | Config on World 2) and Scripts tab clicks redirect to Plugins on World 2.

### Script Intelligence
* `ChickenFeatherFarmerScript.java`:
  - Targets only "Gate" objects (house doors excluded) and never clicks a gate when any open gate is nearby, preventing open double gates from being toggled shut.
  - Opens gates only when the anchor or visible chickens are unreachable or lack line of sight.
  - Filters chickens and loot by `canReach` and `hasLineOfSight`; quick-loots feathers within one tile before retaliating.
  - Uses `randomDelay` for all loop delays.
* `CowKillerScript.java`:
  - Same gate guard, reachability, line-of-sight, quick-loot (cowhide), and humanized delay changes.

### Bug Fixes & Edge Cases
* Both scripts implement `onChatMessage` to drop the target lock when the server replies "I can't reach that.", preventing infinite attack retries through coop walls.

* Port Astraeus dialogue factory and migrate Al-Kharid guard

Add Astraeus's chainable dialogue factory alongside the legacy DialogueHandler, with player-owned dialogue state and packet/button routing. Preserve legacy dialogue behavior when no factory dialogue is active, and clear factory state when a dialogue ends.

Move the Al-Kharid border guard toll dialogue into the plugin system, including both toll choices, decline and insufficient-coins responses, and the completed Prince Ali path. Remove the obsolete button-action plugin and legacy handler cases.

Make guard first-click interactions require adjacent reach, and update Al-Kharid gate collision while open so the player can route through. Broadcast temporary gate object changes to nearby players and restore closed collision and visuals after crossing.

Compile the server and run git diff --check.

* Flatten plugin source directory layout

Move all plugin sources from plugins/plugin/<package> to plugins/<package>, removing the redundant directory level while leaving declared plugin.* packages and internal imports unchanged.

Update PluginService's path-to-class-name resolution to prepend the plugin package prefix for sources discovered beneath ./plugins. Keep recursive discovery working for nested Kotlin and Java plugins in the new layout.

Compile the server and run git diff --check.

* Extract NPC interaction routing service

Move shared NPC reach checks, route selection, and deferred interaction handling out of packet implementations into NpcInteraction. Delegate NPC option clicks and item-on-NPC actions to the shared service.

Replace stale queued walking commands and routes when an out-of-reach NPC is clicked so the interaction route survives player post-processing. Route Talk-to actions to an adjacent tile, including when the player starts inside the NPC footprint.

* fix(world): synchronize global object updates and replace per-player gate state with world-global tracking

Fix server-client desynchronization when crossing map regions around dynamic gates and replace legacy per-player gate state tracking with authentic 2006 RS2 world-global gate state. Previously, gates auto-closing while players were out of range left stale open-gate entries in `globalObjects`, causing returning players to see an open gate while server `Region` clipping blocked passage.

### World Object Synchronization
- `ObjectHandler.java`:
  - Moved `removeAllObjects(o)` and `globalObjects.add(o)` outside the 60-tile player broadcast loop in `placeObject(Objects)` so `globalObjects` always reflects world object state changes even when no player is nearby (such as gate auto-close ticks firing after a player leaves the region).
  - Updated `updateObjects(Player)` to filter against the player's loaded 104x104 map scene bounds (`0 <= localX, localY < 104`) instead of a 60-tile Euclidean radius, and send object spawns/removals via the 5-argument `PacketSender.object(...)` so objects in outer region corners are not skipped on region reload.

### Global Gate State & Timers
- `GateHandler.java`:
  - Replaced the per-player `gateStatus` field (`CLOSED`, `PARTIAL_OPEN`, `OPEN`) with a shared `ConcurrentHashMap` (`OPEN_GATES`) keyed by canonical gate coordinates `(x, y, height)` via `gateKey`, `isGateOpenAt`, `markGateOpen`, and `markGateClosed`.
  - Updated `openSingleGate`, `openSpecialGate`, and `openMetalGateWalk` to check global gate state (`isGateOpenAt` and `isOpenGate`) and cancel any active auto-close timer when a gate is closed manually.
- `ObjectManager.java`:
  - Refactored `singleGateTicks` and `doubleGateTicks` to bind their `CycleEvent` to the gate's global `timerOwner` object rather than an individual `Player`, checking `GateHandler.isGateOpenAt(...)` instead of `player.getGateHandler().gateStatus` or `player.disconnected` so world gates always close cleanly after their timer expires.

* fix(world): complete doubleGateTicks global gate state cleanup in ObjectManager

Stage the remaining hunk in `ObjectManager.doubleGateTicks` that was omitted in `de52bace`, resolving the compilation error where `player` was still referenced in `execute` and `stop`. This completes the transition of double-gate auto-close timers to world-global gate tracking without touching unrelated working-tree changes.

### Global Gate State & Timers
- `ObjectManager.java`:
  - Replaced `player.getGateHandler().gateStatus = player.getGateHandler().CLOSED` in `doubleGateTicks` with `GateHandler.markGateClosed(closedX1, closedY1, objectH)` and removed the stale `player` reference in `stop()`.

* feat(client): expand plugin/script API, SemVer, BFS pathing, and Al-Kharid banking

Expanded the client plugin and script engine across movement, banking/shops, combat/skilling primitives, lifecycle reliability, semantic versioning, and ScriptInterpreter parity while fixing Al-Kharid banking and toll-gate navigation in CowKillerScript.

### Core Infrastructure
- `PluginContext.java` & `PluginGraphics.java`:
  - Added run energy helpers (`isRunEnabled`, `setRunEnabled`, `ensureRunEnabled`), area/position helpers (`WorldArea`, `isInArea`, `isAt`), collision-aware BFS pathfinding (`findPath`, `walkToSmart`, `walkToSmartOrOpenDoors`), and multi-floor climbing (`climb`, `climbUp`, `climbDown`, `navigateToPlane`).
  - Added `Withdraw-X`/`Deposit-X` (`actionId 53` + packet `208`), `setWithdrawAsNote`, `depositAllExcept(String...)`, `selectDialogueOption(String)`, `getDialogueOptions`, and Shop/Make-X APIs (`buyItem`, `sellItem`, `makeCookingAmount`, `clickMakeOption`).
  - Added `useItemOnItem`, `useItemOnObject`, Equipment API (`getEquipment`, `isWearing`, `equipItem`, `unequipItem`), `setAttackStyle`, `toggleSpecialAttack`/`setSpecialAttack`, `Prayer` & `Spell` enums, `players()`/`PlayerQuery`, HP/food/emergency teleport helpers, and `drawPathOverlay`/`drawAreaOverlay`.
  - Fixed `canReach(SceneObjectWrapper)` adjacent-tile reachability and monotonic `walkPath` index tracking.
- `ClientScript.java`, `ClientPlugin.java`, `PluginManager.java`, `SemVer.java`, `ExternalPluginLoader.java`, `PluginPanelUI.java`, `ScriptInterpreter.java`:
  - Added `waitUntil`, stuck watchdog (`isStuck`, `resetWatchdog`), named timers (`markTimer`, `hasElapsed`), and `onLogin`/`onDisconnect`/`onPlayerDeath` hooks.
  - Added SemVer 2.0.0 parsing/constraint matching (`SemVer`), `@version`/`@minApi` metadata parsing, `API_VERSION = "2.0.0"` gating, version display in `PluginPanelUI`, load error reporting, varargs/enum reflection in `ScriptInterpreter`, and startup copying of `SampleTreeCutter.script`.

### Scripts & Bug Fixes
- `CowKillerScript.java` & `ChickenFeatherFarmerScript.java`:
  - Fixed Al-Kharid toll-gate dialogue handling, open main-road waypoints (`X = 3281`), `ItemID.COINS_995` retention/20gp top-up, `returnedToPastureGate` flag, and same-side Border Guard filtering.
  - Integrated `ensureRunEnabled`, `walkToSmart`/`walkToSmartOrOpenDoors`, `waitUntil`, `markTimer`/`hasElapsed`, `useSpecialAttack`, `onPlayerDeath`, and optional `showDebugOverlay`.

* feat(client): add online plugin repo, scrollable choice dropdown, F2P web walker, and script interpreter upgrades

Replaced the built-in automation scripts and sample resources with an online plugin/script repository client (`PluginRepoClient`), upgraded `ScriptInterpreter` to support full-featured `.script` files, and added `WorldWebWalker` + `ScriptLogger` for map-wide F2P pathing and action logging. Set the initial client plugin/script API baseline to `1.0.0` while preserving built-in QoL plugins (`MenuEntrySwapperPlugin`, `GroundItemsOverlayPlugin`).

### Online Plugin Repository & Hub UI
- `PluginRepoClient.java`: Added GitHub-backed repository client (`index.json` parser, SemVer install/update/uninstall status, and cache-busted `httpGet` with `no-cache` and `?t=` timestamp).
- `PluginPanelUI.java`: Replaced the config tab with the **Online Repo** tab (`Install` / `Update` / `Remove`), added `getVisibleConfigItems` for conditional `when:<key>` config visibility, and replaced the `< ... >` choice cycler with a 172px scrollable dropdown popup (`DROPDOWN_MAX_VISIBLE = 6`).
- `PluginConfigItem.java`: Added `visibleWhen` support (`setVisibleWhen` / `getVisibleWhen`).
- `ExternalPluginLoader.java`: Removed built-in sample script extraction and legacy sample cleanup.

### Script Interpreter, Commands & Logging
- `ScriptInterpreter.java`: Added `onConfigChanged` forwarding on `InterpretedPlugin`/`InterpretedScript`, `else if` chains, `while` loops (1,000-iteration safety cap), `+=`/`-=` compound assignments, integral arithmetic preservation, hex literals (`0x...`), `|min|max` and `|when:<key>` on `@config`, `// @command` metadata parsing, and static class/field/method access (`Math`, `System`, `RSColors`, `ItemID`, `SkillID`, `NpcID`, `ObjectID`, `PluginContext`).
- `ClientScript.java`: Added `getCommandNames()`, made `formatCompactNumber` and `clearWait` `public`, and wired `ScriptLogger` into lifecycle/status transitions.
- `PluginManager.java`: Set `API_VERSION = "1.0.0"`, removed built-in `ChickenFeatherFarmerScript` and `CowKillerScript` registrations and hardcoded `::feather`/`::cow` commands, and added dynamic script-defined `::` command dispatch gated by per-plugin/script `chatCommands` config.
- `MenuEntrySwapperPlugin.java` & `GroundItemsOverlayPlugin.java`: Added `chatCommands` toggle to config items.
- `ScriptLogger.java`: Added rotating file (`<cacheDir>/logs/scripts.log`, 1 MB cap) and `[ScriptLog]` stdout logging for script lifecycle, status changes, `walkTo`, and `menuAction`.

### Smart Pathing & World Web Walker
- `WorldWebWalker.java`: Added 59-node F2P overworld road/bridge graph (Lumbridge, Draynor, Port Sarim, Rimmington, Falador, Taverley, Barbarian Village, Edgeville, Varrock, and Al-Kharid via the free northern pass) with Dijkstra routing.
- `PluginContext.java`: Added `createArea`, `walkPathCoords`, partial BFS fallback (`findPath(..., allowPartial)` up to 55-tile radius / 9,500 iterations), expanded `canReach` (45-tile radius / 6,000 iterations), monotonic `activeWebRoute` tracking, committed-goal hysteresis, and `ScriptLogger` action hooks.

### Cleanups & Removals
- Removed `ChickenFeatherFarmerScript.java`, `CowKillerScript.java`, `SampleTreeCutter.script`, and `samples.txt` from the client bundle (migrated to `2006scape-plugins`).

* fix(combat): enforce cardinal-only melee, fix NPC corner-sticking, halberd reach, and PathFinder LoS

Align melee combat reach, multi-tile NPC following, halberd range, and projectile line-of-sight checks with authentic 2006 RS2 behavior. Removing the `npcSize > 1` diagonal corner melee bypass prevents large NPCs from fighting on corner tiles and visually clipping into players, while cardinal fallback pathing and symmetric Bresenham raycasting resolve stuck NPCs and steep-angle LoS inaccuracies.

### Melee Reach & Halberd Support
- `Region.java`:
  - Removed the `npcSize > 1` diagonal corner exceptions from `canReachNpcMelee(...)` so standard 1-tile melee is strictly cardinal-adjacent for all NPC sizes.
  - Added `canReachHalberd(...)` supporting 2-tile cardinal and diagonal halberd reach verified with `PathFinder.isProjectilePathClear(...)`, preserving strict 1-tile `canReachNpc` behavior for non-halberd interactions.
- `ClickNPC.java`, `PlayerAssistant.java`, `CombatAssistant.java`:
  - Removed `npcSize > 1` diagonal melee bypasses in melee range checks and `getFollowNpcLocation(...)`, routing players to cardinal edge tiles for standard melee.
  - Switched halberd reach checks to `Region.canReachHalberd(...)` and gated `attackPlayer(...)` `isProjectilePathClear(...)` on `player.isUsingProjectileCombat()`.

### NPC Movement & Overlap Escape
- `NpcHandler.java`:
  - Updated `followPlayer(...)` so 1-tile diagonal corner approaches and under-NPC escapes check `Region.canMove(...)` and fall back to the alternate cardinal axis when blocked, while farther diagonal approaches set both axes for `handleClipping(i)`.
- `Npc.java`:
  - Updated `getNextWalkingDirection()` to allow an NPC that is already overlapping a player (e.g. a `3x3`+ NPC with a player on its center tile) to step away instead of freezing in place, while still blocking any NPC from stepping onto non-overlapping players.

### Pathfinding & Line of Sight
- `PathFinder.java`:
  - Localized `destX` and `destY` in `findRoute(...)` before comparing against `player.getLocalX()` / `player.getLocalY()` so `!moveNear` same-tile early returns trigger accurately.
  - Added `0..103` bounds validation in `accessible(...)` to reject out-of-scene targets immediately without flooding the 104x104 grid.
  - Replaced the single-axis `isProjectilePathClear(...)` loop with a major-axis Bresenham/DDA raycast (`absDx >= absDy` vs `absDy > absDx`) so steep-slope LoS checks trace symmetrically.

* fix(npcs): initialize NPCDefinition before loading spawns so multi-tile NPCs retain their true size

Fix an initialization order bug in `NpcHandler()` where `loadSpawnList()` ran before `NPCDefinition.init()`, causing every spawned multi-tile NPC in the world to fall back to `size = 1`. Because `Npc.getSize()` cached that `1` permanently, multi-tile NPCs such as 2x2 Cows pathed and checked melee adjacency as 1x1 entities on the server while rendering as 2x2 on the client, clipping into players.

### NPC Initialization
- `NpcHandler.java`:
  - Moved `NPCDefinition.init()` ahead of `loadNPCList()` and `loadSpawnList()` in `NpcHandler()` so `new Npc(...)` resolves each NPC's true `size` from `npcDefinitions.json` at startup.

* perf(hd): optimize 117HD pipeline, add Hd117Plugin, and fix multi-plane depth/archway rendering

Optimizes CPU and GPU performance across the shared 117HD pipeline, converts 117HD into a configurable built-in client plugin, and resolves multi-story depth poke-through and open-air archway material artifacts. All changes are scoped to the 2006Scape Client with zero server modifications.

### Core Architecture & Performance
- WorldController.java:
  - Replaced O(R^3) concentric tile scan with an O(R^2) 4-edge ring perimeter walk via renderHdTileColumn.
  - Added horizontal cxCam frustum culling in isHdTileInFrustum to skip out-of-FOV tiles and models.
  - Tracked hdMaxPlane and HD117Pipeline.drawingPlane / drawingWall for multi-plane depth ordering.
- HdSceneUploader.java & Model.java:
  - Built static terrain into 4 GL_STATIC_DRAW buckets (0..3 by Ground.anInt1321) once per region load, eliminating per-frame terrain CPU work and VBO uploads.
  - Separated terrain, shadow-casting models/actors, and translucent geometry into distinct buffers.
  - Added an 8 MB hard-capped LRU Model geometry cache (MAX_CACHED_MODEL_FLOATS = 2000000) keyed by Model.hdCacheVersion and plane.
  - Removed per-tile WATER_NORMAL allocations and deduplicated shared-corner resolveGroundRgb lookups.

### Shaders, Rendering & Bug Fixes
- HD117Pipeline.java & DesktopHd117Renderer.java:
  - Switched shadow sampling from 9-tap manual PCF to 4-tap hardware sampler2DShadow PCF with GL_LINEAR and GL_COMPARE_REF_TO_TEXTURE, plus early-out for emissive and sun-backfacing fragments.
  - Added SCENE_FRAG_DIRECT for single-pass contrast tonemapping and BGRA swizzle without a post-process FBO.
  - Added plane-ordered depth bias (vPlane * 3.0) and SURF_WALL (4) in SCENE_VERT so ground-floor walls and lower-plane objects never poke through upper-plane floors.
- HdProceduralGenerator.java:
  - Replaced the roofNeighbors >= 2 indoor heuristic with isOpenAirPassThrough on plane 0 so open-air archways retain outdoor cobblestone instead of smooth indoor marble.

### New Plugin & Configurability
- Hd117Plugin.java, PluginManager.java, & Game.java:
  - Added built-in '117 HD' ClientPlugin with live configuration for Shadows, Shadow Resolution (512/1024/2048), Shadow Quality, Dynamic Lighting, Atmospheric Fog, Draw Distance, Ground Textures, Normal Mapping, HD Water Shader, Saturation, Brightness, and Contrast Tonemapping.

* feat(plugins): migrate Cook's Assistant, Dairy Cow, and Flour Mill to plugins with persistent plugin data

Migrate Cook's Assistant, Dairy Cow milking, and Flour Mill mechanics out of core Java handlers into modular Kotlin plugins backed by a namespaced per-player `PlayerPluginData` store. This decouples quest and world-object progression from hardcoded `Player` fields while preserving backwards-compatible character save migration and authentic 2006 RS2 behavior.

### Core Plugin Infrastructure
- `PlayerPluginData.java`, `Player.java`:
  - Added `PlayerPluginData` (`plugin-data.<plugin>.<key>`) on `Player` with typed getters/setters (`putString`, `putInt`, `putLong`, `putBoolean`, `getString`, `getInt`, `getLong`, `getBoolean`) and `KEY_PREFIX` validation.
- `PlayerLoadDataEvent.java`, `PlayerSaveDataEvent.java`, `PlayerSave.java`:
  - Added `PlayerLoadDataEvent` and `PlayerSaveDataEvent` hooks in `PlayerSave` to serialize/deserialize `plugin-data.*` entries and expose unmapped legacy keys (`legacyData`) for seamless quest migration.
- `PlayerObjectsLoadedEvent.java`, `ObjectManager.java`:
  - Dispatched `PlayerObjectsLoadedEvent` in `ObjectManager.loadCustomSpawns(Player)` so region-dependent plugin object spawns (such as a full flour bin) restore on login and region change.
- `QuestStatusEvent.java`, `QuestAssistant.java`, `DialogueFactory.java`:
  - Renamed `Quests.questStatus()` to `isImplemented()`, dispatched `QuestStatusEvent` in `QuestAssistant.sendStages(Player)`, and simplified `DialogueFactory.onNext()` to delegate directly to `execute()`.

### Migrated Quest & Object Plugins
- `plugins/quests/cooksassistant/` (`CooksAssistantNpcPlugin.kt`, `CooksAssistantJournalPlugin.kt`, `CooksAssistantQuestStatusPlugin.kt`, `CooksAssistantLoadDataPlugin.kt`):
  - Implemented Cook's Assistant dialogue, ingredient collection (`EGG`, `BUCKET_OF_MILK`, `POT_OF_FLOUR`), reward payout (`500` coins, `300` Cooking XP, `1` QP) with immediate `QuestAssistant.sendStages(player)` refresh, quest journal (`button 28165`), quest list color status (`string 7333`), and legacy `cookAss` save migration.
- `plugins/objects/dairycow/` (`DairyCowMilking.kt`, `DairyCowObjectPlugin.kt`, `DairyCowItemOnObjectPlugin.kt`):
  - Implemented dairy cow milking for both first-click and `BUCKET`-on-object interactions (returning `"Nothing interesting happens."` for other items), with a 7-tick `CycleEvent` and bucket re-validation before awarding `BUCKET_OF_MILK`.
- `plugins/objects/flourmill/` (`FlourMillActions.kt`, `FlourMillObjectPlugin.kt`, `FlourMillItemOnObjectPlugin.kt`, `FlourMillPluginState.kt`, `FlourMillRegionPlugin.kt`):
  - Implemented hopper grain loading (`GRAIN` up to `30`), hopper controls (`HOPPER_CONTROLS`) with `disconnected`/distance-guarded `CycleEvent`, `POT`-on-`FLOUR_BIN` and first-click flour collection, empty-bin (`1781`) message, and persistent `objects.flourmill` `grain`/`flour` state across logouts.

### Cleanups & Deprecations
- Removed legacy Java classes `CooksAssistant.java`, `MilkCow.java`, and `FlourMill.java`, along with their hardcoded fields (`cookAss`, `milking`, `flourAmount`, `grain`) in `Player.java` and switch cases in `QuestAssistant.java`, `QuestRewards.java`, `DialogueHandler.java`, `DialogueOptions.java`, `UseItem.java`, `NpcActions.java`, `ObjectsActions.java`, `PlayerSave.java`, and `ObjectManager.java`.

* feat(plugins): migrate combat style, autocast menu, spell select, and cancel buttons to plugins

Migrate all combat attack-style and autocast spell-selection button handling out of `ClickingButtons.java` and `Player.java` into modular Kotlin `ButtonActionEvent` plugins. This also adds support for the missing `7212` autocast cancel button and aligns autocast toggling, cancel preservation, and level/staff validation with authentic 2006 RS2 behavior.

### Migrated Combat & Autocast Plugins
- `plugins/buttons/combat/CombatStyleButtonsPlugin.kt`:
  - Mapped all weapon combat style buttons (`9125`–`48010`) to `fightMode` (`0`–`3`) via `STYLE_BY_BUTTON`, guarding on `player.isDead` and resetting active autocast when switching to a melee/ranged style.
- `plugins/buttons/combat/AutocastMenuButtonsPlugin.kt`:
  - Handled "Choose Spell" (`1097`) and "Attack with" (`1093`, `1094`) to open Modern (`1829`), Ancient (`1689` with Ancient staff `4675`), or Slayer (`12050` with Slayer's staff `4170`) spell selection, and toggle autocast between active (`config 108 = 3`) and paused (`config 108 = 2`, restoring `config 43 = fightMode`) when `autocastId >= 0`.
- `plugins/buttons/combat/AutocastSpellSelectPlugin.kt`:
  - Consolidated all autocast spell buttons across interfaces `1829`, `1689`, `12050`, and legacy `7038`–`47024` IDs, validating `player.isDead`, spellbook/staff requirements, and Magic level (`MagicData.MAGIC_SPELLS`) without requiring runes in inventory until cast.
- `plugins/buttons/combat/AutocastCancelButtonPlugin.kt`:
  - Handled autocast cancel buttons (`2004`, `6161`, `7212`, `12101`, `24017`) by refreshing the equipped weapon's combat tab (`sendWeapon`) and restoring `fightMode` highlight when not autocasting, preserving any previously selected autocast spell.

### Cleanups & Deprecations
- `ClickingButtons.java`, `Player.java`:
  - Removed hardcoded combat style switch cases, `1093`/`1094`/`1097` and `2004`–`24017` autocast handlers, and `isAutoButton`, `autocastIds`, and `assignAutocast` from `Player`.

* fix(combat): normalize poisoned arrow tiers/GFX and enforce authentic ranged/magic NPC combat distance

Fixes ammo recognition, bow-tier checks, and projectile/drawback graphics for poisoned arrow variants while aligning ranged and magic NPC combat pathing with authentic 2006 RS2 (Revision 377) mechanics. Players now stop cleanly at exact maximum attack range with clear line of sight instead of overshooting into melee range when running or attacking on cooldown.

### Poisoned Arrow Normalization
- `RangeData.java`:
  - Added `(p+)` (`5616`–`5621`) and `(p++)` / `(s)` (`5622`–`5627`) bronze through rune arrow IDs to `ARROWS`.
  - Added `getBaseArrowId(int)` to map `(p)`, `(p+)`, and `(p++)`/`(s)` variants back to their base arrow ID, and normalized `getRangeStartGFX` and `getRangeProjectileGFX` lookups.
  - Updated `correctBowAndArrows` for `MAGIC_LONGBOW` and `MAGIC_SHORTBOW` to return `RUNE_ARROW` (or `BROAD_ARROWS_4172` when equipped) so poisoned rune arrows pass bow-tier validation.
- `RangeMaxHit.java`:
  - Normalized the arrow ID in `getRangeStr(int)` via `RangeData.getBaseArrowId(int)` so poisoned arrows inherit their base arrow's ranged strength.
- `ClickNPC.java`, `AttackPlayer.java`, `CombatAssistant.java`:
  - Normalized `player.playerEquipment[player.playerArrows]` with `RangeData.getBaseArrowId(...)` in bow-arrow tier checks.

### Ranged & Magic NPC Combat Movement
- `ClickNPC.java`:
  - Set `player.followNpcId = player.npcIndex` immediately after validation in both `ATTACK_NPC` and `MAGE_NPC`, even when `player.attackTimer > 0`, preventing the client's walk-to-melee packet from continuing during attack cooldown.
  - Added `isInProjectileRangeWithLos(Player)` so `stopMovement()` on click only triggers when both within `getAttackDistance()` and with clear projectile line of sight (`PathFinder.isProjectilePathClear`).
- `Player.java`:
  - Updated `getNextWalkingDirection()` to stop walking (`resetWalkingQueue(); return -1;`) on any step where `npcIndex > 0` and projectile combat is already within `getAttackDistance()` with clear projectile line of sight, preventing running players (2 tiles/tick) from overshooting max range (e.g., 7/9 tiles for shortbows).
- `PlayerAssistant.java`, `CombatAssistant.java`:
  - Preserved `player.followNpcId` when stopping in range in `followNpc()`, `attackingNpcTick()`, and `attackNpc()` so players automatically re-follow NPCs that walk out of range or line of sight.

* feat(quests): add Druidic Ritual, Cook's range plugin, and native RS2 quest varp stages

Implement Druidic Ritual with authentic Taverley world interactions, convert
Cook's Assistant and the Lumbridge Cook's range to 2006 RS2 behaviour, and
refactor all 16 implemented quests to store and sync authentic RS2 varp
stage values natively with one-time character save migration.

### Druidic Ritual & Taverley World Fixes
- plugins/quests/druidicritual/DruidicRitualNpcPlugin.kt, DruidicRitualJournalPlugin.kt, DruidicRitualCauldronPlugin.kt, DruidicRitualQuestStatusPlugin.kt, DruidicRitualConstants.kt:
  - Implement full Druidic Ritual quest flow (Kaqemeex, Sanfew, Cauldron of Thunder, Herblore lesson dialogue, and 4 QP / 250 Herblore XP reward) using varp 80 (stages 0..4).
- plugins/quests/druidicritual/DruidicRitualPrisonDoorPlugin.kt:
  - Add Cauldron of Thunder prison door (2143/2144) handling with double-door swing animation and first-attempt level 19 Suit of armour (453) pedestal scenery swap/ambush, restoring scenery on death, timeout, or logout.
- data/cfg/spawns.json & src/.../Climbing.java:
  - Move Sanfew (454) upstairs to (2899, 3429, 1) and wire staircase 1738 at (2898, 3428) to climb upstairs.
- src/.../PlayerAssistant.java:
  - Remove the pre-quest level 3 / 175 Herblore XP grant on loginScreen().

### Cook's Assistant & Cook's Range Plugin
- plugins/quests/cooksassistant/CooksAssistantConstants.kt, CooksAssistantNpcPlugin.kt, CooksAssistantJournalPlugin.kt, CooksAssistantQuestStatusPlugin.kt, CooksAssistantLoadDataPlugin.kt:
  - Extract shared CooksAssistantConstants, add authentic 2006 RS2 Lumbridge ingredient directions, support one-by-one ingredient hand-in, and restore the 2006 reward (1 QP, 300 Cooking XP, Cook's range access).
- plugins/quests/cooksassistant/CooksRangePlugin.kt, ItemOnObject.java, Cooking.java:
  - Gate COOKING_RANGE (114) behind Cook's Assistant completion and apply the Lumbridge Cook's range reduced burn bonus.

### Native RS2 Quest Varp Refactor & Save Migration
- src/.../QuestAssistant.java, QuestRewards.java, DialogueHandler.java, NpcActions.java, ObjectsActions.java, NpcHandler.java, Barrows.java, ClickItem.java, ItemOnNpc.java, ItemAssistant.java, UseItem.java, CombatAssistant.java, PlayerAssistant.java, and quests/impl/*.java:
  - Refactor all implemented quests to use authentic RS2 varp stage values natively (varps 29, 31, 63, 67, 71, 80, 107, 122, 130, 144, 145, 147, 160, 178, 179, 180) and sync them via sendConfig.
- src/.../Player.java & PlayerSave.java:
  - Add questVarpVersion and migrateQuestStagesToVarp(player) to migrate pre-existing character saves once on load.

* feat(plugins): expose widget color and varps in PluginContext and refresh Plugin Hub index

Extend the external plugin API to support quest color/varp state detection
and ensure the Plugin Hub automatically refreshes stale repository indexes
without requiring a client restart.

### Plugin API Additions
- PluginContext.java:
  - Add getWidgetColor(int widgetId) to expose RSInterface.textColor for
    packet-122 colored quest entries.
  - Add getVarp(int varpId) to safely read game.variousSettings[varpId].

### Plugin Hub Repo Refresh
- PluginRepoClient.java:
  - Track lastFetchMs and re-fetch index.json in ensureLoaded() when more
    than 10 seconds have elapsed since the previous fetch.

* Added scrolling for scrollbars in client

# Conflicts:
#	2006Scape Client/src/main/java/Game.java

* Added comment for magic numbers

* Added some barrows fixes (#682)

- Set Ahrim the Blighted (2025) maxHit to 20 and Dharok the Wretched (2026) maxHit to 29 in npcDefinitions.json.
- Adjust Dharok spawn position at barrowsKillCount == 5 in Barrows.java to (c.getX()-1, c.getY()).
- Add named destination 'barrows' (3565, 3308, 0) to Teleport.kt.

* Fixed screenshots

DesktopHooks.takeScreenshot() cast the applet to Window, which threw a ClassCastException on every desktop screenshot. Capture the frame that contains the applet instead.

* Fixed client ignoring -dev and -ip server args

Game copies ClientSettings.SERVER_IP into Game.server in its constructor, which runs before ClientArgs.apply(), so the client always connected to the default server even though the title showed [Local].

* feat(commands): add extra named destinations and aliases to Teleport plugin

Expands the admin `::teleport` / `::tele` command plugin with additional common 2006 RS2 towns, minigames, and island destinations alongside alias resolution for both spellbook cities and custom named locations. Coordinates are sourced directly from existing server spawn and travel/teleport definitions.

### Command Infrastructure
- `plugins/commands/admin/Teleport.kt`:
  - Added 12 custom destinations to `NAMED_LOCATIONS` alongside `barrows` (`3565, 3308, 0`): `taverley` (`2896, 3428, 0`), `edgeville` (`3088, 3500, 0`), `al kharid` (`3293, 3174, 0`), `karamja` (`2911, 3152, 0`), `draynor` (`3103, 3249, 0`), `duel arena` (`3313, 3234, 0`), `castle wars` (`2441, 3090, 0`), `pest control` (`2659, 2676, 0`), `port sarim` (`3041, 3202, 0`), `rellekka` (`2620, 3686, 0`), `brimhaven` (`2772, 3234, 0`), and `entrana` (`2834, 3335, 0`).
  - Added `CITY_ALIASES` entries (`tav`, `taverly`, `edge`, `alkharid`, `duel`, `cw`, `castlewars`, `pc`, `pestcontrol`, `portsarim`, `sarim`, `relekka`) and resolved `CITY_ALIASES` prior to checking `NAMED_LOCATIONS` so aliases work uniformly across all destinations.
  - Updated `NAMED_LOCATIONS` teleport feedback to title-case multi-word destination names and updated `VALID_CITIES_MESSAGES` to list all supported destinations.

* feat(commands): migrate setlevel/level/skill command to developer plugin with skill name support

Moves the legacy `setlevel` / `level` / `skill` command out of `Commands.java` into a modular Kotlin developer command plugin (`DeveloperCommandEvent`) and adds skill name and abbreviation resolution alongside numeric skill IDs.

### Migrated Command Plugins
- `plugins/commands/developer/SetLevel.kt`:
  - Subscribes to `DeveloperCommandEvent` (`playerRights == 3`) for `setlevel`, `level`, and `skill`.
  - Supports numeric skill IDs (`0`–`20`) as well as full skill names and common abbreviations (e.g., `attack`/`att`/`atk`, `defence`/`defense`/`def`, `strength`/`str`, `hitpoints`/`hp`, `ranged`/`range`, `prayer`/`pray`, `magic`/`mage`, `woodcutting`/`wc`, `firemaking`/`fm`, `herblore`/`herb`, `runecrafting`/`runecraft`/`rc`), normalizing spaces, underscores, and hyphens.
  - Clamps target levels to `1..99`, updates skill XP/level via `PlayerAssistant.getXPForLevel` and `PlayerAssistant.getLevelForXP`, refreshes the skill, triggers `levelUp`, and sends a confirmation message.

### Cleanups & Deprecations
- `src/main/java/com/rs2/net/packets/impl/Commands.java`:
  - Removed the legacy `setlevel`, `level`, and `skill` switch cases from `adminCommands`.

* fix(quests): restore dark red journal titles and authentic Cook's Assistant completion text

Aligns the Cook's Assistant and Druidic Ritual quest journal scrolls (`interface 8134`) with authentic 2006 RS2 formatting. Restores the dark red (`@dre@`) quest title styling on line `8144` and updates the completed Cook's Assistant journal summary to list all quest rewards.

### Quest Journal Updates
- `plugins/quests/cooksassistant/CooksAssistantJournalPlugin.kt`:
  - Removed the per-stage overwrites of string `8144` so `@dre@Cook's Assistant` (dark red) persists across all stages.
  - Updated `STAGE_COMPLETE` text (`8147`–`8152`) to summarize helping the cook for the Duke of Lumbridge's birthday and list all rewards (`1 Quest Point`, `300 Cooking Experience`, `500 coins`, and access to the cook's range).
- `plugins/quests/druidicritual/DruidicRitualJournalPlugin.kt`:
  - Updated string `8144` to `@dre@Druidic Ritual` so the journal title renders in dark red.

* feat(plugins): split Online Repo into Plugins and Scripts sub-tabs

Separate external plugins and scripts into dedicated sub-tabs inside the
Plugin Hub Online Repo modal to match the local Plugins and Scripts tabs.

### Online Repo Sub-Tabs
- PluginPanelUI.java:
  - Add currentRepoSubTab state (0: Plugins, 1: Scripts) and
    getFilteredRepoEntries() filtering by entry.type.
  - Render Plugins and Scripts sub-tabs in the Online Repo header beside the
    Refresh button.
  - Update getContentHeight(), drawRepoList(), and handleModalClick() to
    use the active sub-tab's filtered list and reset scrollOffset on switch.

* feat(plugins): add passThroughDoors option to PluginContext.findPath

Allow visual pathfinders such as Quest Helper to route paths straight
through closed doors and gates without altering default script pathing.

### Pathfinding API
- PluginContext.java:
  - Add findPath(targetWorldX, targetWorldY, maxSearchRadius, allowPartial,
    passThroughDoors) overload while preserving default passThroughDoors=false
    on the 3-arg and 4-arg overloads.
  - Pre-scan local scene doors/gates with an Open action (excluding Pay-toll)
    and allow cardinal BFS transitions across those tiles when enabled.

* feat(client): add Plugin Hub search, Update All, SHA cache-busting, and ::hd plugin dispatch

Enhance the Plugin Hub UI, online repository client, command routing, and scene object interaction in the shared 2006Scape client.

### Core & Command Infrastructure
- `ClientPlugin.java` & `PluginManager.java`:
  - Added `handlesCommandsWhenDisabled()` (default `false`) so toggleable plugins can still receive chat commands when disabled.
  - Updated `PluginManager.onCommand(...)` to dispatch to plugins where `p.isEnabled() || p.handlesCommandsWhenDisabled()` while still respecting `isChatCommandsEnabled(p)`.
- `Hd117Plugin.java` & `Game.java`:
  - Moved `::hd` and `::117hd` out of `Game.java` into `Hd117Plugin.onCommand(...)` using `PluginManager.get().togglePlugin(this)`, keeping the Plugin Hub toggle, saved config, and `setHD117Enabled(...)` in sync.
- `Game.java`:
  - Intercepted `readChar(-796)` in `method73()` when `PluginPanelUI.isSearchFocused()` is `true` so keystrokes route to `PluginPanelUI.handleKeyChar(j)` instead of the chatbox.

### Plugin Hub UI & Online Repo
- `PluginPanelUI.java`:
  - Added search/filter bar (`searchQuery`, `searchFocused`, `isSearchFocused()`, `handleKeyChar(int ch)`, `drawSearchBar(...)`, `handleSearchBarClick(...)` with inline `"X"` clear button) across Plugins, Scripts, and Online Repo tabs.
  - Added `Update All` button, `Online Repo (N)` update count badge, `vOld -> vNew` version diff labels, and inline error banner.
- `PluginRepoClient.java`:
  - Centralized repository constants (`PLUGIN_REPO_SLUG`, `PLUGIN_REPO_BRANCH`, `PLUGIN_REPO_URL`, `PLUGIN_REPO_RAW_BASE`).
  - Added `resolveLatestMainSha()` (via `info/refs?service=git-upload-pack`) and `rewriteRawMainUrl(...)` to bypass Fastly CDN caching on `raw.githubusercontent.com` `/main/` URLs.

### Bug Fixes & Edge Cases
- `PluginContext.java`:
  - Updated `SceneObjectWrapper` to derive `localX`/`localY` (`worldX`/`worldY`) from the `uid` south-west anchor (`uid & 0x7f`, `(uid >> 7) & 0x7f`).
  - Deduplicated multi-tile objects by `uid` in `getSceneObjects(...)` and updated `interactObject(...)` to send the `uid` anchor coordinates to `invokeMenuAction(...)`.

* fix(woodcutting): prevent chopping trees that are already stumps

Validate the dynamic object manager state before starting or continuing a woodcutting action so players cannot chop a felled tree stump before it respawns.

### Bug Fixes & Edge Cases
- `Woodcutting.java`:
  - Added `GameEngine.objectManager.getObject(x, y, p.heightLevel)` check in `startWoodcutting(...)` to return early if the target tile currently holds `tree.getStump()` (or if `tree == null`).
  - Added the same stump check inside `WoodcuttingEvent.execute(...)` to stop the event if the tree was felled while chopping.

* fix(combat): reset autocastId when disabling autocast via combat menu button

Ensure clicking the autocast toggle button to disable magic completely clears autocast state so subsequent attacks use the selected melee combat style instead of re-enabling magic.

### Bug Fixes & Edge Cases
- `AutocastMenuButtonsPlugin.kt`:
  - Replaced manual `player.autocasting = false` + config `108 = 2` with `player.playerAssistant.resetAutocast()` (clearing `autocastId = -1`, `autocasting = false`, resetting config `108` to `0`, and restoring config `43` to `player.fightMode`).
  - Cleared `player.spellId = 0` and `player.usingMagic = false` to prevent lingering spell state on the next attack.

* fix(combat): set rangeItemUsed before triggering bow pullback GFX on NPC attacks

Ensure the bow pullback arrow graphic renders on the very first ranged attack against an NPC instead of reading an uninitialized `rangeItemUsed` value.

### Bug Fixes & Edge Cases
- `CombatAssistant.java`:
  - Moved `player.gfx100(RangeData.getRangeStartGFX(player));` in `attackNpc(...)` to after `player.rangeItemUsed` is assigned for crystal bows and regular arrows, matching `attackPlayer(...)`.

* fix(trade): allow trading stackable items into existing inventory stacks (#166)

Fix trade space validation on the first accept screen so stackable and noted items already present in the receiver's inventory do not require extra free slots, and align the status text with 2006 RS2.

### Bug Fixes & Edge Cases
- `ClickingButtons.java` (`case 13092`):
  - Count `requiredSlots` only for offered items that are not stackable/noted (`ItemDefinition.lookup(item.id).isStackable()`) or not already present in the receiver's inventory (`ot.getItemAssistant().playerHasItem(item.id)`).
  - Added `Integer.MAX_VALUE` stack-overflow check (`(long) ot.getItemAssistant().getItemAmount(item.id) + item.amount > Integer.MAX_VALUE`) before allowing stackable merges.
  - Updated trade interface `3431` messages to `"Other player doesn't have enough inventory space."` and `"You don't have enough inventory space."` and removed the custom chat messages.

* fix(objects): prevent ladder/trapdoor spam-click and Edgeville shed void teleports (#195)

Fix ladder and trapdoor climbing handlers so Edgeville shed trapdoor entries land cleanly inside Edgeville Dungeon and spam-clicking ladders or staircases cannot stack multiple teleports into the void.

### Bug Fixes & Edge Cases
- `ClimbOther.java`:
  - Fixed `useOther(...)` for the Edgeville shed trapdoor `(3097, 3468)` to teleport directly to `(3096, 9867)` instead of offsetting from `player.absX`/`player.absY + 6400`.
- `ObjectsActions.java`:
  - Added `break;` after matching `ClimbData` in `useOther(...)` so open trapdoors sharing ID `10698` are only handled once.
- `Climbing.java`:
  - Set `client.climbDelay` immediately when `handleClimbing(...)` is invoked (before scheduling the 1-tick `CycleEvent`) so multiple clicks in the same tick cannot queue duplicate climb events.
  - Added `client.absY < 6400` and `client.absY >= 6400` guards on `case 1733` and `case 1734`.
- `UseOther.java`:
  - Added `1200ms` `climbDelay` cooldown and `absY >= 6400` / `absY < 6400` direction guards to `useUp(...)` and `useDown(...)`.

* fix(doors): support Dark Warriors' Fortress double doors 14751/14752 (#292)

Fix Dark Warriors' Fortress entrance double doors at `(3021, 3632)` and `(3021, 3631)` so they open to `14753`/`14754` and close properly.

### Bug Fixes & Edge Cases
- `doubledoors.json`:
  - Replaced incorrect `1516`/`1519` IDs at `(3021, 3632, 0)` and `(3021, 3631, 0)` with the 377 cache IDs `14751` and `14752` (`face: 2`).
- `DoubleDoors.java`:
  - Imported `StaticObjectList.*` (`DOOR_14751`–`DOOR_14754`) and added `ADJACENT_PAIR_STEP`, `DEFAULT_PAIR_STEP`, `ADJACENT_OPEN_ID_STEP`, and `DEFAULT_OPEN_ID_STEP` constants.
  - Added `isAdjacentDoubleDoorId(...)` and `updateDoorId(...)` helpers so adjacent-ID double doors (`14751`/`14752` -> `14753`/`14754`) pair with `±1` offset and toggle with `±2` ID delta.

* fix(woodcutting): support chopping hollow trees for bark (#505)

Add hollow tree definitions to `Woodcutting.treeData` and fix `playerTrees(...)` so players can chop hollow trees (`2289` and `4060`) for bark (`3239`).

### Bug Fixes & Edge Cases
- `Woodcutting.java`:
  - Added `HOLLOW_SMALL` (`2289` -> stump `2310`) and `HOLLOW_LARGE` (`4060` -> stump `4061`) to `treeData` (level `45`, `83` XP, item `3239` Bark, `40` tick respawn, cut chance `8`).
  - Fixed `playerTrees(...)` swapped-index loop (`trees[i1][i]` capped at `6`) to check `treeData.getTree(tree) != null` and iterate all rows/elements of `trees`.

* fix(doors): pair 377 cache door IDs and register missing palace doors (#547)

Fix door ID toggling in `Doors.java`, register missing Al-Kharid Palace South and Varrock Palace doors in `doors.json`, and remove the legacy teleport workaround at Al-Kharid Palace South. All door IDs, faces, types, models, and recolors were validated against the Revision 377 cache (`loc.dat` and map region data) so doors toggle cleanly without changing appearance or becoming unclosable.

### Door Infrastructure
- `Doors.java` (`getToggledDoorId`):
  - Replaced naive `doorId + 1` / `doorId - 1` toggling with `getToggledDoorId(Doors d)` using `StaticObjectList.*` constants so non-adjacent 377 cache `Open` <-> `Close` pairs keep their exact model IDs and recolors.
  - Mapped `DOOR` (`3`) -> `DOOR_1531` (`1531`), `DOOR_59` (`59`) -> `DOOR_1534` (`1534`), and `DOOR_2556` (`2556`) -> `DOOR_1537` (`1537`), returning to `d.originalId` when closed.
  - Mapped `LARGE_DOOR_1508` (`1508`) <-> `LARGE_DOOR_1511` (`1511`) to avoid `null` object IDs `1509` and `1510`.
  - Mapped `LARGE_DOOR_1512` (`1512`) <-> `LARGE_DOOR_1515` (`1515`) and `LARGE_DOOR_1513` (`1513`) <-> `LARGE_DOOR_1514` (`1514`) based on matching 377 `loc.dat` models and recolors.

### Door Spawns & Cleanups
- `doors.json`:
  - Added Varrock Palace large door `(3223, 3491, 0)` (`id: 1512, face: 3, type: 0`).
  - Added Al-Kharid Palace South large doors `(3292, 3167, 0)` (`id: 1506, face: 3, type: 0`) and `(3293, 3167, 0)` (`id: 1508, face: 3, type: 0`).
- `ObjectsActions.java`:
  - Removed the `case 1506: case 1508:` `movePlayer` teleport hack at Al-Kharid Palace South (`y=3166`/`3167`) now that the doors open normally via `Doors.java`.

* feat(client,server): add WebSocket server support, 117HD chunked scenery, and TeaVM ScriptInterpreter compatibility

Updates shared 2006Scape Client rendering, plugin/script execution, and 2006Scape Server WebSocket transport to support the TeaVM Web client alongside Desktop and Android. Preserves Revision 377 protocol/cache behavior while fixing SD near-plane clipping and Web reflection edge cases.

### Shared Client Rendering & 117HD
- WorldController:
  - Bypassed Fixed-mode 512x334 frustum culling in Resizable mode and added per-triangle 3D near-plane clipping (NEAR_Z=48) with 64-bit backface cross-products.
- DesktopHd117Renderer, HD117Pipeline, HdSceneUploader:
  - Added 4x4 chunked static scenery VBO support and HD pipeline hooks.

### ScriptInterpreter & Plugin System
- ScriptInterpreter, PluginContext, PluginManager, PluginRepoClient:
  - Added direct dispatch for Math, System, String, List/Collection/Map, and Number/Boolean methods plus DesktopHooks.boxReflectValue wrapping for TeaVM.
  - Added public static PluginContext.hasAction, walkPath overlay updates, improved toggleSpecialAttack button matching, and UTF-8 localStorage-backed plugin config persistence.

### WebSocket Server Transport
- WebSocketFrameCodec, WebSocketJagGrabChannelInitializer, WebSocketServiceChannelInitializer, FileServer, Constants, docker-compose.yml:
  - Added WebSocket framing and service/JAGGRAB channel initializers for browser clients.
- ApolloHandler:
  - Filtered benign Linux Connection reset SocketException warnings in exceptionCaught.

* test(client): add JUnit 4.7 dependency and ScriptInterpreter unit tests

Adds JUnit 4.7 test support to the 2006Scape Client Maven build and introduces unit tests for ScriptInterpreter expression parsing, control flow, and execution.

### Test Infrastructure
- `2006Scape Client/pom.xml`:
  - Added `junit:junit:4.7` (`test` scope) dependency.
- `2006Scape Client/src/test/java/ScriptInterpreterTest.java`:
  - Added unit test suite covering `ScriptInterpreter` functionality (`3/3` tests passing via `mvn test`).

* refactor(client): rename 117HD pipeline, plugin, and renderer to 317HD

Renames all 117HD classes, settings, CLI flags, and renderer references in `2006Scape Client` to 317HD across the shared client and desktop rendering path.

### Core & Rendering Pipeline
- `HD317Pipeline.java`, `DesktopHd317Renderer.java`, `Hd317Plugin.java`:
  - Renamed from `HD117Pipeline.java`, `DesktopHd117Renderer.java`, and `Hd117Plugin.java` and updated all internal references.
- `ClientSettings.java`, `ClientArgs.java`, `Game.java`, `PluginManager.java`, `DesktopHooks.java`, `Model.java`, `WorldController.java`, `HdSceneUploader.java`, `HdProceduralGenerator.java`, `HdMaterial.java`, `HdGroundMaterial.java`:
  - Updated `HD_117` -> `HD_317`, `-117hd` -> `-317hd`, `setHD117Enabled`/`isHD117Enabled` -> `setHD317Enabled`/`isHD317Enabled`, and all plugin/UI/comment references to `317HD`.

* fix(317hd): render animated world objects (fires, torches) when static scenery is enabled

Fixes animated world objects (`Animable_Sub5` such as fires) disappearing in 317HD mode when static scenery VBOs are active across Desktop, Web, and Android clients.

### 317HD Rendering Pipeline
- `HD317Pipeline.java`:
  - Added `public static boolean drawingAnimatedObj` flag to distinguish non-`Model` animated `Animable` objects during per-frame rendering.
- `WorldController.java`:
  - Added `renderHdAnimable(...)` helper in `renderHdTile(...)` for `Object1`, `Object2`, `Object3`, and `Object5` draws, setting `HD317Pipeline.drawingAnimatedObj = !(animable instanceof Model)`.
- `HdSceneUploader.java`:
  - Updated `appendModel(...)` so `isStaticScenery` is `false` when `HD317Pipeline.drawingAnimatedObj` is `true`, ensuring animated objects skipped during static VBO baking are still uploaded and drawn each frame.

* fix(following): track previous tile and route non-combat following to enable follow dancing

Fixes non-combat player following so players trail behind moving targets and mutual follow dancing works authentically to 2006 RS2. Previously, `followPlayer()` always routed to the closest cardinal neighbor via `getFollowLocation()`, which caused two adjacent players following each other to pick their own current tiles and stand still.

### Player Movement & Following
- `Player.java`:
  - Added `prevX` and `prevY` fields to track each player's previous tile independently of `lastX`/`lastY` (which are used for random event returns and save fallbacks).
  - Updated `getNextWalkingDirection()` to record `prevX = absX; prevY = absY;` before each walking or running step.
  - Initialized `prevX` and `prevY` on login and teleport to `(absX, absY - 1)` when walkable via `Region.canMove`, falling back to `(absX, absY)` otherwise.
- `PlayerAssistant.java`:
  - Updated `followPlayer()` to route non-combat following (`playerIndex == 0`) to the target player's `(other.prevX, other.prevY)`, falling back to `getFollowLocation(otherX, otherY)` if the previous tile equals the target's current tile, is clipped, or is inaccessible.
  - Added an early `stopMovement()` return when already standing on `(targetX, targetY)` and reset following if the target changes `heightLevel`.
  - Preserved `getFollowLocation(otherX, otherY)` and range/line-of-sight checks for combat following (`playerIndex > 0`).

Closes 2006-Scape/2006Scape#582

* feat(npcs): add npcType-indexed NpcTickEvent and implement authentic Imp teleportation plugin

Introduces an `npcType`-indexed `NpcTickEvent` / `NpcTickSubscriber` dispatch pipeline for per-NPC tick plugins with zero allocation overhead on normal NPCs, and implements authentic 2006 RS2 Imp teleportation (`IMP` `708`, `IMP_709` `709`) as a Kotlin plugin. Also adds NPC teleport synchronization in `PlayerHandler` so multi-tile NPC teleports update cleanly on the client.

### Core Event & NPC Infrastructure
- `NpcTickEvent.java`, `NpcTickSubscriber.java`, `EventProvider.java`, `UniversalEventProvider.java`, `Player.java`:
  - Added `NpcTickEvent` (exposing `index`, `npc`, `cancelTick()`, and `isTickCancelled()`) and `NpcTickSubscriber` (`npcTypes()`).
  - Indexed `NpcTickSubscriber` plugins by `npcType` in `UniversalEventProvider.npcTickSubscribers`; `postNpcTick(int, Npc)` performs an O(1) lookup and returns `false` immediately without event allocation when no subscribers match.
- `NpcHandler.java`:
  - Dispatched `Player.postNpcTick(i, npcs[i])` inside `process()`, skipping retaliation and random-walk on that tick if `cancelTick()` is called.
- `Npc.java`, `PlayerHandler.java`:
  - Added `Npc.teleported` (cleared in `clearUpdateFlags()`) and updated `PlayerHandler.updateNPC` to remove and re-add teleported NPCs via `addNewNPC` so clients receive new coordinates and arrival graphics immediately.

### New NPC Plugins
- `plugins/npc/imp/ImpTeleportPlugin.kt`:
  - Subscribes to `NpcTickEvent` for `IMP` (`708`) and `IMP_709` (`709`).
  - Triggers a `1 in 10` teleport chance on non-lethal combat hits (`lastDamageTaken` edge detection while `HP > 0`, not dead, and not frozen).
  - Runs a per-Imp idle timer (`70` ticks on spawn, `50`–`200` ticks thereafter) with a `1 in 2` teleport chance when out of combat for more than `8` ticks (`4800ms`).
  - Selects a reachable, unclipped tile within `±20` tiles via `Region.getClipping` and `PathFinder.accessible`, plays smoke-puff graphics (`86`) on departure (`stillGfx`) and arrival (`gfx0`), resets NPC combat state and attacker targeting, and cancels the rest of that tick.

Closes 2006-Scape/2006Scape#591

* fix(client): fix web walker routing, door reachability, and special attack detection

Fix overworld road-graph edges in `WorldWebWalker.java` against Revision 377 map clipping, improve `PluginContext.java` pathing and closed-gate reachability, eliminate duplicate `walkTo` spam while moving, and fix special attack energy/active detection and button toggling for `2006Scape Server`.

### Web Walker & Overworld Routing
- `WorldWebWalker.java`:
  - Removed fence-crossing edges `{37, 38}` and `{35, 53}`, replacing them with `{37, 53}` so Al-Kharid routes around the north of the fenced field (`38 <-> 59 <-> 53 <-> 37`).
  - Removed river-crossing edges `{24, 55}`, `{27, 31}`, and `{30, 31}` where no 2006 RS2 bridge exists; moved node `31` (`Lumbridge Chicken Coop Outside`) to `{3238, 3288}` and connected `{34, 31}` so west-bank routes cross Lumbridge Bridge.
  - Added North Varrock Palace bypass nodes `56` (`{3162, 3470}`), `60` (`{3186, 3496}`), `61` (`{3215, 3508}`), `62` (`{3244, 3503}`), `63` (`{3243, 3473}`), and `64` (`{3246, 3443}`) connecting `55 <-> 56 <-> 60..64 <-> 50` (`Varrock East Bank`).
  - Widened `findRoute` reachable start-node search from `40` to `50` tiles (`canReach(..., 52, false)`).

### Pathfinding, Door Reachability & Walk Hysteresis
- `PluginContext.java`:
  - Widened `canReach` radius cap from `45` to `52` (full `104x104` scene) and scaled BFS iteration caps (`canReach` to `Math.max(6000, (rad * 2 + 1) * (rad * 2 + 1))`, `findPath` to `104 * 104`).
  - Added `isTollGate` (`"pay-toll"` substring match) so `"Pay-toll(10gp)"` gates are excluded from free `passThroughDoors` pathing and `openNearestClosedDoor`.
  - Added `isDoorReachable` so `openNearestClosedDoor` checks orthogonal neighbors instead of failing `canMeleeReach` across closed wall/gate clipping flags.
  - Updated `walkToSmartInternal` to invoke `WorldWebWalker` whenever `findPath(targetWorldX, targetWorldY, 50, false, openDoors).isEmpty()` (even at `dist <= 16` across fences/rivers), pass `openDoors` to local partial `findPath`, guard the `<= 16` partial fallback with `canReach`, and skip duplicate `walkTo` calls while `isPlayerMoving()` is making progress toward the same committed goal.

### Special Attack Detection & Toggling
- `PluginContext.java`:
  - Added `collectWidgetsByType` and `findSpecialBarTextWidget` to read filled segment widths (`anInt263 != 0` on `barId - 1 .. barId - 10`) in `getSpecialEnergy()` and `@yel@` text state in `isSpecialAttackActive()` when configs `300`/`301` are not sent by `2006Scape Server`.
  - Fixed `toggleSpecialAttack()` to check known special button IDs first (including `12311` for Abyssal whip instead of container `12323`) and exclude `type == 4` text labels from clickable button fallback.

* chore(client): update plugin repository slug to 2006-Scape/Client-Extensions

Point `PluginRepoClient` at the `2006-Scape/Client-Extensions` repository for downloading external plugins and scripts.

### Client Changes
- `PluginRepoClient.java`:
  - Updated `PLUGIN_REPO_SLUG` from `"Dark98/2006scape-plugins"` to `"2006-Scape/Client-Extensions"`.

* Fix remapped quest journal stages

Resolve duplicate stage conditions in the Pirate's Treasure and The Knight's Sword journals after quest stages were remapped. Use Hector's key to distinguish the two Pirate's Treasure objectives sharing stage 2, and place the chest and Falador objectives on separate journal lines. Remove the stale Knight's Sword stage 4 and stage 8 entries, show the sword return objective at stage 6 when the player has the blurite sword, and leave quest progression unchanged.

---------

Co-authored-by: ipkpjersi <ipkpjersi@gmail.com>
2026-12-01 03:21:56 +00:00
ipkpjersi 73732d3adf Fixed typo in comment (#671)
* Fixed typo in comment
2026-11-15 19:31:39 +00:00
Dark98 67147ef466 feat(commands): migrate item, npc, spellbook, and tele to plugins and add item/npc search
Migrate legacy hardcoded administrative and utility commands from Commands.java
to modular Kotlin event subscriber plugins, introduce dedicated item and NPC search
commands, and establish a permission-tiered command event hierarchy bounded by
Revision 377 cache specifications.

### Command Infrastructure
- CommandEvent.java:
  - Remove final modifier to allow permission-specific command event inheritance.
- ModeratorCommandEvent.java, AdminCommandEvent.java, DeveloperCommandEvent.java:
  - Add strongly typed event classes matching player permission tiers:
    Moderator (rights >= 1), Admin (rights >= 2), and Developer (rights == 3).
- Commands.java:
  - Dispatch permission-tiered command events across the event bus alongside switch handling.
  - Remove legacy switch implementations for ::item, ::npc, ::spellbook, and ::tele.

### Migrated Command Plugins
- SpawnItem.kt (::spawnitem, ::item):
  - Support both numeric IDs and fuzzy name resolution (exact, prefix, and substring).
  - Add quantity shorthand parsing for thousand (k), million (m), and billion (b) multipliers.
  - Support positional 'note' and 'noted' flags at the start or end of arguments; deprecate 'cert'.
  - Restrict valid IDs to Revision 377 cache bounds (0..7955).
  - Guard confirmation message against full inventory state when addItem() returns false.
- SpawnNpc.kt (::spawnnpc, ::npc):
  - Support both numeric IDs and fuzzy name resolution.
  - Validate against Revision 377 NPC ID range (0..3851), enabling ID 0 (Hans) spawning.
  - Calculate authentic combat, hitpoints, attack, and defence values with definitions fallback.
- Spellbook.kt (::spellbook):
  - Toggle between modern and ancient spellbooks when executed without arguments.
  - Support explicit 'modern'/'normal' and 'ancient'/'ancients' subcommands.
  - Cleanly reset autocast state via player.playerAssistant.resetAutocast().
- Teleport.kt (::teleport, ::tele):
  - Support coordinate teleportation with comma-tolerant token parsing (e.g. ::teleport 3222, 3218 0).
  - Add standard destination nicknames: lumby, fally, cammy, ardy, ape, and apeatoll.
  - Trigger authentic spell animations (modern 714/715, ancient 1979), graphics (308/392), and teleport sound effects.

### New Search Commands
- SearchItem.kt (::searchitem, ::itemsearch):
  - Search items by name or ID and render results on scrollable interface 8134.
  - Optimize interface clear range (8146..8195) to preserve title and subtitle lines without redundant packets.
  - Format output consistently in @bla@ with @dre@ noted tags and @blu@ ID labels.
  - Cap query scan at Revision 377 MAX_ITEM_ID (7955).
- SearchNpc.kt (::searchnpc, ::npcsearch):
  - Search NPCs by name or ID with scrollable interface 8134 display.
  - Format output in @bla@ with @yel@ combat levels and @blu@ ID labels.
  - Cap query scan at Revision 377 MAX_NPC_ID (3851).
2026-11-15 19:29:42 +00:00
Dark98 e4c6fb3ed8 Refactor GlobalDropsHandler: improve drop handling and remove unnecessary spawnedDrops set 2026-11-15 02:37:29 +00:00
Dark98 9b873cdac4 Update Discord integration to only set activity on world 1 2026-11-15 02:25:45 +00:00
Dark98 741a88cb19 Add RSA configuration parameters to ConfigLoader 2026-11-15 02:14:04 +00:00
Dark98 2bacdcc0f7 Refactor plugin loading: improve error handling and adjust debug logging 2026-11-15 00:44:05 +00:00
Dark98 8919731c63 Add Drops command plugin
credits to @ipkpjersi
2026-11-13 23:34:58 +00:00
Dark98 0790eaf4a3 Remove EverythingRS API integration and related dependencies 2026-11-13 01:19:45 +00:00
Dark98 e1efbb0fdf Website Integration Rewrite, Upgrades & Plugin Migration
- Remove synchronous website integration execution from the GameEngine 600ms tick loop
- Decouple website credentials and toggles from ConfigLoader, secrets.json, and Constants.WEBSITE_INTEGRATION
- Introduce modular "website" configuration group with independent toggles for players_online and registered_accounts
- Consolidate background tasks onto a single daemon ScheduledExecutorService with graceful lifecycle management via ServerStartupEvent and ServerShutdownEvent
- Optimize character directory counting with Java NIO streaming to prevent heap allocations
- Add UTF-8 URL encoding, User-Agent headers, safe stream handling, and network exception throttling
2026-11-13 01:12:15 +00:00
Dark98 622b3264e1 Add log4j configuration 2026-11-13 00:23:52 +00:00
Dark98 84c80a8960 ConfigLoader: cleanup settings loading and improve file reading 2026-11-13 00:23:18 +00:00
Dark98 d624ce0ca9 ConfigLoader: streamline configuration loading, improve error handling and remove fallback flat json handling 2026-11-13 00:07:19 +00:00
Dark98 58f8d7da53 ConfigLoader: use try for BufferedReader and BufferedWriter 2026-11-13 00:03:40 +00:00
Dark98 fbc3595da1 Discord Bot Rewrite, Upgrades & Plugin Migration
- Replace deprecated Core Javacord implementation with a modern JDA 5.x Kotlin plugin
- Introduce event-driven architecture via ServerConfigEvent, ServerStartupEvent, ServerShutdownEvent, and CommandEvent
- Implemented global event posting functionality in Player class.
- Refactored PluginService to handle potential ClassNotFoundException more gracefully.
- Improved CustomPrintStream to better identify the caller context in log messages.
- Refactor server configuration into modular groups ("core" and "discord") with backward compatibility for legacy flat keys
2026-11-12 23:56:07 +00:00
Dark98 87fece4854 Enhance socket management and improve android support
- Added proper socket closure and nullification in OnDemandFetcher to prevent resource leaks.
- Introduced touch target areas in RSApplet to streamline touch interactions.
- Made fullGameScreen public in RSApplet for external access.
- Implemented a master screen buffer and a locking mechanism in RSImageProducer for better synchronization.
- Reduced initial sleep duration in Signlink and added a close method for better resource management.
- Increased texture array sizes in Texture for improved rendering capabilities.
- Modified WorldController to optimize rendering logic based on platform (Android) and enhance performance.
2026-11-10 20:34:25 +00:00
Dark98 9570a35bae Rewrite Al-Kharid gate interactions and border guard dialogues closes (#661)
- Updated NpcFirstClickEvent to include npcIndex for better handling of NPC interactions.
- Enhanced Npc and NpcHandler classes to support new interaction logic and ensure NPCs face players correctly.
- Refined packet handling for NPC clicks and button actions to integrate new dialogue and interaction flows.
2026-11-10 02:52:33 +00:00
Dark98 099f2b6826 Set ServerConfig.json in runServer.sh by default 2026-11-08 19:37:05 +00:00
Dark98 8897c72bc5 Disable Android Client build flag and remove debugging comment 2026-11-08 19:33:17 +00:00
Dark98 729eb4237c Improve multi-tile NPC pathing, combat reach, and collision closes (#658)
- Implement O(1) AABB Chebyshev distance calculations in NpcData.goodDistanceNpc and inNpc.
- Enforce authentic 2006 RS2 1-tile melee rules: require cardinal alignment for 1x1 entities while permitting corner melee reach for multi-tile NPCs.
- Add multi-tile leading edge obstacle collision handling in NpcHandler.handleClipping.
- Prevent attacking from underneath NPC body and properly direct NPC step-off away from player.
- Clamp projectile LOS raycast checks to nearest perimeter tile on NPC bounding box.
- Update TzTok-Jad melee stance detection to use multi-tile perimeter reach.
- Update ClickNPC and PlayerAssistant to respect multi-tile bounds for interactions and following.
2026-11-08 00:48:08 +00:00
Dark98 ef9f8132e7 Fix dueling NPE in AttackPlayer and add bounds check in ChallengePlayer (closes #639) 2026-11-04 00:46:03 +00:00
Dark98 63fcbf29a5 Bump setup-java to v5 in maven workflow 2026-11-04 00:39:11 +00:00
Dark98 d02984e99e Do not recurse private submodules during Maven CI checkout 2026-11-04 00:38:07 +00:00
Dark98 758e2688f8 Update GitHub Actions workflow to use actions/upload-artifact@v4 and setup-java@v4 2026-11-04 00:36:59 +00:00
Dark98 fb2bc30305 Add Android client compatibility hooks and 2006Scape-Android submodule 2026-11-04 00:28:18 +00:00
ipkpjersi 7f1dc47c98 Fixed drawing plane higher than 0 (#662) 2024-12-28 13:56:17 +00:00
ipkpjersi 45b85d728f Updated login server error message (#663) 2024-12-28 13:55:03 +00:00
ipkpjersi d2fe8b0769 Refactoring follow player/NPC variables and NPC magic numbers (#659)
* Refactoring follow player/NPC variables

* Magic number refactoring

* Added more NPC refactoring

* More NPC refactoring

* More refactoring and removed GWD NPCs

GWD was added in 2007, not 2006, so there's absolutely no reason why this code should exist in the server.

* Removed more GWD NPCs

* Refactored remaining NPC IDs
2024-12-06 15:43:34 +00:00
ipkpjersi 20ccc2399a Added HQ logo (#651)
Pazaz sent me the cache with the updated HQ logo for the login screen so it no longer has artifacts/a pink pixel, I'm creating a new branch with this even though I don't know if this is the right location for the cache, oh well. I think this also contains missing models/midis.
2024-09-21 22:30:06 +01:00
ipkpjersi af522dbe1b Added custom print stream logging (#645)
* Added custom print stream

* Fixed custom print stream stack trace detection

* Implement custom print stream

* Fixed formatting

* Fixed custom info print stream

* Improved custom PrintStream
2024-09-21 18:45:17 +01:00
ipkpjersi db696431e6 Added cycle logging (#646)
* Added cycle logging

* Use properties for cycle logging

We may not want it since it can be kinda spammy, so we can toggle this feature. We probably want it though.

* Improved cycle logging
2024-09-21 18:36:45 +01:00
ipkpjersi 43775016ba Added uptime command and utility functions (#648)
* Added uptime command and utility functions

* Don't use NumberFormat it's slower
2024-09-21 04:22:26 +01:00
ipkpjersi 4fe3f446a4 Fixed stuck command and added home teleport command (#647)
With my custom print stream PR, this will also automatically log the player stuck command usage to a log file.
2024-09-21 04:20:51 +01:00
ipkpjersi 0120892521 Added automatic screenshots (#657)
* Added automatic screenshots

This branch is based off of the screenshots branch, but it will also require the develop branch to be merged first to not cause a git conflict with adding more QoL options to ClientSettings.java, so we'll want to pull the develop branch onto this branch eventually (or, I suppose, the master branch after it's merged).

In other words, we can add 2 new QoL settings to ClientSettings at a later time (after my develop branch fixes/improvements PR is merged).

* Fixed params for auto screenshots

* Added auto screenshots toggle

* Fixed auto screenshots var typo
2024-09-21 04:14:45 +01:00
ipkpjersi e404eadb3b Added NPC kill counts with message display (#644)
* Added kill counts with message display

* Fixed barrows chest count

* Preserve insertion order of NPC IDs for Constants

* Added KC command and interfaces

* Added more robustness to KC command

* Added alias and documentation to new commands

* Added more aliases for new commands

* Merged slayer KC interface names

* Preserve slayerkc nameToKills insertion order and formatting fix

* Updated comment

* Added missing boss NPC id

* Moved giant mole up in set

* Emptied out quest interface properly for kc

* Fixed whitespace

* Fixed formatting

* Hide boss KC messages by default
2024-09-21 02:40:58 +01:00
ipkpjersi fd731242dd Added Screenshots (#656)
* Added ability to take screenshots

Since we have a screenshots folder in the 2006Scape folder in the home path, we might as well make use of it.

* Removed duplicate screenshot warning message

We don't need a warning message for duplicate screenshots, if it takes screenshots that's good enough.

* Added subfolders option for screenshots

This allows for much more flexibility when it comes to screenshots because we can choose any number of levels of subfolders.

* Removed unused code

* Added check for screenshots

* Fixed screenshots NPE when logged out

* Added Local to titlebar when running locally

* Added sendMessage param for screenshots

* Default to send messages for screenshots

* Use the sendMessage variable

Oops lol

* Added ability to take screenshots

Since we have a screenshots folder in the 2006Scape folder in the home path, we might as well make use of it.

* Removed duplicate screenshot warning message

We don't need a warning message for duplicate screenshots, if it takes screenshots that's good enough.

* Added subfolders option for screenshots

This allows for much more flexibility when it comes to screenshots because we can choose any number of levels of subfolders.

* Removed unused code

* Added check for screenshots

* Fixed screenshots NPE when logged out

* Added Local to titlebar when running locally

* Added sendMessage param for screenshots

* Default to send messages for screenshots

* Use the sendMessage variable

Oops lol

* Added screenshots QOL option

* Use server name var for screenshots
2024-09-21 02:30:53 +01:00
ipkpjersi 86e7b93b3b Fixed magic attacks running up to NPCs and Players (#642)
* Fixed magic attacks running up to NPCs

* Fixed player running up to players when casting magic

* Updated comment
2024-09-21 01:39:27 +01:00
ipkpjersi cad090d8fe Various fixes and improvements (#640)
* Added more client settings for winter and hide roofs

* Removed unnecessary local var and added Javadoc comment

* Fixed dark wizards casting magic in melee range

* Added AttackType enum

* Removed extra asterisk

* Removed attackType magic numbers

* Enabled snow toggles by default

* Combined snow month into one variable

* Added option for fixes without custom settings

Added option for fixes (and QoL tab) without overriding specific features.

* Added more main args

* Fixed typo

* Added player sound saving

We have it for music, so why not for sounds too?

* Fixed typos

* Added closed client exception to ignores

* Fixed NPC definitions not loading

* Replaced NPC definitions XML with JSON

* Replaced NPCDefinition Array with HashMap

* Use err for early exit output

* Fixed KQ death causing client crash

It had the wrong anims.

* Added zoom level to debug info

* Added zoom level messages option

* Added fire breath attack type enum

* Replaced remaining fire breath attack types

* Fixed client lag

This should technically not be necessary, but it's more of a workaround due to server inefficiencies (if you kill a bunch of cows, your client will start to lag and you will even stack hits, I suspect it's due to the ground items) until we fix the server inefficiencies. There's not really any downsides in changing this from 5 to 100, so it's a good change for now.

* Make definitions private

* Fixed dark wizards not attacking back

* Improved comments

* Removed extra giant mole spawns

* Added mole lair rope action

* Only send yes chat head when talking to NPC

* Fixed removing item does not reset autocast

* Fixed picking up stackable items with full inv

* Fixed lvl 7 dark wizard anims

* Added confirm param to xprate command and fixed players command

* Removed usages of Misc.println

This hides which file the println is actually called from, so it's actually better to remove this helper.

* Don't move player when clicking on barrows check

This is both unauthentic and unnecessary.

* Removed unnecessary commented out code

We don't even need it commented out tbh.

* Fixed incorrect barrows NPC attack anims

* Improved slayer points message

* Fixed slayer task message cut off

* Might as well make this naming consistent

* Fixed typo

* Fixed stronghold slayer dungeon getting stuck in wall

* Require control key for zooming

It's too easy to accidentally zoom in/out with the scroll wheel, so let's make it so you need the control key held to scroll wheel zoom in/out.

* Added option for control key zooming

This way, it's off by default so it works the way it always did by default.

* Added alias for control key zoom

* Fixed quest interface not emptying out completely

* Updated slayer point dialogue to be more accurate

* Fixed compile error

* Fixed formatting

* More formatting fixes

* Added 5th click object handling (fixes pick-lock crash)

* Fixed lower level NPCs always hitting 0

* Fixed NPCs having incorrect max hit

Chickens were hitting 3's, ouch...

* Fixed NPCs still hitting 0s

This is much better now. Combat feels good.

* Fixed boss max hits

* Fixed al-kharid gate talking option

* Copied over max hits from spawns.json to npcDefinitions.json

This fixes a lot of NPCs. Many NPCs already seem to be correct.

* Added workaround preventing players stuck in level 28 wildy

* Changed comment to TODO

* Added control key zoom toggle

* Extracted config option to ClientSettings

* added message for control key zooming
2024-09-21 01:30:57 +01:00
halogod35 0e484985ad Update globaldrops.json (#634) 2023-03-21 02:41:16 +00:00
Josh Shippam e293bde96f Misc Changes (#633)
* Fix Weight Calculation For Add/Remove Item In ItemAssistant

* Re-Add Simple Stuck Command That Logs To Discord To Prevent Abuse

* Update Discord Log Chanel Var

* Fix int/interface Command

* Add World ID Check To DiscordBot Link Command

* Fix Java Warnings in DiscordBot Link Command
2023-03-20 23:35:25 +00:00
Josh Shippam d155a57380 Recalculate Weight When Buying/Selling Items (#632) 2023-03-02 00:25:55 +00:00
Josh Shippam a2d24978a4 Fix Firemaking in Dwarven Areas (#630)
Boundary Coords by @HaloGod35
2023-02-24 19:28:49 +00:00
Josh Shippam af7ae6185e Tag QoL Changes in ClientSettings.java With @QoL (#625) 2023-02-24 19:28:28 +00:00
halogod35 e679891a2d White Wolf Mountain fix (#629)
* Update spawns.json

* Update npc.json

* Update NpcEmotes.java

* Update spawns.json
2023-02-24 13:52:55 +00:00
Josh Shippam 48d3f64795 GameLogger Create Dir If Doesn't Exist (#628) 2023-02-24 02:45:34 +00:00
halogod35 83b2c119b3 Update Firemaking.java (#627) 2023-02-24 02:43:30 +00:00
halogod35 d4179ca6b7 Lumbridge Cow Pen update + Bug fixes (#626)
* Update npc.json

* Update spawns.json

* Update shops.json

* Update Shops.java

* Update Pickpocket.java
2023-02-24 01:26:33 +00:00
Josh Shippam 6fecac4b55 Fix Some NPC's Turning When Clicked That Shouldn't (#624)
* Fix Some NPC's That Shouldn't Turn When Clicked

* Fix Some NPC's That Shouldn't Turn When Clicked

* Make immobileNpcs private

* Npc.java IntelliJ Code Format
2023-02-23 04:18:57 +00:00
Josh Shippam 566d04744c Fix Variable XP Rates(Thanks Advo) (#620) 2023-02-21 06:28:17 +00:00
Josh Shippam 4f6afe496c Fixed Fridgeir and Styrmir "Walking" Around (#623) 2023-02-19 15:00:32 +00:00
Josh Shippam fc0782104b Fix Some Helmets (#622)
* Fix Some More Full Helms

* Fix Leather Cowl
2023-02-19 04:34:21 +00:00
Josh Shippam 9e285b96c5 Single Player changes (#621)
* Enabled GUI By Default For SinglePlayer

* GH Actions: Update Output File Name

* GH Actions: Update Workflow Actions To Latest Versions

* GH Actions: Cache Maven Deps
2023-02-19 01:58:06 +00:00
Josh Shippam 94026b854f Magic num nums (#619)
* Update Libs

* Replaced Some Magic Numbers

* Rename DWARF_REMAINS to NULL_0

* Food.java Rename DWARF_REMAINS to NULL_0

* Kebabs.java static import

* Kebabs.java IntelliJ Code Format

* Fix some fullmask item names

* Potions.java Replace Magic Numbers

* Potions.java IntelliJ Code Format

* BattleStaffs.java Replaced Magic numbers

* BattleStaffs.java IntelliJ Code Format

* CraftingData.java Replaced Some Magic Numbers & Fixed Some Enums?

* CraftingData.java IntelliJ Code Format
2023-02-18 04:39:47 +00:00
MatthewBishop 0105314d04 Add exception fallback to support more java (#618)
* Add exception fallback to support more java

* dark is lazy

* Update Food.java
2023-02-09 20:52:26 +00:00
MatthewBishop 58796561a3 Enum replacer (#617)
* Constants

* Update Enchanting.java

* Update Beverages.java

* Create ConstantReplacer.java
2023-02-09 19:48:17 +00:00
Josh Shippam 55ca851d07 Various Changes (#614)
* Clean Old Log Files

* Various Changes

* Moved minutes.log to log folder
* Made SERVER_LOG_DIR constant
* Moved FILE_SYSTEM_DIR to GameConstants & Deleted org.apollo.jagcached.Constants
* Removed unused minutes.log from data/data
* Removed Duplicate RSAKeyGen
* Moved RSAKeyGen from com.rs2.net.rsa to com.rs2.util.rsa

* Removed data/net.xml & Created Moved NetworkConstants.java

* Add HTTP & Jaggrab Port's to ConfigLoader

* IntelliJ Reformat ConfigLoader.java

* Fix Mistake

* Attempt #2

* Woops, wrong port
2023-02-09 01:05:06 +00:00
Dark98 88a9562e03 Revert "Revert "Bump jackson-databind from 2.10.5.1 to 2.12.7.1 in /2006Scape Server (#537)" (#613)"
This reverts commit 5d6827d82b.
2023-02-07 22:20:26 +00:00
dependabot[bot] 491a7db451 Bump gson from 2.8.6 to 2.8.9 in /2006Scape Server (#528)
Bumps [gson](https://github.com/google/gson) from 2.8.6 to 2.8.9.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.8.6...gson-parent-2.8.9)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-07 21:46:37 +00:00
Josh Shippam 5d6827d82b Revert "Bump jackson-databind from 2.10.5.1 to 2.12.7.1 in /2006Scape Server (#537)" (#613)
This reverts commit a26d5cf7eb.
2023-02-07 21:41:30 +00:00
Josh Shippam 0721314a6d Remove Unused MySQL Library (#612) 2023-02-07 21:16:20 +00:00
MatthewBishop e6ff7550f5 Fix getLevelforXP methods (#611)
* Use single method for level for XP

These methods are functionally identical. This was done via test from 0->13034431 and they always returned the same value.

* redundant access

* New xp and level methods

* Removed test command
2023-02-07 20:59:50 +00:00
dependabot[bot] a26d5cf7eb Bump jackson-databind from 2.10.5.1 to 2.12.7.1 in /2006Scape Server (#537)
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.10.5.1 to 2.12.7.1.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-07 04:54:46 +00:00
Josh Shippam 572c80b32e Fix Parabot Keyboard Input (#610) 2023-02-07 04:12:36 +00:00
MatthewBishop fad41f9947 Merge pull request #609
* tokkul pricing
2023-02-07 02:08:48 +00:00
Pazaz 9c5ea6ec1d Merge pull request #608
* fix: Remove Oracle JRE dependency for sound effects
2023-02-07 02:06:54 +00:00
MatthewBishop 81e6344dd8 Bug fixes (#603)
* Update Boundary.java

* fix xp to level up

* tomato shop

* fix longsword attack anim

* Update MeleeData.java

* fix dagger/longsword/shortsword anims

* Update MeleeData.java

* obby maul and warhammer interfaces and halberd anims

* Pickaxe anims

randomly uses the anim for either stab str or crush str. Cheaphax before system redesign

* adds razmires builder shop

* pom.xml update
2023-02-06 18:43:27 +00:00
Josh Shippam 67efff663e Fix GroundItem Value Setting (#590) 2023-02-06 02:47:11 +00:00
Josh Shippam 64f9654377 Changes to make Updating the Live Server easier (#589)
* Update Default Server IP to Live

* Add RSAKeyGen.java
2023-02-06 02:11:31 +00:00
MatthewBishop 2da0029a41 fix null session on bots (#588)
* Emergency Fix

* fix crash

* Update Player.java
2023-02-06 02:00:39 +00:00
MatthewBishop 9d5d1c57ac Emergency Fix (#587) 2023-02-06 01:06:37 +00:00
Josh Shippam 5db6da334d Kotlin -> Java (#586)
* Convert All Plugins To Java

* Convert Rest Of Kt To Java & Remove Kt From Maven
2023-02-05 22:30:52 +00:00
MatthewBishop eab153ee3f Def cleanup (#585)
* Object definition cleanup

* Update ShopAssistant.java

* stackables

* notables

* unused files

* more junk

* almost done

* working

* moving old methods to deprecated

* update

* fixed pickpocket typos

* Update Pickpocket.java

* Remove redundant method. Fix stall stealing

* Documentation for deprecated methods

* WIP commit partial removal. Has test and dump classes

* Final cleanup

* Move definitions from data folder to cfg

* Temporarily moving definition loaders to GameEngine

This is until loading can be done asynchronously.

* Correct indentation.
2023-02-05 22:30:29 +00:00
Josh Shippam b2212d357e Add New Kotlin Dir To Maven POM (#584) 2023-02-05 04:25:25 +00:00
Josh Shippam a5df216be9 Move Kotlin Files To src/main/kotlin (#583) 2023-02-05 04:13:38 +00:00
Josh ShippamandMatthewBishop 1a2a7e2b9b Fix Darks Mistakes (#580)
Co-authored-by: MatthewBishop <55411296+matthewbishop@users.noreply.github.com>
2023-02-04 07:02:44 +00:00
Josh Shippam 42727bde11 Suppress "unused" Warnings in StaticLists (#579)
warnings bug me
2023-02-04 06:54:25 +00:00
Josh Shippam f59e396359 Block anim fixes (#578)
* Fix Shield & Staff Block Anims

* IntelliJ Code Format MeleeData.java
2023-02-04 06:38:20 +00:00
Josh Shippam c42dc29f73 Only Enable Custom Settings Tab If "-qol/-fixes" Arg Is Used (#575) 2023-02-03 00:30:56 +00:00
Josh Shippam 628d8b98da Magic numbers & removed some dead specials (#574)
* Replace Magic Numbers in Specials.java

* Removed Dbow, Hand Cannon & Morrigans Ranged Specs

Released after 2006

* RangeData.java Convert Magic Numbers

* DwarfCannon.java Convert Magic Numbers
2023-02-02 06:56:44 +00:00
Josh Shippam 209dae48a6 Fix X11 Error On Headless Servers With GUI Disabled (#573) 2023-02-02 05:00:54 +00:00
halogod35 fa7418929e Various Additions and Fixes (#571)
* Updated and Added various drops

Added global drops to Al-Kharid and Lumbridge

* Added Uglug and Roachey

* Update npc.json

* Update shops.json

* Update Shops.java
2023-02-02 02:48:04 +00:00
halogod35 d7a70fdfdc Various Fixes (#570)
* Grammatical fixes

* Fixed longsword combat styles
2023-02-01 02:44:02 +00:00
Josh Shippam ec77731ff5 Fix NoSuchElementException In Discord Link Command (#569) 2023-02-01 02:43:45 +00:00
64d4990c99 Farming task (#567)
* Firemaking: Fix some text (#548)

* Network cleanup (#552)

* Replaced packetType/Size with packet

* Replace Instream with Packet

Read data directly from packet to ease future network upgrade

* Update Packet.java

Removed unused methods to ease netty migration and network rewrite.

* Moved packet sizes.

* Removed unused stream methods

* Added readhex method for buttons

* preparing to replace mina

* Packet->GamePacket for refactoring

* Netty 3.6.6

* formatting

* formatting

* Apollo core

* Update net.xml

Added variables for 2006scape

* Netty 4 migration. Jagcached replaced with Apollo Core

* Porting network into apollo

* WIP Packet Changes

Do not merge. This is broken.

* Packet read methods converted to netty buffer

* Replacing game network and login with apollo

* Netty 4

* Cleanup

* Same port for update and game server.

* Cleanup login for integration with apollo

* Login works. fixing packets

* Running on apollo netcode.

* Server runs

* Update apollo-core.jar

* Disable encoder. write outstream directly to channel.

* Update RS2ProtocolDecoder.java

Added apollo decoder

* Add constant

* Synchronization not needed

* Update apollo-core.jar

* Better performance.

* Commit pre PR

* Update apollo-core.jar

* Fixup Port Binding Based On World

* Apollo files

* Additional Commit

---------

Co-authored-by: Dark98 <darkaidz98@gmail.com>

* Redo StaticNpcList constants (#553)

* Redo StaticNpcList constants

* Added items and objects

* Update NpcAggressive.java

* Bump netty-all from 4.0.34.Final to 4.1.42.Final in /2006Scape Server (#555)

Bumps [netty-all](https://github.com/netty/netty) from 4.0.34.Final to 4.1.42.Final.
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.0.34.Final...netty-4.1.42.Final)

---
updated-dependencies:
- dependency-name: io.netty:netty-all
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Converted FarmingTask to CycleEvent

* Removed redundant tick system.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Josh Shippam <darkaidz98@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 02:43:30 +00:00
Josh Shippam 0754b24aa7 Implemented & Adapted RobGob69's Server ControlPanel (#568) 2023-01-30 22:27:20 +00:00
halogod35 32947bbd15 Shop update (#566)
* Updated shops

* Updated shops

* Updated shops

* Updated shops

* Updated shops

forgot to beautify

* Updated Shops

Replaced IDs with NPC IDs (Credit: Matthew Bishop)
2023-01-30 19:36:47 +00:00
halogod35 d5490bd39d Updated general stores to buy and sell all items (#565)
* Updated all shops to correct quanities

* fixed shop quantities

Fixed Diango, Keldagrim, Lighthouse, Ape Atoll, and Mage Arena

* Updated shop items, quantities, and names

Updated Castle Wars, Lletya, Void Knight Outpost, and Mos Le' Harmless

* Updated shop names, items, and quantities

touchups

* Updated general stores to buy and sell all items

* Updated general shops to buy and sell all items

* Updated general stores to buy and sell all items
2023-01-30 00:40:09 +00:00
Josh Shippam aab9cfe951 Replace a bunch of magic numbers & Fix Mackerel Spelling (#559)
* Convert Some NPCActions Magic Numbers

* IntelliJ Reformat NpcActions.java

* Convert Magic Numbers In Dye.java

* Convert More Magic Numbers In NpcActions.java

* Convert More NpcActions.java Magic Numbers

* Plugins: Replace Magic Numbers

* Skills: Cooking: Replaced all Item/Object Magic Numbers & Fixed Mackerel spelling

* Food: Fixed Mackerel spelling

* Skills: Fishing: Replace Magic Numbers

* Skills: Mining: Replace Magic Numbers

* IntelliJ Code Reformat Changed Files
2023-01-30 00:11:12 +00:00
halogod35 15d6b9f35a Added Shop assistants, Fixed #551 and #563 (#564)
* Updated all shops to correct quanities

* fixed shop quantities

Fixed Diango, Keldagrim, Lighthouse, Ape Atoll, and Mage Arena

* Updated shop items, quantities, and names

Updated Castle Wars, Lletya, Void Knight Outpost, and Mos Le' Harmless

* Updated shop names, items, and quantities

touchups

* Added shop assistants, fixed issues #551 and #563

Added shop assistants to Al-Kharid, Edgeville, Falador, Karamja, Lumbridge, Rimmington, Varrock, and Zanaris.
Changed Lumbridge assistant to Varrock Swordshop assistant
Changed Varrock assistant's shop from Lumby to Varrock

* Added shop assistants, fixed issues #551 and #563

Added shop assistants to Al-Kharid, Edgeville, Falador, Karamja, Lumbridge, Rimmington, Varrock, and Zanaris.
Changed Lumbridge assistant to Varrock Swordshop assistant
Changed Varrock assistant's shop from Lumby to Varrock
2023-01-29 21:57:46 +00:00
halogod35 ccf628f0b1 Updated shops to have era accurate names, items, and quantities (#562)
* Updated all shops to correct quanities

* fixed shop quantities

Fixed Diango, Keldagrim, Lighthouse, Ape Atoll, and Mage Arena

* Updated shop items, quantities, and names

Updated Castle Wars, Lletya, Void Knight Outpost, and Mos Le' Harmless

* Updated shop names, items, and quantities

touchups
2023-01-29 19:24:32 +00:00
Josh Shippam da8471673f JFrame Links to Vars & Add Some Args (#561)
* Changed JFrame Links to Variables in ClientSettings.java
* -qol/-fixes sets true BILINEAR_MINIMAP_FILTERING, FIX_TRANSPARENCY_OVERFLOW & FULL_512PX_VIEWPORT
* -no-nav/-disable-nav sets false SHOW_NAVBAR
2023-01-28 23:27:03 +00:00
Pazaz 62b26c5585 Functional navbar (toggleable in ClientSettings) (#560)
* Fixed client frame offsets/padding

* Functional navbar (toggleable in ClientSettings)
2023-01-28 22:06:05 +00:00
Pazaz e517be1bfb 3 configurable graphics fixes in ClientSettings (#558) 2023-01-28 20:39:12 +00:00
Pazaz afdf369104 Fixed client frame offsets/padding (#557) 2023-01-28 20:37:33 +00:00
dependabot[bot] 8e750096cd Bump netty-all from 4.0.34.Final to 4.1.42.Final in /2006Scape Server (#555)
Bumps [netty-all](https://github.com/netty/netty) from 4.0.34.Final to 4.1.42.Final.
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.0.34.Final...netty-4.1.42.Final)

---
updated-dependencies:
- dependency-name: io.netty:netty-all
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-28 05:36:50 +00:00
Josh Shippam 7f79dff665 Random Fixes (#554)
* Shops: Fixed stock amount in "Nurmof's Pickaxe Shop"

* ConfigLoader:Fix server_debug key/value

* Fix "players" Command Text
2023-01-28 05:32:52 +00:00
MatthewBishop 6e69dea45a Redo StaticNpcList constants (#553)
* Redo StaticNpcList constants

* Added items and objects

* Update NpcAggressive.java
2023-01-28 05:32:32 +00:00
MatthewBishopandDark98 e46b7142c3 Network cleanup (#552)
* Replaced packetType/Size with packet

* Replace Instream with Packet

Read data directly from packet to ease future network upgrade

* Update Packet.java

Removed unused methods to ease netty migration and network rewrite.

* Moved packet sizes.

* Removed unused stream methods

* Added readhex method for buttons

* preparing to replace mina

* Packet->GamePacket for refactoring

* Netty 3.6.6

* formatting

* formatting

* Apollo core

* Update net.xml

Added variables for 2006scape

* Netty 4 migration. Jagcached replaced with Apollo Core

* Porting network into apollo

* WIP Packet Changes

Do not merge. This is broken.

* Packet read methods converted to netty buffer

* Replacing game network and login with apollo

* Netty 4

* Cleanup

* Same port for update and game server.

* Cleanup login for integration with apollo

* Login works. fixing packets

* Running on apollo netcode.

* Server runs

* Update apollo-core.jar

* Disable encoder. write outstream directly to channel.

* Update RS2ProtocolDecoder.java

Added apollo decoder

* Add constant

* Synchronization not needed

* Update apollo-core.jar

* Better performance.

* Commit pre PR

* Update apollo-core.jar

* Fixup Port Binding Based On World

* Apollo files

* Additional Commit

---------

Co-authored-by: Dark98 <darkaidz98@gmail.com>
2023-01-28 05:31:19 +00:00
Josh Shippam aa6dbba8e2 Firemaking: Fix some text (#548) 2023-01-26 03:31:05 +00:00
Josh Shippam 66a554aeeb Update README & Start Converting Java To Kotlin (#539)
* Rename .java to .kt

* DiscordBot Java -> Kotlin

* Rename .java to .kt

* ConfigLoader Java -> Kotlin

* Update ReadMe For Latest Using Parabot Locally

* Rename .java to .kt

* GameConstants Java -> Kotlin

* Add Missing "server_test_version" Field To ServerConfig.Sample.json
2023-01-26 02:15:33 +00:00
MatthewBishop 8cf8a4db2c Bugfix: NPC Combat and Damage Application (#541) 2023-01-26 01:48:54 +00:00
MatthewBishop 1ad531d244 Replace clipping files with loading straight from the cache. (#540)
* Archive decompression from apollo

* Removed unused object definition fields

* Add more options to IndexedFileSystem

New methods are to read directly to a bytearray rather than allocating a large number of ByteBuffers on server startup for map loading. decompress is from client and will be depre

* Fix opcode 19 of object defs

* Initial commit of loading maps from cache

* Removed deprecated methods

Methods were in IndexedFileSystem for testing to ensure the getFileBytes method worked correctly.

* Some code cleanup to fix packaging.

#TODO review methods in CompressionUtil to use the best Gzip decompression

* map_index loading from cache

* Update pom.xml

Added commons compress dependency from maven for bzip2 decompression

* Renaming some object definition values.

* Update ObjectDefinition.java

Removed rest of unused variables

* Update ObjectDefinition.java

* Object Definitions loading from cache

* Remove dead code

* Remove unneeded files

Maps/Definitions now load from in the cache.

* Firemaking clipping
2023-01-25 19:15:31 +00:00
AugustasK f56402845b Implemented functionality where user can search for traps in some chests (#534)
* Initial commit

* Implemented cooldown timer and added ardougne castle chest

* Refactoring

* Removing unused variable
2023-01-20 16:48:45 +00:00
Dark98 9fd4b470c8 Setup GH Actions For Windows Single-Player 2022-08-22 05:44:54 +01:00
Josh Shippam 5dea59f903 Various Changes (#533)
* Add Shield Blocking Emote For Two NPC's

* Fix KARAMBWAN HP Restore Amount

* Add Link Command To Discord Bot

* Github Actions Update
2022-08-22 05:22:00 +01:00
Olivier 7514826803 Merge pull request #527
* Various Fixes

* Sea Turtle can be cooked, fixed xp received when cooking Manta Ray
* Al kharid warrior has correct emote when fighting
* Drop tables only roll once for items that do not have 100% drop rate (Prevents multiple items from rolling and dropping on same npc)
* Nerfed Tree Spirit (Lost City) max hit (From 20 to 10)
* Nerfed Abyssal Demon max hit (From 16 to 8)
2022-04-19 03:40:19 +01:00
darkaidz98@gmail.com 81cd126a33 Revert Library Updates To Fix Server 2022-01-29 10:45:52 +00:00
Josh Shippam 54a3e5cdec Various Changes (#523)
* Discord Bot Update

Updated JavaCord To Latest
Changed Some Commands To No Longer Be World Specific
Added An "AdminCommands" Command

* Update Some Server Libs

* Added Purge & Pin/Un-Pin To Commands Discord Bot

* Fixed -dev & -no-crc Client Args

* Add Discord User ID Linking Support(Useless For Now)

* Added Support For User's Kicking Own Accounts Through Discord Bot

* Merge Website Integration Stuff Into One Var
2022-01-27 01:32:17 +00:00
TeddyandSad Emu 63055f9181 East falador staircase was falling into the last if which was teleporting the player to a void (#522)
Co-authored-by: Sad Emu <wcpro111@gmail.com>
2022-01-22 03:32:48 +00:00
TeddyandSad Emu 9a3cf5867a Added jad ranged attack projectile (#521)
Co-authored-by: Sad Emu <wcpro111@gmail.com>
2022-01-20 23:53:19 +00:00
Dark98 c5c4471a4f Added Current World To Client Title 2022-01-08 01:54:00 +00:00
Dark98 500441d551 Added/Fixed Right Click Banking For Fadli(Duel Arena Banker) 2022-01-08 00:46:56 +00:00
Dark98 803346323b Fix Discord Bot Derp 2022-01-08 00:18:35 +00:00
Josh ShippamandDanial e1a8d85408 Second World Setup (#518)
* Start Setting Up Second World

Added World Number To Login Message
Added World Number To Login Interface
Made World 2 Listen On Different Port
Made Client Connect To 43597 For World 2

* Small Cleanup For World 2 Support

Calculate Port For World Based On World Number
Use Existing World int For World In Server

* Woops Wrong Ports

* Set Server Port After Loading Config

* Add xpRate Var & Include With XPRate Calculations

* Add -w/-world arg to client

* Add XP Rate Multiplier For Non-Bot Worlds

* More Multi World Stuff

Update Integrations(Discord Bot/Website Stuff) For Multiple Worlds
Added More XP Rate Dialogue Stuff

* Add Kick Command To Discord Bot & Fix Type In ConfigLoader

* Create/Use commandPrefix Var For Discord Bot

* Small Fixup For World 2

Renamed BOT_WORLD to VARIABLE_XP_RATE
Fixed Dialogue/Message grammar
Added a check for VARIABLE_XP_RATES to ::xprate command

* More Discord Commands(GameKick, MoveHome & Update)

*GameKick kicks A player if their client froze but acc stayed logged in
*MoveHome removes the need for ::stuck which removes potential for abuse
*Update schedules A server update

* Minor fixup

* 43597 → 43598

* Fix XP Rate Multiplier & add ::xprate to cooamnds list if enabled

* Use Either VARIABLE_SKILL_RATE OR XP_RATE Not Both

TODO(Convert Player.xpRate Into An Array For Easier Rate Changes)

* Create/Use PLAYER_XP_RATES For Easier Rate Changes

* Fixed Abusive Client Command Privileges & Added myxprate/checkxprate

* Allow Loading VARIABLE_XP_RATES & PLAYER_XP_RATES From Config

* Properly Update Client Title Logo

If The Cache Has Already Been Downloaded You Will Need To Delete It & Let The Client ReDownload It

* Fix Cache CRC Checks For The Client(Allows Cache To Actually Check For Updates)

* Add -no-crc & -dev Arguments To Client

* Fix Naming For Some Vars

* Make CHECK_CRC Description More Descriptive

* Fix More Var Descriptions

* Cleanup Unused GameConstants Vars & Add More Vars To ConfigLoader

Co-authored-by: Danial <admin@redsparr0w.com>
2021-12-31 03:47:48 +00:00
Josh ShippamandDanial 1c5b400f00 Merge The File&Game Servers Into One Module (#519)
* Merge The File&Game Servers Into One Module

* Make SettingsLoader A GameConstants ConfigLoader
If A Config File Isn't Used, The Server Will Fall Back To The Defaults Set In GameConstants.java

Config Files Can Be Loaded With The "-c/-config configfilelocation.json"
Added A Default Prefilled ServerConfig.json

* Update ConfigLoader

* Bring Back Independant "Secrets" Loader For External Password Stuff
* Added A Bunch More Vars To The ConfigLoader
* Included A Sample "Server Config"
* Also Updated README.md As Parabot Is No Longer Maintained & We No Longer Have A FileServer Module

* Bundle FileServer with Server (docker)

* Remove /udp and http port

* Update .gitignore

* Move FileServer from `org.apollo.jagcached` → `org/apollo/jagcached`

* Tidy GameConstants & Add More Vars To ConfigLoader

* Organised Up GameConstants A Little To Separate ConfigLoader Vars From The Rest
* Added Some More Variables To Be Loaded Through The ConfigLoader

* Fix A Derp Caused By Laziness

* Add -c/-config arg to README.md

* Enable FileServer By Default

Co-authored-by: Danial <admin@redsparr0w.com>
2021-11-23 00:29:25 +00:00
Dark98 ba7f84fc45 Only Print Loaded Plugins When Debug Enabled
(cherry picked from commit 2629186cc0)
2021-11-09 02:07:21 +00:00
Dark98 f30a936ff6 Revert "Update Client Title Logo"
woops this broke the cache
This reverts commit 97f1eb72e4.

(cherry picked from commit 7a2a6d362b)
2021-11-09 02:06:54 +00:00
Dark98 abe34d86b1 Add Plugins/Kotlin Support To Maven
(cherry picked from commit 546669ead0)
2021-11-09 02:06:49 +00:00
Danial d23b176a28 Make file server optional if cache already downloaded (#514)
(cherry picked from commit 669573c660)
2021-11-09 02:06:46 +00:00
Danial c1202e8989 Couple of fixups (#513)
* Show preference state

* Fixup multiple of the same item on the ground.

* Fixup combat

* Fixup yell, decrease delay

* Tidy up yell

* use jdk8

(cherry picked from commit 1fe76d739e)
2021-11-09 02:06:42 +00:00
dginovker 0e1edb79b6 Fix UNIX file path replace for plugins 2021-10-30 21:22:17 -04:00
Dark98 97f1eb72e4 Update Client Title Logo
If The Cache Has Already Been Downloaded You Will Need To Delete It & Let The Client ReDownload It
2021-10-28 22:41:19 +01:00
Josh Shippam c2f325b4e7 Plugins Fixup / Conversion(#511)
* Server: Ripped PluginService From Astreaus-V2

This Removes The Need For Plugin MetaData

* Plugins: Handle Emote Tab Run Buttons

* Add Some Settings Button Plugins

Brightness Buttons
Music Volume Buttons
Walk/Run Buttons
Toggle SplitPrivate-Chat

* Fix Player Still Running With 0 Energy

Fixes Players Continuing To Run For The Rest Of Their Current Movement Task Even If They Run Out Of Energy
2021-10-26 04:47:33 +01:00
7d64e2298f Plugins System (#510)
* Started Ripping Plugin System From Astraeus

*Currently only ClickingButtons Support
*Also Started Using The Logout Button Plugin From Astraeus

* NpcFirstClickEvent setup for plugins

also made Man & Women chat work through this

* Server: Add Google Collect Lib

* Server: NpcSecondClickEvent setup for plugins

also handle pickpocketing npc clicking through plugin

* Server: NpcThirdClickEvent setup for plugins

* Server: Remove conflicting action for Secondclicking npc id 3

* Server: ItemFirstClickEvent setup for plugins

Also Handle Yo-Yo First Click Through This

* Server: ItemOnItemEvent setup for plugins

Also Handle Black Candle Lighting With Tinderbox Through this

* Server: ItemOnNpcEvent setup for plugins

* Server: ItemOnObjectEvent setup for plugins

Also Handle Fillable Items Through This

* Server: ItemSecondClickEvent & ItemThirdClickEvent setup for plugins

Also Handle Yo-Yo Actions Through This

* Server: ObjectFirstClickEvent setup for plugins

Also Handle FirstClick Mining Actions Through This

* Server: ObjectSecondClickEvent setup for plugins

Also Handle Stall Thieving Actions Through This

* Server: ObjectThirdClickEvent setup for plugins

* Server: ObjectFourthClickEvent setup for plugins

Also Handle Fourth Click Farming Object Actions Through This

* Server: MagicOnItemEvent setup for plugins

Also Handle SuperHeat Through This

* More mage training arena (#509)

* Fixup points display

* Only allow players to deposit up to 12k at one time

* Apple damage and play animation

* Update order or prices

* Update Telekinetic.java

(cherry picked from commit ab3b1e9731)

Co-authored-by: RedSparr0w <RedSparr0w@users.noreply.github.com>
Co-authored-by: Danial <admin@redsparr0w.com>
2021-10-09 00:20:57 +01:00
Dark98 a693615e2e Server:JavaCord: Allow Displaying PlayerCount Or Server Website 2021-10-06 02:46:48 +01:00
Danial ab3b1e9731 More mage training arena (#509)
* Fixup points display

* Only allow players to deposit up to 12k at one time

* Apple damage and play animation

* Update order or prices

* Update Telekinetic.java
2021-10-06 02:22:42 +01:00
Danial 2d8ae82086 Telekinetic grab and stuff (#508)
* tidy up

* Tidy up check for space

* Telekinetic base

* Don't allow player to pickup statue

* Tidy up item pickup

* fixup, statue spawn

* Update telekinetic grab

* 2nd option for guardian statue

* handle telegrab on statue

* Allow picking up global drops with telekinetic grab

* Check if player can see/reach item

* Update PickupItem.java

* Allow pasting into chatbox

* camera stuff

* fixup clipboard stuff

* Update PlayerAssistant.java

* Update Commands.java

* Add mazes initial

* Tidy up the clipboard pasting

* Update mazes

* Calculate new position of statue

* fixup telegrab

* More tidy up, remove constant running of container

* more tidy up..

* Handle moving statues

* remove the statue from global drops

* Update MagicOnFloorItems.java

* Show telekinetic interface

* Make public accessable

* Only show items to player that are on the same height level

* Moving statues around, Spawning

* Reward exp, points, law runes

* Show points, mazes completed

* Add comment

* Add observable statue (still needs work)

* Fixup where camera focuses

* Load items when player changes level

* Graveyard base

* Add a couple more checks

* Update Player.java

* Update Commands.java

* Make sure statue is visible when player appears at maze

* [Mage training arena] Graveyard

* Update MageTrainingArena.java

* Update MageTrainingArena.java

* Update ItemHandler.java
2021-10-05 04:01:16 +01:00
Danial c526aa5f4d [Mage Training Arena] Enchanting, and some other stuff (#507)
* Handle some more stairs...

* Remove message sent to player

* Bolts/Tips making

* Tidy up

* Free alchs occasionally within training arena

* [Mage Training Arena] Enchanting

* Remove enchanting room specific items when leaving area
2021-10-02 17:38:45 +00:00
Danial 865ef4ed29 Process client arguments, Auto login option (#506)
* Process client arguments, Auto login

1st argument = server IP
2nd argument = username
3rd argument = password

* Simplify

* Fixup server XP rate
2021-10-02 17:38:17 +00:00
Danial bbe1587e20 Mage Training Arena and stuff (#504)
* Fixup door/stairs in mage training arena

* Fixup bedsheets, should be worn on head, not weapon slot

* [Mage Training Arena] spawn rewards guardian

* [Mage Training Arena] Add arena teleports (non functioning)

* Just adding some comments

* [Mage Training Arena] Basic mage training arena stuff

* [Mage Training Arena] Allow shop to open and show items correctly

* [Mage Training Arena] Show shop prices when clicked

* noclip

* [Mage Training Arena] Add 2nd option handler (filler)

* [Mage Training Arena] Be able to purchase stuff, lock bones to peaches

* Update MageArena.java

* [Mage Training Arena] setup boundary

* Readability

* Tidy up enchanting

* MageArena -> MageTrainingArena

* Create Alchemy.java

* Update RSInterface.java

* [Mage Training Arena] Spawn entrance npcs

* [Mage Training Arena] Initial Alchemy

* [Mage Training Arena]  Add comments

* [Mage Training Arena] Handle alchemy while in arena

* [Mage Training Arena] Show interface for alchemy room

* [Mage Training Arena] Display values, Search cupboards

* [Mage Training Arena] Don't allow the player to wear items from the Alchemy game

* [Mage Training Arena] Announce when items are changing

* Don't allow the player to bring any coins with them

* Sort by values

* [Mage Training Arena] Allow alching items etc

* Update method name

* Show magic tab after using alch even if can't alch

* [Mage Training Arena] Coin collector - temp

* [Mage Training Arena] Give player points, take items, add bonus xp, add bank items

* [Mage Training Arena] Remove items when player leaves the alchemy training area

* Fixup staffs for runes, Tidy up checks

Was missing all Mystic staff
2021-09-30 22:25:48 +01:00
Danial 8589277ece Implement Party Room, A bunch of client side changes, Other stuff (#503)
* Fixup Discord links

* Fix required level to chop Dramen tree

* More Discord link fixes

* Show bots as (store)

* Fixup port

move to port 8080 as used by file server

* Fixup report handler

* Some client changes

* minor changes

Show mod status

* Show item value on ground

* Mark stores and players differently on mini map

* Some tidy up

* default to world 1

* Update trade with text

* revert nodeID changes

* Update RS Guide name

* Remove some command aliases

* Log bots and players differently

* Fixup

* minor changes

* Fixup colors

* Update RSInterface.java

* Settings for controlling options

* Add memory command

* Update server skill magic numbers

* Update server skill magic numbers

* Update colors for ground item text

* Update .gitignore

* Update player health value more often

* Add in game item/NPC/object search

* Item amounts and value displayed

* Update examine text

* Start with volume off

* Fixup tab 7 still showing with other interfaces

* Fixup search

* Fixup entering numbers after letter in amounts

* minor fixup

* fix indentation

* change type of value

* Fixup values shown

* Fix when clicking while tab 7 open

* Fixup negative amounts

* Update some method names

* Fixup method name

* tidy up method values

* Initial move for overlays

* Update more method names, variables

* Update debug menu

* Update experience info area

* Update Signlink.java

* more refactoring/deob

* Tidy up

* refresh skills

* Update method name, debug display

* fixup

* Show wrench icon on custom settings tab

* alignment

* Modify zoom

* Use smaller numbers for exp/h

* Update interface command

* tidy up

* Fixup tele location

* Fixup if interface doesn't exist

* Add some interface options

* Update checks

* Open bank interface for item search

TODO:
change title
maybe not display in chat
change options for items?
change command to searchitem - open the bank interface, open a text input interface

* re-fix

* Show open interface ID

* Update bank string shown

* Update search function

* Scroll zooming

* Only fill chat with search if not searching for an item

* add comments

* Change system update message

* Remove fps command

* Increase draw distance

* fixup

* Draw distance option

* [Party Room] Fix party room stairs

* Add new free slots method to check for stackable items counting as a free slot

* [Party Room] Deposit/Withdraw items all working

* [Party Room] Fully working

* [Party Room] Don't spawn balloons on the table

Players cannot pickup the items

* Fixup boundary

* Drop items in random amounts up to 4 stacks

* Update swampy boat to work

* Minor fixup

* Update Game.java

* Move player name up slightly

* Update some naming

* Tidy up

* Add ectoplasm agility shortcuts

* Update ObjectsActions.java

* Ectofuntus stuff

* fixup

* Ectofuntus bone grinder get status

* auto worship

* Allow claiming ecto-tokens

* change variable

* fixup

* Make use of GameConstants.WORLD

* Randomize bot passwords

* Don't show player shops as online

* Update opening oysters

* Update GemCutting.java

* Dragontooth island transport

* Ectofuntus stuff

* More constants

* Bill teach travel to Mos Le'Harmless and back

Also able to explore the whole ship

* Use better looking buttons

* Update .gitignore
2021-09-28 23:40:34 +01:00
Danial d30e833dd8 Update server skill magic numbers (#502) 2021-09-23 08:34:58 -04:00
Danial 06b509c4d0 Update how player shop is handled (#501)
* Update how player shop is handled

* Squashed commit of the following:

commit 5be0778dc9
Author: Danial <admin@redsparr0w.com>
Date:   Sun Sep 19 14:24:12 2021 +1200

    minor fixup

commit ef3b63b54f
Author: Danial <admin@redsparr0w.com>
Date:   Sun Sep 19 14:11:27 2021 +1200

    Add docker compose file for running servers in containers

* Update DialogueHandler.java

* Fix for models out of bounds

* Revert "Squashed commit of the following:"

This reverts commit d27d3c357c.

* Other shop tidy up

Show shops as combat level 0
Remove items from shop when shop logs off
2021-09-20 13:18:40 +01:00
Danial 8cceeeddd4 Add docker compose file for running servers in containers (#500)
* Add docker compose file for running servers in containers

* minor fixup
2021-09-19 18:06:16 +00:00
Daniel Ginovker d7f0ce9877 Create LICENSE 2021-08-27 12:04:20 -04:00
dependabot[bot] 2f020a9688 Bump jackson-databind from 2.10.1 to 2.10.5.1 in /2006Scape Server (#479)
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.10.1 to 2.10.5.1.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-13 23:48:23 +01:00
dependabot[bot] 84332d7851 Bump xstream from 1.4.10-java7 to 1.4.17 in /2006Scape file_server (#496)
Bumps [xstream](https://github.com/x-stream/xstream) from 1.4.10-java7 to 1.4.17.
- [Release notes](https://github.com/x-stream/xstream/releases)
- [Commits](https://github.com/x-stream/xstream/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-13 23:48:07 +01:00
dependabot[bot] fddf797bf1 Merge pull request #497
* Bump xstream from 1.4.11.1 to 1.4.17 in /2006Scape Server
2021-06-13 23:47:06 +01:00
Dark98 ace41cddb0 Server: Use JavaCord 3.1.1 2021-06-13 23:28:09 +01:00
coco-bandicoot 3f2295a4d3 Food Update: All stews, gnomish foods, and some misc foods/drinks (#494)
- Adds all stew food items to the Food class

- Adds all gnomish food items(including the premade ones!) to the Food class

- Added Fruit Blast and Pineapple Punch (including premade versions) to the Food class (the rest boost stats like beers/pots so did not add)

- Added Rabbit, Ugthanki meat, Roast Bird meat, Thin Snail meat, Spider on stick, Spider on shaft, Roast Rabbit, Lean snail meat, Roast beast meat, Fat snail meat, Cooked slimy eel, Cooked chompy, Cooked fishcake, Rainbow fish, Cave eel, Cooked jubbly, Lava eel, Banana stew and Chocolatey milk to the Food class

- Chocolate bomb unique eat text

- "It heals some health." text added to default food items without unique eating text
2021-05-13 13:16:37 +01:00
Jeremy e1fde5c1d3 Replace get npc name associate array method to indexed array method (#493) 2021-04-23 17:03:04 +01:00
Olivier 48d7b09bdd Easter Event + Ectotokens (#492)
* New NPC Spawns for Port Phasmatys

Added most NPCs in Port Phasmatys including the ghost villagers, sailors, guards, Robin, Ak-Haranu, and more.

* ObjectActions for Ectofuntus and Energy Barrier

The Ectofuntus is now fully accessible and Port Phasmatys can be accessed through the energy barrier.

* Added Ak-Haranu's Exotic Shop

Ak-Haranu now sells Bolt Racks.

* Fixed Ectofuntus Worship

Fixed minor issue with Ectofuntus Worship

* Gravingas Exclamations

Gravingas exclaims different messages while protesting Necrovarus in Port Phasmatys.

* Easter Event Updates

- Added Easter Bunny
- Added temporary Easter Quest
- Added Dialogues between player and Easter Bunny
- Added player save data for Ecto-tokens (Port Phasmatys) and data for the easter event (easterEvent)

* Delete .DS_Store

* Delete .DS_Store

* Delete .DS_Store

* Adding DS_Store to .gitignore
2021-04-06 18:51:04 +01:00
dark98 7261568e2d Added Player Morphing to Ring Of Stone & Easter Ring 2021-04-02 23:01:48 +01:00
Olivier d5b74825d4 Port Phasmatys Update I (#485)
* New NPC Spawns for Port Phasmatys

Added most NPCs in Port Phasmatys including the ghost villagers, sailors, guards, Robin, Ak-Haranu, and more.

* ObjectActions for Ectofuntus and Energy Barrier

The Ectofuntus is now fully accessible and Port Phasmatys can be accessed through the energy barrier.

* Added Ak-Haranu's Exotic Shop

Ak-Haranu now sells Bolt Racks.

* Fixed Ectofuntus Worship

Fixed minor issue with Ectofuntus Worship

* Gravingas Exclamations

Gravingas exclaims different messages while protesting Necrovarus in Port Phasmatys.
2021-03-31 00:57:35 +01:00
Nathan Aclander a52832348a Fix typo pointing to incorrect Client dir (#481) 2021-03-16 12:41:59 +00:00
dark98 22db0c22f4 Add a toggle for Total Characters Registered kn Website 2021-03-15 23:45:38 +00:00
dark98 3bf473129d Rename & Repackage 2021-03-11 00:30:16 +00:00
dark98 caa4625efa Ignore Build Jars 2021-03-10 22:53:32 +00:00
Josh Shippam 5da2ebcffe Update README.md 2021-03-08 03:21:58 +00:00
Olivier f22b9553c6 Added Random Dialogue for Man and Woman NPCs (#476)
* Update DialogueHandler.java

* Update NpcActions.java

* Update DialogueHandler.java
2021-02-15 11:17:51 -05:00
Nick Gal 440a559c64 Fix gem check being rolled twice. (#474) 2021-02-05 18:25:46 -05:00
Olivier b65ab89a53 Dialogue Action for High Priest (#471)
- Added Dialogue Action for High Priest (Entrana)
2021-02-05 18:25:25 -05:00
Nick Gal 15ab625349 Fix bug where leveling up while Smelting would consume ores. (#473)
* Fix bug where leveling up while Smelting would consume ores.

* Making sending message before adding skill xp more consistent.
If you level up while smelting iron, playerSkillProp[13] gets cleared and getItemName will fallback to Unarmed
2021-02-03 20:32:34 -05:00
Nick Gal fa167bacd3 Fix call to NpcAggressive.isAggressive (#472) 2021-01-29 01:43:30 -05:00
Olivier 12951be954 Added Lost City Dialogues + Entrana Dialogues (#470)
Added Dialogue for the following NPCs
- High Priest (Entrana)
- Warrior, Wizard, Monk and Archer (Lost City)
- Shamus (Lost City)
2020-12-31 16:06:07 -05:00
Daniel Ginovker 2a4d7ebd22 Create second dialogue (#469)
* Add fix for maven encoding on Linux machines

* Fix dialoguehandler length
2020-12-31 13:52:44 -05:00
Olivier 4ff45dd6c5 Added Npcs on Entrana (#468)
- Added Fishing Spots
- Added High Priest
- Added Monks
- Added Firebird of Entrana
- Added Chickens
2020-12-31 12:59:14 -05:00
Olivier efb450fc60 Added GFX for Dark Wizard Spell (#466)
Dark Wizards now cast the correct spell
2020-12-30 22:02:54 -05:00
Olivier aca32c72c5 Added Level Up Songs (#465)
- Each skill has a corresponding level up song
- Some skills (Attack, Magic, Cooking) have multiple level up songs (Milestones like 99 or 10, 20, 30 etc.)
2020-12-30 22:02:47 -05:00
Olivier 6bbf8f1b09 Added SFX for Dark Wizard (#467)
-Adds block sound and attack sound for wizards
2020-12-30 22:02:09 -05:00
Olivier 108af403d8 Combat Sound Fixes (#462)
* Combat Sound Fixes

- Added all sounds for chickens
- Added proper sounds for sword and dagger
- Added some sounds for thief and farmer
- Fixed dds sound effect

* Update CombatSounds.java
2020-12-30 13:06:36 -05:00
Olivier f5306da6e4 Fixed Player Unarmed Animations (#463)
- Player now correctly blocks attacks when unarmed
- Player now has correct animations for all fight modes
2020-12-30 13:06:18 -05:00
Olivier 5559d10037 Added Death Song (#464)
- Plays the death song when you respawn after dying
2020-12-30 13:06:06 -05:00
Arisu c0b33add46 Fixed firemaking log duplication & deletion (#456) 2020-12-29 12:15:26 -05:00
Olivier af98c46371 Added Animations for Guard NPC (#459)
Guard NPC now has proper animations..
2020-12-29 11:58:56 -05:00
Arisu 90b36be5ae Fixed users being able to make blank passwords (#458) 2020-12-29 11:58:37 -05:00
Arisu 3ade7141a6 Fixed wrong smelting response when trading & made full iron helm use 2 bars (#457) 2020-12-29 11:58:24 -05:00
Arisu 6040241343 Added cheese and tomato to consumables (#455) 2020-12-29 11:56:26 -05:00
Olivier 39096c403d Re: Guard SFX (#461)
Added SFX for Guard attack and block
2020-12-29 11:56:05 -05:00
Olivier 3b74dd2a0c Added SFX when player takes damage (#454)
Player makes sound when he takes damage
2020-12-28 15:36:01 -05:00
Olivier 27c6c91fcb Fixed SFX for Unarmed Melee (#453)
Fixed a glitch where the player would make a strange axe sound instead of the actual punch/kick sound.
2020-12-28 15:35:27 -05:00
Olivier ca36e516ad Added PNPC Command for Admins (#449)
- Admins can now turn into NPCs using the following commands "playnpc" or "pnpc".
2020-12-18 08:41:12 -05:00
Olivier 8819a0b9f9 NPC Interaction (lostCity) (#445)
- Players can now properly interact with Monk, Archer, Wizard and Warrior
- Player can now interact with Shamus
2020-12-17 09:01:22 -05:00
Olivier e524b2fa0b Added Dialogue Options (lostCity) (#446)
- Added Dialogue Options for Warrior and Shamus
2020-12-17 09:00:58 -05:00
Mr Extremez ec7a4b0b74 Quick fix for monkey gree gree's (#447) 2020-12-17 09:00:31 -05:00
Daniel Ginovker 953419b33a Add fix for maven encoding on Linux machines (#448) 2020-12-17 08:55:02 -05:00
Olivier 3065b682e3 Lost City Progress Saves (#443)
- Added lostCity to playersave.java
2020-12-16 15:10:14 -05:00
JohnsonMichaels123 2e1ad6c205 Populated Taverley (Kaqemeex, Sanfew and Druids) (#442)
- Druids now spawn all around Taverley
- Kaqemeex spawns at the Druidic Circle (Druidic Ritual Quest)
- Sanfew spawn near Herblore Shop (Druidic Ritual Quest)
2020-12-15 15:09:43 -05:00
JohnsonMichaels123 93b811bcaa Lost City Required for Dragon Longsword / Dagger (#441)
- Lost City completion is required to equip dragon longsword and dragon dagger
2020-12-15 08:00:33 -05:00
JohnsonMichaels123 06ae65534c Added Quest Completion Condition for Lost City (#440)
- Teleporting through Lumbridge Swamp Shed completes Lost City
- Reward is given (3QP + Access to Zanaris)
2020-12-15 08:00:05 -05:00
JohnsonMichaels123 59b9dbf460 Updated Actions for Spirit Tree and Leprechaun (#435)
- Leprechaun spawns at tree w/ sfx and quest conditions
- Tree Spirit spawns at tree w/ sfx and quest conditions
2020-12-14 15:33:38 -05:00
JohnsonMichaels123 252171c209 Added integer for leprechaunSpawned (lostCity) (#436)
- An integer checks if leprechaun is spawned (Lost City)
2020-12-14 15:25:02 -05:00
JohnsonMichaels123 169602b62b Updated Lost City Progression and Max Quest Points (#437)
- Lost City progression can be opened
- Changed Max Quest Points
2020-12-14 15:24:48 -05:00
dginovker b718346b4a Move Lostcity to correct loc 2020-12-14 15:22:11 -05:00
dginovker 0cba36b2f7 Merge branch 'master' of https://github.com/2006rebotted/2006rebotted 2020-12-14 15:21:21 -05:00
Daniel Ginovker 0c94fbedc8 Add Jognson's Lost City (#434) 2020-12-13 19:22:42 -05:00
dginovker 5ef14d6a9d Add Jognson's Lost City 2020-12-13 19:21:54 -05:00
JohnsonMichaels123 aa57744d2a Lost City Rewards Added (#433)
Lost City Reward gives the player 3 quest points and access to Zanaris.
2020-12-13 18:27:24 -05:00
JohnsonMichaels123 38b4dbcf00 Level Up Fireworks GFX (#429)
When player levels up, makes the fireworks effect.
2020-12-13 15:56:24 -05:00
JohnsonMichaels123 aea9ebbf0e Added NPCs for Lost City Quest (#430)
Added NPCs Monk, Wizard, Archer and Warrior west of Lumbridge swamp for quest "Lost City".
2020-12-13 15:56:15 -05:00
JohnsonMichaels123 f9bc9d2dff Lost City Value for Quest Progression (#431)
Added an int to store the progression of Lost City (lostCity).
2020-12-13 15:55:59 -05:00
JohnsonMichaels123 935a172b68 Fixed Rasolo The Merchant's Shop (#432)
Fixed an issue where Rasolo the Merchant would open up the Fishing Guild Shop instead of his own.
2020-12-13 15:55:45 -05:00
JohnsonMichaels123 d3146dffb5 Spade Animation / SFX (#428)
- Spade now plays animation and sound.
2020-12-13 15:55:26 -05:00
JohnsonMichaels123 c239af25ad Sound Effects for Protection Prayers (#427)
- Adds Sound Effects for Protection Prayers
- Adds Sound Effect when Protection Prayers are disabled
2020-12-11 08:29:03 -05:00
JohnsonMichaels123 34ec942adc Song when player levels up a skill (#426)
Just plays a short song when a player levels up his skill.
2020-12-11 08:28:13 -05:00
Daniel Ginovker dcf09b2a41 Fixcrashesnov2020 (#425)
* Trycatch Discord Activity

* Another exception catch
2020-11-17 21:51:16 -05:00
Daniel Ginovker 09437f5b4e Trycatch Discord Activity (#424) 2020-11-17 21:37:08 -05:00
Josh Shippam e3b98a53c0 Welcome Interface Fixup (#421)
Fixed last logged in from IP
Various other changes/fixes
2020-11-09 14:34:36 -05:00
Peter Farber ebd55e6e8d Mining Fixes | Yell Command Fix (#420)
* Fixed Yell Command

* Added Mining Sounds. Fixed Addy and Mith Pickages.
2020-09-29 11:57:10 -04:00
Daniel Ginovker dbb96f1257 Revert "[BUGFIX] Running in 1-tick (#414)" (#419)
This reverts commit 605a434edf.
2020-09-04 20:14:44 -04:00
dginovker 64b422adeb Fix for bootleg fix 2020-09-04 09:01:36 -04:00
dginovker fd0bfda8a7 Bootleg fix for NPC aggro crash 2020-09-04 08:57:03 -04:00
Daniel Ginovker 9011688d2a Update README.md 2020-09-01 10:30:02 -04:00
Sandro Coutinho 8a6cf6f1ae [FEATURE] Data will now use json (#417)
* [FEATURE] Item data is now loaded from json

* [TASK] Renamed the old method into it's new use

* [TASK] Removed unused code

* [FEATURE] Added some more json's

* [CLEANUP] Code cleanup

* [FEATURE] NPC drops are now in json

* [CLEANUP] Removed testing class
2020-08-13 12:50:04 -04:00
Sandro Coutinho 09343c6a8c [BUGFIX] Al-Kharid & Shantay Pass banks, fixed waterskins (4) (#418) 2020-08-09 19:45:16 -04:00
Daniel Ginovker d9c91bb616 Make it build all submodules, not just server 2020-08-05 14:27:53 -04:00
Sandro Coutinho 0e63e0fa4e Npc aggression fix (#416)
* [BUGFIX] Running in 1-tick

* [BUGFIX] Fixed NPC Aggression
2020-08-04 20:04:57 -04:00
Daniel Ginovker dc397ba8d4 Create maven.yml 2020-08-04 19:44:22 -04:00
dependabot[bot] 057e92300f Bump mysql-connector-java in /2006Redone file_server (#413)
Bumps [mysql-connector-java](https://github.com/mysql/mysql-connector-j) from 5.1.23 to 8.0.16.
- [Release notes](https://github.com/mysql/mysql-connector-j/releases)
- [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES)
- [Commits](https://github.com/mysql/mysql-connector-j/compare/5.1.23...8.0.16)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-04 19:22:22 -04:00
dependabot[bot] 9facf855a1 Bump xstream from 1.4.1 to 1.4.10-java7 in /2006Redone file_server (#412)
Bumps [xstream](https://github.com/x-stream/xstream) from 1.4.1 to 1.4.10-java7.
- [Release notes](https://github.com/x-stream/xstream/releases)
- [Commits](https://github.com/x-stream/xstream/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-04 19:22:16 -04:00
Daniel Ginovker 4bd24204fc Update client IP (#415) 2020-08-04 19:21:34 -04:00
Sandro Coutinho 605a434edf [BUGFIX] Running in 1-tick (#414) 2020-08-04 18:50:08 -04:00
Daniel Ginovker e10ad156a9 Update README.md 2020-08-04 18:11:00 -04:00
Daniel GinovkerandSandro Coutinho eebc60084f Make project setup easier with Maven (#411)
* Remove a bunch of .ideas and class files to see if it makes the setup easier

* remove some .idea's and imkls

* Remove a ton of .class files

* [TASK] Switched to maven instead of gradle

* [TASK] Added target to gitignore

* Remove ignored files

* [TASK] Fixed file_server source

* [TASK] Fixed client source

* [BUGFIX] Main Class

* [BUGFIX] Fixed SLF4J

* [TASK] Server Libs cleanup

* Update setup guide/debug

* Maven cli compile instructions

* [TASK] Jar building

* Update runServer and runFileServer.sh

Co-authored-by: Sandro Coutinho <sandro@farrelltech.org>
2020-08-04 17:57:19 -04:00
Daniel Ginovker 6684364b64 Fix passing through gate to training grounds + make ::shop bots tele to current loc first try (#410) 2020-08-04 13:27:24 -04:00
Daniel Ginovker d2e8945578 Fix old player shops not appearing (#409)
* Add check that players are over total level 50, but shop items check is broken

* Bots now only appear when they meet reqs! Woot!

* Fix old bots not appearing
2020-08-03 13:59:02 -04:00
Daniel Ginovker 1a911f1ad0 Non-spammy player shops (#407)
* Add check that players are over total level 50, but shop items check is broken

* Bots now only appear when they meet reqs! Woot!
2020-08-03 13:28:43 -04:00
Daniel Ginovker 707783552f Make ::players show everyone, even for non-mods (#406) 2020-08-03 11:05:45 -04:00
Daniel Ginovker c1df673033 Make bots stay after restart (#405) 2020-08-03 10:52:16 -04:00
Damion 6085111d7c Region factory (#404)
* Split region loading and object population to factory class

* Implement changes, disable CommandConsole

* You guys don't omit /build/
2020-06-16 21:43:41 -04:00
Daniel Ginovker 5725a64abc Add gameplay image 2020-06-11 20:44:56 -04:00
Josh Shippam cd690fe31d Misc Fixes (#403)
* Fixed Ghostly Cape Equipping in Cape Slot

* Fixed Jumping Out Of Varrock Lumber Yard

* Changed All Quests To addOrDropItem

* Fixed Right Click in Java 10
2020-05-22 20:57:31 -04:00
Mr Extremez af578c400a Few small changes (#402)
- Fixed dragon battleaxe special
- Fixed banks in canifis and al kharid
- Added battlestaff enchanting
- Made fight caves entrance spawn at correct coords
- Did some small cleanup
2020-05-07 18:34:51 -04:00
dginovker 3387cd5f07 Fix conflicts 2020-05-07 18:33:56 -04:00
Mr Extremez b4371d3129 A few things (#401)
- Can't attack players or npcs through doors/walls anymore
- Cleaned up a few small bits of code
- Added a few new boundaries to the boundary system
- Removed dialogue asking are you sure you want to empty your inventory for admins
2020-04-10 20:03:28 -04:00
Mr Extremez 43f4b14dbf Various thing (#400)
- Nearly perfected fight caves now (should fix wave spawning, some dialogue bugs, instance issues)
- Added fully working monkey gree grees
- Fixed somes skill interface typos
- Added ability to dye goblin mails
- Fixed restless ghost quest interface typo
- Clarified herb cleaning required level message
2020-03-24 13:46:01 -04:00
dginovker a55a0fdefb latest compile 2020-03-18 10:05:56 -04:00
Mr Extremez 774d05f1e3 Update ItemData.java (#399)
Should fix the bank note bug hopefully
2020-03-18 10:02:02 -04:00
dginovker a9afe18014 Latest server compile 2020-03-13 20:53:10 -04:00
Mr ExtremezandDaniel Ginovker 5706bc9853 Some quick patches (#398)
- Bank all should now work for all items again
- Fixed al kharid gate not functioning
- Added unique cabbage pickable for Falador
- Fixed desert disguise wrongly being noted
- Reformatted some of the food code

Closes #397
Closes #395

(I also included @Qweqker changes so that will fix lumbridge bank boundary and adds his new cabbage effect)

Co-authored-by: Daniel Ginovker <dcress01@uoguelph.ca>
2020-03-13 20:36:20 -04:00
QweqkerandQweqker f9a9eae356 Bank Adjustment, Cabbage Patch (Pun intended) (#396)
* Added Cabbage ID for the cabbage that is supposed to spawn south of falador
Moved unique food dialogue inside the text handler to avoid duplicate messages
Added unique message for south of falador cabbage

* Adjusted Lumbridge Bank Boundary

Co-authored-by: Qweqker <qweqker@mail.com>
2020-03-13 20:33:52 -04:00
dginovker 801525fb0c update website urls 2020-03-12 19:42:04 -04:00
Mr Extremez cb65d89297 Update (#394)
Closes #393
- Sophanem city gates now functioning
Closes #392
- Improved rug travel, added missing travel options
Closes #391
- Added those curtains, along with many more curtains and other functional objects
Closes #390
- Dramen branch now untradeable/same with staff
Closes #389
- Lumbridge door should no longer get stuck, should fix other doors aswell
Closes #388
- Added Rasolo npc spawn
Closes #385
- Added missing fishing guild spawns
Closes #384
- Added missing port khazard npcs and a few other missing npcs too
Closes #379
- Added smelt x option
Closes #334
- Fixed dragon dagger store price and fixed high alch/low alch value for it
Closes #278
- Fixed strange numbers on runecrafting interface
Closes #244
-These were previously fixed

Also included:
- Added recieving random gems when mining (thanks to ben for pointing this out)
- Reduced door usage delay
- Random cleanup and deleted some unsued files/code
- Fixed many npc item drop names (thanks to iizyy for pointing them out)
- Fixed a few wizard tower doors
- Did more cleanup with the some of the old boundary methods
- Tidied up the discord commands and added the proper urls for them
2020-03-12 19:13:22 -04:00
db58bc868b Player Death and Level Up Sounds, Cutscene Support (#383)
* Added Player death Sound
Added a ton of Level Up Sounds (Some I do not know)

* Added command to play "quicksongs"

* adjusted chat message to properly name the command

* Added Camera functionality for cutscenes
Added Camera shake functionality for cutscenes/barrows/anything else
Added Camera reset functionality to return the player to the normal player view
Added some details on what each added method does
Refactored some of the method names for uniformity

* Added some commands to test the cutscene/camera features that were added in PlayerAssistant.java

Co-authored-by: Qweqker <qweqker@mail.com>
Co-authored-by: Daniel Ginovker <dcress01@uoguelph.ca>
2020-03-06 18:53:53 -05:00
Mr Extremez e5799200d7 A few things (#382)
- Added a distance check for item on object packet
- Added cook x functionality
- Removed a fair amount of dead code
- Did some renaming and fixed some typos
- Cleaned up a lot of the smithing code
- Added a new boundary system to reduce code clutter
- Fixed a firemaking bug
2020-03-06 18:52:10 -05:00
nocommento 804ceae886 Fix for issue #364 - staffs are now supported when enchanting jewellery (#381)
* Added staff support when enchanting (issue #364)

* Added staff support when enchanting (issue #364)
2020-02-28 17:51:05 -05:00
Daniel GinovkerandMr Extremez 174bdf5bfd Make farming not nuke & latest build (#378)
* Farming Skill, Orb Charging, Battle Staff Creation, etc

- Farming Skill Added
- Orb charging implemented
- Battle staff creation implemented
- Cleaned up some code
- Stuck command will now tele you from further out in wildy if you are not in combat
- Fixed an issue with amulet of glory
- Added forcechats for npcs at Gnome Agility Course, and for Cows, Ducks and Sheeps just like in actual osrs
- Added base for God Book preaching

* Remove setting farm level to 1

* Fix runServer.sh, patch farming skill nuke and latest build :)

Co-authored-by: Mr Extremez <aeggers90@hotmail.com>
2020-02-19 08:46:42 -05:00
Mr Extremez ef6968b283 Farming Skill, Orb Charging, Battle Staff Creation, etc (#377)
- Farming Skill Added
- Orb charging implemented
- Battle staff creation implemented
- Cleaned up some code
- Stuck command will now tele you from further out in wildy if you are not in combat
- Fixed an issue with amulet of glory
- Added forcechats for npcs at Gnome Agility Course, and for Cows, Ducks and Sheeps just like in actual osrs
- Added base for God Book preaching
2020-02-19 08:46:00 -05:00
Damion 9b220ec47c Implemented Command Processor (#375)
* Added CommandConsole and CommandProcessor Interface

* Added two commands, ListPlayers and Stop

* Registered commands with CommandConsole

* Added request for console from main.

Made help prompt not print after requesting help...

* Moved some files around

You didn't see anything

* Bug fix

* swap `break;` for `continue;`

* *cough* bug fix
2020-02-15 13:47:56 -05:00
Danial 02c7c30582 Misc changes (#376)
* Allow shop spawn anywhere if develop account + misc

* update client

* Update localhost client

* fixup
2020-02-14 07:57:26 -05:00
dginovker 34a1fe0e04 Merge branch 'mrextremez-newchanges' 2020-02-11 20:01:37 -05:00
dginovker 56e2c43251 New setup instructions + server jar 2020-02-11 19:59:49 -05:00
dginovker dc4edd3c32 Easier setup 2020-02-11 19:59:47 -05:00
dbrownidau 73da47ad18 Move shutdown call outside for loop. 2020-02-11 19:59:47 -05:00
dbrownidau 71256292eb Added block on main thread until tick scheduler shutdown. 2020-02-11 19:59:47 -05:00
dbrownidau 91c0da9932 Fix doco 2020-02-11 19:59:46 -05:00
dbrownidau 2dee7d2d2b Adjust formatting 2020-02-11 19:59:46 -05:00
dbrownidau 20568c8aaf Synchronization lock not required for scheduleAtFixedRate(new Runnable(){}) https://stackoverflow.com/a/35498230 2020-02-11 19:59:46 -05:00
dbrownidau 5faa526cf2 Moved main loop into FixedRate scheduler. Added sync lock on runnable. 2020-02-11 19:59:46 -05:00
dginovker c4160a3eba New setup instructions + server jar 2020-02-11 19:47:39 -05:00
dginovker 4a134a819e Easier setup 2020-02-11 18:53:00 -05:00
dginovker 95cdf3a029 Merge branch 'dbrownidau-fixedratetickloop' 2020-02-11 18:26:22 -05:00
dginovker e20cf57adf Merge branch 'fixedratetickloop' of https://github.com/dbrownidau/2006rebotted into dbrownidau-fixedratetickloop 2020-02-11 18:24:45 -05:00
Mr Extremez 217f341d7d quick
- removed some extra warnings lol
2020-02-10 00:42:02 -06:00
Mr Extremez 5ab79b1128 Range/Specials/Clean up
- Added correct range distance for all range weapons
- Fixed whip special attack when using on npcs
- Removed some warnings
- Refactored combat some
- Fixed a few typos
- Deleted some dead code
- Fixed bug where you could kill players with auto retaliate outside of the wilderness if you were already fighting them when they ran out

Closes #146
Closes #352

Also from a previous patch
Closes #329
2020-02-10 00:40:21 -06:00
dbrownidau 1d95da80b7 Move shutdown call outside for loop. 2020-02-10 14:09:56 +11:00
dbrownidau b665504c4b Added block on main thread until tick scheduler shutdown. 2020-02-10 10:35:19 +11:00
dbrownidau b855a98842 Fix doco 2020-02-10 01:35:40 +11:00
dbrownidau 00efcbbde9 Adjust formatting 2020-02-10 01:31:12 +11:00
dbrownidau fb1321c8e0 Synchronization lock not required for scheduleAtFixedRate(new Runnable(){}) https://stackoverflow.com/a/35498230 2020-02-10 01:29:57 +11:00
dbrownidau 3eb6e87019 Moved main loop into FixedRate scheduler. Added sync lock on runnable. 2020-02-10 00:38:52 +11:00
dginovker 2bef5158c4 readd runserver.sh 2020-02-06 02:59:29 +00:00
Daniel GinovkerandDamion e5e1495b4d [WIP] New setup (#371)
* Cleanup

* Add build file

* The great migration

* Restore MINA to 1.1.7

* Removed .gradle

* Added flatdir for libs with no artifact repository

* Add README.md, rename Implementation-Title

* New setup ease

* Update reademe and modules.xml

Co-authored-by: Damion <the@dbrown.id.au>
2020-02-03 17:40:24 -05:00
Damion 02b4df2666 Implementation of Gradle build framework (#369)
* Cleanup

* Add build file

* The great migration

* Restore MINA to 1.1.7

* Removed .gradle

* Added flatdir for libs with no artifact repository

* Add README.md, rename Implementation-Title
2020-02-03 17:13:57 -05:00
Daniel Ginovker 54f42aaf8a Convert item definitions into JSON form and fix shop prices (#367)
* Created itemdef.json with same content as itemdefs.gsu. Still need to read from it

* Converted a lot of IDs, not all

* All the runelocus shop items are in realshopvalues.json, all the old ones are in the regular json. Keeping this commit just in case something goes horribly, horribly wrong.

* Verified shop values are correct
2020-02-01 10:52:28 -05:00
Mr Extremez cbb7c7ba10 Various things enjoy! (#368)
* Various things enjoy!

- Added dairy churning
- Fixed soft clay so it uses 1 at a time
- Fixed spinning so it uses 1 at a time
- Added working cooking gloves
- Fixed mining animation glitch
- Fixed rune essence spam
- Added fix for tanning saying you do not have enough coins when you did
- Added working ecofuntus prayer training
- Added tiara binding and usage
- Added proper locate on rune talismans
- Can no longer pickpocket npc as it is dying
- No longer thieve men when trying to talk to them
- Improved birds nest to match accurately to rs
- Added desert heating system
- Cleaned up dialogue handler some
- Added chat emotes for dialogues
- Did some cleaning up
- Every possible item that has an empty option can now be emptied
- Cleaned up sheep shearing and improved it
- Added man npc dialogue
- Added back npc facing
- Added random messages when logging in on login screen
- Added player and staff player count for discord and ingame commands
- Improving the hopping stones at lighthouse, better, but not perfect
- You will no longer ever login and be at 0, 0 coordinates you will be automically moved to lumbridge
- Added a few new npc definitions
- Disabled rune mist requirement for admins
- Added getId command for admins to easily find item item ids
- Added working global chat
[::yell, ::hideyell will hide yells, 30 second delay for regular players, can not yell if you are muted or if word is blocked by filter, includes saving]
- Made a few changes to weight (should hopefully fix some of the weight bugs)

closes #366
closes #358
closes #331
closes #356
closes #234
closes #270
closes #309

* quick patch

- welcome screen bug fixed

* Cooking distance patch

- Cooking distance patch
2020-01-27 08:02:43 -05:00
dginovker 1d86d055a5 Merge commit w. Mr Extremez 2020-01-27 08:02:18 -05:00
Mr Extremez e2c675c392 Woodcutting animation fix (#363)
- Shouldn't copy other players anim anymore if more than 1 person is woodcutting

closes #173
2020-01-14 07:28:34 -05:00
dginovker eafe99af0a Latest compile 2020-01-13 07:53:55 -05:00
Mr Extremez 60239a38cf A few changes (#362)
- Stalls now dissapear when thieving them
- Added the missing coal rock in barbarian village
- Added some height level checks for object spawns
2020-01-13 07:53:18 -05:00
Daniel Ginovker 85a0406d9b Add rogues bank (#361) 2020-01-11 21:45:16 -05:00
dginovker dded6b8fd0 2.0 client notif 2020-01-10 18:15:01 -05:00
Mr Extremez db1f5ed785 Some fixes (#359)
- Added message of the week to welcome screen interface
- Added face north when clicking compass
- Disabled the blank tab on game frame
- Fixed all of the dialogue issues I could find in rune mysteries
- Fixed a few typos and did a very minor clean up in the dialogue file still a lot more planned soon
- Disabled resizable on the client seeing as it doesnt work correct currently anyways
2020-01-08 18:27:59 -05:00
Gptaqbc b1eaacf93c Door fix to facilitate Rune Mysteries script (#350)
Now some doors doesnt have forcemove anymore.
2020-01-07 17:57:08 -05:00
MitchvanWijngaarden c48b2575e9 fixed essence mining when multiple people are mining (#349) 2020-01-07 17:56:53 -05:00
dginovker cad66fdcc8 Latest compile 2020-01-06 07:41:36 -05:00
Daniel Ginovker d3a15b1aad Update README.md 2020-01-03 17:23:16 -05:00
Mr Extremez fdbb05597a A few fun fixes (#348)
- Ranging guild now works
- Fletching should no longer randomly stop if more than on person is doing it
- Added dragon longsword special attack

Closes #346
Closes #216
Closes #245
2020-01-03 09:12:09 -05:00
Gptaqbc 6b9d1d5881 Resolved couple special attacks issues(Whip, magic long bows, draggon daggers) (#347)
Resolved couple special attacks issues(Whip, magic long bows, draggon daggers)

I also discovered some issues about the special attack. There is no delay between the special attack and the next hit and the dragon longsword special attack doesnt work at all.
2020-01-02 18:35:04 -05:00
dginovker e3e74a6a25 Track github discord invites 2020-01-01 21:21:46 -05:00
3486 changed files with 604680 additions and 270438 deletions

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- name: Build with Maven
id: build
run: |
mvn -B clean package
mkdir -p artifacts
cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" artifacts/Client.jar
cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" artifacts/Server.jar
cp "2006Scape Server/ServerConfig.Sample.json" artifacts/ServerConfig.json
cp SinglePlayer.bat artifacts/
cp -r "2006Scape Server/plugins" artifacts/
cp -r "2006Scape Server/data" artifacts/
- name: Publish build to GH Actions
uses: actions/upload-artifact@v4
with:
name: 2006Scape-SinglePlayer
path: artifacts/
+18 -1
View File
@@ -1,5 +1,22 @@
2006Redone\ Server/data/characters/
2006Scape\ Server/data/characters/
.idea/
.idea/workspace.xml
**/.idea/workspace.xml
**/.idea/*
*/*.jar
*.iml
.DS_Store
2006Scape Server/data/logs
*.class
*.project
2006Scape Client/bin/
*.prefs
*.classpath
target/
**/target/
# Ignore any json files in the server root (should only be config files, the sample file should still be updated)
2006Scape Server/*.json
rsapriv
rsapub
+3
View File
@@ -0,0 +1,3 @@
[submodule "2006Scape-Android"]
path = 2006Scape-Android
url = https://github.com/2006-Scape/2006Scape-Android.git
-19
View File
@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.7</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>
-2
View File
@@ -1,2 +0,0 @@
# Default ignored files
/workspace.xml
-178
View File
@@ -1,178 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/2006Redone Server/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/2006Redone file_server/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/2006Redone Client/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/commons-lang3-3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/javac++.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/mina.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/mysql-connector-java-5.1.23-bin.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/slf4j-nop.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/slf4j.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/xpp3-1.1.4c.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone Server/libs/xstream-1.4.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/netty-3.6.6.Final.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/commons-lang3-3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/javac++.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/mina.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/mysql-connector-java-5.1.23-bin.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/slf4j-nop.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/slf4j.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/xpp3-1.1.4c.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/2006Redone file_server/libs/xstream-1.4.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="file://$MODULE_DIR$/2006Redone Server/libs" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$MODULE_DIR$/2006Redone Server/libs" recursive="false" />
</library>
</orderEntry>
<orderEntry type="library" name="libs" level="project" />
<orderEntry type="library" name="commons-lang3-3.1" level="project" />
</component>
</module>
-11
View File
@@ -1,11 +0,0 @@
<component name="ArtifactManager">
<artifact type="jar" name="2006rebotted:jar">
<output-path>$PROJECT_DIR$/CompiledServer/artifacts/2006rebotted_jar</output-path>
<root id="archive" name="2006rebotted.jar">
<element id="directory" name="META-INF">
<element id="file-copy" path="$PROJECT_DIR$/2006Redone Client/METAs/Client Meta/META-INF/MANIFEST.MF" />
</element>
<element id="module-output" name="2006rebotted" />
</root>
</artifact>
</component>
-11
View File
@@ -1,11 +0,0 @@
<component name="ArtifactManager">
<artifact type="jar" name="localhost_2006rebotted:jar">
<output-path>$PROJECT_DIR$/CompiledServer/artifacts/localhost_2006rebotted_jar</output-path>
<root id="archive" name="localhost_2006rebotted.jar">
<element id="directory" name="META-INF">
<element id="file-copy" path="$PROJECT_DIR$/2006Redone Client/METAs/Local Client Meta/META-INF/MANIFEST.MF" />
</element>
<element id="module-output" name="2006rebotted" />
</root>
</artifact>
</component>
-16
View File
@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CheckStyle-IDEA">
<option name="configuration">
<map>
<entry key="checkstyle-version" value="8.25" />
<entry key="copy-libs" value="true" />
<entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
<entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
<entry key="scan-before-checkin" value="false" />
<entry key="scanscope" value="JavaOnly" />
<entry key="suppress-errors" value="false" />
</map>
</option>
</component>
</project>
-17
View File
@@ -1,17 +0,0 @@
<component name="libraryTable">
<library name="commons-lang3-3.1">
<CLASSES>
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/commons-lang3-3.1.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/javac++.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/mina.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/mysql-connector-java-5.1.23-bin.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/netty-3.6.6.Final.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/slf4j-nop.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/slf4j.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/xpp3-1.1.4c.jar!/" />
<root url="jar://$PROJECT_DIR$/2006Redone file_server/libs/xstream-1.4.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
-7
View File
@@ -1,7 +0,0 @@
<component name="libraryTable">
<library name="libs">
<CLASSES />
<JAVADOC />
<SOURCES />
</library>
</component>
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/CompiledServer" />
</component>
</project>
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/2006rebotted.iml" filepath="$PROJECT_DIR$/.idea/2006rebotted.iml" />
</modules>
</component>
</project>
Generated
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
-175
View File
@@ -1,175 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ArtifactsWorkspaceSettings">
<artifacts-to-build>
<artifact name="localhost_2006rebotted:jar" />
</artifacts-to-build>
</component>
<component name="ChangeListManager">
<list default="true" id="9c1d485e-b413-4c80-b742-7c5a88c1c73c" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/2006Redone Server/src/com/rebotted/net/packets/impl/Commands.java" beforeDir="false" afterPath="$PROJECT_DIR$/2006Redone Server/src/com/rebotted/net/packets/impl/Commands.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/CompiledServer/production/2006rebotted/com/rebotted/net/packets/impl/Commands.class" beforeDir="false" afterPath="$PROJECT_DIR$/CompiledServer/production/2006rebotted/com/rebotted/net/packets/impl/Commands.class" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileColors">
<fileColor scope="Local Unit Tests" color="#161c22" />
<fileColor scope="Android Instrumented Tests" color="#161c22" />
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>math.sq</find>
</findStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="-7" />
<option name="width" value="1294" />
<option name="height" value="1407" />
</component>
<component name="ProjectId" id="1Sr1PyvKre5eWJ6XgOrqWrHM5hp" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/2006Redone Client/METAs/Client Meta" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.2" />
</component>
<component name="RunManager" selected="Application.GameEngine">
<configuration name="Client" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="Client" />
<module name="2006rebotted" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="FileServer" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="org.apollo.jagcached.FileServer" />
<module name="2006rebotted" />
<option name="WORKING_DIRECTORY" value="2006Redone file_server" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.apollo.jagcached.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="GameEngine" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.rebotted.GameEngine" />
<module name="2006rebotted" />
<option name="WORKING_DIRECTORY" value="2006Redone Server" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="redone.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<list>
<item itemvalue="Application.FileServer" />
<item itemvalue="Application.GameEngine" />
<item itemvalue="Application.Client" />
</list>
<recent_temporary>
<list>
<item itemvalue="Application.GameEngine" />
<item itemvalue="Application.FileServer" />
<item itemvalue="Application.Client" />
</list>
</recent_temporary>
</component>
<component name="ServiceViewManager">
<option name="viewStates">
<list>
<serviceView>
<treeState>
<expand />
<select />
</treeState>
</serviceView>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="9c1d485e-b413-4c80-b742-7c5a88c1c73c" name="Default Changelist" comment="" />
<created>1572306880139</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1572306880139</updated>
<workItem from="1576853591840" duration="1190000" />
<workItem from="1576854792240" duration="1663000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="COLUMN_ORDER" />
</State>
</value>
</entry>
</map>
</option>
<option name="RECENT_FILTERS">
<map>
<entry key="Branch">
<value>
<list />
</value>
</entry>
<entry key="User">
<value>
<list />
</value>
</entry>
</map>
</option>
</component>
<component name="WindowStateProjectService">
<state width="1877" height="266" key="GridCell.Tab.0.bottom" timestamp="1576858443106">
<screen x="0" y="40" width="1920" height="1040" />
</state>
<state width="1877" height="266" key="GridCell.Tab.0.bottom/0.40.1920.1040@0.40.1920.1040" timestamp="1576858443106" />
<state width="1877" height="266" key="GridCell.Tab.0.center" timestamp="1576858443106">
<screen x="0" y="40" width="1920" height="1040" />
</state>
<state width="1877" height="266" key="GridCell.Tab.0.center/0.40.1920.1040@0.40.1920.1040" timestamp="1576858443106" />
<state width="1877" height="266" key="GridCell.Tab.0.left" timestamp="1576858443105">
<screen x="0" y="40" width="1920" height="1040" />
</state>
<state width="1877" height="266" key="GridCell.Tab.0.left/0.40.1920.1040@0.40.1920.1040" timestamp="1576858443105" />
<state width="1877" height="266" key="GridCell.Tab.0.right" timestamp="1576858443106">
<screen x="0" y="40" width="1920" height="1040" />
</state>
<state width="1877" height="266" key="GridCell.Tab.0.right/0.40.1920.1040@0.40.1920.1040" timestamp="1576858443106" />
</component>
</project>
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Whitespace-only changes.
@@ -1,2 +0,0 @@
#Tue Jun 18 15:12:25 EDT 2019
gradle.version=4.10
Whitespace-only changes.
-17
View File
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>RS2006</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -1,11 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: Main
@@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: Client
-2
View File
@@ -1,2 +0,0 @@
/Client.class
/LocalGame.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loaded 100 of 3486 files, more files were not shown because too many files have changed in this diff. Show more