Posted: Thu Jan 11, 2018 6:06 pm Post subject:
Added a new tank unit, and AI start building a lot of them
hello,
sorry if this question has been asked before, i just added a tank into the game, and now AI starts building the tank that i just added, they build a lot of them and they are not going anywhere . dont know what went wrong, didnt even touch the aimd, just rulesmd and artmd.
the AIs on my side and enemy side starts building the new tank and seems like they will not stop! QUICK_EDIT
This happens if you have more than 100 buildable units in the [VehicleTypes] list. You can reorder the list to move all the unbuildable unit past 100, (more info here.) which will temperately fix this bug until you add more units. Ares fixes this bug tho so it's recommended to use it in the long run. _________________
This happens if you have more than 100 buildable units in the [VehicleTypes] list. You can reorder the list to move all the unbuildable unit past 100, (more info here.) which will temperately fix this bug until you add more units. Ares fixes this bug tho so it's recommended to use it in the long run.
thanks! used to have the same issue but i forgot about it.
yeah they won't attack, but one interesting stuff is they defend their base when they are under attacked, or attack anything that deal damage to any unit which has ToProtech=yes such as ore miner, and occassionary follow them everywhere. this default AI behaviour actually work pretty well, wouldn't mind adding this AI script to make enemy base tougher and defended when need. QUICK_EDIT
I think you can get a similar result with InfantryReserve=.
I'm not sure tho. _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
I think you can get a similar result with InfantryReserve=.
I'm not sure tho.
sounds good, havent tried that code myself, the escaped crew / survivor after the building went boom uses the same AI behaviour too, where they could camp and defend their base / ore miners, doesn't matter where the ore miner is at, it can be on the other side of map, these guys will travel all the way to kill the attacker. i have had the survivor % raised to make sure there will be plenty of survivors after the enemy building gets destroyed, and the survivors is not regular weak GI's, they are cyborgs / terminators with laser cannons that very effective against all type of armors due to the warheads sets to 100% each. .
and thats just a side which i dont play with, because with that logic i can buy and sell off the building and give myself a bunch of cyborgs without paying the price to built them.
my current vehicle count is 229, tons of them have -1 tech level as it is only obtainable through a building as they are a FreeUnit. QUICK_EDIT
i have had the survivor % raised to make sure there will be plenty of survivors after the enemy building gets destroyed, and the survivors is not regular weak GI's, they are cyborgs / terminators with laser cannons that very effective against all type of armors due to the warheads sets to 100% each. .
with that logic i can buy and sell off the building and give myself a bunch of cyborgs without paying the price to built them.
Remember, cheating is only fun if the AI does it
Bugjuice wrote:
my current vehicle count is 229, tons of them have -1 tech level as it is only obtainable through a building as they are a FreeUnit.
FreeUnit shouldn't have an effect on the AI.
Infact, on the rare occasion the AI gets such a unit, such as an Apocalypse Tank, it stays in idle. Until my stupid War Miner decides to use its air gun for some fun in the ore field. _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
FreeUnit shouldn't have an effect on the AI.
Infact, on the rare occasion the AI gets such a unit, such as an Apocalypse Tank, it stays in idle. Until my stupid War Miner decides to use its air gun for some fun in the ore field.
yeah, i found a few ways to make AI use them, you can have a building that give a free unit as like building an ore refinery, building a tech center give a free Apocalypse for an example, when AI builts the tech center they get the Apocalypse spawn aside of the building but they will never notice its existent as they will not move even after they getting shot at. Two ways to make AI use them and make them use the default AI behavior, have the AI built walls for the tech center which give a free unit, they will somehow call the unit to move away as their spawn point is right next to the building as prevent AI from building walls, thats when the unit become "awake" and start working, they stay at base and defend against attacker that damage their base and any unit with ToProtect=yes..
another way which is more reliable is add harvester=yes line to the freeunit, AI will use them straight out of the box.
even funnier if you made the prism tower give a free prism tank. LOL.. that will be a very well guarded base. you can try attack the enemy ore miner to find the all the freeunits leaves the base and trying to hunt you down for that. QUICK_EDIT
Additionally, if you want new units to be used like the regular ones, you need to give them teams and hunt missions in aimd.ini, otherwise they will act purely defensively. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum