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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old January 2nd, 2007, 09:19 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Windows Email Notifier?

Does anyone have a program or script that would auto notify via email people that they can play their turn in a multi TCP/IP game? It needs to be for Windows...
Reply With Quote
  #2  
Old January 2nd, 2007, 10:30 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: Windows Email Notifier?

It gets rough in windows. But the googler keywords you want are "command line" windows client

You might check out these.. googling
__________________
-- 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
  #3  
Old January 2nd, 2007, 10:37 PM

NickW NickW is offline
Private
 
Join Date: Oct 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
NickW is on a distinguished road
Default Re: Windows Email Notifier?

For Linux servers, I use this script as my --postexec for email notifications

Code:


#!/bin/bash

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

sendmail [email protected] -FDomserver $PLAYER1 $PLAYER2 $PLAYER3 $PLAYER4 $PLAYER5 $PLAYER7 $PLAYER8 <<EOF
From: Nick's Dom3 Server <[email protected]>
Subject: Game has hosted
Please connect to server XXXX port YYYY to play your next turn
.
EOF



For windows servers, I install windows scripting host and then use this vbs script

Code:


Set objEmail = CreateObject("CDO.Message")


objEmail.From = "[email protected]"

objEmail.To = "[email protected];[email protected]"
objEmail.Subject = "Game XXX has hosted!"
objEmail.Textbody = "Please connect to server XXXX port YYYY to play your next turn!"

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtpserver.yourdomain.com"

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'These lines are for if your ISP's SMTP server required authentication
'They can be commented out if not needed

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "yourusername"

objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword"

objEmail.Configuration.Fields.Update

objEmail.Send
Reply With Quote
  #4  
Old January 2nd, 2007, 10:41 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Windows Email Notifier?

Thanks Nick!

How do you call that VBS script? (i.e. how does it know to activate when the turn is ready?)
Reply With Quote
  #5  
Old January 2nd, 2007, 10:47 PM

NickW NickW is offline
Private
 
Join Date: Oct 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
NickW is on a distinguished road
Default Re: Windows Email Notifier?

With the --postexec argument to dom3. You just whip up a custom shortcut to start your dom3 server. You probably want to use things like --textonly --tcpserver --port and so forth anyway, so just add another arg.
Reply With Quote
  #6  
Old January 2nd, 2007, 10:48 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Windows Email Notifier?

Ahhh cool. I'll give it a go. Thanks!
Reply With Quote
  #7  
Old January 3rd, 2007, 12:44 AM

alexti alexti is offline
First Lieutenant
 
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
alexti is on a distinguished road
Default Re: Windows Email Notifier?

You can install cygwin on Windows and use Linux scripts.
Reply With Quote
  #8  
Old January 3rd, 2007, 12:53 AM

NickW NickW is offline
Private
 
Join Date: Oct 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
NickW is on a distinguished road
Default Re: Windows Email Notifier?

Quote:
alexti said:
You can install cygwin on Windows and use Linux scripts.
Bit of overkill though, for someone who just wants simple email notifications for their dom3 game.
Reply With Quote
  #9  
Old January 4th, 2007, 02:29 AM

alexti alexti is offline
First Lieutenant
 
Join Date: Dec 2003
Location: Calgary, Canada
Posts: 762
Thanks: 0
Thanked 0 Times in 0 Posts
alexti is on a distinguished road
Default Re: Windows Email Notifier?

It's useful for all kind of things that are otherwise very difficult on Windows. But considering that it's essentially a large set of many convenient utilities, it's hard for most people to find a "must install" reason for cygwin
Reply With Quote
  #10  
Old January 4th, 2007, 11:40 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Windows Email Notifier?

Thanks Nick.... used your script and it seems to be working great!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 09:10 PM.


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