Coder Social home page Coder Social logo

pycckue-bnepeg / samp-cef Goto Github PK

View Code? Open in Web Editor NEW
98.0 11.0 45.0 1.87 MB

Client and server plugins for SA:MP to embed CEF.

License: GNU General Public License v3.0

Rust 99.43% JavaScript 0.04% Pawn 0.23% C++ 0.29% C 0.01%
samp cef rust gta gta-sa gta-samp mod gta-modding

samp-cef's Introduction

SAMP CEF

This project embeds CEF into SA:MP expanding abilities to express yourself with beauty in-game interfaces using HTML / CSS / JavaScript.

It is a FRAMEWORK (or SDK), not something that you download and use. To be able to create you should have some webdev basics (JS / HTML / CSS).

What you can do

  • Create browser views from a gamemode or from client-side plugins (C ABI).
  • Place browsers on objects (with kind-of spatial sound)
  • Send and receive custom defined events from / to clients.

Crates

  • cef - Rust wrappers around CEF C API.
  • cef-api - Rust wrappers to build client plugins using CEF.
  • cef-interface - example of a Rust plugin.
  • cef-sys - bindings for CEF C API.
  • client - client CEF plugin.
  • d3dx9 - bindings to DirectX SDK.
  • loader - small loader that makes it work (should be named cef.asi).
  • messages - protobuf messages to communicate with server on net.
  • network - quinn glue (laminar like).
  • proto - raw proto files.
  • renderer - glue between CEF renderer process and main logic.
  • server - server side plugin.

Download

Latest builds from the master branch are placed in the Actions.

Currently there is those OS:

  • CentOS 7 (cef-centos-7.so)
  • Debian 9, 10, 11 (cef-debian-*.so)
  • Ubuntu 18.04, 20.04 (cef-ubuntu-*.so)
  • Windows (cef-windows.dll)

And also all client-side parts (cef.asi, client.dll, renderer.exe).

Building

Dependencies

  • Rust compiler (nightly) with i686-windows-pc-msvc toolchain
  • Prebuilt CEF with proprietary codes (if you wanna use streams). I had one for you in releases. (Client only)
  • Environment variable CEF_PATH that points to libcef.lib (client only).
    • In powershell it's like $env:CEF_PATH="C:/some/path"
    • Then build

Notes ...

If you get a linker error, you should change hard-coded links in the source code

  • client/build.rs - path to DirectX SDK (default one)

Running Rust

and now

cargo +nightly build --target i686-windows-pc-msvc --release

rustup toolchain install nightly-i686
cargo +nightly-i686 build --release

also the client plugin can be built using OpenAL for sound (rodio by default). to do that compile the client without default features. for example:

cargo +nightly-i686 build --release --package client --no-default-features

to make it work you should place openal.dll as sound.dll in the cef folder. I do not remember what version is used exactly ... but I have it on the release page.

to build specific part you can add --package <NAME>

for example if you will try to build ALL crates on linux, you will get an error. so, pass --package server to build only server on linux.

CEF version

Current versions of CEF and Chromium: 89.0.5+gc1f90d8+chromium-89.0.4389.40 release branch 4389

Date:             February 26, 2021

CEF Version:      89.0.5+gc1f90d8+chromium-89.0.4389.40
CEF URL:          https://bitbucket.org/chromiumembedded/cef.git
                  @c1f90d8c933dce163b74971707dbd79f00f18219

Chromium Version: 89.0.4389.40
Chromium URL:     https://chromium.googlesource.com/chromium/src.git
                  @2c3400a2b467aa3cf67b4942740db29e60feecb8

Docs

Video examples

BIG TODO: EXAMPLES

But it's similar to fivem or ragemp implementations.

samp-cef's People

Contributors

kalixis avatar pycckue-bnepeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samp-cef's Issues

Players got problem to join

Hi, I'm running a 0.3.7r2 server but some player have some problem to join. Someone can join with samp client 0.3.7, someone with 0.3.7 r3, other can't in anyway log in. Seems like players don't neither get any cef.log file

CEF display issue

Hello, I have an issue with the interface. When I open a textdraw on my server (for example, inventory), my CEF interface becomes blurry, and when I exit the textdraw, everything returns to normal. Please help me fix this error.

Problem finding the file libcef.lib

Hello, im trying to compile this plugin, and im faced a problem with finding and downloadng libcef.lib. Maybe you say me, where download this file? Sorry for my English, this my second language after Russian.

