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

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old November 21st, 2008, 12:01 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?

You are right. Using the pre would be better than post.
That would be interesting. Using date-named zipz for storing each turn then you could avoid having to have a savedgames directory for each turn that you wanted viewable.

if the game was called Exhibition on port 12345 and every turn that processed saved the orders file (pre) as exhi+date.zip then a webapp could allow viewing the file and create a temporary savedgame dir with all the files as something like a game called exhi726354 on port 34344. The pre could look and remember which turn was being viewed then copy a dummy .2h into place creating a fast "stale turn" result, and the post would unzip the next save in the sequence. That way the person viewing the game could login to 34344 and look at that turn all they wanted including the original players changed commands for that turn and all battle views. Then hit "end", get the next turn with all the planned actions, look at it, hit "end", look at the next one, etc etc thru the whole game.

That might be worth setting up for myself (its great to be the server) just to be able to backcheck my own actions in some of my larger games.

A webapp could also make the entire zip for a particular turn available for download so that at any point in the game they could decide to turn it into a local game on their own machine to continue the game live from that point on. This would be fantastic to offer with one of the more creative AAR writers here. A person could read the AAR, view the game turns, and at any point take over a personal version of the game to play from that point on. I get that something like that would be publicized by Shrapnel.

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 21st, 2008, 12:09 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 Gandalf Parker View Post
That would be interesting. Using date-named zipz for storing each turn then you could avoid having to have a savedgames directory for each turn that you wanted viewable.
You'd still need a folder for each turn, but you could make one big archive for all the turns, which can be created by hand after using my script there which puts them into folders named "SpectateGame turn 1", "SpectateGame turn 2" and so on.

I am using the timestamps to avoid collusion with savegame backups. The timestamps are not really readable for humans because the timestamp is given in the seconds since the UNIX epoch, so just a very large number. You can only tell the order of the dates by comparing the numbers, though the backup date could easily be retrieved by looking at the file creation date, too.
__________________
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 01:11 PM.


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