TheSuperHackers/GeneralsGameCode

AIs not being able to use captured stuff / transferred stuff

Opened this issue · 10 comments

AIs cannot use Captured or Transferred stuff, when they capture or get their teammates buildings, they decide to sell it, all except the POWER PLANT.

"Yayy! Money!! and Power!" Thats cool and stuff, but I think it would be maybe more useful if this was an option in WorldBuilder, so we can check if he needs money or if he is rich already and can use those to his advantage.

Because transferred stuff that AI gets, he sells them, or if you can make him not be able to sell them, he refuses to use them. It would be nice if this can be made possible and an option in WorldBuilder, i will give more details if needed.

The Auto-Sell stuff for anything but the POWER PLANT is a Hard-coded issue.

This isn't source related, it's a scripting bug. Well not really a bug even, they just didn't bother scripting the AI to do this. The zero hour advanced AI mod has the AI steal dozers and build power and possibly factories!

Mind sending me that mod? id like to take a look, because I know that this was not possible when I tried it!
The AI just doesnt care how much I try to tell it to use the Dozer.

But I still think that the issue of AI Selling stuff should be rather an option in worldbuilder scripts tab than them doing that by default, and that can only be fixed in the code. Not in the scripts.

This isn't source related, it's a scripting bug. Well not really a bug even, they just didn't bother scripting the AI to do this. The zero hour advanced AI mod has the AI steal dozers and build power and possibly factories!

well yes this is true but the transferring of stuff via scripts specially structures is "hardcoded" and auto sold by the ai -- we dont have any control to that .. that is an issue

If reported bugs are data (scb script is data), then we can move issue report to https://github.com/TheSuperHackers/GeneralsGamePatch

(Someone with permission will move it)

Hello! Xezon no this isnt a .SCB data issue this is an issue of AI selling stuff that is transferred to them and unable to use those stuff as its not built by the AI so the AI doesnt detect them at all, its a Hard Coded issue and cannot be fixed via scripts.

Oh you might be right about the factories actually, selling anything other than power might be hard coded and indeed be a source bug. Well, intended behaviour but undesirable.

It is indeed hard coded, and it would be nice if its an option, because imagine having a Skrimish AI and transferring it some stuff to have on the beginning, instead of using them, he decides to sell them, or if you somehow make him not be able to sell them, he refuses to use them.

Ok if it is hardcoded behaviour then this is the right place :-)

Oh, that's my post! XD I should have added it here already....

Btw regarding to powerplants not getting sold IIRC the fs_power is missing to those 2 and are required for emps to work -- i remember reporting it to agx