Поддержка CRMP 0.3.7

Как собственно добавить поддержку CRMP?
С обычного релиза не запускается, а также скомпилировал, не запускается.
Выводит ошибку мол не поддерживается.

Как вручную хотя бы добавить поддержку?
В каких файлах идут обработчики версии сампа?
Подскажите пожалуйста!

---- EN ----
How to actually add CRMP support?
Since the regular release does not run, and compiled, does not run.
It gives an error saying it is not supported.

How to manually at least add support?
In which files do sump version handlers go?
Tell me please!

UTF-8 encoding

Hi :)
SAMP-CEF isn't utf-8 in input text, how to set utf-8 charset please ?

Thanks you.

Error plugin. Host / Ошибка плагина на хосте

hread '' panicked at 'called Result::unwrap() on an Err value: IOError(Os { code: 98, kind: AddrInUse, message: "Address already in use" })', server/src/server.rs:30:62
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5

CEF network problems

Hello.

First I have to say thank you for such amazing work you have done.

We're investigating an issue with networking in your plugin. Sometimes it simply drops connections (from server or client, we don't know what side is a problem) and players unable to use CEF. At such moments in log we have such rows:

21:51:16 [TRACE] (5) client::network: [client\src\network.rs:329] CEF Network: OpenConnection (ip:port)
21:51:16 [TRACE] (5) client::network: [client\src\network.rs:330] CEF Network: Elapsed since Network module created 140.2991411s
21:51:16 [TRACE] (5) client::network: [client\src\network.rs:390] CEF Network: Timeout
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:415] CEF Network: CEF didn't connect. Retrying ...
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:329] CEF Network: OpenConnection (ip:port)
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:330] CEF Network: Elapsed since Network module created 142.8002528s
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:390] CEF Network: Timeout
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:415] CEF Network: CEF didn't connect. Retrying ...
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:329] CEF Network: OpenConnection (ip:port)
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:330] CEF Network: Elapsed since Network module created 145.3058335s
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:390] CEF Network: Timeout

Also in SAMP game mode we have debug and on such moments OnCefInitialize returns success 0 for players with such problem.

Sometimes it receives "JoinResponse OK", but then connection loses again in some chance. We have tested it on 2 OS (Debian 10, Debian 8) and problem occurs on both.
We have opened required by CEF port on our firewall (for UDP and TCP connections) and requested our host to disable protection and filtering on CEF port, so it's not a host/protection problem.

This issue occurs not every time and not for everyone. It can be solved on rejoin (for 2-5 attempts), but it still creates problems and it's unable to work with it as expected.

Does any one have suggestions how we could solve or investigate deeper this issue?

problem cef_client.log

07:55:14 [TRACE] (1) client_api::gta::d9_proxy: [C:\Users\zottc\.cargo\git\checkouts\samp-client-api-db116afb27d404f1\7035074\src\gta\d9_proxy.rs:53] finding function and hooking ... (d9_proxy::set_proxy) 07:55:14 [TRACE] (1) client_api::gta::d9_proxy: [C:\Users\zottc\.cargo\git\checkouts\samp-client-api-db116afb27d404f1\7035074\src\gta\d9_proxy.rs:55] done enable it ... (d9_proxy::set_proxy) 07:55:14 [TRACE] (1) client_api::gta::d9_proxy: [C:\Users\zottc\.cargo\git\checkouts\samp-client-api-db116afb27d404f1\7035074\src\gta\d9_proxy.rs:64] done ... (d9_proxy::set_proxy) 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:250] app::initialize() 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:251] App::new() -> 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:117] App::new() 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:121] Audio::new() 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:125] Manager::new() 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:129] crate::external::initialize 07:55:14 [TRACE] (2) client::app: [client\src\app.rs:256] CEF: crate::render::initalize() 07:55:14 [TRACE] (2) client::render: [client\src\render.rs:69] hooking CEntity::render 07:55:14 [TRACE] (2) client::render: [client\src\render.rs:79] hooking ok ... 07:55:14 [TRACE] (3) client::rodio_audio: [client\src\rodio_audio.rs:178] audio_thread start 07:55:17 [TRACE] (5) client: [client\src\lib.rs:61] DllMain reason == DLL_PROCESS_DETACH calling unitialize 07:55:17 [TRACE] (5) client::app: [client\src\app.rs:279] app::uninitialize() 07:55:17 [TRACE] (5) client::app: [client\src\app.rs:282] app::uninitialize call once -> 07:55:17 [TRACE] (5) client::app: [client\src\app.rs:100] App::drop 07:55:17 [TRACE] (5) client::browser::manager: [client\src\browser\manager.rs:549] manager::shutdown_cef() cef_running: false 07:55:17 [TRACE] (5) client::app: [client\src\app.rs:290] app::quit()

