Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to auto connect to a selected server when game open? #41

Open
shamim4s opened this issue Oct 14, 2022 · 4 comments
Open

How to auto connect to a selected server when game open? #41

shamim4s opened this issue Oct 14, 2022 · 4 comments

Comments

@shamim4s
Copy link

I want to load game with auto connect to my selected server . How can i do that?

@Sardelka9515
Copy link
Member

Sardelka9515 commented Nov 5, 2022

Sorry for the late response, You can write a script and use the scripting API to connect to the server you want

@shamim4s
Copy link
Author

@Sardelka9515 its ok, thanks for your reply.
It's working. Now I can connect to server press key without ragecoop menu from a simple basic mod.
I tried apibridge connect (address). But it's gives an error after connect and basic mod goes disable after connect. Connection is working but for the first time.
ragecoop_error

@myakkes
Copy link

myakkes commented Sep 2, 2024

So can you share your Script?

@myakkes
Copy link

myakkes commented Sep 4, 2024

local rageconnect ={}

local RageCoop.Client ={}
function rageconnect.tick()
if get_key_pressed(Keys.F4) then
_serverConnectItem.Activated += (sender, item) => { Networking.ToggleConnection(Main.Settings.LastServerAddress); };
end
return rageconnect

help me with script

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

No branches or pull requests

3 participants