R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Hi,I Was working on my Mod  ;
and I finished it a couple of Months ago but I want to work on the AI
Because the new units and buildings I added to the game, the AI can't build them !
So I need someone to give me a link to a tutorial (I searched a lot but couldn't find any good ones)
Or someone explain it to me Because I need it for this mod and my other mods in the future
(I want to know how to make the AI build the new buildings and units.)
Thanks.
It's me your friendly modder ZOMBATAR!
Sponsor
UTD^Force
8 years ago
Did you change the skirmish scripts?
It will be in:
Zero Hour's Folder\Data\Scripts > SkirmishScripts.scb
I think you'll have to import them to worldbuilder and change the scripts so the AI builds your new units.
Or you can just change the names of your tanks to the names of the original tanks. (I'm not sure about this one, and maybe you'll have to remove the INIZH.big file).
Insted of:
Object AmericaTankGaurdianTank
You name the tank:
Object AmericaTankPaladin
Give it a shot and come back!😄
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Actually I used the Method of using the original name with some units, but It's not the best Method and it's a "Bug\Glitch" Trap, and actually I opened the SkirmishScripts.scb and played around with it but still can't get the hang of it and still can't make the AI build the New buildings that's added to the game so I need to know how to make the AI build the new buildings at least, and how to Add my units or buildings to AIData.ini, etc.
It's me your friendly modder ZOMBATAR!
UTD^Force
8 years ago
Have you tried changing AIData.ini and the skirmish scripts?


This is all of USA's Faction build list for structures:

 ;Skirmish AI Build List
  SkirmishBuildList America
    Structure AmericaCommandCenter
      Location = X:501.22 Y:546.25
      Rebuilds = 0
      Angle = -135.00
      InitiallyBuilt = No
      AutomaticallyBuild = Yes
    END ;Structure AmericaCommandCenter
    Structure AmericaPowerPlant
      Location = X:770.43 Y:727.79
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPowerPlant
    Structure AmericaPowerPlant
      Location = X:759.90 Y:555.84
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPowerPlant
    Structure AmericaPowerPlant
      Location = X:374.82 Y:371.69
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPowerPlant
    Structure AmericaPowerPlant
      Location = X:477.11 Y:174.62
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPowerPlant
    Structure AmericaPowerPlant
      Location = X:189.19 Y:522.00
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPowerPlant
    Structure AmericaPowerPlant
      Location = X:418.35 Y:827.10
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPowerPlant
    Structure AmericaAirfield
      Location = X:767.04 Y:376.40
      Rebuilds = 0
      Angle = -135.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaAirfield
    Structure AmericaBarracks
      Location = X:247.52 Y:734.59
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaBarracks
    Structure AmericaParticleCannonUplink
      Location = X:594.59 Y:635.72
      Rebuilds = 0
      Angle = -45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaParticleCannonUplink
    Structure AmericaStrategyCenter
      Location = X:384.36 Y:652.24
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaStrategyCenter
    Structure AmericaSupplyDropZone
      Location = X:515.66 Y:347.88
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaSupplyDropZone
    Structure AmericaSupplyDropZone
      Location = X:637.41 Y:490.20
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaSupplyDropZone
    Structure AmericaSupplyDropZone
      Location = X:488.83 Y:760.27
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaSupplyDropZone
    Structure AmericaSupplyDropZone
      Location = X:322.39 Y:502.03
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaSupplyDropZone
    Structure AmericaWarFactory
      Location = X:650.93 Y:843.45
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaWarFactory
    Structure AmericaWarFactory
      Location = X:259.56 Y:289.71
      Rebuilds = 0
      Angle = -135.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaWarFactory
    Structure AmericaPatriotBattery
      Location = X:676.07 Y:670.51
      Rebuilds = 0
      Angle = 45.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    END ;Structure AmericaPatriotBattery
  END ;SkirmishBuildList FactionAmerica

If you did try that, wait for someone more experienced to come here.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Tried but no Luck so far.
It's me your friendly modder ZOMBATAR!
AdrianeMapMaker
8 years ago
-What skirmish ai are you building?
-can we see your script?

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago

-What skirmish ai are you building?
-can we see your script?

Originally Posted by: adrianemapmaker 



I'm not talking about a map AI or map scripts
I'm talking about factions AI.
It's me your friendly modder ZOMBATAR!
UTD^Force
8 years ago
Well, I suggest checking other mods' AI and how they got it to work.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
I just want someone how did a mod with AI to tell me how to do it step by step.
It's me your friendly modder ZOMBATAR!
AdrianeMapMaker
8 years ago
What is you really want ? to have an ai using your mod?

Is the Problem is ?
1.The AI wont Build Your Buildings that are just edited in code
2.The ai wont build the New Buildings
3.The AI wont Build Your Units that are just edited in code
4.The Ai wont Build The New Units
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
2 and 4
the Buildings and units with the same names works, but I want the AI to Build the new units and buildings with the new names.
(I don't know anything about AI scripting other than importing the SkirmishScripts.scp file into WB)
It's me your friendly modder ZOMBATAR!
AdrianeMapMaker
8 years ago
thats the real problem -- you cant do a script

-- as a 16 years old , i manage to deal with those scripting problem, by observing them(importing mission scripts).
You can know scripting too -- those in worldbuilder are simple english (and sometimes they had comments to help you)

try to run before you walk.
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage