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

This Month's Specials

ATF: Armored Task Force- Save $8.00
War Plan Pacific- Save $8.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old July 4th, 2004, 11:30 PM

LokeUtgaard LokeUtgaard is offline
Private
 
Join Date: Apr 2004
Location: Denmark
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
LokeUtgaard is on a distinguished road
Default Windows Server Host Question

I have a Windows 2000 server that I would like to use to host a few Dom 2 PBEM games. I've written a small script to upload .2h files to the server and keep track of who has submitted turns. Once everyone is in (or a fixed time duration has passed) I would like the server to run host, exit and send the new turn files out.

The problem is that I can't seem to get the script to run host and exit. I have tried calling dom2.exe directly, or via a bat file, with

dom2.exe -g testgame --host -xxx

When running this from commandprompt or by running the bat file, it works fine. But when launced from the script, a dom2.exe process is initiated, hangs and no turn is generated.

Does someone more skilled in Win2k have a hint to what I might do wrong here?

I've tried both with Cold Fusion script and PHP, both with the same result. The script service is set to be allowed to interact with the desktop.

/Loke
Reply With Quote
  #2  
Old July 5th, 2004, 03:19 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Windows Server Host Question

Maybe you are in the wrong directory and it will work better if you add this line before trying to start dom2:
cd \program\dominions2
__________________
http://www.illwinter.com
Reply With Quote
  #3  
Old July 5th, 2004, 05:46 PM

LokeUtgaard LokeUtgaard is offline
Private
 
Join Date: Apr 2004
Location: Denmark
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
LokeUtgaard is on a distinguished road
Default Re: Windows Server Host Question

I forgot to mention that I already did that.

echo batstart > runstatus.txt
cd d:\dominions2\
dom2.exe -g testgame --host -xxx

the echo was to check if the bat was executed at all, which it is... And the bat excutes dom2 fine when run normally. But not from a script or with Windows Scheduled Tasks.
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 08:02 PM.


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