Thread Tools
Old February 1, 2003, 04:15   #1
Mr. Harley
Prince
 
Mr. Harley's Avatar
 
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Jan 2003
Posts: 819
Modifying the AI engine - is it possible?
I've play SMAC since shortly after its release, though I've only been on the forums for a month. There seems to be a consensus that the AI could use some overhaul. Can it be modified directly, rather than indirectly with faction editing/game difficulty? Does anybody know where in the game the code is kept?

If enough people supported it, maybe firaxis would make the SMAC AI code available now that civ3 with a better AI engine has been released. Then the various SMAC/X communities could work on an effective builder AI. Obviously Firaxis would protect their copyright, and possibly even discover some good coders out there. Maybe a new release? Just a thought.
Mr. Harley is offline  
Old February 1, 2003, 11:27   #2
zsozso
Alpha Centauri PBEMSpore
Prince
 
zsozso's Avatar
 
Local Time: 10:30
Local Date: November 1, 2010
Join Date: Oct 1999
Location: of Chiron
Posts: 806
I do not know about any way to modify the AI. However, if Firaxis would be willing to give us some information or a script language input or any other way to do it, I would be very interested working on it. Even if they only do as much as release detailed information about the game save format, then I could already write an "external" AI, i.e. an automated PBEM/hot-seat oppenent program, which you could use instead of a human player to play a turn in a hot-seat game. What I mean, is that you play your turn, save it, run the external AI program that reads in the save and produces another save with its moves made, then you load that up and so on...

I could even make a web or email based version of it, where you can send/upload your file and it would sned you back the save after the turn is played by the external AI.

If there are any other programmers out there willing to chime in, then we could make it into serious open-source project.
__________________
::Zsozso::
zsozso is offline  
Old February 1, 2003, 20:28   #3
Alinestra Covelia
ACDG The Human HiveRise of Nations Multiplayer
Queen
 
Alinestra Covelia's Avatar
 
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Feb 2000
Posts: 5,848
I'm only a puny player, not a programmer, but I must admit the thought of a new revamped SMAC AI makes me weak at the knees.

[flourishes banner]

This is a bold challenge - will Firaxis take it up? Stay tuned.
__________________
"lol internet" ~ AAHZ
Alinestra Covelia is offline  
Old February 2, 2003, 03:02   #4
Mr. Harley
Prince
 
Mr. Harley's Avatar
 
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Jan 2003
Posts: 819
zsozso - I hadn't even considered your idea, I had assumed directly programming the AI algorithm. I wish you could still legally run a dissassembler on it Your idea would make a quick customized faction AI much faster, as in small map/Hive, which eventually could be assembled into a larger universal program. Nice idea.

If we can get enough posts on this thread, I'll send an email to Firaxis to look at the support for this idea. Unless somebody chimes in who they already know (and like ). Thanks.
__________________
The worst form of insubordination is being right - Keith D., marine veteran. A dictator will starve to the last civilian - self-quoted
And on the eigth day, God realized it was Monday, and created caffeine. And behold, it was very good. - self-quoted
Klaatu: I'm impatient with stupidity. My people have learned to live without it.
Mr. Harley: I'm afraid my people haven't. I'm very sorry… I wish it were otherwise.
Mr. Harley is offline  
Old February 2, 2003, 05:58   #5
spartak
King
 
spartak's Avatar
 
Local Time: 15:30
Local Date: November 1, 2010
Join Date: Dec 2000
Posts: 1,195
I'm all in favour. Unless firaxis are still making money from the game (which I don't think they are) they owe it to their fanbs to allow someone else to make the AI work.
__________________
(+1)
spartak is offline  
Old February 2, 2003, 06:22   #6
Archaic
Alpha Centauri Democracy GameAlpha Centauri PBEMNationStatesACDG The Cybernetic ConsciousnessACDG3 MorganACDG Planet University of Technology
Emperor
 
Archaic's Avatar
 
Local Time: 01:30
Local Date: November 2, 2010
Join Date: Nov 2001
Location: Washed up SMAC/X University Specialist
Posts: 3,022
As I recall, didn't Firaxis already refuse a similar request quite some time ago?
__________________
Veni Vidi Castravi Illegitimos
Archaic is offline  
Old February 2, 2003, 07:49   #7
Lazerus
Alpha Centauri PBEMNationStates
King
 
Lazerus's Avatar
 
Local Time: 16:30
Local Date: November 1, 2010
Join Date: Jul 2002
Location: Empires were built by dictators, not democracies.
Posts: 2,869
the AI does need some serious tuning, i haven't seen alpha centauri on any shelves in game stores around my area for a while, only seen it as jewel on the net so i doubt they're selling like they used to.
__________________
Learn to overcome the crass demands of flesh and bone, for they warp the matrix through which we perceive the world. Extend your awareness outward, beyond the self of body, to embrace the self of group and the self of humanity. The goals of the group and the greater race are transcendant, and to embrace them is to acheive enlightenment.
Lazerus is offline  
Old February 2, 2003, 10:37   #8
Clear Skies
Prince
 
Clear Skies's Avatar
 
