Andrew Grimm
Andrew Grimm
CC#
Created by Andrew Grimm on 4/8/2024 in #help
I'd like to ask for a little help from someone who has used the HttpServer class
Got it working, you were right, I had too much useless code
31 replies
CC#
Created by Andrew Grimm on 4/8/2024 in #help
I'd like to ask for a little help from someone who has used the HttpServer class
I'll look into those things and post here how it went, along with the github project
31 replies
CC#
Created by Andrew Grimm on 4/8/2024 in #help
I'd like to ask for a little help from someone who has used the HttpServer class
Hey guys, thank you for your replies What I'm trying to achieve is having my dedicated game server with API endpoints so I can consume them with a .NET webpage (right now I'm using 8.0) so I can show the chosen character equipment, name and statistics. All this information will be taken from the game server. Here is the whole code I'm using for this. BaseService.cs: https://paste.mod.gg/uqecxdobkobd/1 HttpServer.cs running on a Godot game instance: https://paste.mod.gg/uqecxdobkobd/0 The ArmoryController.cs that is used when clicking the API button: https://paste.mod.gg/uqecxdobkobd/2 The "public override void _Ready()" on the HttpServer.cs is basically the function that gets called first when the game starts. I have tested that it is run successfully. So to explain further these codes, in the ArmoryController.cs I have 2 console prints, and those are printed but the result is empty because the HttpServer is not receiving the request, and that's the thing I don't know how to search in the internet on how to solve it. Maybe it is a godot networking restriction? The HttpServer code is taken from this webpage https://thoughtbot.com/blog/using-httplistener-to-build-a-http-server-in-csharp thank you for your patience!
31 replies