logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,213

Administrators:
DeeZire, Redemption

There are currently 37 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 08-14-2006, 05:28 PM   #1 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 110
Send a message via MSN to full_circle
Default A question of AI coding...

Hey guys,

I have created (well, used some publicly available models and written some code) some new units for the 3 factions.

The trouble is, when I play against the computer opponent in a skirmish, all he does is build the standard stuff that's already in the game and none of my new funky units.

My question, therefore, is how do I get the AI to build these things?

What file(s) should I be looking in?
Where are these files?

I think if I knew where to find the files I could take a good stab at sorting the rest out for myself...


Thanks in advance
full_circle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-14-2006, 06:18 PM   #2 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 374
Default

The file that controls Skirmish AI behavior is SkirmishScripts.scb in [root]\Data\Scripts. You can open and edit it with the script editor in WorldBuilder.

By the way, there is a tutorial on SDI dealing with this.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-15-2006, 04:57 AM   #3 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 110
Send a message via MSN to full_circle
Default

Aah, brilliant.

Thanks for that... The SDI seems to have fallen out of my bookmarks and I'd totally forgotten about it.
full_circle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-15-2006, 02:36 PM   #4 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 110
Send a message via MSN to full_circle
Default

Huzzah! The AI is successfully building large amounts of my cool new tanks (and comprehensively owning me).

Just in case anyone stumbles upon this in the future, I realised that the SkirmishScripts only deals with Units (I.E Infantry and Vehicles).

For structures, you need to check AIData.ini in (Zero Hour Folder)/Data/Ini/Default/ and change the bits in there.
full_circle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-15-2006, 11:00 PM   #5 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 374
Default

Actually, no. In order to have the AI build new structures, you need to add the proper scripts telling the AI when to build. Of course, you also need to edit \Default\AIData.ini to tell the AI where to build.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 02:57 AM   #6 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 110
Send a message via MSN to full_circle
Default

Oh, I see.

I couldn't find any mention of the structures in the scripts though
full_circle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 08:18 PM   #7 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 374
Default

They are in the Base Building script folders.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AI Coding help... Yuki Kiba Dakatsu Generals & Zero Hour Editing 3 02-03-2005 07:19 PM
Coding Question regarding Spawning Sauragnmon Generals & Zero Hour Editing 10 01-11-2005 06:26 PM
MLRS coding question... juLLe Generals & Zero Hour Editing 7 07-06-2004 01:40 PM
Coding Question on a Generals Power Juggernaut1985 Generals & Zero Hour Editing 5 05-19-2004 11:44 AM
Coding question.. needleman Red Alert 2 & Yuri's Revenge Editing 1 12-28-2003 03:01 PM


All times are GMT -4. The time now is 05:48 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.