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

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
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
  #2  
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


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:03 PM.


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