.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Hosting for Absolute Beginners (http://forum.shrapnelgames.com/showthread.php?t=18514)

Torvak March 29th, 2004 06:54 PM

Re: Hosting for Absolute Beginners
 
Quote:

Originally posted by Minrhael:
Not to hijack the thread, but since it's here, I think I finally got mine set up host but as I really don't know what I'm doing, anyone want to try to connect to 192.168.1.100 6060 and tell me if it's working? Thanks!
<font size="2" face="sans-serif, arial, verdana">I take it you're behind a router. 192.168.1.100 is no adress that can be seen from the outside but a local one assigned from dhcp. So you need to get the real ip adress of your router and setup port fowarding to the machine that is running dominions.

tinkthank March 29th, 2004 07:02 PM

Re: Hosting for Absolute Beginners
 
Quote:

Originally posted by Torvak:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by Minrhael:
Not to hijack the thread, but since it's here, I think I finally got mine set up host but as I really don't know what I'm doing, anyone want to try to connect to 192.168.1.100 6060 and tell me if it's working? Thanks!

<font size="2" face="sans-serif, arial, verdana">I take it you're behind a router. 192.168.1.100 is no adress that can be seen from the outside but a local one assigned from dhcp. So you need to get the real ip adress of your router and setup port fowarding to the machine that is running dominions. </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">Torvak, were you replying to me? Well I play Dii on different computers, depending on where I am. Does figuring out the "real" IP of the router something different than that /cmd thingy mentioned in those previous Posts? Is the IP of the router different than that of the computer?
sorry

Tals March 29th, 2004 07:20 PM

Re: Hosting for Absolute Beginners
 
Getting back to the initial topic http://forum.shrapnelgames.com/images/icons/icon7.gif

Has anyone got the command line to setup a host, gens when all turns are submitted + 24 hr if not.

Additionally to spice it up, i;ve seen one send an email when the turn is genned is that possible.

I'm playing 2 games at the mo one ip one pbem. Usually I swear by pbem but Doms 2 ip is very well done.

Tals

PhilD March 29th, 2004 09:59 PM

Re: Hosting for Absolute Beginners
 
Quote:

Originally posted by tinkthank:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by Torvak:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by Minrhael:
Not to hijack the thread, but since it's here, I think I finally got mine set up host but as I really don't know what I'm doing, anyone want to try to connect to 192.168.1.100 6060 and tell me if it's working? Thanks!

<font size="2" face="sans-serif, arial, verdana">I take it you're behind a router. 192.168.1.100 is no adress that can be seen from the outside but a local one assigned from dhcp. So you need to get the real ip adress of your router and setup port fowarding to the machine that is running dominions. </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">Torvak, were you replying to me? Well I play Dii on different computers, depending on where I am. Does figuring out the "real" IP of the router something different than that /cmd thingy mentioned in those previous Posts? Is the IP of the router different than that of the computer?
sorry
</font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">If you have a router, and the machine that is supposed to be the server is on a LAN that's connected to the internet through the router, then most likely asking for the IP# of the machine will give you some "internet-invalid" address like 192.168.0.?

If that's the case, then you need to figure out what the IP address of the router is, setup the router to forward anything it receives on port YYY to 192.168.0.whatever (the local IP of your machine), port ZZZ.

Then launch the server on port ZZZ, and tell other players to connect to (the IP of your router), port YYY.

Essentially, the router makes it so that anything it receives on a certain port arrives on one of the machines on your LAN, at another (or the same) port.

Thus, several servers, running (apparently) on the same IP address, only at different ports, could in fact run on different machines.

Gandalf Parker March 29th, 2004 10:18 PM

Re: Hosting for Absolute Beginners
 
Quote:

Originally posted by Tals:
Has anyone got the command line to setup a host, gens when all turns are submitted + 24 hr if not.

Additionally to spice it up, i;ve seen one send an email when the turn is genned is that possible.

<font size="2" face="sans-serif, arial, verdana">For which operating system? Solaris? Mac? Linux? WIndows? (it does make a difference. Especially for question 2)

Tals March 30th, 2004 07:10 AM

Re: Hosting for Absolute Beginners
 
Windows OS.

Tals

Gandalf Parker March 30th, 2004 06:41 PM

Re: Hosting for Absolute Beginners
 
Quote:

Originally posted by Tals:
Windows OS.
<font size="2" face="sans-serif, arial, verdana">Ouch. All I can offer is an example of what I used in Linux which is probably twice as complicated as you need....

nohup dom2 -STq --nonationsel --port 7011 -g RyanEye -t 0 0 -t 1 0 -t 2 0 -t 3 0
-t 4 0 -t 5 0 -t 6 0 --postexec /home/dominion/dominions2/RyanEye.cmd >/dev/null 2>>RyanEye.err &

The -q does a quick processing if everyone gets their turns in. The -t commands say at each day (0 1 2 3 4 5 6) at midnight (0) process if there wasnt a quickturn. I think thats what you were most interested in.

The postexec calls a .cmd command script which updated a web page and sent emails. I wasnt mailing back turns though so now I would probably use the new --preexec so I could add a directory view of the game files. That would give me an email record of who did and didnt turn in turns. Who was first, who was Last, who didnt get one in at all. For sending out turns --postexec would be better.

I host in linux and play in windows. Im not sure how to do things with a postexec or preexec script in windows (a batch file with .bat extension probably). The only thing I would use it for would be to play a sound and let me know to do another turn for directly connected games.

[ March 30, 2004, 16:44: Message edited by: Gandalf Parker ]

Argitoth March 30th, 2004 10:26 PM

Re: Hosting for Absolute Beginners
 
hold it, HOLD IT!!!

I am the master of Windows OS hosting. What seems to be the problem? Hmm? What SEEEMS!!! to BE!!! thE ProBLEM!!!?? WHAT!! SEEMS!!! TO!!! BE THE!!!! PROBLEM?!?!? EHY??? TELL ME, COME ON!!!

WEEE!!

Gandalf Parker March 30th, 2004 10:47 PM

Re: Hosting for Absolute Beginners
 
Quote:

Originally posted by Argitoth:
hold it, HOLD IT!!!

I am the master of Windows OS hosting. What seems to be the problem? Hmm? What SEEEMS!!! to BE!!! thE ProBLEM!!!?? WHAT!! SEEMS!!! TO!!! BE THE!!!! PROBLEM?!?!? EHY??? TELL ME, COME ON!!!

<font size="2" face="sans-serif, arial, verdana">Well his original question was.....
Has anyone got the command line to setup a host, gens when all turns are submitted + 24 hr if not.
Additionally to spice it up, i;ve seen one send an email when the turn is genned is that possible.

to which we can now add "for Windows"

[ March 30, 2004, 20:48: Message edited by: Gandalf Parker ]

Argitoth March 31st, 2004 12:03 AM

Re: Hosting for Absolute Beginners
 
Has anyone got the command line to setup a host, gens when all turns are submitted + 24 hr if not.
Additionally to spice it up, i;ve seen one send an email when the turn is genned is that possible.


Arrite, there is no command line to send e-mails. It is probably a 3rd party program. Quickhosting AND 24 hour turn generation is not a good idea. It is one or the other. The reason for this is the Last person could take their turn at 7pm and the turn generates. Then the same person takes their turn at 7:05pm. 5 hours later, the turn is hosted and only that person who took their turn at 7:05pm got their turn in because no one else knew the game hosted at 7:00pm. Here is the command line I use:

"C:\Program Files\Dominions 2\dom2.exe" --port #### --tcpserver -wqxxx FileName

--port specifies the port used
--tcpserver makes the shortcut run a server
-w windows mode
-q quickhost
-xxx use lowest graphics possible
FileName is what you named the game/folder

[ March 30, 2004, 22:04: Message edited by: Argitoth ]


All times are GMT -4. The time now is 04:57 PM.

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