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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #11  
Old July 18th, 2007, 04:22 PM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: request for new patch: an ai that can learn

dll are windows only, right? That makes Gandalfs proposal a lot more likely. Nothing will be developed unless it is first made to work under linux. The Windows version is a bonus to all those people who happen to have a windows computer besides their linux
In other words, JK develops the game in linux, and tries to make it work under windows and Mac OSX as well. It usually does. He is fascinated with operating systems (or was, when development of dom-ppp begun).
__________________
www.illwinter.com
Reply With Quote
  #12  
Old July 18th, 2007, 04:56 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: request for new patch: an ai that can learn

Well windows calls it a dll, linux just calls it a library.

You could certainly do the same thing. Make a library. Publish an API. Let dominions link to any library that meets the API.

It's a total rewrite of the ai code, though. Pulling it out of wherever it is, formalizing the interface, etc. Not likely to be an easy project.

The .2h & .trn files concept would require minimal effort. Just releasing the format. It does raise cheating concerns, though.
Reply With Quote
  #13  
Old July 18th, 2007, 05:03 PM
Reverend Zombie's Avatar

Reverend Zombie Reverend Zombie is offline
Lieutenant Colonel
 
Join Date: Feb 2004
Location: Chicagoland
Posts: 1,266
Thanks: 18
Thanked 0 Times in 0 Posts
Reverend Zombie is on a distinguished road
Default Re: request for new patch: an ai that can learn

Quote:
Kristoffer O said:
The Windows version is a bonus to all those people who happen to have a windows computer besides their linux

...and a bonus to anyone making money off the sales of the game!
__________________
In strait places gar keep all store,
And burn the plain land them before:
Then shall they pass away in haste,
When that they find nothing but waste...

Reply With Quote
  #14  
Old July 18th, 2007, 05:11 PM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Re: request for new patch: an ai that can learn

Quote:
Wahnsinniger said:
As for Satistical modeling, I thing you're kinda refering to a Neural-Net thing. Neural Nets are bad. Very Bad. Not worth the effort for game which sports a rich multiplayer community
Just wanted to stick up for neural nets here. You can't solve a problem just by running it through a neural network, but they're not bad at all at what they do, which is learn arbitrarily complex classification problems. (And with some tricks they seem to do pretty well at learning probabilities too.)

-Max
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote
  #15  
Old July 18th, 2007, 05:14 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: request for new patch: an ai that can learn

I seriously doubt that JK would allow any external library linking for security reasons alone. And this would only be for the real cracks that know how to use it. AI's that can be scripted were already on my wish list, too - just so that people realize that developing an AI is really hard work.

Seriously, somebody who suggests learning AI's and thinks that they'll be going to outperform specifically designed AI's probably doesn't have much experience in that field. The idea does look nice on paper, but already for simple games the training of the AI takes considerable time. Thousands or ten thousand games at minimum to have a somewhat bearable AI that probably still sucks and isn't very competitive. Even if the whole Dom3 fan base would submit their entire games this would take dozens of years. And don't forget that this game is far away from being simple. There are so many shortcuts in the game and combos that depend on details which a statistical model would either ignore as singular peaks or try to use them in situations where they do not work for it. A statistical model would probably go for the "good for most situations" choice which usually is quite poor in a specific situation.

Giving the AI some ideas what would be best to build, cast, etc., some sort of "sugar", would probably be the easiest to achieve and the most effective. The format could be somewhat similar to what the RanDom project is using for provinces.
__________________
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
  #16  
Old July 18th, 2007, 05:38 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: request for new patch: an ai that can learn

I hope I didnt give the impression that edit of trn/2h was my preference. I was only saying that its closer to a possibility than many think.

Id just rather that the game allowed a full text mode for play. That just means that for every non-text input (such as mouse selection) there is a matching text input. And that all actions have a text output. 80% of it is already in place.

