Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Yes a Netplay Issue... :(

I know, there's too many NP+ issues out there already, but this one seems fairly minor.

I have my sql stuff taken care of, and I've edited the Config.ini it's right here:

Code:
 

Host = "near.uuuq.com"

Port = 50000

ServerName = "GoT Server"

ServerVersion = "1.0"

GameCode = *Deleted for security reasons*

 

WebServer = ""

SMTPServer = ""

AdminEmail = "vexus_ltd@yahoo.com"

 

DB_server = "uuuq.com"

DB_user = "near_gotdb"

DB_password = *deleted for security reasons*

DB_name = "near_gotfile"

 

Message = "Entering the GoT server!"

 

GoT is an abbreviation.

Anyway... I run main.rb, hit n for local run, and wait for a few minutes. It seems like it's going to work finally, and then it gives me:
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2)uninitialized class variable @@_mysql in NetplayServer
Server has been terminated. Press Enter to exit."

Why does it do that? I really want to at least have the technology to make an online game, even if I never actually finish it.
 
I'm not entirly sure as I've not had much experience without local runs of the Netplay 3 server, however that error sounds to me like the host machine you are trying to connect to is rejecting its connection. Now it could be a server based issue, in which case I'm not sure how to fix it but it seems to me to be an error on the setup of the machine/router. Are you sure you've got the right Port open and the right IP?
 
I've forwarded port 23(the one i tried it with)and tried again, but no luck.

Also: I looked at Netplay 1.7 and found that it could connect with only a host site and a port. Is that possible for NP+ 2.0?

EDIT: I just tried using the port i forwarded with NP+ 1.7, and got a hangup(which usually means that the server works)so i could use that if anyone knows how to stop it from giving me a hangup?
 
Have you tried setting the server and such up using the 3 basic testmaps that it comes with? The hangup may be caused by an excessive amount of data (Lots of converted maps and such) but I'm not really sure if I'm honest, if the 1.7 server works you could always extract the code that handles connection to machine and swap it into the Netplay 2.0 server.
 
I just tried using the port i forwarded with NP+ 1.7, and got a hangup(which usually means that the server works)so i could use that if anyone knows how to stop it from giving me a hangup?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top