aboutsummaryrefslogtreecommitdiff
path: root/webAO/client
AgeCommit message (Collapse)Author
5 daysRemove hardcoded (a) and (b) emote subdirectoriesOsmium Sorcerer
Note: this is an old commit that was relevant prior to 10b413c ("Add asset preloading system for IC message rendering") WebAO assumes every character has an idle and talking animations which reside in fixed "(a)" and "(b)" subdirectories. This assumption, of course, breaks many valid characters that don't use these magical directory names, as it prepends them to every emote URL. This commit removes this fossil. Animation, or any character structure at all, shouldn't depend on magical subdirectory names, and instead defined explicitly.
5 daysRemove toLowerCase manglingOsmium Sorcerer
For whatever reason, WebAO decides to normalize almost every string component in URLs, packets, and INI files to lower case. First, the glaring issue. In the URLs, this handling of paths is utterly broken and corrupts data. By mangling characters, you change the resource identity and break valid URLs. According to section 6.2.2.1 of RFC 3986 (Case Normalization): > When a URI uses components of the generic syntax, the component syntax > equivalence rules always apply; namely, that the scheme and host are > case-insensitive and therefore should be normalized to lowercase. For > example, the URI <HTTP://www.EXAMPLE.com/> is equivalent to > <http://www.example.com/>. The other generic syntax components are > assumed to be case-sensitive unless specifically defined otherwise by > the scheme (see Section 6.2.3) Scheme and host _are_ case-insensitive. Path is _not_, so isn't everything else. Section 6.2.3 doesn't define any normalization for the path component in HTTP schemes. Thus, example.com/item and example.com/Item are two different resources. I can only think of idiotic conventions of a particular poorly designed file system when it comes to this absurdity. There's no reason to drag them around in our developments. For these systems, case doesn't matter anyway, normalization is their job, not server hosts' who end up having to either rewrite every URL request for every asset, or mangle their asset directory and then rewrite almost every INI config (and spam "showname=Name" everywhere because now your character directory has to be "name"). So, instead of using absurd ad-hoc solutions to a broken implementation such as forcing everything to lower case on the server side, this commit attempts to fix the root issue and make URL handling conformant to relevant standards. Similar situation with strings within packets, although not as severe in practice. Case must be preserved, otherwise it's corrupting data for no reason. If a normalization is needed, it should be done at the call site of whatever requires it (like a filtering function), not by the parser. As for the INI, it's opinionated. While the values absolutely must not be normalized, a case can be made for keys and section names: why not allow "Options", "options", or even "oPtiOnS"? It's more convenient, and corresponds to the platform quirk of Windows (which Qt unfortunately inherits in AO2 Client). I don't think there's a good reason to allow such leniency in parsing, and removing superfluous normalization is a better move: less data transformations, less ambiguity, more strictness. In practice, INIs tend to be well-formed, and it's good discipline to write them this way. In several places, the case-folding does make sense: callwords, OOC commands, CSS class names for areas, and character list filters. These will behave weirdly and inconveniently without it. In most places, however, it only causes unnecessary breakage.
5 daysRemove CH-sending timerOsmium Sorcerer
CH is an application-level keepalive packet that clients periodically send for two reasons: 1. It tells the server they're still connected, preventing timeouts. 2. By measuring latency between sending CH and receiving CHECK, a client can display ping. Keepalive is redundant because WebSocket can handle that via PING frames on a transport layer. WebAO also completely ignores CHECK and sends CH every five seconds, which is superfluous (AO2 Client sends it once every 45 seconds, in comparison). Sending CH via `setInterval` was also problematic: browsers seem to throttle it when the tab becomes inactive, preventing periodic pings and leading to the server disconnecting inactive browser clients.
5 dayshide confusing text for banned playersstonedDiscord
2026-04-06Merge pull request #301 from AttorneyOnline/rendering-fixstonedDiscord
Fix IC rendering race conditions with asset preloading
2026-04-01Add asset preloading system for IC message renderingDavid Skoland
Fix rendering race conditions where character sprites, pre-animations, and paired character assets were displayed before being downloaded. All assets referenced in an MS packet are now resolved and preloaded into the browser cache before the animation timeline starts. - Add unified assetCache module with session-wide promise caching - Add preloadMessageAssets orchestrator for parallel asset resolution - Cache fileExists HEAD requests so missing files aren't re-probed - Preload all SFX (emote, shout, realization, stab) alongside sprites - Use synchronous setEmoteFromUrl at all render transition points - Graceful fallback to legacy setEmote if preloading times out Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28remove UI related changesDavid Skoland
2026-03-24no double noticeDavid Skoland
2026-03-24Add reconnect UI, disconnect button, and visual cleanupDavid Skoland
- Redesign disconnect overlay as a full-screen modal with dark backdrop - Add working Reconnect button that properly re-establishes WebSocket connection - Add Disconnect button in Settings for testing - Separate disconnect and ban/kick codepaths (no reconnect on ban) - Log disconnect notice in IC log using hrtext style - Refactor area list rendering from client state (renderAreaList) - Extract appendICNotice for reusable IC log notices - Clean up charselect: hide during loading, simplify toolbar layout - Freshen loading screen and charselect styling - Remove loading progress text updates (just show "Loading...") - Guard against undefined client.chars and client.serv Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-07Use setAOhost return value instead of stale AO_HOST importDavid Skoland
setAOhost now returns the current AO_HOST so handleASS can use the freshly set value rather than the import captured before the update. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07Use charicon_extensions from extensions.json for char icon URLsDavid Skoland
Instead of hardcoding .png, read the preferred extension from client.charicon_extensions[0] (populated via extensions.json), falling back to .png if unavailable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07Catch rejected play() promises from browser autoplay policyDavid Skoland
Browsers reject .play() with a DOMException when the user hasn't interacted with the document yet. Add .catch(() => {}) to all 9 play() call sites to suppress the uncaught promise rejection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07Defer char.ini loading and use direct img src for char iconsDavid Skoland
Instead of eagerly fetching char_icon (with HEAD requests per extension) and char.ini for every character on join, set img.src directly to char_icon.png and defer char.ini loading until actually needed (character selection via handlePV, or first IC message via handleMS). This eliminates thousands of HTTP requests on join for large character lists. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2025-09-16forgot chariconsstonedDiscord
2025-09-03remove failed manifestostonedDiscord
2025-09-03also do bgsstonedDiscord
2025-09-03also get backgroundsstonedDiscord
2025-09-03emotionsstonedDiscord
2025-09-03loggingstonedDiscord
2025-09-03get list of extensions to try from hoststonedDiscord
2025-06-26isaudio edge casesstonedDiscord
2025-06-26move setemotestonedDiscord
2025-06-26dumbass smart tvstonedDiscord
2025-01-25Prettified Code!stonedDiscord
2025-01-25whoopsstonedDiscord
2025-01-20Prettified Code!stonedDiscord
2025-01-20huhstonedDiscord
2025-01-20Prettified Code!stonedDiscord
2025-01-20allow url to override assstonedDiscord
2024-12-12get rid of sageTags in a few placesstonedDiscord
plan is to migrate to createTextNode
2024-12-12akashi expects 2 args for modcallsstonedDiscord
2024-11-20Prettified Code!stonedDiscord
2024-11-20Prettified Code!stonedDiscord
2024-08-07add ban buttonstonedDiscord
2024-08-07adding and removing worksstonedDiscord
2024-08-07update layoutstonedDiscord
2024-03-07encoding oopsiestonedDiscord
2023-12-21Revert "Merge pull request #212 from Troid-Tech/searchable-pairing-partner"stonedDiscord
This reverts commit 965e3e937065511fe9052ac687f54c1528a1e043, reversing changes made to b288429cca94a461c8fa3d1936905d7e0e601d7f.
2023-12-21Use datalist in pairing to make it searchableDavid Skoland
By using data list instead of select, we can easily make it searchable and render a platform-native dropdown which filters options based on the search. This makes finding your pairing partner much easier, especially in servers with many characters.
2023-12-07fix ooc autoscrollstonedDiscord
2023-11-22Merge pull request #201 from Troid-Tech/connect-to-wssstonedDiscord
Fix https and add wss support
2023-11-22adjust offsetstonedDiscord
2023-11-22fix autoscrollstonedDiscord
2023-11-20Upgrade asset link to https in secure contextDavid Skoland
2023-11-13Use URLSearchParams and set default directlyDavid Skoland
2023-09-20autoformat with eslintstonedDiscord
2023-09-20make eslint a lot happierstonedDiscord
2023-09-20unused sendMusic.tsstonedDiscord
2023-07-27categorystonedDiscord
2023-04-04fix reconnect buttonstonedDiscord