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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old September 3rd, 2005, 07:19 AM
Tals's Avatar

Tals Tals is offline
Corporal
 
Join Date: Oct 2003
Location: UK
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Tals is on a distinguished road
Default Auto Emailing After Host and others re MP

Hi

I'm using Windows XP and just testing the hosting options (hosting a small game).

I want to send an auto email after the game has been hosted - I assume that this is done by the execute a command, is there a program that can be run to send an email to x people. I use Thunderbird for my email client

My second question - can I mix and match network and pbem, can I even have it that some people I send .trn files to and just copy their .h file in and others connect via the network.

Third question I see it is pretty resource efficient - Kudos devs! Is there a way of minimising it to the system tray rather than having it run on my toolbar.

Many thanks

Tals
Reply With Quote
  #2  
Old September 3rd, 2005, 10:52 AM
Tals's Avatar

Tals Tals is offline
Corporal
 
Join Date: Oct 2003
Location: UK
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Tals is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

OK regarding the email looks like i've found the solution

http://www.ss64.com/nt/mapisend.html

If anyone can assist with the other queries that would be appretiated.

Tals
Reply With Quote
  #3  
Old September 3rd, 2005, 06:03 PM
Tals's Avatar

Tals Tals is offline
Corporal
 
Join Date: Oct 2003
Location: UK
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Tals is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

OK can someone assist me on the command line I need to achieve to autostart my Dom Server:

Port 1025
Command to execute after execution c:\postie\oo_aran.bat
quickhost

No auto turn generate

Tals
Reply With Quote
  #4  
Old September 3rd, 2005, 06:13 PM
Tals's Avatar

Tals Tals is offline
Corporal
 
Join Date: Oct 2003
Location: UK
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Tals is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

And a second useful command

Run dom 2, connect to network game at ip a.b.c.d
port zzzz

Can it go one stage further and actually go to the race as well?

That way I can advise my players to run that everytime a turn is sent

Tals
Reply With Quote
  #5  
Old September 14th, 2005, 09:52 AM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

Are you trying to join a game (ie hosted elsewhere) or wanting to host one ?
If you're connecting you cannot create your race there, cause the game should have started already ... Else you should choose "host a game", not connect
Reply With Quote
  #6  
Old September 14th, 2005, 03:54 PM
Tals's Avatar

Tals Tals is offline
Corporal
 
Join Date: Oct 2003
Location: UK
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Tals is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

I think you misunderstood what I was trying to achive - just a simple way for people to connect to my game and also for me to be able to run the host easily.

So for the client:
"C:\Program Files\dominions2\dom2.exe" --tcpclient --ipadr a.b.c.d --port 2013 -i --nointro gamename

For the Host (i.e to start host)
"C:\Program Files\dominions2\dom2.exe" --tcpserver --port 2013 -q --preexec c:\postie\gamename_back.bat --postexec c:\postie\gamename.bat gamename

Was what I was looking for

In terms of the other questions:

Quote:

I want to send an auto email after the game has been hosted - I assume that this is done by the execute a command, is there a program that can be run to send an email to x people. I use Thunderbird for my email client
Use a program called postie - very neat and allows batch written sending of emails

Quote:

My second question - can I mix and match network and pbem, can I even have it that some people I send .trn files to and just copy their .h file in and others connect via the network.

I believe it is possible but the likelihood is that you'll end up loosing a persons turn. A tcpip game uses the gamename as the way of tracking the turn, a pbem game doesn't have the requirement to have the same gamename on the client as the server. Ultimately it just is too complicated and i'd recommend against it - I no longer give this option. It also is a possible cause of Dom2 inconsistancy bug - but that is just a gut feel.

Quote:

Third question I see it is pretty resource efficient - Kudos devs! Is there a way of minimising it to the system tray rather than having it run on my toolbar.

Yeah this wouldn't be a problem - then again it's really only applicable if the PC is being actively used and you want to free your task bar up. Lots of freebie progs allow you todo this.




[/quote]
Run dom 2, connect to network game at ip a.b.c.d
port zzzz

Can it go one stage further and actually go to the race as well?

That way I can advise my players to run that everytime a turn is sent

[/quote]

This was a misunderstanding on the way the tcpip game works. The game determines what player you are by the .trn file in the gamename directory of the client. So this is not necessary.

Tals
Reply With Quote
  #7  
Old September 15th, 2005, 05:18 AM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

Tals,
Yes, I totally missed your point, sorry
BTW, I'm pretty interested in any "auto emailing" system/batch/whatever that could remove the hassle of detaching/hosting/sending the pbem turn files. Some french player (at lavigie.org) juste made some vbs script to manage this through ftp instead, but it looks like you've made some neat stuff too. Could you elaborate about "postie" and so on ?
Thx
Reply With Quote
  #8  
Old September 15th, 2005, 02:39 PM
Tals's Avatar

Tals Tals is offline
Corporal
 
Join Date: Oct 2003
Location: UK
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Tals is on a distinguished road
Default Re: Auto Emailing After Host and others re MP

Yeah np

Postie is a free command line email program. You can download it from here

http://www.infradig.com

Basically just extracts into a single directory which you run it from.

I then have a batch file (my post command) which I then have the postie command in. For me this looks like

Code:

c:\postie\postie -host:mailserverip -from:myemailaddress -toerson_i_am_sending_to_email -s:"Dominions 2:OO_Aran Next Turn" -file:"c:\postie\oo_aran.txt"



This then has a Subject in the email of Dominions 2:OO_Aran and includes the text of the file oo_aran.txt in the body of the email.

You can actually have a command to attach a file - so for example if you wanted it as a pbem game you can attach the turn file.

I have a line for each player in the game, ending with me so I get a notification as well as knowing all is still well.

Once i'd done the above really the network game became glorious - you could of course just have the batch file which you ran after hosting if you just wanted it to send the emails.

Ask away

Tals
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 02:28 AM.


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