Commit Graph

22 Commits

Author SHA1 Message Date
medievalshell ae9bc8bfce feat(utils): split-aware gamedata loader with tiered merge
Introduces loadGamedata(url, options?) and mergeGamedata(a, b) in
@nitrots/utils. The loader transparently accepts:

- a single-file URL (legacy) -> parsed as before
- a directory URL ending with '/' -> tier-merged from core/custom/seasonal,
  each tier driven by its own manifest.json5

Merge rules:

- arrays of objects sharing an id key (id, classname, name): merged by id,
  later layers overriding earlier ones
- arrays without an id key: concatenated
- plain objects: recursive merge per key
- anything else: later value wins

All gamedata consumers (FurnitureDataLoader, ProductDataLoader,
EffectAssetDownloadManager, AvatarRenderManager actions+figuredata,
LocalizationManager) are migrated to loadGamedata. Behaviour is unchanged
for single-file URLs, so existing deployments need no config changes;
opt-in to split mode by appending '/' to the URL once the layout is in
place.

README updated with the directory layout, merge table and programmatic
usage example. The companion CLI splitter that produces the core/ tier
from legacy files lives in the Nitro V3 client repo.
2026-05-18 21:19:54 +02:00
medievalshell 2a00365862 feat(utils): honour __NITRO_JSON_MODE__ flag in JsonParser
Adds three explicit parsing strategies selectable at host build time via
the compile-time constant __NITRO_JSON_MODE__:

- legacy: strict JSON.parse only; clear error suggesting JSON5 mode
- json5 : JSON5.parse only
- auto  : try JSON, fall back to JSON5 (existing behaviour and default
          when the flag is undefined, so older hosts keep working)

URL/MIME hints for .json5 sources are still respected. README updated
with the modes table and a Vite wiring example.
2026-05-18 20:37:46 +02:00
duckietm 31df26bd1b 🆕 Added support for JSON5 2026-05-18 16:14:38 +02:00
DuckieTM cb1a34405b 🆙 Fix Gifts 2026-04-05 09:40:20 +02:00
duckietm d63be7dd62 🆙 more optimization mem. 2026-04-03 10:48:13 +02:00
Lorenzune 10b3d64ee0 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	packages/communication/src/NitroMessages.ts
2026-03-21 14:49:08 +01:00
duckietm 5aef7a3de2 🆕 Disconnection handler, when you got disconnected you automatic go back to the room 2026-03-19 15:04:47 +01:00
DuckieTM 527f466531 Merge pull request #3 from Lorenzune/pr/wired-renderer-click-user-overlay-clean-20260318
feat(renderer): add click-user packet and refine wired overlay
2026-03-19 09:53:00 +01:00
duckietm 5b139dfef8 🆙 Update better error handeling 2026-03-19 09:40:49 +01:00
Lorenzune 5929faf9c7 fix(renderer): refine wired selection overlay
- keep selected items fully opaque

- blend only the wired overlay tint instead of lowering item alpha

- improve readability for green primary and blue secondary wired highlights
2026-03-18 17:38:56 +01:00
Lorenzune 9333a440e4 fix(renderer): refine wired selection overlay
- keep selected items fully opaque

- blend only the wired overlay tint instead of lowering item alpha

- improve readability for green primary and blue secondary wired highlights
2026-03-17 03:28:05 +01:00
duckietm 959bace1b7 🆕 Updated Chooser & Furni command - now glowing ! 2026-02-24 08:17:04 +01:00
duckietm a6f1d1c45e 🆙 Added Black to Aplha Filter, to get the real deal for blending furni 2026-02-18 14:44:18 +01:00
DuckieTM 8f5a9f7188 🆙 Patch GlTextureSystem & Fix effects like BBRed
- Monkey-patch the renderer's GlTextureSystem to prevent crashes from destroyed textures
2026-02-07 19:08:39 +01:00
DuckieTM 9c43cb240e 🆙 Fix Effects (enable) 2026-02-07 11:25:38 +01:00
DuckieTM 4f2c2f904c 🆙 Updates
* Fix PixiJS v8 deprecation warning (PixiJS v8 only allows Container objects to have children)

* Changed from whitelist to blocklist approach in LegacyExternalInterface:
- Allows legitimate callbacks like 'openroom', 'opennavigator', etc.
- Blocks only dangerous globals (eval, Function, window, document, etc.)
- Blocks prototype pollution vectors (__proto__, constructor, etc.)
- Blocks network/storage APIs from being overwritten.
2026-01-31 16:18:03 +01:00
DuckieTM eb4fe80612 🆙 Updates
- Added Test Coverage
- Fix Potential Memory Leaks
2026-01-31 13:21:59 +01:00
DuckieTM d864fe3018 🆙 Update Deps. + WiP 2025-03-15 14:54:10 +01:00
duckietm 14bf0fdcbd 🆙 Fix firework memory leak and update pixi.js 2024-09-13 08:04:35 +02:00
duckietm bd09ea8b25 🆙 added latest changes 2024-07-04 15:03:26 +02:00
duckietm d5a3a05c40 Updated the renderer V2 2024-04-25 11:35:50 +02:00
duckietm b3134ce50b Move to Renderer V2 2024-04-03 09:27:56 +02:00