Tuesday, April 17, 2012

Darn MassExtractorHunterAI

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?|||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?|||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|||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 ;-)|||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.

No comments:

Post a Comment