Local Time: 15:30
Local Date: November 1, 2010
Join Date: Jul 2000
Location: looking for a saviour in these dirty streets
Posts: 660
They still have a number of copies around on shelves in England (Game stores seem to keep a good stock), but Alien Crossfire can't be found for love nor money...
__________________
"Love the earth and sun and animals, despise riches, give alms to every one that asks, stand up for the stupid and crazy, devote your income and labor to others, hate tyrants, argue not concerning God, have patience and indulgence toward the people, take off your hat to nothing known or unknown . . . reexamine all you have been told at school or church or in any book, dismiss whatever insults your own soul, and your very flesh shall be a great poem and have the richest fluency" - Walt Whitman
Clear Skies is offline  
Old February 2, 2003, 16:10   #9
Sarxis
Rise of Nations MultiplayerAlpha Centauri PBEMCivilization III MultiplayerCivilization III PBEMCTP2 Source Code ProjectCall to Power II MultiplayerCall to Power MultiplayerCivilization IV: MultiplayerCivilization IV CreatorsGalCiv Apolyton Empire
Emperor
 
Sarxis's Avatar
 
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Sep 1999
Posts: 3,361
Quote:
Originally posted by Archaic
As I recall, didn't Firaxis already refuse a similar request quite some time ago?
Probably; they're afraid someone might go and fix the remaining bugs and make SMAC(x) the perfect game.
Sarxis is offline  
Old February 2, 2003, 21:42   #10
ellie
Settler
 
Local Time: 15:30
Local Date: November 1, 2010
Join Date: Jan 2003
Posts: 18
re
Hmm i bought a legal copy of alien crossfire.
It IS available for free download on a number of sites (i know one site bound to have it), but it feels wrong copying it


Ellie
ellie is offline  
Old February 3, 2003, 08:42   #11
zsozso
Alpha Centauri PBEMSpore
Prince
 
zsozso's Avatar
 
Local Time: 10:30
Local Date: November 1, 2010
Join Date: Oct 1999
Location: of Chiron
Posts: 806
Quote:
Originally posted by Archaic
As I recall, didn't Firaxis already refuse a similar request quite some time ago?
Was that request about opening the AI for programming by users, or giving out information on the game save format ? Because the later one is a much smaller request in terms of IP rights or work on their side. I mean, they must have some internal docs about the save format, so it is zero work to release that and they do not give away much IP with that either. Being in the software business myself, I wouldn't refuse the request for the format, but I would have some concerns about giving access to AI code.

So, maybe it is worth approaching them about the save format. Of course, that solution would not be so convenient for the players (requires saving/loading each turn), but at least it is a work-around. I'm sure a lot of players would be willing to take that much trouble for the benefit of playing against a decent AI.

We could even make the web version to learn, i.e. build up a knowledge base from the games it played and use tactics "borrowed" from players who won. This way the more we play it, the smarter it gets...
__________________
::Zsozso::

Last edited by zsozso; February 3, 2003 at 09:56.
zsozso is offline  
Old February 3, 2003, 09:09   #12
EmperorJay
Chieftain
 
Local Time: 15:30
Local Date: November 1, 2010
Join Date: Aug 2002
Posts: 77
the real problem is the game itself, its just too complex to build areally good AI. (have you ever tried thinking about just WHY you do certain things? the facts you consider in that process are surely quite numerous....)

but it would certainly be possible to mdify the AI in a way that it learns using crawlers and defending against air-units or maybe executing proper attacks. It would still be week, becaus it isn't able to use any special tactics, but it would be some progress...

P.S.: the civ3 AI is only better, because the game easier to understand (-> crappy )

P.P.S.: I'm sorry I had do spam
EmperorJay is offline  
Old February 4, 2003, 09:04   #13
Mr. Harley
Prince
 
Mr. Harley's Avatar
 
Local Time: 11:30
Local Date: November 1, 2010
Join Date: Jan 2003
Posts: 819
EmperorJay, thanks for the post. Actually, it would not be that "hard" to write the AI, just moderately complex. My programming experience predates the Windows paradigm (secret project, increase economy +2, automatic status reports on enemy secret projects, +2 to probe attempts to sabotage enemy patents )

What would be important is getting enough people involved for the various strategy/faction/world sizes to be covered. You are probably talking megabytes of added programming code, and a necessity to run it on the last generation of computers. Probably P3/Thunderbirds over 500mhz (preferably 1ghz) with 256MB of memory, again preferably DDR or Rambus (the Windows paradigm ).

It should not be difficult to write an AI that is faction specific, that takes into account all factors through the midgame. String them together, and you have a moderately successful AI. If the programming is done properly, it will be modular and you may have a master routine that calls the following subroutines - Large World, dry terraforming, Morgan, no neighbors. When neighbors are discovered, a threat analysis program could be called, with the options of peaceful, border guard, potential hostile, known hostile or war taking over the "no neighbors" subroutine.

A late game AI might be more difficult, I don't know for sure because my experience has been mostly solo, when the game is almost always decided by midgame, usually about the time Fusion Power and Helicopters are discovered. The AI still will be at a disadvantage compared to a experienced/skilled player, but set this kind of AI to transcend and even they will have a very tough time. Let's just say no more winning as Mirium in a solo Huge World transcend game
Mr. Harley is offline  
 

Bookmarks

Thread Tools

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 11:30.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team