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

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







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

Reply
 
Thread Tools Display Modes
  #51  
Old October 18th, 2006, 02:21 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: On the cusp...

Background processing would be difficult for a game that is built on PbEM. Turn processing is often done on a different machine than the person is playing on.

MODERATOR WARNING
Discuss the SUBJECT and not each other!
Otherwise you endanger this thread.
__________________
-- 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
  #52  
Old October 18th, 2006, 02:53 PM
Foodstamp's Avatar
Foodstamp Foodstamp is offline
Major General
 
Join Date: Oct 2006
Location: Tennessee USA
Posts: 2,059
Thanks: 229
Thanked 106 Times in 71 Posts
Foodstamp is on a distinguished road
Default Re: On the cusp...

Quote:
curtadams said:
An interesting idea for SP would be to have the computer pre-compute the turns with background threads. First plan the AI turns. Then, once that's done, calculate all the battles as the player sets them up. Because the turn calc time is small compared to the playing time it should be pretty easy to stuff most of the work into the background from a time viewpoint (the programming, admittedly, isn't so easy).
Actually this is not a bad idea. It is usually not a good idea to put something like the AI in a seperate thread, but in a TBS it should work fine. I am not sure how cpu intensive playing the background music is, but I think it would be a good candidate to receive it's own thread as well since it only changes during combat it seems..

Using a method like you describe, all that would have to processed between turns is the battles. You could even process most of the battles before the end of the turn as well, and reprocess the battles that include the human player/players during the space between turns.
__________________
BLAH BLAH BLAH BLAH NEXT TURN.
Reply With Quote
  #53  
Old October 18th, 2006, 02:55 PM
Lasu's Avatar

Lasu Lasu is offline
Private
 
Join Date: Oct 2006
Location: Finland, where the polar bears dwell
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Lasu is on a distinguished road
Default Re: On the cusp...

Quote:
curtadams said:
An interesting idea for SP would be to have the computer pre-compute the turns with background threads. First plan the AI turns. Then, once that's done, calculate all the battles as the player sets them up. Because the turn calc time is small compared to the playing time it should be pretty easy to stuff most of the work into the background from a time viewpoint (the programming, admittedly, isn't so easy).
Now there's an excellent idea (though it indeed might be a bit hard to program). As for the PbEM issues, perhaps it could be done the old way in PbEM games (since the turns last so long anyway)? Of course, if the majority of people play PbEM, it might not be worthwhile to spend too much time on this matter (though I doubt that is the case )
Reply With Quote
  #54  
Old October 18th, 2006, 03:30 PM

Sindai Sindai is offline
Corporal
 
Join Date: Jan 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Sindai is on a distinguished road
Default Re: On the cusp...

Quote:
Gandalf Parker said:
Background processing would be difficult for a game that is built on PbEM. Turn processing is often done on a different machine than the person is playing on.
Well, it's not an issue in MP in the first place. He was proposing the change specifically for SP.

But I bet it wouldn't help very much in SP anyway. GalCiv 1 and 2 are suited for background processing because most of the work is in the AI and it's igo-yougo, so it can "think" during the player's turn. Dom3 is wego and most of the turn processing seems to be spent in battles, which can't be calculated until you know whether or not the player's orders will disrupt or change them in some way, so it's very ill-suited to background processing.
Reply With Quote
  #55  
Old October 18th, 2006, 03:30 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: On the cusp...

Not so much that the majority of games are multiplayer, but that the majority of the developer's interest is.

This would require a very different model for turn processing and probably use up a lot of memory, since so many things would have to be done conditionally.

About the only thing that could be done ahead of time is planning the AI orders. Once mages start casting spells, pretty much anything may change based on the results of ritual attack spells, new globals etc. Everything preprocessed would have to be held in memory waiting it's turn to actually happen. I doubt you'd get much time savings in any moderately complicated game, which is where you'd want it.
Nor would it be a simple programming task.
Reply With Quote
  #56  
Old October 18th, 2006, 03:38 PM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: On the cusp...

Quote:
curtadams said:
An interesting idea for SP would be to have the computer pre-compute the turns with background threads. First plan the AI turns. Then, once that's done, calculate all the battles as the player sets them up. Because the turn calc time is small compared to the playing time it should be pretty easy to stuff most of the work into the background from a time viewpoint (the programming, admittedly, isn't so easy).
Yeah, I think making this kind of change would be a major reworking of the code - and from what I've understood, the skills in the mammoth "Illwinter development team" may not be that specialized in multithreading an AI (time to get Brad Wardell on the team )
Reply With Quote
  #57  
Old October 18th, 2006, 04:07 PM

curtadams curtadams is offline
Corporal
 
Join Date: Jan 2006
Location: California
Posts: 159
Thanks: 5
Thanked 3 Times in 2 Posts
curtadams is on a distinguished road
Default Re: On the cusp...

A couple of comments -

Yes, I know the programming is complex. A plan - which doesn't require changing the basic model - is for "turn end" procressing to go in the background. The catch would be allowing changes to turn orders - the background process would have to figure out what to back out and redo for each change. Because of "wego" AI choices could be precomputed as is but that seems a relatively trivial amount of time. A crude start would be to precompute and cache each possible battle and redo if anything would change the battle setup. When the background thread finishes, it jumps back to the beginning and reruns the whole turn (if the player has changed anything), consulting its cache of prerun battles. In the most complicated games I suspect there's a lot of AI-AI interaction which would not be affected by most player action - so the turn processing would shorten dramatically. If the player's last action is to pitch a global, oh well, that turn may last a while.

Obviously the change is only relevant and possible for SP.
Reply With Quote
  #58  
Old October 18th, 2006, 04:59 PM
Lasu's Avatar

Lasu Lasu is offline
Private
 
Join Date: Oct 2006
Location: Finland, where the polar bears dwell
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Lasu is on a distinguished road
Default Re: On the cusp...

Exactly.
Reply With Quote
  #59  
Old October 18th, 2006, 06:01 PM
Taqwus's Avatar

Taqwus Taqwus is offline
Major General
 
Join Date: Aug 2000
Location: Mountain View, CA
Posts: 2,162
Thanks: 2
Thanked 4 Times in 4 Posts
Taqwus is on a distinguished road
Default Re: On the cusp...

Er, "every possible battle" would be insanely numerous.

Think about 800 units neighboring 800 units. *Any combination* of those 1600 units could be involved... AND summons and fliers, AND the gems could be changed, AND commanders may or may not have been killed through earlier spells...
__________________
Are we insane yet? Are we insane yet? Aiiieeeeee...
Reply With Quote
  #60  
Old October 18th, 2006, 06:41 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: On the cusp...

I think that background processing is fantastic. Many games use it. But I dont think it will work here. Personally I feel it would be moving in the wrong direction.

In a way, we are background processing. The game allows you to do your turns and send them to a server. The server processes everyones turns and sends them back. This allows for larger maps, larger armies, more nations, more events. I would rather see it move farther in that direction. Make MORE use of basically unlimited processing time. Id be fine even it took turn processing up to an hour or more.

And thats with me bing a solo player. I easily play Dom games where doing one turn a day is fine with me. Taking months to finish a game is fine with me. It allows me to do other things and makes dominions the game that lasts forever on my machine. Changing it into something that plays faster might be ok but its not anything I will push too hard for.
__________________
-- 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
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 07:01 AM.


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