is this normal?

эфект воды

здравствуйте я ceo сервера спачбоб ролеплей макс тайсон возникла следующая проблемка у нас концепт сервера как бы вам объяснить под водой и стал вопрос к примеру у нас есть кинотеатр или красти крабс и нам там надо включить телек вопрос: как сделать эффект воды или бочки (актуально для отыгрыша в кофейне красти крабс т.к. это по сути цилиндр бочка сундук) то есть чтобы игрок погрузился чуть побольше в игровую ситуевину
заранее жду ответа спасибо

CEF ERROR

My CEF has an error The application was unable to start (0xc000007b)
in renderer.exe i don't know how to fix it

Проблема Cef.

Если включить одно и тоже видео на одинаковых портах. То один из серверов просто не запуститься /выключится.
Можно решить это путем переписывания скрипта. Если в server.cfg создать port_cef и от туда получать значения порта. ( мой вариант)
Надеюсь вы это заметите.

Can't start client

Okay I think I downloaded everything I need for the client and I am getting DirectX error message:
The procedure entry point Direct3DCreate9Ex could not be located could not be located in the dynamic link library C:\GTA San Andreas\cef\libceff.dll

поддержка адроид

заинтересовал фреймворк думаю можеете сделать его для os android там правда нет cef есть webview поэтому придетчя немного переделать но оно того стоит у меня есть идейка одна привлекательная инвестиция грубо говоря для вас ув русские вперед время=деньги возьмем вас в долю на ставку (я не букмекер) (зарпалату)=процент от прибыли по схеме 50 на 50 или 20 на 80

open.mp support

It would be really awesome if the plugin was compatible with open.mp. This would fix the 0.3DL problem by the way as build10 has samp-compat built-in.
Please consider this update.

Work for 0.3 DL?

As the title, i was try with 0.3 DL version and got unsupported, message while running game, can you make the 0.3 DL version work please!

Cef Chat

Hello friends, I need help with Cef chat, how to delete default chat, can you tell me? Or if there is any example version

PLUGINS

Run time error 19: "File or function is not found
plugins streamer sscanf mapandreas pawn-memory
which plugin is missing to load?

cef.asi virus detected

Hi ;)
Sorry for inconveniance but Windows Defender detect virus on cef.asi

"Trojan:Win32/Sabsik.TE.A!ml"

Debian 11

How to build the server plugin to debian 11?

SAMP Client R4 and R5 compatibility

Hello, this is just a follow up to #49 , currently, the plugin doesn't work for SA-MP versions higher than R3, here's the R4 error.

Info:

Error: KERNELBASE.dll
Type 1: Crash
About: It is a general Windows dll so it can be caused by many different and generic issues like memory allocation. The "backtrace" at the end of the log better tells the source of the problem, contact someone experienced.
Problem 1: Already reported when using peds pack in hd
Solution 1: Identify and remove the buggy pedestrian.
Type 2: Crash when trying to open the game along with "Runtime Error!".
Problem 2: Possibly your PC sound problem, DirectPlay. It could also be a problem with the ModLoader cache. Go to the folder "C:\Users\(USER)\AppData\Local\modloader" where "(USER)" is your username, and delete all content. Next time your game will take a while to open, but it will work.
Solution 2: Read Error: DSOUND.dll (ctrl+f)
Type 3: Crash when installing a grams mod with SkyGfx installed
Issue 3: Grass models mismatch.
Solution 3: Disable "ps2grassFiles" from SkyGfx1.ini (and other .ini from it)
Problem 4: CLEO_CALL/SCM_FUNC limit of some CLEO mod.
Solution 4: If so, the SCRLog will say exactly that, and which script it was. If it happens to you, contact the author to fix it, CLEO_CALL is probably being called without returning.
Problem 5: Misconfigured .ini file (wrong letters or characters in an option of an .ini file).
Solution 5: Identify and fix it, it has happened for example when using "FFFFFF" instead of "0xFFFFFF" in MixSets.


!!! Google Translated !!!

Crash dump:

