Coder Social home page Coder Social logo

Unable to connect to server about emptyepsilon HOT 6 CLOSED

daid avatar daid commented on July 4, 2024
Unable to connect to server

from emptyepsilon.

Comments (6)

kwadroke avatar kwadroke commented on July 4, 2024

I ran netstat and the server is listening on port 35666. I built a debug version and the client reports

[INFO] ScannerServer::New server: 127.0.0.1 35666 Server
[INFO] ScannerServer::New server: 192.168.1.18 35666 Server

I don't see anything from the server console.

It seems like the server isn't acknowledging that it's getting a connection.

from emptyepsilon.

kwadroke avatar kwadroke commented on July 4, 2024

Actually, I just found the problem or at least a problem.
It's a problem in SeriousProton, file src/multiplayer_client.cpp, line 35. status is never equal to ReadyToConnect. It's equal to 1. It should be checking for a number not text.
Commit b59b013 broke it, but technically it's been broken longer than that, it's just now the problem pops up.

from emptyepsilon.

daid avatar daid commented on July 4, 2024

Actually, state is an enum, and enum have number values that match "identifier" values. ReadyToConnect however is 0, not 1. The problem is in the constructor of that code. And yes, I screwed up. But the code was not broken before.

from emptyepsilon.

daid avatar daid commented on July 4, 2024

(fixed in serious proton source)

from emptyepsilon.

kwadroke avatar kwadroke commented on July 4, 2024

Ok. that works. All I know is I had the logger spit out the status and I only saw integers. I'm not that good with C/C++.

from emptyepsilon.

daid avatar daid commented on July 4, 2024

Guess you learned something new today :-)

from emptyepsilon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.