Jump to content


Photo

Defective AI Certian Scripts never get fired!


  • Please log in to reply
8 replies to this topic

#1 radaral

radaral

    title available

  • Members
  • 277 posts

Posted 07 January 2011 - 12:24 AM

I have so many scripts that no matter how I modifie the AI will never use them. here's one of them


[0DZ456SM-G]
Name=Camp Enemy Base
0=14,0
1=3,99
2=5,4
3=53,0
4=21,0
5=11,6


[071A93SM-G]
Name=UNA Camp Enemy Base
VeteranLevel=1
MindControlDecision=0
Loadable=no
Full=no
Annoyance=no
GuardSlower=no
House=<none>
Recruiter=yes
Autocreate=yes
Prebuild=yes
Reinforce=no
Droppod=no
UseTransportOrigin=no
Whiner=no
LooseRecruit=no
Aggressive=yes
Suicide=no
Priority=1
Max=2
TechLevel=0
Group=-1
OnTransOnly=no
AvoidThreats=no
IonImmune=no
TransportsReturnOnUnload=no
IsBaseDefense=no
OnlyTargetHouseEnemy=no
Script=0DZ456SM-G
TaskForce=0C14A81C-G

02CJS2SM-G=UNA Camp Enemy Base,079A91SM-G,<all>,0,-1,<none>,0100000003000000000000000000000000000000000000000000000000000000,5000.000000
,500.000000,5000.000000,1,0,1,0,<none>,1,1,1


This script here never ever gets built and there's alot of other ones that don't either.

#2 Allied General

Allied General

    C&C Guild

  • Hosted
  • 6,922 posts
  • Location:United Kingdom
  • Projects:AGSA
  •  Modder

Posted 07 January 2011 - 03:51 PM

Why is your [AITriggerTypes] using 079A91SM-G

When the team type you have stated is 071A93SM-G

How do you expect the AI to use a teamtype which isn't under your [AITriggerTypes]

Also have you read Deezires AIMD.ini guide?

Also I hope you aren't typing out each teamtype line by line since copy and paste is all you need.

Edited by Allied General, 07 January 2011 - 03:56 PM.

Posted Image

#3 radaral

radaral

    title available

  • Members
  • 277 posts

Posted 07 January 2011 - 08:07 PM

Why is your [AITriggerTypes] using 079A91SM-G

When the team type you have stated is 071A93SM-G

How do you expect the AI to use a teamtype which isn't under your [AITriggerTypes]

Also have you read Deezires AIMD.ini guide?

Also I hope you aren't typing out each teamtype line by line since copy and paste is all you need.


I've read AI guides and it says how to put them together. I'm still not getting how those don't work. and why is the 1 Highlighted like that? could that be causing the AI triggers not to work?

#4 Allied General

Allied General

    C&C Guild

  • Hosted
  • 6,922 posts
  • Location:United Kingdom
  • Projects:AGSA
  •  Modder

Posted 08 January 2011 - 09:32 AM

Please look at read your code properly and the help I have provided. I have already given you the answer as simple as possible.

YOUR AI TRIGGER IS USING THE WRONG TEAMTYPE FROM THE ONE YOU POSTED (copy and paste/grammar error) hence the highlighting.

If you can't even be bothered to read what I posted and take just a minute of time to think then how do you expect anyone to help?

Mig Eater already told you, we aren't here to spoon feed you code.

To help improve your code I recommend using a simpler naming convention for your AI teams and scripts like

MYTEAM00-G

(the only important bit is -G and I think having 8 characters before it)

In my own coding my new team types start from NEW01000-G which obviously prevents such silly mistakes.

Edited by Allied General, 08 January 2011 - 09:42 AM.

Posted Image

#5 Apollo

Apollo

    The bringer of doom

  • Hosted
  • 3,467 posts
  • Location:Core of Nexus
  • Projects:Robot Storm, Project Phantom
  •  1337 Modder

Posted 08 January 2011 - 12:48 PM

All i gotta say is LOL, you get shown the fault and you don't get it :D
Posted Image

EAApoc wrote:
The only written law in a C&C game I ever saw is please Mr.Developer make it fun and give me a lot of **** to explode, o and don't you ever get another soul to play Kane but Joe Kucan. Aside from those two rules, all bets are off =) hehe
-APOC

#6 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 09 January 2011 - 01:29 AM

(the only important bit is -G and I think having 8 characters before it)

You don't need the -G and naming can be any number of characters. Tested and confirmed both.

I use my own naming convention as well so I can keep track of what's what. It's a lot better than Westwood's crazy hex naming scheme.

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#7 radaral

radaral

    title available

  • Members
  • 277 posts

Posted 09 January 2011 - 03:46 PM

I fixed them so they match now however it still doesn't seem to ever get built.

#8 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 09 January 2011 - 09:54 PM

Probably because it's a pool team, it's looking for a requirement and there's no requirement for it to fulfill.

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#9 radaral

radaral

    title available

  • Members
  • 277 posts

Posted 18 January 2011 - 07:03 PM

Probably because it's a pool team, it's looking for a requirement and there's no requirement for it to fulfill.


I could set it to have a certian building built for it to meet the requirement.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users