Open Ryuno-Ki opened 1 month ago
Unfortunately, I didn't do networking in godot, yet, so I'm not sure, but I don't think, that godot blocks network access. Regarding reading and writing files: You can read and write text files with godot. You can see that in the world builder code. I just don't know yet, what the URL must look like for accessing files outside of the game's resources. I think I read something with "user://". Anyways, there must be a way of saving a game.
This is the tutorial for data paths: https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html
Hey there :wave:
I would like to fetch the list of befriended servers over the network. I've seen an introduction for HTTP requests in the docs so I'm positive that it should be possible.
Since many API endpoints in Fediverse services requires some level of auth it would require to store a token (say, a text file). Can Godot do that? I'm new to the process.
For example, we could query Mastodon for peers to populate the list. Either live or (preferred?) at the start of a game. There should be a list of instances as fallback in case the network cannot be reached. I've seen that you can read from disk. I would assume, writing should also be possible.
I haven't understood yet whether Godot is blocking on network requests (or any Input/Ouput) or not. You have at least signals. Perhaps it is mixed? I'm learning :heart_eyes_cat: