Page 1 of 1

how in the editor add a objective ?

Posted: Thu Apr 30, 2020 8:36 am
by thierry2015
hello i would like to put kharkov (4th city of the USSR as a objective)

there have been 4 hard battle for this city [X(]

but how in the editor add a objective ?

thank you VERY MUCH [:)]

RE: how in the editor add a objective ?

Posted: Thu Apr 30, 2020 2:30 pm
by PanzerMike
Do you mean a victory objective, or an objective to direct the AI?

RE: how in the editor add a objective ?

Posted: Fri May 01, 2020 11:42 am
by AlvaroSousa
A.I. Strat -> Set Both Obj -> Left click location.

to delete hover over the objective and hit delete. It says so in the text under this menu item

RE: how in the editor add a objective ?

Posted: Fri May 01, 2020 3:58 pm
by thierry2015
victory objective

currently we have for the USSR:
Moscow
leningrad
stalingrad
minsk
kiev

in the editor I see flags everywhere (on all cities !!! ) when i clicking on"A.I. Start and on Set Both Obj)
so I don't understand where we can add a city like victory objective !

Help [:(]

RE: how in the editor add a objective ?

Posted: Fri May 01, 2020 4:24 pm
by PanzerMike
That's why I asked. You mean the victory hexes, not the AI objectives.

Not behind my PC right now, but I thought there is a textfile in the userdata folder that lists the victory objectives.

RE: how in the editor add a objective ?

Posted: Fri May 01, 2020 5:01 pm
by thierry2015
thank you [:)]
I found the victory file [:D]
with the location of the 56 cities (56 victory objectives) but I added 200,54 (Kharkov) but it doesn't work [:(]

see Attachment

do you have to do a manipulation in the editor? [8|]

RE: how in the editor add a objective ?

Posted: Fri May 01, 2020 5:19 pm
by PanzerMike
There probably is a load option in the data tab of the Editor that will import the txt files. All txt files that change the game can be loaded there. You just have to figure out which load button does the trick.

After that, save the scenario.

RE: how in the editor add a objective ?

Posted: Fri May 01, 2020 6:03 pm
by thierry2015
YESSSSSSSSSSSSSSSS [:)]

It is right, thanks a lot [&o]

in fact : it is Load All Script (then Victory hexes loaded)

but by loading the scripts I had the message

-eventErrors.txt, -aiSCRIPTErrors.txt

is this normal?

RE: how in the editor add a objective ?

Posted: Mon May 04, 2020 1:03 pm
by AlvaroSousa
Oh victory objectives. Yes that is the file loads.

If you have no red text in that popup you generally don't have an issue.

BUT the script importer currently isn't very intelligent so if you leave out a piece of scripting code you might find that the scenario locks up.

For example I had one recently where I forgot to put the 2nd xyArea= for an invasion. It wasn't checked and it passed inspection which caused a scenario to crash. I realized the error.

I slowly fix up the editor over time and eventually will add a catch all for this kind of mistake.
Always triple check all your scripts.

RE: how in the editor add a objective ?

Posted: Wed May 06, 2020 7:27 am
by thierry2015
OK

Thanks a lot [:)]