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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #41  
Old November 27th, 2003, 09:50 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dedicated Servers?

OK time to resurrect this thread.

THANK YOU Illwinter for adding the text-only mode for hosting. It works fine on my debian linux server. Now to play with switches and scripts for awhile.

Questions:
Quote:
-t --hosttime X Y Host on day X (0=sunday) hour Y (0-23)
--minutes X Set host interval in minutes
-h --hours X Set host interval in hours
--pauseday X Stop timer on this day (0=sunday)
0=sunday. Does that mean that --hosttime 024 3 will process on Sunday Tuesday and Thursday at 3am?

I understand the --hours but whats the thought behind --pausday? Why would you pause the time? Pause for what? How do you restart it?
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #42  
Old November 28th, 2003, 12:22 AM
Zapmeister's Avatar

Zapmeister Zapmeister is offline
First Lieutenant
 
Join Date: Nov 2003
Location: Hobart, Australia
Posts: 772
Thanks: 7
Thanked 3 Times in 2 Posts
Zapmeister is on a distinguished road
Default Re: Dedicated Servers?

Any ideas for handling "tyre-kickers"?

By this, I mean people who stumble on a site, click around a bit, then wander off never to be heard from again. This kind of behaviour would play havoc with a Dom2 automatic registration system if it wasn't handled in some way.

My suggestion would be the standard "we'll email you, and wait for your activation before we consider you registered". Even then, you'll still get people who will jump through all the hoops, only to abandon the game almost immediately it starts. I know this from experience with other web-based games I've managed.
__________________
There are 2 secrets to success in life:
1. Don't tell everything you know.
Reply With Quote
  #43  
Old November 28th, 2003, 12:50 AM

johan osterman johan osterman is offline
Captain
 
Join Date: Aug 2003
Posts: 883
Thanks: 0
Thanked 13 Times in 5 Posts
johan osterman is on a distinguished road
Default Re: Dedicated Servers?

Quote:
I understand the --hours but whats the thought behind --pausday? Why would you pause the time? Pause for what? How do you restart it?
--pauseday 0, makes the timer not count down on sundays. This might be useful if you want to rest one day each week.
Reply With Quote
  #44  
Old November 28th, 2003, 03:26 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dedicated Servers?

[quote]Originally posted by Arralen:
Quote:
mySQL? shell script? cron job?
I'm not terribly familiar with LINUX, too, but afaik there should be some possiblities to do this "the simple way".
And if you need more complex functions to work with the database and/or want a GUI for administration, why not use Perl/Python/Tcl with GUI-Kit (tk).
Or XBasic (code portable between Linux and W32 Version), so we needn't rely on M$ stuff?
Didnt read the whole thread? And the thread about running host without the GUI? Gee that sounds obnoxious but I dont mean it to be. Your suggestions are right-on for the server base I offered first (Debian Linux) but Shrapnel offered a Windows based server so the conversation kindof split awhile back between the two OS bases.

You sound like you are back in my territory (but not linux? FreeBSD? Solaris?). I gave a pretty full description in one of these threads about doing alot of useful game management mostly with web. All shell, cron, cgi stuff. Also tossing in some of my own randomizing scripts for which I use YAbasic (for the same reason, linux/windows portable). Check out the "Gandalf's Random Circus" threads for notes on that.

I can see a need for a database but I dont see it being so involved as to need a format that would require another program to load or a full server daemon of its own. Simple DBM or even just a dilimeted text file would probably do if I were making it.

[ November 28, 2003, 13:31: Message edited by: Gandalf Parker ]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #45  
Old November 28th, 2003, 07:38 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dedicated Servers?

OK some server questions have come up. Apparently the /tmp directorys can be cleaned up anytime no dom2 is running. I may need to come up with some other way to figure out what ones to delete since games can run for months

The screen display in text mode is a flood so I /dev/null that but the errors go that way also (no 2> for unix/linux folks)

