Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

KlingonDragon Offline
#1 Posted : Wednesday, January 11, 2017 11:48:57 AM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
I've decided to start mapping again.

I'm starting by getting my old maps up to scratch.
I have a map which has the player as the boss general VS vanilla USA, GLA, and China.
The AI builds and attacks as I want them to. Except my aircraft teams.
Neither helicopters nor planes build.

The script used is the same as for my other units:
Code:

[S A nd] [E N H]UScreate:
*** IF ***
True.
*AND* Team '<This Team>' all exit area 'US Base' (Surfaces Allowed: Ground or Air).
*** THEN ***
Start building team Team '<This Team>'

Once they're created they should move off:
Code:

[S A nd] [E N ]oncreateair:
*** IF ***
True.
*** THEN ***
Team '<This Team>' change their attitude to Aggressive
Have Team '<This Team>' wander along Waypoint Path 'Air'

Edited by user Wednesday, January 11, 2017 11:51:31 AM(UTC)  | Reason: BB code

Sponsor
Zero Hour Mad Map Maker Offline
#2 Posted : Wednesday, January 11, 2017 12:06:16 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Are the aircraft that you are building in the Team's building list? (Where teams are named and created).

I don't have my WB on hand (as I am using different computer and am out at the moment), but I know there's a better way to create teams and such than those scripts there.

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
KlingonDragon Offline
#3 Posted : Wednesday, January 11, 2017 12:10:58 PM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
Yes.
Zero Hour Mad Map Maker Offline
#4 Posted : Wednesday, January 11, 2017 12:18:32 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Well, I know if you're making a Generals' challenge sortish of map, one of the ways that makes the AI flow easily is creating a generic wave counter.

But, I should really have my World Builder instead of misleading you. I'll have to assist a bit later; unless someone else does or you figure out the problem.

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
Zero Hour Mad Map Maker Offline
#5 Posted : Wednesday, January 11, 2017 6:00:32 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Originally Posted by: klingondragon Go to Quoted Post

I have a map which has the player as the boss general VS vanilla USA, GLA, and China.


This is pretty generic. So, may I ask, is this similar to a General's Challenge map in which the AI send waves of enemies at you and has their own base defenses. Or is this like an AOD map where the AI send waves of moving enemies. (Some AOD maps even have an AI base). So I'd like more of a feel as to what this mission is before I spend some time on the issue at hand.

And if it is a General's Challenge type of map, then I assumed correctly.

Edited by user Wednesday, January 11, 2017 6:01:37 PM(UTC)  | Reason: With all the typos I make, I'm going to have fun in College Composition II


Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
KlingonDragon Offline
#6 Posted : Wednesday, January 11, 2017 6:43:42 PM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
It's neither. It's like the campaign missions. It shouldn't matter what kind of map of is. Only that I'm trying to build the team rather than spawn it.
Zero Hour Mad Map Maker Offline
#7 Posted : Wednesday, January 11, 2017 7:00:06 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Just upload the map for me to take a look at it. It'll be quicker that way Wink


Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
KlingonDragon Offline
#8 Posted : Wednesday, January 11, 2017 7:04:30 PM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
I'll upload in the morning. My laptop is off and I shouldn't even be awake now.
Zero Hour Mad Map Maker Offline
#9 Posted : Wednesday, January 11, 2017 7:16:55 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Okay! Yeah it's like past midnight in UK..... only 6:16pm here lol xD.

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
KlingonDragon Offline
#10 Posted : Thursday, January 12, 2017 8:43:37 AM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
Here you go:
Zero Hour Mad Map Maker Offline
#11 Posted : Thursday, January 12, 2017 10:03:13 AM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Alright! I found the problem(s).



The reason the USA AI wasn't building the Aircraft was that this script basically said:

"This Team must exit the USA's exit area US Base"

Well, this script is telling the game that the USA Aircraft team must exit the area then create the team once the Aircraft have left the US Base. Well, this simply will never happen because the Aircraft team cannot leave the area if they haven't even been created yet.

So to fix the issue on the script delete the *AND* statement. I wasn't even quite sure why it was in there in the first place. I've never seen a True and an AND in the same condition xD.

I also changed the Oncreate script to say this:

*** IF ***
Team 'USA Air' has been created.
*** THEN ***
Team '<This Team>' change their attitude to Aggressive
Have Team '<This Team>' wander along Waypoint Path 'Air'




The next issue was on your edit teams list.



You just simply forgot to check "Team members are AI Recruitable."



And with these changes the USA AI now builds them and attacks with them! Wink




I have also attached the fixed map for ya. Thumb Up

Edited by user Thursday, January 12, 2017 10:20:59 AM(UTC)  | Reason: Not specified

