Login  Register
 



Post new topicReply to topic
 
Author Message
 PostPosted: 23 Jan, 2008 
 

Joined: 21 Jul, 2007
Posts: 30
Offline
I am trying my hand at creating an AI. I used Sorians very helpful guide, and i have one or two things working. I know at least my AI is being loaded and used.

I am using the vanilla supcom...

1) What is the proper way to replace platoon.lua? From what i can see people have just been editing it so as to support the functions they need. (and sticking it in a .scd after they've edited it).

2) I have created some new platoon templates, a new archetype file. But now i run into the strange behaviour that no matter what platoonai i ask for, i always get the MassExtractorHunterAI. I have AttackForceAI in my archetype AND template file and SC still insists on using the massextractorhutner ai Is there anything else I can check?


Top
 Profile  
 PostPosted: 23 Jan, 2008 
 
User avatar

Joined: 28 Feb, 2007
Posts: 4122
Location: Marysville, WA USA
Offline
Is anything coming up in the debug log that would lead you to believe there is a bug?

How do you know it is only using the massextractorhunterai?

_________________
Image


Top
 Profile  
 PostPosted: 23 Jan, 2008 
 

Joined: 21 Jul, 2007
Posts: 30
Offline
The game is still pretty early, there are very few non-engineer units produced. I have put in LOG statements all over the place. I can see other AIs being used (for the engineers/bombers) but not for my land forces.

I'm still very new at this, so i wouldn't be surprised if i missed something, but as near as i can tell, i've removed all traces of MassExtractorHunterAI from my code. Unless there is a chance it falls back on its own PlatoonTemplate if mine comes up empty.

Also, i basically am editing my program in with scd file with the other ai's (sorian/jaws/brent/bean/tortuga...), I doubt that matters


Top
 Profile  
 PostPosted: 25 Jan, 2008 
 
User avatar

Joined: 01 Mar, 2007
Posts: 1999
Location: Perth, Western Australia
Offline
Upload your scd file somewhere and maybe we could take a look....

... although really you should go try FA instead as its way more fun ;-)

_________________
My Mods:
SC - Duel AI, Close-up Camera, Alternative Music Order
FA - AI patch, Air/Land/Naval AI, Null AI, Swarm AI, AIAllyControl, Base Assault, Return to Fabs Balance Patch
SC2 - Research log in replays, Mass Extractor Balance.


Top
 Profile  
 PostPosted: 25 Jan, 2008 
 

Joined: 21 Jul, 2007
Posts: 30
Offline
Thank you for the offer.

I decided my files were all too messed up and went back to scratch. I can now explain that it was the OTHER ai that was loading the massextractorhunter ai. But i really did a number on the files trying to figure it out. I think i even accidentally messed up the file in the lua.scd in the gamedata folder.

As far as FA, my 3 friends who we all play together don't have FA, and won't get it, so i'm staying with vanilla until the consensus changes.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic



Quick Tools

Search for:
Jump to:  

© 2002-2010 Gas Powered Games Corp. All Rights Reserved. Gas Powered Games is the exclusive trademark of Gas Powered Games Corp.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
 
Home| Games | Company | News & Press | Support
  Terms of Use   |    Copyright Information   |    Privacy Policy