Now Im trying to figure out what map directory structure is required. Apparently making a maps directory under my directory doesnt work if it was installed network-wide.

Im also hoping that the -T and --mapfile will bypass the limit on the number of maps in the maps dir.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #46  
Old November 29th, 2003, 02:53 AM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default Re: Dedicated Servers?

Quote:
Originally posted by Tourmalyn:
As far as the platform, I would probably lean toward Microsoft since transactions to an access/sql database from PHP/ASP are dead simple.
mySQL ?

Quote:
Additionaly, it would be easy to write a VB app to run 24/7 that would manage the lauching/shutting down of Dom2 servers, and maintanence of the databases. Don't get me wrong, I don't have anything against Linux, I just don't want to deal with the tediousness of writing a C++ app to do the maintanence on an OS I am unfamiliar with.
shell script? cron job?
I'm not terribly familiar with LINUX, too, but afaik there should be some possiblities to do this "the simple way".
And if you need more complex functions to work with the database and/or want a GUI for administration, why not use Perl/Python/Tcl with GUI-Kit (tk).
Or XBasic (code portable between Linux and W32 Version), so we needn't rely on M$ stuff?

A.
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
Reply With Quote
  #47  
Old December 1st, 2003, 05:23 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dedicated Servers?

OK new thought on dedicted servers which Id like to put here. I see alot of back and forth traffic concerning email addresses for the games.

If we do create (eventually) a web-based manager for Doms games then one of the options on signup could be "Do you need an email address for the game?". If they answer yes then an address could by created automatically. It would work fine exactly the same as any other mailbox with POP pickup, or maybe forwarded to a real email address. Able to receive and send. Hmmm some sort of proection from being abuseable as anonymous email boxes are.

Still it would be fun to be able to create a "MrGreenJeans Chancellor of Pangaea" Pan-G22@ for game 22 in order to play. This way the game players would have a way to do diplomac without the long-term affects of using their real names and addresses. It would be interesting to play without the honor-bound-paladin expectations of playing as Gandalf.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #48  
Old December 31st, 2003, 05:19 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dedicated Servers?

Here are my notes so far on a dedicated web server. I have the web server if anyone is interested in moving this along.....


Start signup script with a countdown toward game-start (1 day? 2 days?)

make backup copies of gods (.2h files) before starting game. (learned from experience)

Run a certain number of turns on quick then switch to midnights (cant run alot of tcp/ip games are once)

Dont start new signup/quick until all other games are on midnight. Should be able to run 100 games on rotation.

create cgi to upload files

create each game as user with email and webspace

give each nation subdir off of game webspace

give each player .htpasswd password access to their nations subdir

use midnight hosting script to gather turn files from subdirs

use midnight script or maybe --postexec to move turn files to subdir

setup procmail to extract turn files that are mailed into game email acct?

setup system for emailing turn files back to players who request it? or setup system for email notifications of turns being processed?

Possibly create CGI signup for games. List the games parameters. Offer the nations. When a user signs up then give them the .htpaswd password to the upload/download directory and rewrite web signup page to show nation taken. Requested by user: add password access to the signup? Or use htpasswd controls for that (give list of all nation access passwd to GameMaster of that game?)

Create a cron watchdog to keep an eye on the game directorys deleting anything that shouldnt be there so they dont get used as warez sites.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #49  
Old February 5th, 2004, 05:12 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dedicated Servers?

OK new note to the project. All started games need to go in a list so that if the machine crashes you know which games need restarted.
Also the next patch should have a "start game and quit" switch coming.

[ February 05, 2004, 15:13: Message edited by: Gandalf Parker ]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #50  
Old February 5th, 2004, 07:40 PM

dire dire is offline
BANNED USER
 
Join Date: Nov 2003
Location: Adelaide, Australia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
dire is on a distinguished road
Default Re: Dedicated Servers?

Just curious, what stage is this project at? Has it even started?
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 12:13 PM.


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