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

This Month's Specials

The Falklands War: 1982- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old November 19th, 2008, 11:12 AM
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: Any spectate or replay function for Dom3 games?

The game does have those features. But they are part of the basic PbEM game on Linux setup so they dont tend to get explained well for people on Macs and Windows. Its not on the menu, so they dont think its a feature of the game.

The pbem setup means that the turns are a seperate file.
To get a spectator view of a game, simply ask to have someones turns emailed to you also.
To get a replay function (or backups), simply arrange for a turn file to NOT overwrite the previous turn file each time. (some people have written utilities to make that easier)

With direct-connect games it can be more difficult to do both. Such as, if care isnt taken then a spectator can save a turn to the server. But it can be done if you really know your way around the windows program (by setting permissions).

Hmmmm Im thinking that there might be a way to insure at the hosts end that only the correct file gets used. Maybe I will think on that abit and see about setting up a spectator game. We could have the experts on IRC play a game against each other and allow everyone to watch it. (allow direct connect for watching but only emailed turns from the real players get swapped in by the preexec prior to running host?)

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
  #2  
Old November 20th, 2008, 05:56 PM
Alneyan's Avatar

Alneyan Alneyan is offline
General
 
Join Date: Sep 2003
Location: United Kingdom
Posts: 3,603
Thanks: 0
Thanked 22 Times in 22 Posts
Alneyan is on a distinguished road
Default Re: Any spectate or replay function for Dom3 games?

Oh, I like the sound of that! I loved running PBEM games without actually playing in them, so I could peek around and see what all the players did... it's great fun, so I can see where you're coming from.

The biggest problem is, like lch said, that the game makes it so awkward to switch back and forth between turns, so looking at more than a few turns can be pretty frustrating. It should be possible to improve the state of affairs somewhat by using a third party program that allows you to see what the game looked like on turn X with just a click. You'd still need to have all the turn files saved up, though, but that's very easy to set up.

I can see a pretty straightforward way of allowing spectators in a TCP/IP game, though: just run two instances of the game, one for the actual players, and the other one for the spectators. When a turn runs, have the first game copy its files to the second one.

Does that sound like what you were looking for? I know the game doesn't have those two features in a convenient form, but I think it's possible to get a pretty close approximation with a limited amount of hackery. The hackery itself is easy enough to do, but I'm just not sure if it's going to be good enough for what you have in mind. Let me know
Reply With Quote
The Following User Says Thank You to Alneyan For This Useful Post:
  #3  
Old November 20th, 2008, 06:31 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Any spectate or replay function for Dom3 games?

Quote:
Originally Posted by Alneyan View Post
I can see a pretty straightforward way of allowing spectators in a TCP/IP game, though: just run two instances of the game, one for the actual players, and the other one for the spectators. When a turn runs, have the first game copy its files to the second one.
The problem with "spectators" is that they could talk about the info that they gained from spectating. Thus I only prepare savegames for finished MP games, or allow spectators in blitzes only where it's not that big an issue of having invested weeks on a game.

If you have a friend in a MP game and he trusts you then you can just reuse his turn files like said earlier. For PBEM, let him forward you the turns by mail, for networked, just log in with his password and immediately log out again when you see the status screen, then go to your local games. You should always use "Quit without saving" instead of "End turn" for safety.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #4  
Old November 21st, 2008, 05:41 AM
Alneyan's Avatar

Alneyan Alneyan is offline
General
 
Join Date: Sep 2003
Location: United Kingdom
Posts: 3,603
Thanks: 0
Thanked 22 Times in 22 Posts
Alneyan is on a distinguished road
Default Re: Any spectate or replay function for Dom3 games?

Quote:
Originally Posted by lch View Post
The problem with "spectators" is that they could talk about the info that they gained from spectating.
Yes, that's the obvious problem with spectating (the other one being active players posing as spectators).. but that's a social issue, so no amount of hackery is going to help.

I know I wouldn't allow spectating in an ongoing game unless it was agreed beforehand, as it just seems too likely to end up with possibly unfounded suspicions if a player happens to be very lucky in their wars.

I do think an exhibition game would be a lot of fun to watch, though, so count me in as a cheerleader for that one
Reply With Quote
  #5  
Old November 20th, 2008, 09:54 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: Any spectate or replay function for Dom3 games?

Quote:
Originally Posted by Alneyan View Post
I can see a pretty straightforward way of allowing spectators in a TCP/IP game, though: just run two instances of the game, one for the actual players, and the other one for the spectators. When a turn runs, have the first game copy its files to the second one.

Does that sound like what you were looking for? I know the game doesn't have those two features in a convenient form, but I think it's possible to get a pretty close approximation with a limited amount of hackery. The hackery itself is easy enough to do, but I'm just not sure if it's going to be good enough for what you have in mind. Let me know
EXCELLENT. Yes that would be really easy to setup. Having the post-exec command do the copying.

And Yes lch, there would be some drawbacks. The first one I thought of was that an unscrupulous player could view the files of his enemies. The best option for a lurker is to ask one player if they can get copies of the turn files. I think that for the next mid-to-large game I host I will make the option for emailing turns to multiple addresses.

But what I had in mind was an exhibition game. I think that the IRC crowd could put together a game where the abuses would be few, and allow all of the eager learners lurking here to peek into their actions. It wouldnt be a serious game since there would be too many factors. Such as, there would be too much temptation to discuss everything that we see even while the strategy is in play and possibly give it away to the enemy.
__________________
-- 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
  #6  
Old November 21st, 2008, 06:10 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Any spectate or replay function for Dom3 games?

Quote:
Originally Posted by Gandalf Parker View Post
But what I had in mind was an exhibition game. I think that the IRC crowd could put together a game where the abuses would be few, and allow all of the eager learners lurking here to peek into their actions.
As I said, for blitzes it has become quite popular to spectate at others, and the players are usually okay with it as they play without any pretender passwords set anyway. The users namad and especially moderation quite often take a look over another one's shoulder.

I prepared a shell script a while ago which repackages my backups of games played on my server into that form where they are being renamed into folders carrying the turn number, and so on. So if the players are okay with it, I could prepare finished games for spectators. Here it is:

Code:
#!/bin/bash

for file in *-pre.tgz
do
  game=`echo $file | sed "s/-[0-9]*-pre.tgz$//g"`
  tar xzf $file
  title=`grep -oEm 1 "Dominions 3 Scores, [^<]*" $game/scores.html | sed "s/Dominions 3 Scores, //g"`
  if [ -z "$title" ]
  then
    title="$game turn 1"
  fi
  mv "$game" "$title"
done
It needs all the backups for that game in the current directory and the games to be hosted with the --scoredump switch. Here's how I create my backups, to be run in the "savedgames" folder:

Code:
tar czf "/home/dom3/dominions3/backups/"$GAME-$(date +%s)-pre.tgz $GAME
Using the backups from the --preexec commands has the added bonus that you can see the orders that the players gave, all the army movement arrows and so on. I could probably come up with a couple of more games to peek into by asking a crowd of players that frequently play on my server, if there's interest in that.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
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 01:18 AM.


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