GTA SA 1.0.0.0 US
Unhandled exception at 0x76F389F2 in KERNELBASE.dll (+0x1489f2): 0xE06D7363: NO_DESCRIPTION.
    Register dump:
        EAX: 0x0177F788  EBX: 0x19930520  ECX: 0x00000003  EDX: 0x00000000  
        EDI: 0x6A54CE08  ESI: 0x6A4A7F68  EBP: 0x0177F7E0  EIP: 0x76F389F2  
        ESP: 0x0177F788  EFL: 0x00000216  CS: 0x00000023   SS: 0x0000002B   
        GS: 0x0000002B   FS: 0x00000053   ES: 0x0000002B   DS: 0x0000002B   
        
    Stack dump:
        0x0177F788:  E06D7363 00000001 00000000 76F389F2 00000003 19930520
        0x0177F7A0:  0177F820 6A54CE08 00000000 00000000 107B8338 00000000
        0x0177F7B8:  00000000 0177F830 00000002 00000010 019A01C0 00000000
        0x0177F7D0:  00000002 019A0000 00000008 988BBD74 0177F810 6A483590
        0x0177F7E8:  E06D7363 00000001 00000003 0177F804 6A4A8004 00000001
        0x0177F800:  0177F820 19930520 0177F820 6A54CE08 0177F8C4 6A39750E
        0x0177F818:  0177F820 6A54CE08 107ECE10 6A4A8004 6A3974B2 6A43DF61
        0x0177F830:  0177F8D4 6A4A7F68 6A43DA01 0000002F 6A4A8084 00000015
        0x0177F848:  6A4A80F8 6A54CE9C 6A4A7F68 0177F8D4 00000001 0177F87C
        0x0177F860:  6A4E49D0 00000009 0177F860 0177F840 0177F848 0177F89B
        base: 0x01580000   top: 0x0177F788   bottom: 0x01780000
        
    Backtrace (may be wrong):
        =>0x76F389F2 RaiseException+0x62 in KERNELBASE.dll (+0x1489f2) (0x0177F7E0) 
          0x6A483590 rust_eh_personality+0xebf50 in client.dll (+0x203590) (0x0177F810) 
          0x6A39750E DllMain+0x1029ae in client.dll (+0x11750e) (0x0177F8C4) 
          0x6A2EA95D DllMain+0x55dfd in client.dll (+0x6a95d) (0x0177FC38) 
          0x6A2A3398 DllMain+0xe838 in client.dll (+0x23398) (0x0177FD28) 
          0x6A2EB905 DllMain+0x56da5 in client.dll (+0x6b905) 
        
    

image

SAMP MOBILE

Is it possible to enable samp-cef on samp mobile?

If so how to enable it?

plugin for CentOS 7.

Can you provide a plugin for my hosting on CentOS 7? Plugin is a crashed with error.

0.3dl compatibilty

How much to update this for 0.3dl? And if you dont want to do this, how can I update this?

Client Build problem

Compiling detour v0.8.0 (https://github.com/darfink/detour-rs?rev=3b6f17a#3b6f17a8)
error[E0059]: type parameter to bare Fn trait must be a tuple
--> C:\Users\Станислав.cargo\git\checkouts\detour-rs-497fa4e2739f3073\3b6f17a\src\detours\statik.rs:106:8
|
106 | D: Fn<T::Arguments, Output = T::Output> + Send + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait Tuple is not implemented for <T as Function>::Arguments
|
note: required by a bound in Fn
help: consider further restricting the associated type
|
106 | D: Fn<T::Arguments, Output = T::Output> + Send + 'static, ::Arguments: Tuple
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0059]: type parameter to bare Fn trait must be a tuple
--> C:\Users\Станислав.cargo\git\checkouts\detour-rs-497fa4e2739f3073\3b6f17a\src\detours\statik.rs:157:8
|
157 | C: Fn<T::Arguments, Output = T::Output> + Send + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait Tuple is not implemented for <T as Function>::Arguments
|
note: required by a bound in Fn
help: consider further restricting the associated type
|
157 | C: Fn<T::Arguments, Output = T::Output> + Send + 'static, ::Arguments: Tuple
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try rustc --explain E0059.
error: could not compile detour due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

[Question] SAMP-CEF 0.3.DL

Hello, Sorry for making this issue.
I need to Update samp-cef to 0.3.DL, i have address.
is there way to start?
Thanks.

crash timer

[23:04:38] [debug] Server crashed while executing new.amx
[23:04:38] [debug] AMX backtrace:
[23:04:38] [debug] #0 native cef_emit_event () in cef.DLL