That would allow the most options for AI thru the most methods (the most OS's, and the most scripting ot programming languages) including someone developing a dll, or a lib, or a api, etc.
__________________
-- 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
  #17  
Old July 18th, 2007, 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: request for new patch: an ai that can learn

There are fairly obvious data protection issues -- notably, providing an object that encapsulates *just* the information 'legally' accessible to the AI; and which provides no write-access, just a structure for queuing orders (incl. 'instant' orders like equipment moves or alchemy). It would be up to the implementation to cache historical data.

As for complexity, it would be incredibly complicated given the sheer variety of options.

Example domain where traditional AI techniques can work pretty well: driving on an empty road, maintaining lane position. The input (typically low-resolution imagery) is relatively constrained; edge-detection for the lines is reasonably well-understood; the state does not normally radically shift due to previously hidden information; and the controls (actuators) are relatively few -- steering, accelerating, breaking, shifting -- and responsive (less need for long-term planning). Credit assignment problems are usually minor.

Complex multi-player games with vast amounts of hidden information, mandatory long-term planning as some things take a long time to pay off, high randomness and configurability, and a ridiculous number of options are not easy to automate. It's difficult when it's not even obvious -why- one won or lost (credit assignment). This why AIs for even simpler games like GalCiv cheat like hell.

(Ex -- GalCiv knows where all the yellow suns are. These have the best colonization opportunies, thus eliminating much of the exploration problem. The game also cheats by biasing "random" events against the leaders. This is despite the far lower complexity. The whole Civ series is notorious for AI cheating -- ex. AIs trading tech with each other for a pittance compared to what they'll accept from any human, knowing where you are, knowing exactly what tech you have, etc -- and, if memory serves, punish-the-leader adjustments. And so forth.)
__________________
Are we insane yet? Are we insane yet? Aiiieeeeee...
Reply With Quote
  #18  
Old July 18th, 2007, 06:12 PM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Re: request for new patch: an ai that can learn

Quote:
Gandalf Parker said:
Id just rather that the game allowed a full text mode for play. That just means that for every non-text input (such as mouse selection) there is a matching text input. And that all actions have a text output. 80% of it is already in place.

That would be really nice for reasons which have nothing to do with AI. A lot of the pain of scrolling long spell lists or message lists would be alleviated if you could just remember that Communion Master, for example, is four PageDowns into the spell list, instead of grabbing the scroll and sliding it down. (Of course it depends upon paths and current research level.)

-Max
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote
  #19  
Old July 19th, 2007, 12:58 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: request for new patch: an ai that can learn

Quote:
Taqwus said:
There are fairly obvious data protection issues -- notably, providing an object that encapsulates *just* the information 'legally' accessible to the AI; and which provides no write-access, just a structure for queuing orders (incl. 'instant' orders like equipment moves or alchemy). It would be up to the implementation to cache historical data.
Ive seen mud-bots do a really decent job. Almost Turing level.

If a game can provide and receive information in text mode then a bot can be programmed to play. It is a program, playing as though its a human player. It gets no info that a human wouldnt get, and has no actions that a human doesnt have. Im not sure how well it can be made to play but at least it would toss the AI problem into many hands who could collectively decide that AI's for Dominions is not as easy as some make it sound
__________________
-- 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
  #20  
Old July 19th, 2007, 02:01 AM

Loren Loren is offline
First Lieutenant
 
Join Date: Nov 2006
Posts: 739
Thanks: 1
Thanked 8 Times in 8 Posts
Loren is on a distinguished road
Default Re: request for new patch: an ai that can learn

Quote:
MaxWilson said:
Actually, I really like that .dll idea. The thing I like about interfacing through .2h and .trn files is that the infrastructure is already there, and you could write your AI in any language--but there are also concerns about possible hacks. A .dll could still implement the AI in another language by spawning an AI process and communicating with it through a pipe.

-Max
Yeah, you've got a point about hacks.

Ok, a separate .exe that links a .dll that provides an API for dealing with the world, reading the .trn file, writing the .2h file etc. No data it's not allowed will even be in it's memory space. Have the main game engine read in the .2h file and check the legality of the orders in it.

To help things along I would suggest releasing the source for the AI. It wouldn't cost any sales--without a Dominions game the code is worthless.
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:50 PM.


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