Commit graph

303 commits

Author SHA1 Message Date
João Pedro M. C. Hluchan
df85bfdcbc
fix(corelib): prevent duplicate child insertion in UIMiniWindowContainer (#1807)
Bug Fixes
- Improved mini-window placement when moving widgets between containers.
- Prevented widgets from remaining attached to an outdated parent during scheduled insertion.
- Preserved reliable insertion as target positions become available.
2026-08-14 20:11:41 -03:00
Eduardo Dantas
ef446a9d0c
feat(client): add automatic modern asset installation (#1727)
Add automatic client-asset installation for modern Tibia versions in OTC, with the UI and runtime support needed for a safe download-and-install flow.

Main changes:
- Add modules/client_assets to orchestrate descriptor and release resolution, downloads, retries, cancellation, archive extraction, optional LZMA handling, and SHA-256 integrity checks.
- Add richer install logs in the console, including download phases, install phases, and final install paths.
- Add support for packaged runtime files, including large DLLs distributed through archives.
- Make client_entergame depend on client_assets.
- Check required assets during login for modern clients version 1281 and newer.
- Prompt the user to download missing modern assets instead of requiring manual setup.
- Allow the client list and version selection to work with installed modern asset sets.

Install layout:
- Install things assets under data/things/<version>.
- Install sound assets under data/sounds/<version>.
- Keep extra runtime files in the existing client root/bin flow.
- Preserve the existing OTC asset layout as the source of truth instead of introducing a separate permanent path.

UI improvements:
- Improve missing-assets and progress dialog sizing and text wrapping.
- Improve progress behavior for downloads without Content-Length.
- Add indeterminate progress behavior for unknown-length phases.
- Add an hourglass busy indicator for indeterminate phases.
- Reduce the perception that the installer is stuck during long extraction steps.

Runtime and build support:
- Add libarchive usage and linking for archive extraction.
- Add SHA-256 helpers and Lua bindings used by client_assets.
- Add safer extraction and path normalization in ResourceManager.
- Adjust the Emscripten HTTP login path to follow the same HTTP/HTTPS fallback behavior used by native login.

Security and integrity:
- Enable strictManifestSha256 by default.
- Disable raw fallback on hash mismatch by default.
- Key releasesCache per source URL and repository to avoid stale cross-source cache reuse.
- Add an LZMA decompression output cap to reduce memory-exhaustion risk.

Compatibility:
- Keep existing classic asset behavior unchanged.
- Use the new auto-install flow only for modern versions when required assets are missing.
- Keep the scope limited to client-side asset automation and required runtime support.
- No server-side Canary behavior is changed by this PR.

This makes modern client setup safer and more automatic by downloading, validating, extracting, and installing missing assets directly from OTC while preserving the existing classic asset flow.
2026-05-28 16:18:44 -03:00
kokekanon
4a87cebb11
feat: protocol 15.24 packets and features (#1604)
New Features:
- Task Board (Bounty, Weekly, Shop) with Preferred & Soulseal modals, Kill Tracker, Offline Training dialog, Vocation tutorial, infobanner notifications, redesigned NPC chat/trade, and multi-slot action bar.

Gameplay Enhancements:
- Expanded Cyclopedia stats, talisman upgrades, weekly rewards/progress, soulseal fights, taskboard shop/offers and offline training actions.

UI / Graphics:
- Per-source spell-effect opacity sliders, status icon bar, HUD/scroll improvements, many new templates/styles, screenshot UI updates, and small label/icon fixes.

Bug Fixes:
- Miscellaneous UI behavior, layout and robustness improvements.
2026-05-20 11:26:11 -03:00
André Morais
b03c5d6e38
feat: imbuement system (#1616)
New Features:
- Imbuement Shrine UI: item/scroll selection, imbuement/clear flows, confirmation dialogs, timers, and cost display.
- New imbuement modules: selection, item/scroll handlers, and imbuement management.
- New progress bar widgets and vertical/inverted variants for status and timers.
- Exposed client APIs and protocol support for imbuement interactions.

UX Improvements:
- Resource requirement tooltips, formatted balance display, and conditional enablement of imbue actions.

Co-authored-by: kokekanon <114332266+kokekanon@users.noreply.github.com>
2026-05-20 11:16:46 -03:00
André Morais
ce885ea187
feat: proficiency (#1593)
New Features:
- Full Weapon Proficiency system: track weapon XP, levels and perks.
- Dedicated Proficiency window with item grid, progress, perk selection, filters and search.
- Top-bar proficiency widget for quick status and one-click access.
- Real-time updates when equipping items and gaining proficiency XP.
- Client and scripting support to send proficiency actions and apply perk selections to the server.

Co-authored-by: kokekanon <114332266+kokekanon@users.noreply.github.com>
2026-05-20 07:45:27 -03:00
kokekanon
80f58f85cc
fix: vbot UI (#1718)
New Features:
- Enhanced bot configuration system with improved loading and management.

Bug Fixes:
- Fixed container window sizing when minimizing, now dynamically calculates height based on layout.

Style:
- Updated scrollbar visual appearance with new imagery and styling.
- Refreshed tab bar button visuals, sizing, and color states.
- Adjusted editor button layout for better alignment.
- Improved tab font sizing based on text length rather than count.
2026-05-16 22:19:28 -03:00
kokekanon
7f16fc7c73
cleanup: minor otui errors (#1692)
New Features:
- Added chat channel features: invite/exclude players, dedicated loot channel, owner channel management.
- Fist Weapons category added to market system.

Bug Fixes:
- Improved null safety for local player checks across multiple systems.
- Fixed drag-and-drop validation.
- Prevented division-by-zero errors in calculations.
- Fixed port parsing from URLs.

Improvements:
- Enhanced window toggle button synchronization.
- Refined store description rendering with icons.
- Adjusted UI layouts and spacing across. multiple windows.
- Improved console channel handling.
2026-05-16 22:15:12 -03:00
Luan Santos
388b3ba2ea
feat(platform): add native Cocoa/AppKit windowing for macOS (#1559)
New Features:
- Native macOS app with Cocoa windowing, OpenGL view, improved input, clipboard and cursor handling.
- Platform-aware keyboard and shortcut behavior with clearer primary/meta/control semantics and normalized key combos.

Bug Fixes:
- Expanded detection for "connection refused" network errors.

Chores:
- macOS build/bundle and packaging improvements; new dependency overlay added; CI now runs macOS build when relevant.

Tests:
- AddressSanitizer support added for test builds.
2026-05-16 13:06:48 -03:00
RedSTwix
e8ef4cc044
fix: 0xD0 payload + server-side quest tracker persistence for current protocol (#1711)
Bug Fixes:
- Popup menu checkboxes now reliably toggle and report their state.
- Quest tracker initializes, saves and syncs more reliably; auto-track/untrack preferences persist and apply correctly.
- Mini-window “Remove completed quests” consistently clears completed entries and updates the tracker UI.

Refactor:
- Tracker sync and local state handling simplified for more consistent, efficient communication and UI rebuilding.
2026-05-12 18:00:45 -03:00
kokekanon
230fd90a26
improve(HTML): add full flex support (#1672)
New Features:
- In-app Examples tab with preview pane, responsive demo tab, and tabbed interface for browsing examples.

Bug Fixes:
- More accurate, stable scrollbar and flex layout sizing; improved relayout behavior and text wrapping/font-size handling.

Documentation:
- Added 20+ self-contained Flexbox example pages covering direction, justify/align, wrap/gap, item props, patterns (navbars, cards, dashboards, chat, kanban, etc.).

Style:
- Updated demo UI/CSS for improved spacing, preview layout, and responsive preview behavior.
2026-04-18 16:26:35 -03:00
kokekanon
30a65c3d89
fix(#1657): add packets 0xCA "ExivaRestrictions" (#1658) 2026-03-14 13:20:56 -03:00
Sherrat
8065f140f5
feat: load cursor colored/animation (#1614)
This feature allows for increased customization by enabling the addition of colored mouse cursors.

Co-authored-by: LIBERGOD <37589902+libergod@users.noreply.github.com>
2026-02-25 13:35:11 -03:00
André Morais
d809b0cabf
feat: wheel of destiny (#1578)
Co-authored-by: LIBERGOD <37589902+libergod@users.noreply.github.com>
2026-01-30 16:45:21 -03:00
Gabriel Alcântara Bernardes
6fbb7c082b
feat: one time password (#1360)
Co-authored-by: LIBERGOD <37589902+libergod@users.noreply.github.com>
2026-01-15 10:08:37 -08:00
InnerCircleTFS
f262a1e4b9
feat: Interactive text by oen (#1553)
Co-authored-by: LIBERGOD <37589902+libergod@users.noreply.github.com>
2026-01-09 10:34:34 -08:00
LIBERGOD
0752f9dffb
fix: scrollbar values (#1561) 2026-01-08 22:59:22 -03:00
Marcin Jałocha
8baa3c8f7a
feat: add otcv8 stats system (#1548) 2026-01-08 09:00:51 -08:00
kokekanon
bf8eee94fb
style: fix visual bugs (#1526) 2026-01-06 21:50:11 -03:00
LIBERGOD
ddd76391a5
feat: game_market (#1539)
Co-authored-by: InnerCircleTFS <ringofoner52@gmail.com>
Co-authored-by: Luan Luciano <luanluciano93@gmail.com>
2026-01-06 09:13:52 -03:00
André Morais
a7251bcab8
fix: market value format (#1509) 2025-12-30 01:30:37 -03:00
Luan Luciano
7b132aa98a
feat: compatibility with 15.11 (only bytes)
Co-authored-by: kokekanon <114332266+kokekanon@users.noreply.github.com>
2025-12-21 12:06:28 -03:00
kokekanon
a6ee8100c6
fix: prevent WARNING: Lua warning: member function call skipped becau… (#1467) 2025-11-20 21:49:23 -03:00
SkullzOTS
f726bb035b
feat: dragging item icon (#1466) 2025-11-20 16:55:02 -03:00
SkullzOTS
a8703e0a11
improve: android features and fixes (#1427) 2025-11-08 13:55:09 -03:00
kokekanon
1645b2b0b3
improve: game_actionbar multiple Bars (#1354) 2025-10-25 04:28:51 -03:00
kokekanon
9dd9540f90
improve: modalDialog , allow HTML string fix: #929 (#1396) 2025-10-24 18:34:22 -03:00
SkullzOTS
ceb2dd9699
improve: update android project
- gradle updated to use Kotlin DSL
- updated version of SDK and some dependencies
- now when minimizing the client the sound stops playing in the background (thx @slenderzn)

Co-authored-by: SlenderZN <62772580+slenderzn@users.noreply.github.com>
2025-10-19 12:35:09 -03:00
Renato Machado
a986790925 fix #1377 2025-10-16 20:34:56 -03:00
Renato Machado
e51a0043de fix: missing parent variable access in nested *for loops 2025-10-15 20:24:45 -03:00
Renato Machado
2dd672b960 fix(html): preserve nested *for context
ex:  self.teste = {
    {arr = {1, 2, 3, 4, 5}}
  }

<div *for="local teste in self.teste">
    <div *for="local arr in teste.arr">{{arr}}</div>
</div>
2025-10-14 20:05:41 -03:00
Gabriel Alcântara Bernardes
e29a9cd82d
feat: circle mana shield (#1320)
* feat: show mana shield circle

* fix: empty mana circle

* wip: statsbar

* wip: mana shield

* fix: mana shield bar

* fix: mana shield show text

* wip: is mage

* Add mana shield bar to mage player HUD

* fix: color
2025-10-13 11:42:35 -07:00
LIBERGOD
8975696353
feat: game analysers and fix: cooldown bars (#1310)
* wip

* feat: added analyser button

* feat: WIP: exp analyzer UI

* feat: WIP: XP analyzer window open/close

* feat: wip: exp analyzer exp gain/exp hour

* fix: mini window content on exp analyzer and setup on analyzer windows

* fix: negative zero value

* wip: start fixing cooldowns bar..

* fix: improve experience per hour calculation and handle edge cases

* fix: update UI components in experience analyzer

* feat: improve analyzer window handling

* feat: adjust UI elements in game analyzer

* feat: improve analyzer window handling

* Update game_analyzer.lua

* feat: enhance experience analyzer UI

* feat: enhance experience analyzer UI

* feat: enhance experience analyzer UI

* feat: enhance experience analyzer UI

* feat: enhance experience analyzer UI

* Add new UI components for game analyzer features

- Implemented a loot target setting window with input validation.
- Created a miscellaneous tracker UI with various data displays.
- Added party hunt analysis UI with leader and member information.
- Developed a supply analyzer window to track looted items and their values.
- Introduced an XP analyzer window to monitor XP gains and progress.
- Added functionality for setting XP per hour targets with input validation.

* feat: hide debug print statements in analyser and cooldown modules

* feat: improve config saving with error handling and directory checks

* feat: enhance game analyzer UI by hiding unnecessary buttons and adding context menu functionality

* feat: update game analyzer UI by improving menu options and visibility handling for various components

* mod: GraphUI variables locations

* imp: text color and positions GraphUI

* feat: adjust window height based on raw XP visibility

* imp: Cyclopedia Items

* feat: Drop Tracker list w/ Cyclopedia

* feat: Drop Tracker list w/ Cyclopedia

* feat: Drop Tracker + onKillTracker callback

* feat: Drop Tracker + Cyclopedia Track

* feat: Loot and Hunting Gold Values

* fix: Cyclopedia Item Values and c

* fix: fallback not needed

* fix: Valuable Loot - Drop Tracker

* feat: Loot Analyser 100% + Format change

* feat: Enhance number formatting with K, KK

* feat: Implement supply tracker callback to Lua

* fix: values Loot and Supply

* fix: XP graphs, DropTracker valuable loot pt1

* fix: DropTracker valuable loot pt2

* fix: Supply reset data

* feat: Impact and Input Analyser pt1

* feat: Impact and Input Analyser pt2

* fix: Hunting and Input Analyser

* feat: Impact and Input Analyser pt3

* feat: Impact and Input Analyser final

* feat: Impact and Input Analyser final

* feat: BossCooldown pt1

* feat: BossCooldown final

* fix stuffs tks @luanluciano93 + partyHunt setup initial

* Update PartyHuntAnalyser.lua

* feat: Party analyser pt1

* test

* rebuild1

* fix: partyAnalyser updates

* Fix partyAnalyser updates

* code refact

* fix: party leave/join

* Update PartyHuntAnalyser.lua

* fix lag due to many requests

* feat protocolparse Reset Party Hunt

* fix correct protocol codes/params

* feat: loot splitter + msising tutorial images

* fix lootsplitter + hunting reset

* fix 1

* refact-pt1-reseters

* imp: debug/prints clean-up

* remove fontbug

* Update PartyHuntAnalyser.lua

* refact 1

* Cyclopedia Items Price/value refact 1

* Cyclopedia Items Price/value refact 2

* Cyclopedia Items Price/value refact 3

* Cyclopedia Items Price/value refact 4

* Loot Analyser Refact 1

* Loot Analyser Refact 2

* Cyclopedia Items Price/value refact 5

* Hunting Analyser Refact 1

* Hunting Analyser Refact 2

* Refact Loot, Supply, Hunt, Cyclo FINAL.

* Refact Market Data + Canary fix

* Update analyser.lua

* refact - remove misc

Will be developed in future. Custom feature.

* fix-cooldown-search

* imp structs for better data handling

* imp structs for better data handling  pt2

* fix actions error

---------

Co-authored-by: Matheus <matheussf.sc@gmail.com>
2025-10-13 10:18:54 -07:00
Renato Machado
26473ee518
fix: loading img by img tag 2025-10-10 12:12:07 -03:00
Renato Machado
a6c8dff0f2
improve/fix(html): text, rules and renders 2025-10-10 00:32:54 -03:00
Renato Machado
5d8fec56a6 feat(html): support attr for 2025-10-07 13:16:43 -03:00
Renato Machado
2512e57d3f
fix(html): #1350 #1348 #1346 #1347#1349 (#1352) 2025-10-06 23:33:29 -03:00
Marcin Jałocha
8475056989
fix http timeout problems (#1337) 2025-10-05 21:27:04 -07:00
Renato Machado
0297c56556 fix: widthRequiresContainingBlock to widthAutoFillsContainingBlock 2025-10-05 15:31:09 -03:00
Renato Machado
c231037dc1 fix(watchlist): sync list updates when array reference changes
Previously, replacing the array reference (e.g. self.players = {...}) did not trigger reactivity,
causing *for elements not to update on screen. Now the watchList automatically refreshes its
list reference before scanning, ensuring proper synchronization even when the source array
is reassigned.
2025-10-05 12:33:52 -03:00
Renato Machado
f97007320f
improve: html/css v0.3b (#1333)
- Added support for reactive *for loops
- Implemented full event propagation system
- Fixed align-items to properly center elements vertically
- Fixed several bugs (and probably added a few new ones too 😆)
2025-10-04 18:50:59 -03:00
Renato Machado
6a2bff9a80
improve: html/css syntax 2025-09-28 14:46:24 -03:00
LIBERGOD
8311a011a0
improve: UI, Styles, MiniWindow General, see Roadmap
- Introduced a new miniwindow header image for UI.
- Created a new style file for the miniwindow battle interface, defining layout, buttons, and scrollable content.
- Configured button states for close, minimize, and toggle filter functionalities.
- Established visual elements such as borders, backgrounds, and dimensions for a cohesive design.
- Multi-Instance battle list feature.
- Filters and Orderings for each instance.
- Lock buttons specific to each instance.
- Keep open/re-launch when relog/exit game.
- On close, it destroys the instance, cleaning up its settings.
- A bunch of safety checks and locks to ensure they are working properly, and update all windows accordingly.
2025-08-27 18:42:18 -03:00
kokekanon
357d15043b
fix: battlelist widget with Object Pool 2025-08-02 12:26:48 -03:00
kokekanon
cfc054dc05
fix: boundKeyPressCombos [fix: #1000, #1251 , #1231 , #738] (#1253) 2025-07-27 11:49:01 -03:00
Renato Machado
51060a884d
perf: battle and general layout update optimized (#1212) 2025-06-25 18:34:11 -03:00
Renato Machado
0d7b0085bc Revert "perf: battle and general layout update optimized "
This reverts commit 0681f03e6e.
2025-06-25 12:26:51 -03:00
Renato Machado
0681f03e6e
perf: battle and general layout update optimized 2025-06-24 15:52:22 -03:00
ALS
53459d18ef
fix: UIResizeBorder to direction Top and Left #1208 2025-06-19 17:11:42 -03:00
kokekanon
6fd620505a
feat: "Read-only Tab" in game_console (#1189) 2025-06-11 13:03:38 -03:00
kokekanon
2ee2b6ed86
fix: #1051 popmenu position (#1156) 2025-05-19 18:35:14 -03:00