.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Multiplayer and AARs

Reply
 
Thread Tools Display Modes
  #1  
Old May 29th, 2008, 06:04 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Server is up

Okay, firewall would explain why the ping is discarded. Although that's a pretty overzealous thing to do for a firewall, take away the easiest and most obvious way to detect if a system is alive and reachable on the net. Some services might even depend on it by sending a ping first before they do more stuff on the net. Dunno if Dom3 is among those.

I have uploaded my server check script here: http://valhalla.srhost.info/socket.php
It will first connect to Velusion's Fallacy game (so that you can see that the script is indeed working) and then to your server.

You can check if your port 1024 is reachable outside here:
http://www.canyouseeme.org/
http://www.port-scan.de/lynx/select.php
Just enter your port number 1024 in those and submit. Don't mind the German on the second one, you just have to look at the reply. If it doesn't say "open" (which they will display in red, because they check if a firewall works, not a service), then others can't connect to your game.

I know that other people have hosted games behind hardware / software routers, so you could use the search function here.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #2  
Old May 29th, 2008, 07:51 PM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Wow

What a great script ich. I'm still working; when I get home I'll check all of these things.. probably around 2 hours from now.

Your script really gives me an idea, as I have a webserver sitting around doing nothing.. I wonder if I could host on that and then have the webserver publishing the script results continuously........

Sounds like a screwdriver night...

Hmm: Ok. I have no clue now.

Success: I can see your service on 74.236.0.134 on port (1024) Your ISP is not blocking port 1024

But the german one reports: Green, which looks like service closed.

Finally, your script works fine as well Ich. It reports 6/15 players ready.

Ok: Interestingly, the westel 6100 modem configured to be always on is resetting (PADT disconnect) for hours at a time. According to a DSL reports, this could be a defective modem or a misconfiguration by bellsouth.

Could people try connecting now? Ive reset the modem. IF it doesn't work, I'll setup a ping keep alive to keep traffic up (and hence prevent usage disconnects)....



Reply With Quote
  #3  
Old May 30th, 2008, 07:29 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Wow

Quote:
chrispedersen said:
Your script really gives me an idea, as I have a webserver sitting around doing nothing.. I wonder if I could host on that and then have the webserver publishing the script results continuously........
The script is to be considered very experimental. I haven't found out how to tell PHP effectively to use timeouts on socket streams. If there is no problem, it works beautifully, but if there is a problem then the script tends to hang up and freeze itself, which seems to vary from host to host, I really have no idea what causes that.

I have made another, earlier, script which you can install on your game server to show stats for games, check the "PHP status script for Dom3 game servers" in my sig. It inspects the savegame files to report on the game status. The two other scripts that I have been running, to display graphical scores, have gone down with the server, I don't think that I have local copies of those. They'd need an SQL database to work, anyway.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #4  
Old May 30th, 2008, 08:07 AM
zenphos's Avatar

zenphos zenphos is offline
Corporal
 
Join Date: Mar 2008
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts
zenphos is on a distinguished road
Default Re: Wow

Is there a way for us to know when the game has hosted? For instance will we get an email when it is ready to accept new turns or do we just check every now and then?
Reply With Quote
  #5  
Old May 30th, 2008, 08:24 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Wow

http://valhalla.srhost.info/socket.php has now been modified to show turn status for the nations in Glory only. This is only meant as a substitute until chris has a status script running himself and/or some form of turn notification emails.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #6  
Old May 30th, 2008, 12:40 PM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Hosting

LOL... you guys are making me run when I can barely walk.
Ich, I have a copy of sql around somewhere - also mysql.

I emailed Gandalf about useful scripts last night, but its too early to expect a reply.

I'd be happy to implement either email notification (hmm probably via a mapi client) or a website - but someone has to show me how to do it. Figuring it out on my own won't be timely at the moment.

It would be great if there were:
a) a script for backing up game files
b) email notification

Chris
Reply With Quote
  #7  
Old May 30th, 2008, 01:03 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Hosting

You won't need SQL for the stats script from my link, only PHP. I only used a SQL database for my graphical scores, but that code is lost at the moment, so not of interest anyway.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #8  
Old May 30th, 2008, 01:07 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Hosting

Quote:
chrispedersen said:
I'd be happy to implement either email notification (hmm probably via a mapi client) or a website - but someone has to show me how to do it. Figuring it out on my own won't be timely at the moment.
Depends on your operating system. Linux easily comes with both. Web servers can be installed under Windows with one of the WAMP projects available. Email would be another thing.

Quote:
chrispedersen said:
It would be great if there were:
a) a script for backing up game files
b) email notification
I did both for my games. Backing up game files was more or less done like this (which I used on local games before):
Code:
function archive {
if test $# -lt 1; then return; fi
tar czvf $(basename $1)-$(date +%s).tgz $@
}


For email, I used something called nbsmtp because I didn't trust local sendmail installations, which would have been even easier to use.

P.S.: For Windows, try one of these links:
http://www.ss64.com/nt/mapisend.html
http://www.beyondlogic.org/solutions...mdlinemail.htm
http://www.blat.net/
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #9  
Old June 2nd, 2008, 02:50 PM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Re: Wow

Is there a way to test and see if it works, not using socket streams? Do the test, and then only if successful proceed to socket?

Mind you, I have no idea of what you're speaking about =)

I was trying to setup a DNS-323 as a webserver. But it was a little much work for midnight +....
Reply With Quote
  #10  
Old June 4th, 2008, 05:16 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Wow

Quote:
chrispedersen said:
Is there a way to test and see if it works, not using socket streams? Do the test, and then only if successful proceed to socket?

Mind you, I have no idea of what you're speaking about =)
The PHP scripts which I released don't use sockets to get the game stats, they only work on the local file system, thus you will need a webserver on the same host where the game is for them to work. The socket code which grabs the game stats over the network is highly experimental, tends to fail in lots of ways and thus wasn't released to the public.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:01 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.