Captain Joined: 6/20/2015(UTC) Posts: 77
Thanks: 18 times Was thanked: 16 time(s) in 16 post(s)
|
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! |
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
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:Object AmericaTankGaurdianTank
You name the tank: Code:Object AmericaTankPaladin
Give it a shot and come back! Edited by user Sunday, January 14, 2018 6:28:01 AM(UTC)
| Reason: Not specified |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
|
|
|
Captain Joined: 6/20/2015(UTC) Posts: 77
Thanks: 18 times Was thanked: 16 time(s) in 16 post(s)
|
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! |
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
Have you tried changing AIData.ini and the skirmish scripts? This is all of USA's Faction build list for structures:
Code: ;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. |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
|
|
|
Captain Joined: 6/20/2015(UTC) Posts: 77
Thanks: 18 times Was thanked: 16 time(s) in 16 post(s)
|
Tried but no Luck so far. |
It's me your friendly modder ZOMBATAR! |
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
-What skirmish ai are you building? -can we see your script?
|
|
|
|
|
Captain Joined: 6/20/2015(UTC) Posts: 77
Thanks: 18 times Was thanked: 16 time(s) in 16 post(s)
|
Originally Posted by: adrianemapmaker -What skirmish ai are you building? -can we see your script?
I'm not talking about a map AI or map scripts I'm talking about factions AI. |
It's me your friendly modder ZOMBATAR! |
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
Well, I suggest checking other mods' AI and how they got it to work. |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
|
|
|
Captain Joined: 6/20/2015(UTC) Posts: 77
Thanks: 18 times Was thanked: 16 time(s) in 16 post(s)
|
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! |
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
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 Edited by user Wednesday, January 17, 2018 3:57:05 AM(UTC)
| Reason: Not specified |
|
|
|
|
Captain Joined: 6/20/2015(UTC) Posts: 77
Thanks: 18 times Was thanked: 16 time(s) in 16 post(s)
|
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! |
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
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. |
|
|
|
|
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.