.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 > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old February 22nd, 2004, 02:00 AM
Litcube's Avatar

Litcube Litcube is offline
Corporal
 
Join Date: Mar 2003
Location: New Westminster, Canada
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Litcube is on a distinguished road
Default AI Modding 101?

Was yapping in #SE4, and Fryon mentioned that there was indeed a document on AI Modding, though he couldn't remember the name of it.

Does anyone have any info on modding the AI? Documentation? Anything?
Reply With Quote
  #2  
Old February 22nd, 2004, 06:17 AM

hicksz hicksz is offline
Private
 
Join Date: Feb 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
hicksz is on a distinguished road
Default Re: AI Modding 101?

This is my first post.

I have been following your Posts Litcube and I can feel your pain. I'm also having trouble modding the AI, especially the (Computer Opponent)_AI_DesignCreation.txt. More on that later.

I can't find any documenation on AI Modding. I have look everywhere but only find some notes or a passing sentence or a topic on the message board. Let see, I looked at the "Frequently Asked Questions for Newbies" post but found only a small section on Modding. This topic is more geared for players and is excellent for newbies. I learned a lot about the game but no AI modding help. I then looked at http://galileo.spaceports.com/~kazharii/modding101/ and read through Imperator Fyron (Nolan Kelly) excellent SEIV Modding 101 tutorial. I learn a lot from his tutorial but again no AI Modding help. Next I went to http://invirtuo.cc/phpwiki/index.php/AI
The encyclopedia Malfadorica Wiki for Space Empire IV Gold. All I got where definitions of the AI files. No help here. I then look through the AI Campaign and TDM-MODPACK for help but only read that they tweaked the AI. So I re-read what is written in the Default_AI_DesignCreation.txt for anymore clues I might have missed. Am I just not noticing where the AI modding document is? The only document I could find that actually talk a little about the AI files is the "Modifying the Universe In a Day" by Chris Traber and that is found on the SEIV Gold CD. But it doesn't go in to the text file details like the SEIV Modding Tutorial 101. The SE4 Modder by David Gunstensen does help with AI research and facility construction but it doesn't help with design creation and it doesn't help you understand the AI files. So I did a search for AI help on the forum and that led me to Litcube who is asking a lot of questions about AI modding. I just can't imagine that with all of the excellent MOD tutorials out there for SEIV Gold that we can't find one for AI modding that goes into some kind of detail. If there is one, I just not seeing it but I have try to stress in my post that I have looked for one.

You start to look at the AI mods and the original files and you think you start to understand something and something will just throw you like in the AI_Research.txt. What is Not Connected? I can probably guess but it nice to have stuff spell out for you sometimes.

In reference to the post here:
http://www.shrapnelgames.com/cgi-bin...;f=23;t=010966

and I'm still confused with

Num Misc Abilities := 7
Misc Ability 1 Name := Point-Defense
Misc Ability 1 Spaces Per One := 400

Okay, Rollo said that

that means that for each 400kt of hull space one component that has Point-Defense ability will be added. Note that this is always rounded down, but a minimum of one component will be added. So that results in:
1 component for hulls from 1 to 799
2 components for hulls from 800 to 1199
3 components for hulls from 1200 to 1599
and so on...

Okay, that makes sense but when you look at this:

Misc Ability 1 Name := Point-Defense
Misc Ability 1 Spaces Per One := 400
Misc Ability 2 Name := Cloak Level
Misc Ability 2 Spaces Per One := 10000
Misc Ability 3 Name := Quantum Reactor
Misc Ability 3 Spaces Per One := 10000
Misc Ability 4 Name := Combat To Hit Defense Plus
Misc Ability 4 Spaces Per One := 10000
Misc Ability 5 Name := Combat To Hit Offense Plus
Misc Ability 5 Spaces Per One := 10000
Misc Ability 6 Name := Multiplex Tracking
Misc Ability 6 Spaces Per One := 10000
Misc Ability 7 Name := Shield Regeneration
Misc Ability 7 Spaces Per One := 800
Misc Ability 8 Name := Emergency Resupply
Misc Ability 8 Spaces Per One := 800
Misc Ability 9 Name := Self-Destruct
Misc Ability 9 Spaces Per One := 10000
Misc Ability 10 Name := Scanner Jammer
Misc Ability 10 Spaces Per One := 10000
Misc Ability 11 Name := Supply Storage
Misc Ability 11 Spaces Per One := 500

