Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Rise of Nations > RoN-General > Does the AI learn?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
31.Aug: `MOR` THIRD SEASON SIGN-UPS UNDERWAY
26.Aug: EMERGES AS THE WINNER
20.Aug: OH SO LOVABLE
CivGroups
Rise of Nations Multiplayer (64): Not a Member - Join
Apolyton Storywriters' Guild (56): Not a Member - Join

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
albiedamned is offline albiedamned
Prince
Ellicott City, MD
Sep 2001
time: 00:28
  Old Post 26-05-2003 08:46
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Does the AI learn? Support Apolyton buy from Amazon

There are 3 files in the ai\scripts directory which seem to get updated everytime I play: economic.bho, aibestbuildlibrary.bho, and defensive.bho. The files are in binary format so I can't read them. But I'm wondering what these are used for and why they are updated all the time. Could it be that the AI is somehow keeping track of its best efforts? It seems unlikely, since BHG surely would have been promoting this fact! Can anyone from BHG explain these files?

Carch is offline Carch
Warlord
San Jose, CA, USA
Dec 1999
time: 21:28
  Old Post 27-05-2003 05:12 Visit Carch's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

I'm curious about this too. Same thing happens here, and that filename 'aibestbuildlibrary' sounds rather suspicious!

I suspect what's really happening, though, is that the script files in that directory are getting compiled every time the game starts up. Economic, defensive and bestbuildlibrary.bhs are text files.

Anyone have the real answer? Bueller? Bueller?

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:28
  Old Post 27-05-2003 09:28
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Help yourself to an AD-FREE life

I'd bet Carch is right. They can't make the AI learn between games, because then your games would get progressively harder.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:28
  Old Post 27-05-2003 16:42 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization 2

Easiest way to find out would be to make a backup of the files, play a game, and then compare the new files with the old ones. (I'd do it myself but I'm still waiting for my game to be delivered )

albiedamned is offline albiedamned
Prince
Ellicott City, MD
Sep 2001
time: 00:28
  Old Post 27-05-2003 17:22
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Browse Apolyton AD-FREE

I would guess Carch is right as well. The two files which get updated everytime you play have .bho extensions. There are two files with the same name but .bhs extensions that don't get updates. The .bhs files are plain text file with what looks like a scripting language, while the .bho files are an unreadable binary format. So my guess is that .bhs is "Big Huge Script" while .bho is "Big Huge Object", the compiled version of the script file. And I would guess that the reason they recompile them everytime is to allow for the possibility that the script files changed.

Locutus, I don't have time to play right now but I just saved out a copy of the .bho files. I'll play tonight and then do the compare, unless someone else does if before me today.

This does raise some other interesting possibilities. BR has said that the AI follows one of several scripted openings, followed by a more general adaptive approach (unscripted). The second part is probably hard coded, but it looks like we can certainly mod the scripts for the openings. So I'm sure someone will come up with a killer script for an awesome AI rush.

albiedamned is offline albiedamned
Prince
Ellicott City, MD
Sep 2001
time: 00:28
  Old Post 27-05-2003 17:27
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

By the way, economic.bhs obviously appears to be the boom script, but defensive.bhs is actually the rush script. It says so in the comments right at the top.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:28
  Old Post 27-05-2003 18:31
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Carch and albie are right. Ilya Kreymer (the bloke who did the language) wrote:

quote:

Scripts files are text files and usually have a .bhs extension. Scripts are compiled to byte-code .bho, which are then loaded by the virtual machine embedded in the game.

Metaliturtle is offline Metaliturtle
King
University of Wisconsin Stevens Point
Mar 2002
time: 23:28
  Old Post 27-05-2003 21:41
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

cool, I want a virtual machine....


Sorry for the off topic, but an AI that learns is an interesting idea, but for this game would result in AI that would 0wn in single player play unless you share your computer with a bunch of ppl, or use a different strategy every time.

In football games they use this though, it does make the game more fun, but NOTHING can stop the Green Bay Packers when Metaliturtle has the stick!

MxM is offline MxM
Warlord
Planet Earth, Solar System
Jan 2000
time: 00:28
Exclamation  Old Post 29-05-2003 00:41
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Call to Power 2

It could be coincidence but…

In a quick battle I was playing AI vs. AI (that is AI controlled my units, etc). I was using Russians and played “boom” AI. So quite fast in each age AI reached the commerce limit. I decided to help it, and researched Commerce 2 boxes more than the age. We won this battle.

Then I set up similar battle and again played Russians using AI. To my surprise AI researched technologies in exactly the same sequence as I help it to do last time! Of cause, as I said it could be just a coincidence, but it could be that because AI won last time in similar battle (with my little help) it might remember the order of technology research. That could be fantastic!

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:28
  Old Post 29-05-2003 02:52
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Browse Apolyton AD-FREE

The AI very well might learn during a game, but the learning is not stored.

VJ is offline VJ
Prince
Helsinki
Dec 2001
time: 07:28
  Old Post 29-05-2003 03:12
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Umm, this is Off-topic, but...
Skywalker, your sig is way too long. It becomes clear in one-lined posts such as the above one. The forum limit is 4 lines at 1024x768, AFAIK.

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:28
  Old Post 29-05-2003 03:26
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

It is four lines. IIRC, the control panel won't even let you have more than four.

The thing is, it's determined by number of returns

opaque is offline opaque
Chieftain
England
Aug 2001
time: 05:28
  Old Post 29-05-2003 03:52 Visit opaque's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

I noticed this as well. Clearly other people share the habit of mooching in the Program Files directory and randomly opening text files

Interesting how the three files that update themselves are also the three you can open in the script editor. I thought I had accidently modified them when I was playing with the editor, until I saw they got updated when I didn't use it at all.

MxM is offline MxM
Warlord
Planet Earth, Solar System
Jan 2000
time: 00:28
  Old Post 29-05-2003 06:23
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by skywalker
The AI very well might learn during a game, but the learning is not stored.


But then it is not learning – it is adjustment to situation. Learning needs repeated memorizing.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:28.
Apolyton Time is 00:28.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0475 seconds (88.13% PHP - 11.87% MySQL) with 49 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net