SetTimerEx("timer", 3000, false, "ddssss", playerid, style, caption, info, button1, button2);

public: timer(playerid, _style, const _caption[], const _info[], const _button1[], const _button2[])
{

cef_emit_event(playerid, "handler:createdialog", CEFINT(_style), CEFSTR(_caption), CEFSTR(_info), CEFSTR(_button1), CEFSTR(_button2));
return 1;

}

Emit in timer

Hi, multiple emits in timer (350ms) crash the cef, is for speedometer, any idea please ?

Thanks.

I have a client side problem

I have a problem that is that it detects me as if I did not have the plugin installed, when it does not have it I have all the files and within the game it returns false in OnCefInitialize and cef_player_has_plugin, most likely it is me by not installing it correctly, if you could Make me a mini tutorial on how to install it, I would appreciate it. (client side)

Масштабирование

Привет, натянул на объект браузер через cef_create_ext_browser, так у меня вместо одного цельного браузера получились плитки:
image
Можно ли как то исправить это?

libcef.dll

lack of files for client version

not found libcef.dll

Encountered an error receiving data

При reconnect пользователя, выдает ошибку в консоль:

Encountered an error receiving data: Os { code: 10054, kind: ConnectionReset, message: "Удаленный хост принудительно разорвал существующее подключение." }

После этого не появляется браузер (Не загружается)

Как решить?

Какая функция отвечает за то, чтобы видео показывалось для всех игроков одновременно

Возьмем в пример кинотеатр, кто-то пишет команду и нужно чтобы проигрывалось для всех. Как это реализовывается? В данный момент только локально. Через цикл видео вообще пропадает и только звук, если подходит к экрану другой игрок.
Использую windows server 2019

input Chinese error

I want to input some Chinese characters,but it turns into other codes
Just like this:
S@1 C@8N STU A%PH$UWH

Random IPs on fresh toolchains

Hi,

Somehow rebuilding the server with fresh toolchains results in random (well not quite random, more like badly ordered, looks like endianness issue...) IPs:

15:47:00 [TRACE] (1) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:00 [TRACE] (1) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:03 [TRACE] (13) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:03 [TRACE] (13) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
[connection] incoming connection: 172.17.0.1:47866 id: 0
[join] Cheaterman has joined the server (0:172.17.0.1)
OnPlayerConnect(playerid=0)
15:47:05 [TRACE] (17) server: [server/src/lib.rs:80] on_player_connect 0 172.17.0.1
15:47:05 [TRACE] (17) server: [server/src/lib.rs:83] allow_connection 0 172.17.0.1
cef_on_player_connect(playerid=0, ip='172.17.0.1'): 1
15:47:05 [TRACE] (17) server: [server/src/lib.rs:80] on_player_connect 0 172.17.0.1
15:47:05 [TRACE] (17) server: [server/src/lib.rs:83] allow_connection 0 172.17.0.1
15:47:05 [TRACE] (13) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:05 [TRACE] (13) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:08 [TRACE] (15) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:08 [TRACE] (15) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:10 [TRACE] (17) server: [server/src/lib.rs:327] notify_connect(0, false)
OnCefInitialize(playerid=0, success=0)
cef_player_has_plugin(playerid=0): 0
15:47:10 [TRACE] (17) server: [server/src/lib.rs:318] notify_timeout::remove_from_await_list(0) true
15:47:10 [TRACE] (13) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:10 [TRACE] (13) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:13 [TRACE] (15) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:13 [TRACE] (15) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:15 [TRACE] (15) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:15 [TRACE] (15) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:18 [TRACE] (17) server: [server/src/lib.rs:100] remove_connection 0 
[part] Cheaterman has left the server (0:1)
15:47:18 [TRACE] (1) network: [network/src/lib.rs:214] accept_connections: Connect from 2.0.209.200:4524
15:47:18 [TRACE] (1) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 2.0.209.200:4524
15:47:20 [TRACE] (1) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:23 [TRACE] (1) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:25 [TRACE] (1) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:28 [TRACE] (13) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:28 [TRACE] (1) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:28 [TRACE] (15) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:30 [TRACE] (1) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut
15:47:30 [TRACE] (15) network: [network/src/lib.rs:237] ERROR while connecting: TimedOut

Meanwhile rebuilding with 1.63.0 toolchain using the command cargo +1.63.0-i686 build --release --package server works:

