Networking Questions

4

According to Minimal server example in the networking tutorials, there should be a WebSocketServer class; however, I don't see any at the API reference. # Our WebSocketServer instance var _server = W...
Teakettle asked 29/9, 2023 at 10:3

5

Hey guys. I'm attempting to make 2 scripts talk to each other via websocket in godot4, but I'm not sure how to do that- example projects seem to be using depreciated classes like WebsocketServer and W...
Brebner asked 12/5, 2023 at 23:37

3

I have got a VR game and want it to be also in mutliplayer. I think I need to make a dedicated server. I have have tested this a little but how to get it to work with VR seems to be a little bit harde...
Rightly asked 7/11, 2023 at 6:32

10

Hello! I am trying to make a game controlled by a custom controller. For this, I use an arduino to give input to a python script which gives the data to a godot script using UDP. With a lot of help I ...
Vintner asked 26/11, 2023 at 21:11

2

Hello Everyone! Ummm so i was try to learn multiplayer in godot, so i follow some tutorial on youtube, but it didn't go well.. anyway here's the code: here is the problem: If you know what's wron...
Plinth asked 19/11, 2023 at 14:18

1

Hi, I have two projects (client and server) My Client project stores data into a Custom Resource "WorldData" I want to know if it's possible to send the WorldData resource on the server with RPC I...
Poolroom asked 14/11, 2023 at 16:29

8

Hey all. Working with some simple networking code and can't find how to disconnect the player when I close the client side program. When I run the server side and client side, if I stop or close the c...
Toniatonic asked 10/11, 2023 at 17:58

3

Hey ya'll! I've recently started learning Godot and I'm going through a multiplayer tutorial. Some of the controls I had to figure out on my own such as getting weapon aim to work off of the right an...
Fearfully asked 22/9, 2023 at 14:17

6

Solved

I'm using Godot v4.0.1 and have a code like this somewhere: _stream.connect_to_host("127.0.0.1", 2357) var message = PackedByteArray([0, 1, 112, 108, 97, 121, 101, 114, 32, 32, 32, 32, 32, 32, 32, 32...

3

Hello, I will try to explain as best as possible: I followed the tutorial for setting up multiplayer in Godot, so I now have a level which loads, which is initially started and owned by the 'host', to...
Grapery asked 4/11, 2023 at 20:24

3

Hello everyone! I have a problem getting a MultiplayerSpawner to spawn a player object on the client. Both client and server use the same main scene. The server loads two world scenes on startup wrap...
Expeditionary asked 17/10, 2023 at 19:32

8

I am using http request to downlaod a file. It works, but I don not konw when the file dowload is done. So how do I change this code so I get a signal that the download is complete. And then I can go ...
Repine asked 16/10, 2023 at 5:56

8

Hello everyone, I'll try to keep this concise. The setup: Dedicated server hosted on a DigitalOcean droplet created using WebSocketMultiplayerPeer. Client served on a the HTML5 platform, also created ...
Bono asked 18/10, 2023 at 20:33

2

So I got quite the weird behavior here, just started learning about networking stuff btw. The title explains it all, the host can only see the client correctly synchronized if the client runs in debug...
Essay asked 14/10, 2023 at 11:14

4

Hi, I have a multiplayer authorative game, where the clients have no physics but needs the linear velocity of the body, I am currently sending the velocity from server to client, but in order to save ...
Hyonhyoscine asked 30/9, 2023 at 14:21

12

Hi all! Very excited to post here for the first time! I've been a Unity developer since 2014 and the recent changes have made me lose all faith in them as a platform and company. So I'm turning to God...
Penrose asked 13/9, 2023 at 18:44

2

(negative rep on the website for not letting me change my name after mistyping it :/) Im working on a godot 4 project and trying to implement a multiplayer system into it. I've figured out most of it,...
Gan asked 8/2, 2023 at 17:48

2

Hello! Coming in from Unity and I was just starting to make a quick and small competitive game [to be published on the Google Play Store] for learning purposes, and a personal achievement this year in...
Pull asked 16/9, 2023 at 9:59

4

I'm wanting to change variable for only the local player object, but it seems like the code is running for every player object in the game. How can I distinguish between which are local or originate f...
Ier asked 9/9, 2023 at 20:31

1

I setup the server following the godot manual but the client cannot connect to it. No error messages. I set the port o 6020 and tried using address 127.0.0.1 no connection. This is in godot 3.5.2
Gaut asked 17/8, 2023 at 17:50

3

Is the limit for 4k clients still the limit for Godot networking? If so, what can I do to have more?
Childhood asked 15/8, 2023 at 18:20

5

Solved

Hello! I have a headless server build for my game. It runs on my VPS which is weak (single core and 1 GB of RAM). Now, my game allows users to create maps which is saved with JSON and big JSON files w...
Puerperal asked 18/8, 2023 at 5:35

1

I want a veeeeery simple way for a client to request data and it to receive it. Currently, I have an Autoload script doing all my RPC stuff (because of the whole "must have same path" rule), and my s...
Indetermination asked 12/8, 2023 at 9:53

9

Hello! I am trying to send map to client from server. Server: func _network_peer_connected(peer_id:int): var player = load("res://Nodes/Character.tscn").instance() player.set_name(String(peer_id))...
Unexpressed asked 31/7, 2023 at 6:6

1

I have some server code which is giving me the error "Couldn't create ENet host". I'm not sure why since my code is the same as the example I was referencing. I think it was even working at an earlier...
Royo asked 31/7, 2023 at 10:53

© 2022 - 2024 — McMap. All rights reserved.