fix(bridge): resolve cliloc file case-insensitively on Linux shards #38
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/cliloc-case-insensitive-resolve"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Resolve the cliloc file case-insensitively so the bridge's cliloc import works on a Linux/Mono shard whose client ships
Cliloc.enu(capital C).Why
On a case-sensitive filesystem (ext4),
Ultima.Files.GetFilePath("cliloc." + lang)probes for exactly the lowercasecliloc.enuand returnsnull— soBridgeCliloc.ReplyTableemitted theNOT_FOUND"this shard's client has no cliloc.enu" reply even though the file was present and readable by the shard. On Windows (case-insensitive NTFS) it always matched, which is why this only surfaced during the Windows → Linux/Mono migration.Fix
ResolvePathnow falls back to the existing case-insensitive, by-enumeration resolverBridgeUop.FindClientFilewhen the primaryGetFilePathlookup misses. This is the exact treatment the overlay already gives UOP animation packages andassets.sources— see the rationale atBridgeUop.cs("the gargoyles import on my machine and not on the server"). The cliloc path never got it only because its file is inUltima.Files' known-file table, so plainGetFilePathwas always enough on Windows.GetFilePathstill answers first there.PROTOCOL_VERSIONbump. Overlay-only change.Docs
Companion note in
docs/website/CLILOCS.md(RunicGateway/docs#415): states cliloc resolution is case-insensitive on Linux shard hosts.Testing
Static change in overlay source (no standalone build for this plugin; ServUO compiles it at boot). The fallback reuses the already-proven
FindClientFileenumeration verbatim; Windows behaviour is preserved becauseGetFilePathis tried first and short-circuits on success.Closes #37
🤖 Generated with Claude Code
https://claude.ai/code/session_014HJEmcaKvWQ8LsnXHKha5y
Cliloc import over the bridge failed on a Linux/Mono shard whose client ships `Cliloc.enu` (capital C): `Ultima.Files.GetFilePath` probes for the exact lowercase `cliloc.enu` and returns null on a case-sensitive filesystem, so BridgeCliloc replied NOT_FOUND even though the file was present and readable. ResolvePath now falls back to the existing case-insensitive, by-enumeration resolver `BridgeUop.FindClientFile` when the primary lookup misses — the same treatment the UOP animation packages already got ("the gargoyles import on my machine and not on the server"). Windows is unchanged (GetFilePath still answers first); the message shape is unchanged, so no PROTOCOL_VERSION bump. Closes #37 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014HJEmcaKvWQ8LsnXHKha5y