Posted by: R.I.P - Friday, January 12, 2018 9:40:59 AM
[b]Hi[/b],I Was working on my [url=http://www.moddb.com/mods/supreme-leading]Mod[/url] ; 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.) [b]Thanks.[/b]

Posted by: UTD^Force - Sunday, January 14, 2018 6:25:16 AM
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: [code=plain]Object AmericaTankGaurdianTank [/code] You name the tank: [code=plain]Object AmericaTankPaladin [/code] Give it a shot and come back![smile]

Posted by: R.I.P - Sunday, January 14, 2018 9:01:45 AM
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.

Posted by: UTD^Force - Sunday, January 14, 2018 11:10:26 AM
[code=plain] ;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[/code]

Posted by: R.I.P - Monday, January 15, 2018 6:01:14 PM
Tried but no Luck so far.

Posted by: AdrianeMapMaker - Monday, January 15, 2018 7:20:54 PM
-What skirmish ai are you building? -can we see your script?

Posted by: R.I.P - Monday, January 15, 2018 10:27:16 PM
[quote=adrianemapmaker;146942]-What skirmish ai are you building? -can we see your script? [/quote] I'm not talking about a map AI or map scripts I'm talking about factions AI.

Posted by: UTD^Force - Tuesday, January 16, 2018 1:06:59 AM
Well, I suggest checking other mods' AI and how they got it to work.

Posted by: R.I.P - Tuesday, January 16, 2018 9:41:26 AM
I just want someone how did a mod with AI to tell me how to do it step by step.

Posted by: AdrianeMapMaker - Wednesday, January 17, 2018 3:53:03 AM
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

Posted by: R.I.P - Wednesday, January 17, 2018 5:15:46 AM
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)

Posted by: AdrianeMapMaker - Wednesday, January 17, 2018 8:14:42 AM
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.