Nooboi
  • Nooboi
  • 58.5% (Neutral)
  • Private Topic Starter
3 years ago
so i was creating some new defences and decided that its many so i created a new commandset and seperate the defense buildings, BUT now the AI/bots are not building the defences anymore


same as goes with my new units and my edited marauder tank they are not building it.

how do i code it so that the bots does this things
Sponsor
UTD^Force
3 years ago
You will need to edit the scripts to make new scripts to order the AI to build the new units.
The scripts are found in the game's folder > data > scripts > SkirmishScripts.scb

They take some time to load into worldbuilder depending on your device.

I've never edited the AI to build new units but have you tried keeping the original commandbuttons/commansets and just let the AI build the new units through them? While keeping the original prerequisites, too.

A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Nooboi
  • Nooboi
  • 58.5% (Neutral)
  • Private Topic Starter
3 years ago

You will need to edit the scripts to make new scripts to order the AI to build the new units.
The scripts are found in the game's folder > data > scripts > SkirmishScripts.scb

They take some time to load into worldbuilder depending on your device.

I've never edited the AI to build new units but have you tried keeping the original commandbuttons/commansets and just let the AI build the new units through them? While keeping the original prerequisites, too.

Originally Posted by: UTD^Force 



what file do you use to open skirmishScripts.scb?


and question: so if i like add New_ to the original units will it still work?

like: New_AmericaTankCrusader



UTD^Force
3 years ago
You need to use worldbuilder program then import the scripts from the folder I mentioned above, after that you will need to go through the painful process of editing the scripts.

Or

What I mean was like make the new unit with the whole new code but call it 'AmericaTankCrusader' or another original tank's name that the AI would build, like that the AI should still use the old command buttons to build your new tank while it thinks it is the old AmericaTankCrusader as you would not have to change the commandsets/buttons. If you get what I mean.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Nooboi
  • Nooboi
  • 58.5% (Neutral)
  • Private Topic Starter
3 years ago
Yea I got to be able for AI to build my custom tank of Tank General, by using the infernocannon's Commandbutton, Object Name

However what if I couldn't open world builder? is there a way to fix the worldbuilder error that it cannot find my units
UTD^Force
3 years ago

is there a way to fix the worldbuilder error that it cannot find my units

Originally Posted by: Nooboi 



Do you mean that you don't find your units in the object lists?
If I remember correctly you won't have that problem as long as you have this part in your unit's code.


  EditorSorting       = VEHICLE
  Side                = America

A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Nooboi
  • Nooboi
  • 58.5% (Neutral)
  • Private Topic Starter
3 years ago
No like the WorldBuilder crash its like "Runtime Error" and then it crashes
UTD^Force
3 years ago

No like the WorldBuilder crash its like "Runtime Error" and then it crashes

Originally Posted by: Nooboi 



It's been a while since I worked on WB but is this the error where you can choose Abort Retry or Ignore?
If so just keep choosing ignore, if that's not it then maybe check the crash report for WB, there may be something wrong with the INI codes or data the WB needs for the game.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Nooboi
  • Nooboi
  • 58.5% (Neutral)
  • Private Topic Starter
3 years ago
i tried only picking "Retry" however it just very slow it loads 1 of those messages per 10 minutes, is this normal?
Nooboi
  • Nooboi
  • 58.5% (Neutral)
  • Private Topic Starter
2 years ago
I Came back to this topic, turns out theres just some error i made in the past. sorry about the time you've spent for my information, maybe im gonna close this topic now