you can start to get confused again. Okay if 400 is supposed to be "each 400kt of hull space one component that has Point-Defense ability will be added" then why are we seeing values of 10000? An unmodded base ship has a value of 1500 tonnage.
BTW these values come from the TDM-Modpack. Also in the AI_DesignCreation.txt header, it says under Vehicle size user requirements "Does not have any Min Percent requirements for a comp type different than the Majority Comp Type. Does not have any Max Percent requirements for the Majority Comp Type." How does percentage play it to this? I thought we were talking about tonnage?

And what about this?

Majority Comp Spaces Per One := 1200
Majority Comp Ability := Weapon
Secondary Comp Spaces Per One := 500
Secondary Comp Ability := Weapon

Are we saying here that the majority comp ability was always be first look at and then secondary comp ability if there is enough tonnage? Or does the AI design have to be able to use a majority and secondary comp space if listed in the txt file?

It took 2 hours just to discover that I was looking at the wrong weapons family when looking at the Majority Weapon Family Pick 1. I kept looking at the Family value instead of the weapon family for a weapon in the components.txt.

My point is that we need a document on modding AI in the spirit of the SEIV Modding 101 if there isn't one already. I already started working on one just for my sanity but it wont be good as what Rollo or Mephisto can come up with. I'm sorry to vent but I just can't understand why it so hard to find documentation on Modding AI txt files.
Reply With Quote
  #3  
Old February 22nd, 2004, 06:29 AM
Litcube's Avatar

Litcube Litcube is offline
Corporal
 
Join Date: Mar 2003
Location: New Westminster, Canada
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Litcube is on a distinguished road
Default Re: AI Modding 101?

Exactly. It's funny that you've noticed that I've been pulling out my hair over trying to Mod AI. There's alot of "re-inventing" the wheel going on out there, and it's a shame.

I've managed to get the basics of the design files and construction files down. If you look at the quantum reactor on your list (10000Kt), you only need one in a ship. There's a minimum of one, so anything ammount of KT over the ammount of the largest ship, will result in a maximum & minimum of one on a ship.

I've also managed to find out how to get the AI to design more than one types of attack ships. I still don't understand Oleg's method of using the "must have", and with my experimentatino, it doesn't work as well as I would have thought. Using boarding ships, kamakazie ships seems to work well. There's alot of hardcode in the AI. "Easy modding" my ***.


My biggest problem right now is the lack of momentum the AI seems to show. With no logical reason whatsoever, the AI will simply give up doing much of anything after a certain point in time. They quit expanding. I have no idea why.
Reply With Quote
  #4  
Old February 22nd, 2004, 07:51 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: AI Modding 101?

These might be of some use:

AI Cheat Sheet

Generic AI Excel Spreadsheet

*sigh* where did all of these people go?

[ February 22, 2004, 05:53: Message edited by: Imperator Fyron ]
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #5  
Old February 22nd, 2004, 08:41 AM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default Re: AI Modding 101?

The "AI cheat sheet" Fyron links to really is excellent. Check it out!
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #6  
Old February 22nd, 2004, 08:54 AM
Rollo's Avatar

Rollo Rollo is offline
Brigadier General
 
Join Date: Jul 2001
Location: Kiel, Germany
Posts: 1,896
Thanks: 0
Thanked 0 Times in 0 Posts
Rollo is on a distinguished road
Default Re: AI Modding 101?

yes, you guys are right. The documentation is hard to find. It is mostly bits and pieces that can be found on the board.

I think the biggest help to start with is Atraikius Design Cheat Sheet (thanks for digging that up Fyron):
Quote:
Originally posted by Atraikius:
Here is an update of the Cheat Sheet I made back before the Gold Version.

1040385338.zip
I'll try to dig up some more helpful stuff.
__________________
SE4
Devnull Mod Gold:
Version 1.80
Dungeon Odyssey:
Hack and Slash
Version 0.53e
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 03:10 AM.


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