Panzer Corps 2

Panzer Corps 2

View Stats:
RayyaViper Mar 21, 2020 @ 6:44am
Editor Help with IA
i made a mission where the player need to hold a town but the IA seems doesn't care whatever i put in behavior...

So how can i make the AI Attack wave ?
< >
Showing 1-12 of 12 comments
rudankort  [developer] Mar 21, 2020 @ 6:58am 
Is this town marked as a victory hex?
kenberg Mar 21, 2020 @ 7:01am 
I played arund with the editor and was unable to get the ai to work but was able to get the hotseat to work were you play for all sides like one player vs himself in chess type thing,

But there are still functions in the editor that are disabled and have not been added yet.
RayyaViper Mar 21, 2020 @ 8:20am 
ok thx so i wll wait for some updates
rudankort  [developer] Mar 21, 2020 @ 8:34am 
Originally posted by Viktor Reznov:
ok thx so i wll wait for some updates

There are no updates planned to solve your particular problem, because it should work already. All scenarios which are in the game now were made using the same Editor, so clearly a simple thing like inducing the AI to attack a certain hex is possible. Normally, it is enough to make a particular hex a victory hex and plant player's flag there (both things are done by using "Place Special Hexes" mode), and the AI will attack it.

If this does not work, please send your scenario to me and I'll investigate. rudankort@yandex.ru
RayyaViper Mar 21, 2020 @ 9:10am 
ah ! Ok i rode the guide but its a little bit confusing when all the scipting IA stuff appear

ok it's working but can we make half or else in defense mod and the others in attack ?


in the futur, the IA will spawn troops ?


anyway, a great job ! Sudden strike 4 was too much ♥♥♥♥♥♥ up with their unity ♥♥♥♥ editor

pls continue to support your mapper community for more content
kenberg Mar 21, 2020 @ 11:24am 
@Viktor Reznov
How did you get the AI to work as im still at a loss here,

@rudankort
In editor - scenario params - global parameters - advanced options - purchasable units - set to custom list,

Then over to editor - scenario params - players - advanced options - custom purchase list,

Nothing i put in will work as i keep trying by time & date for mid-late 1944 to 1Q 1945 for american and british units,

With germany set to useing 1941 to 1942 units,

All in all how does custom list/custom purchase list even work and how do you get the AI to work?.
Jizzlobber Mar 21, 2020 @ 11:41am 
Originally posted by kenberg:
@Viktor Reznov
How did you get the AI to work as im still at a loss here,

@rudankort
In editor - scenario params - global parameters - advanced options - purchasable units - set to custom list,

Then over to editor - scenario params - players - advanced options - custom purchase list,

Nothing i put in will work as i keep trying by time & date for mid-late 1944 to 1Q 1945 for american and british units,

With germany set to useing 1941 to 1942 units,

All in all how does custom list/custom purchase list even work and how do you get the AI to work?.


You need to create your list in TypeLists.csv and write the name of the list to custom purchase list field. But make a copy of the file first somewhere. It's better to make changes in Open Office or in Google Tables, so not to break the encoding of this file.
Last edited by Jizzlobber; Mar 21, 2020 @ 11:53am
Jizzlobber Mar 21, 2020 @ 11:50am 
Originally posted by Viktor Reznov:
ah ! Ok i rode the guide but its a little bit confusing when all the scipting IA stuff appear

ok it's working but can we make half or else in defense mod and the others in attack ?


in the futur, the IA will spawn troops ?


anyway, a great job ! Sudden strike 4 was too much ♥♥♥♥♥♥ up with their unity ♥♥♥♥ editor

pls continue to support your mapper community for more content

Have a look at configure units - ai settings - add. In that case you can give orders for a one unit of for a groop of them by choosing them on map.
Jizzlobber Mar 21, 2020 @ 11:52am 
Originally posted by Viktor Reznov:


in the futur, the IA will spawn troops ?

It is possible by lua scripts at the moment, don't know the future plans :)
RayyaViper Mar 21, 2020 @ 11:57am 
i just put a victory hex with the player flag on it

so th AI attempt to take it

it work for defensive mission

lua scipts don't know how it works any idea or tuto to watch ?


Originally posted by Jizzlobber:
Originally posted by Viktor Reznov:


in the futur, the IA will spawn troops ?

It is possible by lua scripts at the moment, don't know the future plans :)
rudankort  [developer] Mar 21, 2020 @ 12:03pm 
Well using lua scripts is definitely a more advanced technique of scenario design, although they are also very powerful when you learn how to use them. For spawning waves in particular, I would suggest to check out the doc on scripting from Editor's Help menu, and after you learn the basics, you can see how Defender of the Reich scenario spawns waves from its lua script.
Jizzlobber Mar 21, 2020 @ 12:03pm 
Originally posted by Viktor Reznov:
i just put a victory hex with the player flag on it

so th AI attempt to take it

it work for defensive mission

lua scipts don't know how it works any idea or tuto to watch ?


Originally posted by Jizzlobber:

It is possible by lua scripts at the moment, don't know the future plans :)

you can look at DefenderoftheReich.lua by common editor
This script spawn enemies units in this scenario.

It's not so difficult to understand it. But you have to install Lua editor on your PC to perform your own lua script.
Last edited by Jizzlobber; Mar 21, 2020 @ 12:04pm
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Mar 21, 2020 @ 6:44am
Posts: 12