16:08:09 [TRACE] (1) network: [network/src/lib.rs:214] accept_connections: Connect from 172.17.0.1:36463
16:08:09 [TRACE] (1) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 172.17.0.1:36463
16:08:09 [TRACE] (18) server::server: [server/src/server.rs:189] handle_new_connection PeerId(1v1) 172.17.0.1:36463
16:08:09 [TRACE] (18) server::server: [server/src/server.rs:88] socket::disconnect PeerId(1v1)
16:08:09 [TRACE] (18) server::server: [server/src/server.rs:180] handle_timeout PeerId(1v1)
16:08:09 [TRACE] (18) server::server: [server/src/server.rs:183] {}
16:08:09 [TRACE] (18) server::server: [server/src/server.rs:184] {}
16:08:12 [TRACE] (11) network: [network/src/lib.rs:214] accept_connections: Connect from 172.17.0.1:36463
16:08:12 [TRACE] (11) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 172.17.0.1:36463
16:08:12 [TRACE] (18) server::server: [server/src/server.rs:189] handle_new_connection PeerId(1v3) 172.17.0.1:36463
16:08:12 [TRACE] (18) server::server: [server/src/server.rs:88] socket::disconnect PeerId(1v3)
16:08:12 [TRACE] (18) server::server: [server/src/server.rs:180] handle_timeout PeerId(1v3)
16:08:12 [TRACE] (18) server::server: [server/src/server.rs:183] {}
16:08:12 [TRACE] (18) server::server: [server/src/server.rs:184] {}
[connection] incoming connection: 172.17.0.1:50020 id: 0
[join] Cheaterman has joined the server (0:172.17.0.1)
OnPlayerConnect(playerid=0)
16:08:13 [TRACE] (17) server: [server/src/lib.rs:80] on_player_connect 0 172.17.0.1
16:08:13 [TRACE] (17) server: [server/src/lib.rs:83] allow_connection 0 172.17.0.1
cef_on_player_connect(playerid=0, ip='172.17.0.1'): 1
16:08:14 [TRACE] (1) network: [network/src/lib.rs:214] accept_connections: Connect from 172.17.0.1:36463
16:08:14 [TRACE] (1) network: [network/src/lib.rs:224] process_connection: Connect from Some(172.17.0.2) to 172.17.0.1:36463
16:08:14 [TRACE] (18) server::server: [server/src/server.rs:189] handle_new_connection PeerId(1v5) 172.17.0.1:36463
16:08:14 [TRACE] (18) server::server: [server/src/server.rs:194] handle_new_connection: ok 0
16:08:14 [TRACE] (18) server::server: [server/src/server.rs:197] handle_new_connection: ok no peer with this id
16:08:14 [TRACE] (17) server: [server/src/lib.rs:388] process_tick::PlayerConnected(0)
16:08:14 [TRACE] (17) server: [server/src/lib.rs:327] notify_connect(0, true)
OnCefInitialize(playerid=0, success=1)
cef_create_browser(playerid=0, browserid=1, url='https://tms-server.com/'): 1
16:08:15 [TRACE] (17) server: [server/src/lib.rs:400] process_tick::BrowserCreated(0)
16:08:15 [TRACE] (17) server: [server/src/lib.rs:336] notify_browser_created(0, 1, 200)
[part] Cheaterman has left the server (0:1)

I looked into tokio and quinn, in fact I tried to update quinn but they have breaking changes in the way they build (or no longer build rather) endpoints, so I didn't push it too much... I really expected the issue to be on the client side hahaha, since I'm cross-building DLLs from Linux etc, but that part actually works, and it turns out it's the pure Linux server that's faulty... 🤦‍♂️

Either way, putting this out there for posterity. Hopefully we're not stuck on old toolchains forever, but right now, I don't see any other workaround...

Windows 11

Does it work for you with windows 11 please?

Connecting to CEF from Pawn

Hello. Can you please explain in more detail how I can call CEF from Pawn. I know there are examples, but I don't understand a little. If you have a PWN file, can you send it to me?

Implementing 0.3DL-R1 version of SAMP ?

Why not making an update of samp-client-api for 0.3DL-R1 ? It would be really nice and useful (i mean it's already useful and good work btw that's what people were waiting as an alternative of laggy TextDraw).

vue.js framework

Hi, I ran into a framework problem vue.js . When the game is minimized, its processing stops, everything works stably only on VanileJS. Is there any way to solve this?

Sorry for my English! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.