Commit graph

128 commits

Author SHA1 Message Date
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
Eduardo Dantas
16b9b49107
ci: rework build workflows and vcpkg baseline (#1703)
Chores:
- Reorganized CI into reusable workflows, removed legacy workflows, added cache-cleanup and scheduled vcpkg baseline updater.
- Modernized Docker builds to multi-stage Ubuntu 24.04, added reusable Docker build and browser builder improvements.
- Refined CMake presets/toolchain defaults, exposed vcpkg baseline update, and broadened dependency platform support.
- Expanded linting/analysis configs and Lua syntax checks; updated ignore patterns for build/artifact files.

Bug Fixes:
- Various build, packaging and runtime configuration reliability fixes across Windows, Linux and macOS.
2026-05-01 19:42:53 -03:00
Kizuno18
d539e779ef
fix: encryption system crashes and data corruption when ENABLE_ENCRYPTION=1 (#1684) 2026-04-16 00:56:04 -03:00
Renato Machado
88dd26b4a5 chore: update all copyright headers to 2026 2026-01-09 15:27:28 -03:00
kokekanon
7d57547da5
fix: compilation Encryption Mode (#1474) 2025-11-23 21:56:52 -03:00
Luan Luciano
d22a2f9b78
fix: memory leak that occurs with each call to the decrypt() function
Allocation of new uint8_t[size] without delete[] before the return
2025-11-14 17:07:44 -03:00
Renato Machado
acaf98d1e0
refactor: cleanup includes and extract structs/enums to separate headers (#1397)
- Removed unnecessary includes from header files.
- Replaced heavy includes with forward declarations where applicable.
2025-10-28 00:23:01 -03:00
Renato Machado
3d89d6ed08 Revert "refactor: modernize codebase using ReSharper cleanup"
This reverts commit 5933f8d176.
2025-10-17 18:02:49 -03:00
Renato Machado
fe940dd7e1 Revert "chore: normalize code formatting across the entire project (#1382)"
This reverts commit d0f068d2e7.
2025-10-17 16:45:05 -03:00
Renato Machado
d0f068d2e7
chore: normalize code formatting across the entire project (#1382) 2025-10-17 16:37:24 -03:00
Renato Machado
5933f8d176
refactor: modernize codebase using ReSharper cleanup 2025-10-16 22:06:38 -03:00
Renato Machado
d72f165242 Update Copyright 2025-06-26 17:12:05 -03:00
kokekanon
f49c81260b
fix: #1044 update texture (#1211) 2025-06-25 18:35:28 -03:00
InnerCircleTFS
d2a40c8451
fix: Websocket Vbot 4.8 (#1191) 2025-06-11 19:57:23 -03:00
Eduardo Dantas
72578f3b03
improve: add support to fmt format to logger class (#1169)
Add native fmt formatting support to Logger

Replaces all usage of stdext::format with fmt::format across the codebase.
Adds fmt::format_string overloads to all log-level functions (debug, info, warning, error, fatal).
Enables use of brace-style placeholders like {} and {:02X}.
Keeps full compatibility with Lua string-based logging.
Adds automatic fmt formatters for Position and enums.
Introduces fmt as a new required dependency.
2025-05-27 20:47:23 -03:00
SkullzOTS
ce0c2a7340
improve: Encryption
It just fixes the consideration of the absolute bots directory for "customs" and does not consider other directories just because it has "bot" in the string and also fixes a bug, where it was possible to read decrypted files even when encryption was enabled.
2025-04-06 16:41:48 -03:00
SkullzOTS
75e0ea0c6e
improve: Encryption System 2025-01-24 21:16:33 -03:00
Renato Machado
84f465f604 Update Copyright 2024-12-24 23:42:01 -03:00
Renato Machado
2ad053cb68
improve: removed unused includes 2024-12-24 23:38:07 -03:00
Renato Machado
241d91b0db
cleanup: project 2024-12-13 22:43:36 -03:00
OT Archive
0700333f63
feat: browser support (#894)
Support compiling to javascript and webassembly using Emscripten.
2024-11-29 14:12:47 -03:00
SkullzOTS
1d3ccd6134
fix: #867 2024-09-14 18:33:15 -03:00
Renato Machado
8160999c4d fix: crash with getTexture inside preDraw
#777
2024-05-28 20:05:13 -03:00
Renato Machado
fd8799e591
fix: warnings 2024-05-28 00:10:25 -03:00
Renato Machado
ba049a96e1
fix: compile warnings 2024-05-21 18:31:49 -03:00
Ben Dol
c8ae6c1cd6
Framework Cleanup (no more client code in fw) (#666)
* Moved <client/...> includes from framework (we should never cross contaminate fw/client)

GraphicalApplication was the biggest offender, we need to ensure that this is a base graphical application class and not a client specific class.
Created UIQrCode widget
Minor additions and clean up

* Fix for latest version

* Finished, no more client code in the framework!

* Update README

* Revert

* fix cmake build

* Update review suggestions

Remove `image-source-base64` in favour of `image-source: base64:/path/image`

* Added CHANGELOG.md to help with noting breaking changes

* More framework improvements and some client improvements:

- Readd FRAMEWORK_GRAPHICS (so we can have no graphics support)
- Added creatureDiagonalWalkSpeed/playerDiagonalWalkSpeed upgrade_classification
- Added getCountOrSubType to Item lua binding
- Added startEvent to EventDispatcher (to start stored ScheduledEvent's)
- Removed g_drawPool from the application.cpp (we use dispatchPoll)
- Added startTime calculator when logging module starts
- Allow commenting out otml using #
- Added some math functions
- Added onAdopted/onAbandoned to UIWidget for when they are added to/from parent UIWidget's
- Added some more helper methods to UIWidget
- Added visibleOnly to UIWidget getChildBefore/getChildAfter methods
- Added onHovered for only hovered widget events
- Make getChildIndex take child as optional parameter, if not provided it returns this widgets child index
- Added sha1Encrpyt method
- General clean up

* Rename ApplicationDrawEvents#setLoadingAsyncTexture to onLoadingAsyncTextureChanged

* Update setup.otml

* Added a todo

* Clean up

* Revert old code (oops)

* Reverting onAdopted, etc

* Add improved version

* Improve getHoveredChild

* Recommended fixes/clean up

* Moved missed graphical sources to FRAMEWORK_GRAPHICS
2023-12-07 21:28:42 -03:00
Renato Machado
f6b25d2313 Revert "improve: remove unnecessary spaces from mod/ folder"
This reverts commit 8e5032d48a.
2023-11-28 13:23:06 -03:00
Luan Luciano
8e5032d48a
improve: remove unnecessary spaces from mod/ folder 2023-11-28 13:04:29 -03:00
Renato Machado
38dc85d9b9
improve: change stdext::map to std::unordered_map in some cases.
std::unordered_map is faster for linear searches.
2023-11-27 21:05:56 -03:00
Renato Machado
11cecb8c35
feat: v8 Bot 2023-11-21 22:27:20 -03:00
Renato Machado
f5f6d48ba2
cleanup 2023-06-30 20:13:09 -03:00
Joao Pasqualini Costa
221a2a2afc
feat: client auto updater 2023-05-11 11:38:24 -03:00
Mrpox
e6bb4e01ca
Update resourcemanager.cpp
HTTP.download and HTTP.downloadImage now works.
Files can be found in virtual direcotry "/downloads"
2023-02-16 15:19:26 -03:00
Renato Machado
6217a63e98
Optimization/Cleanup 2023-01-24 22:09:04 -03:00
Renato
a1cb75935b stdext::shared_object_ptr to std::shared_ptr in some places 2023-01-04 22:52:30 -03:00
Renato
354d06b7a2 fix recursive autoreload module 2022-12-27 19:40:33 -03:00
Renato
1026132e3d support auto-reload-module 2022-11-17 15:35:27 -03:00
Túlio Magalhães
cf6a9bf054
Add Android support (#335)
Co-authored-by: Renato <mehahx@gmail.com>
Co-authored-by: Túlio Magalhães <v.tulio.henrique@reddit.com>
2022-09-23 15:01:16 -03:00
Renato
567bd6117f Revert "downgrade c++20 to 17 (because of #335)"
This reverts commit e9f20d99c4.
2022-09-09 20:42:19 -03:00
Renato
e9f20d99c4 downgrade c++20 to 17 (because of #335)
- renamed small_dynamic_storage to small_storage
2022-09-09 15:37:47 -03:00
Renato Machado
a30766f04f
Cleanup 2022-08-31 18:13:07 -03:00
Renato Machado
176acccc25
Removed method exception (#313) 2022-08-03 00:45:12 -03:00
Renato Machado
f4b5c0d81b
Drawpool v2 RC (#292)
- Drawpool refactored
- Removed OpenGL 1 
- Removed robin hood lib, now use parallel-hashmap, it's faster.
- Vertexarray now uses vector, instead of databuffer
~Vector practically has the same performance level as array-style + std::copy(memcpy)
- Removed RENDER_WALKING_CREATURES_BEHIND
- Add feature Otc::GameMapDontCorrectCorpse and Otc::GameMapOldEffectRendering #284 
- Fix #278 #284 #275
- Replace drawViewportEdge with limitVisibleDimension
- Various other improvements and cleanup.

Note(new libs):
[x64]
vcpkg install stduuid:x64-windows parallel-hashmap:x64-windows
[x86]
vcpkg install stduuid:x86-windows parallel-hashmap:x64-windows
[Static Lib]
vcpkg install --triplet x86-windows-static stduuid parallel-hashmap
2022-07-04 19:46:30 -03:00
Renato
d5c7adefa9 updated app name and added organization 2022-06-20 19:21:16 -03:00
Renato
8a17e720ec everything related to file read/write, started to use conventional string. 2022-06-20 18:46:32 -03:00
Eduardo Dantas
27a3133a27
Fix linux compilation, convert some std::string to std::string_view (#281) 2022-06-03 11:47:16 -03:00
Renato Machado
e9edab8f95
string to string_view
https://www.learncpp.com/cpp-tutorial/an-introduction-to-stdstring_view/
2022-06-02 23:19:29 -03:00
Renato
5b9c26f1de some post to pre inc/dec 2022-05-26 21:04:26 -03:00
Renato
99879f1c65 removed redundant codes/cast and add const 2022-05-19 01:26:29 -03:00
Renato
cf6cd6ab9e reverse loop with std::views::reverse
need update Visual Studio to 17.2.1
2022-05-19 00:01:36 -03:00