• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

GML Network question

Jihl

Member
Hey there all!

I am getting a console message saying this:
Code:
Client(1) Connected: 200.83.1.xxx.xxx
ERROR: login failed
And I quite don't understand the error since I've read and used the network system as best as I can and I have not found any information about this anywhere.
Do anyone know what actually means this mesage? Does it have to do with the socket?

Thanks!
 

curato

Member
can you ping the IP from the client station? can you check the return value on the network_connect you are using? Is it returning a negative number?
 

Jihl

Member
can you ping the IP from the client station? can you check the return value on the network_connect you are using? Is it returning a negative number?
I do ping the ip from the client to see if it has lost connection to the server or not. That's actually the system that tries to reconnect if the ping hasn't been answered for some time.

I am using the network_config_use_non_blocking_socket to 1 so it doesn't block the connection, since it fails it should give a negative number but I'm not using that variable at all.

Thanks for your response! I am testing right now, I hope I can get to an answer.
 

Jihl

Member
After doing some testing this is what I've got

It seems that it gives a login error if I'm doing an action (for example running) with my player.
That makes me think that, if I am trying to send buffers with no socket at all it may interfere with the connection process.
Whenever I stop it reconnects without problems so this, I think, should be the issue.
 
Top