File Attachment(s):
All The Factions Unite(fixed).zip (17kb) downloaded 4 time(s).

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
KlingonDragon Offline
#12 Posted : Thursday, January 12, 2017 10:45:29 AM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
Your first thing shouldn't be a problem (one of the Humvees starts on that team and as soon as the game starts it leaves the area).
That second one, I'll give it a try on my own version.
Zero Hour Mad Map Maker Offline
#13 Posted : Thursday, January 12, 2017 1:09:05 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
It is actually. Only checking the AI Recruitable will NOT fix it. Trust me I tried that before I looked at the scripts. Nothing.

It'll be a waste of time if I try to explain it to you because you'll just deny it. Besides that's why I much prefer in WB to set scripts like these:

(Set Waves counter)
*** IF ***
Flag named '_GAME_ON' IS TRUE
*** THEN ***
Add 1 to counter '_ESCALATION'

(First Wave)
*** IF ***
Counter '_ESCALATION' IS Greater Than or Equal To 60
*** THEN ***
Null operation. (Does nothing.)

(Second Wave)
*** IF ***
Counter '_ESCALATION' IS Greater Than or Equal To 120
*** THEN ***
Null operation. (Does nothing.)

Then put the teams production condition script to "Second Wave" or "First Wave"

Then have them follow these actions:

** IF ***
True.
*** THEN ***
Team '<This Team>' executes Script 'GLA Attack Center Orders' sequentially.

*** IF ***
True.
*** THEN ***
Team '<This Team>' load into transports.
Have Team '<This Team>' move to the start of enemy path 'Center'.
Have Team '<This Team>' approach the enemy using path 'Center', as a team is TRUE
Team '<This Team>' unload.
Team '<This Team>' attack anything in area 'PlayerArea'

You can also set priorities on the team list too, and also add in some attack priorities as well:

*** IF ***
True.
*** THEN ***
For Attack priority set 'GLA Default Priority' set the priority of object type 'Base Defenses' to 50
For Attack priority set 'GLA Default Priority' set the priority of object type 'Tanks' to 45
For Attack priority set 'GLA Default Priority' set the priority of object type 'Aircraft' to 40
For Attack priority set 'GLA Default Priority' set the priority of object type 'Infantry' to 40
For Attack priority set 'GLA Default Priority' set the priority of object type 'AmericaWarFactory' to 30
For Attack priority set 'GLA Default Priority' set the priority of object type 'AmericaAirfield' to 30
For Attack priority set 'GLA Default Priority' set the priority of object type 'AmericaBarracks' to 30
For Attack priority set 'GLA Default Priority' set the priority of object type 'AmericaStrategyCenter' to 30
For Attack priority set 'GLA Default Priority' set the priority of object type 'AmericaParticleCannonUplink' to 55
For Attack priority set 'GLA Default Priority' set the priority of object type 'AmericaCommandCenter' to 10

This helps give the AI some strategy rather than "running and gunning" so to speak. But, I digress.

You know, it's ok to admit that you're not right all the time ;).

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
KlingonDragon Offline
#14 Posted : Thursday, January 12, 2017 1:20:03 PM(UTC)
KlingonDragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,409
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 14 times
Was thanked: 193 time(s) in 174 post(s)
Well it worked for me. And I've had enough time to test it to my satisfaction and release it.
Zero Hour Mad Map Maker Offline
#15 Posted : Thursday, January 12, 2017 1:55:50 PM(UTC)
Zero Hour Mad Map Maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 584
United States
Location: Tails's World

Thanks: 125 times
Was thanked: 106 time(s) in 85 post(s)
Good for you ;)

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
adrianemapmaker Offline
#16 Posted : Friday, January 13, 2017 2:20:32 AM(UTC)
adrianemapmaker
Major
Joined: 3/8/2016(UTC)
Posts: 426
Philippines
Location: norzagaray,bulacan

Thanks: 166 times
Was thanked: 46 time(s) in 33 post(s)
This is a Good Thread ,i Got Something New Knowledge Here Thanks.

By The way in Zero hour MMM Said

Originally Posted by: Zero Hour Mad Map Maker Go to Quoted Post
So to fix the issue on the script delete the *AND* statement. I wasn't even quite sure why it was in there in the first place. I've never seen a True and an AND in the same condition xD.


The WorldBuilder Scripts add this 'And' Statement Because The Script Assume those Scripts will be feasible or Will Be done ,InOrder or Not.

And Also The WorlBuilder Scripts Using 'Or' Statement... This Is Self explanatory ,This Will Cut The Relation about The other Scripts.

Edited by user Friday, January 13, 2017 2:32:47 AM(UTC)  | Reason: Not specified

A Modder,A Member,A Human ."A person who never made a mistake never tried anything new"
 1 user thanked adrianemapmaker for this useful post.
NewtronGamer3 on 1/15/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6.1 | YAF © 2003-2017, Yet Another Forum.NET
This page was generated in 1.749 seconds.