Skip to content

fix: browser compiling after UIGraph and import changes#1046

Merged
Nottinghster merged 96 commits intoopentibiabr:mainfrom
OTArchive:browser
Jan 15, 2025
Merged

fix: browser compiling after UIGraph and import changes#1046
Nottinghster merged 96 commits intoopentibiabr:mainfrom
OTArchive:browser

Conversation

@OTArchive
Copy link
Copy Markdown
Contributor

Description

Fix compilation for the browser version after latest changes.

IvanClementino and others added 30 commits October 1, 2024 21:39
No need to reinvent the wheel
Drop g_ioService to avoid doing work during polling and make the thread sleep a bit if no message ready
- Handle touch events and longpress for right click
- Check user agent to determine isMobile
- Use VirtualKeyboardAPI to show keyboard (iOS not supported https://developer.mozilla.org/en-US/docs/Web/API/VirtualKeyboard_API)
@sonarqubecloud
Copy link
Copy Markdown

@Nottinghster Nottinghster merged commit 28ecde8 into opentibiabr:main Jan 15, 2025
vllsystems pushed a commit to vllsystems/otclient that referenced this pull request Feb 20, 2025
…1046)

* browser support

* CMake: WASM should be tested and else left for Linux as before

* Remove conflicting vcpkg.json files

* Use existing base64 encoder

* Check for emscripten before includes and declarations

* Improve CMakeLists

* Fix case-sensitivity issues

* Implement bitlib and restore original .lua files bit operations

* Support older protocols and improvements

* Set correct numpad keys

* Intercept all browser keys

* Allow pasting and writing symbols with shift

* Improve networking
No need to reinvent the wheel

* Reload page on client exit

* Reduce CPU usage and connection improvements
Drop g_ioService to avoid doing work during polling and make the thread sleep a bit if no message ready

* Disable Emscripten's text decoder
emscripten-core/emscripten#18034

* Basic mobile support
- Handle touch events and longpress for right click
- Check user agent to determine isMobile
- Use VirtualKeyboardAPI to show keyboard (iOS not supported https://developer.mozilla.org/en-US/docs/Web/API/VirtualKeyboard_API)

* Improve performance
Drop manually swapping buffers to reduce CPU overhead

* Case insensitive FS and properly return if websocket fails to be created

* Fix Vorbis Linking (7cd3c82)

* Allow gameWorld port to be set without rebuilding
As servers and login servers are not adapted to send correct information when using the web client, it's necessary to override the world port and ip address that is received.
Before, the world port was being forced to what was defined in the WEBPORT variable, not matter what port was informed when connect() was called. Now, you can override the port using lua (characterlist.lua) and avoid rebuilding the client.
OBS: Port 7172 will still be overriden to 443 by the client.

* Remove unused definition

* Remove '&'
opentibiabr#894 (comment)

* Remove swapBuffers call, we no longer use it
opentibiabr@3c6bc5a

* Properly encode json
opentibiabr#894 (comment)

* Update src/framework/net/webconnection.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* Update src/framework/net/webconnection.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* Update src/framework/net/webconnection.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* Update src/framework/platform/browserplatform.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* Update src/framework/platform/browserplatform.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* Update src/framework/platform/browserplatform.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* Update src/framework/platform/browserplatform.cpp

Co-authored-by: divinity76 <divinity76@gmail.com>

* c++17 remove file

* Recommended improvements
opentibiabr#894 (comment)
opentibiabr#894 (comment)
opentibiabr#894 (comment)
opentibiabr#894 (comment)

* Remove uneeded link libs

* remove regex

* Cleanup shell.html

* Make compiling easier
- We can now use vcpkg.json with an adapted cmake command
(check guide)
- Update overlay-ports to the current baseline

* Add baseline to overlay-ports vcpkg.json files

* Workflows: ignore overlay-ports vcpkg.json

* Bot V8 basic fixes
Adapt load() calls to lua 5.1

* Disable UIGraph while the browser building issue is not found

* Fix broken regex

* Fix broken regex

* Fix compiling after include changes

---------

Co-authored-by: Ivan Clementino <ivancarlos.clementino@gmail.com>
Co-authored-by: Renato Machado <mehahx@gmail.com>
Co-authored-by: Rodrigo Paixão <god.rodrigo@hotmail.com>
Co-authored-by: Luan Luciano <luanluciano@outlook.com>
Co-authored-by: divinity76 <divinity76@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants