Does online code like this exist?

Godot Version

4.2

Question

Hi! I was wondering if Godot had a type of online multiplayer code that could send a message to any game open on the same LAN, that is not with rpc(). For example in making an online server browser, you want to send a message to every game instance that a new game was made, if that makes sense. Basically, I was wondering if there was a type of code that could send a message to every game open (Even if they are not in an online game server together).
Thank you!

Well you need to send UDP/tcp packets over a traditional lan/wifi and that protocol requires a destination ip. Meaning they need to connect and be aware of each other. And you will need to use RPC.

I think what you want to use is multicast. And you could probably setup multiple packet peers to do such a thing to have all clients know about each other, but be grouped into smaller more important multiplayer activities. Maybe it’s not required I don’t know a lot about it.

There are probably some other features you could use to make them automatically connect without having to find the IP. But this probably requires a router with upnp support that is enabled.

2 Likes

Since you seem to know a lot of that kind of online stuff. How easy would it be to make an app in Godot to send emails and upload or change google spreadsheets ? Like download spreadsheet data and present it in the app and make changes and upload changes to spread sheet. That kind of stuff.
Im thinking a of a management app.

I’d say making something like that would be pretty easy for the most part, but the only large problem I could see is how online data is sent (like how players can join servers in games), which usually have you enter the host’s (or person you’re trying to message’s) Ip address, and if they were outside your LAN, they would need to port forward. To avoid that I’m pretty sure you could just buy an Ip address from something like Digital Ocean, which cost $5 a month and could host every online thing for you.

1 Like

Email is a different beast. I’m not sure Godot has such functionality. So you would probably need another software to do the SMTP stuff, to only have Godot control it through some REST API. Maybe someone made a plugin for Godot, idk.

But spread sheets, you would also probably need to interface with the spreadsheet software REST API, if it has one, and Godot could send http requests. It has an http client class.

So it would seem Godot isn’t a good candidate in my opinion.

I’m changing my answer.

Google spreadsheet and Godot http client. Yes, although probably lots of work to make a data view.

Email,only if you setup a mail server that Godot http client can ping to send whatever email.

1 Like

I been meaning to do something similar to AppSheet too. A spreadsheet manager, that is shown to the user as a simple form to add records on a mobile device. How much do you think someone would charge to just do the basics of getting data from a spreadsheet into an array. And then a fucntion to upload changes? i would do all the data view layouts and ui stuff.