Jump to content

Garnison value


idefix44

Recommended Posts

Hi Sir,

 

Is't possible to have the garnisons value decreasing each time a belonging object is killed?
By any kind of aerial/naval/ground force (may be by human players) even if it isn't ~C but ~A or ennemy garnison artillery.

52_Chief Armor.4-T34_85 1 @Somewhere $4-T34_85_52 ~C
53_Chief Armor.4-T34_85 1 @Elsewhere $4-T34_85_53 ~A

Actually, it seems that only 52_Chief can decrease only the Somewhere value.
Saying that going to Elsewhere 53_Chief kill a Somewhere object, Somewhere value decrease...
Saying that all Somewhere object are killed, 52_Chief and 53_Chief kill Elsewhere objects decreasing Elsewhere value before 53_Chief is  ~C at Elsewhere...

 

Have a good day and be happy... :rolleyes:

 

Link to comment
Share on other sites

Hi Sir,

You wrote:
"Destroying a static object currently reduces the garrison value."

There are no problems with the Chief columns.
But, about the static objects killed, I'm sorry, Sir, but it doesn't works.
In dogfight mode, when the static objects linked to a location are killed, the garnison value doesn't decrease.
Here is an example:

From locations.dcg
Vesele 0 7099.98 44640.00

From territory.dcg
Vesele 0 allied=154 axis=20

From 17/04/1945.mis
  100160_Static vehicles.artillery.Artillery$PaK40 2 7063.00 44640.00 630.0 0.0
  100170_Static vehicles.artillery.Artillery$ZIS3 1 7076.00 45099.00 450.0 0.0
  100180_Static vehicles.artillery.Artillery$PaK40 2 7087.00 44640.00 630.0 0.0
  100190_Static vehicles.artillery.Artillery$ZIS3 1 7112.00 45099.00 450.0 0.0
  100200_Static vehicles.artillery.Artillery$PaK40 2 7123.00 44640.00 630.0 0.0
  100210_Static vehicles.artillery.Artillery$ZIS3 1 7136.00 45099.00 450.0 0.0
From 16/04/1945.mis
  100100_Static vehicles.artillery.Artillery$PaK40 2 7063.00 44640.00 630.0 0.0
  100110_Static vehicles.artillery.Artillery$ZIS3 1 7076.00 45099.00 450.0 0.0
  100120_Static vehicles.artillery.Artillery$PaK40 2 7087.00 44640.00 630.0 0.0
  100130_Static vehicles.artillery.Artillery$ZIS3 1 7112.00 45099.00 450.0 0.0
  100140_Static vehicles.artillery.Artillery$PaK40 2 7123.00 44640.00 630.0 0.0
  100150_Static vehicles.artillery.Artillery$ZIS3 1 7136.00 45099.00 450.0 0.0
From 15/04/1945.mis
  100070_Static vehicles.artillery.Artillery$PaK40 2 7063.00 44640.00 630.0 0.0
  100080_Static vehicles.artillery.Artillery$ZIS3 1 7076.00 45099.00 450.0 0.0
  100090_Static vehicles.artillery.Artillery$PaK40 2 7087.00 44640.00 630.0 0.0
  100100_Static vehicles.artillery.Artillery$ZIS3 1 7112.00 45099.00 450.0 0.0
  100110_Static vehicles.artillery.Artillery$PaK40 2 7123.00 44640.00 630.0 0.0
  100120_Static vehicles.artillery.Artillery$ZIS3 1 7136.00 45099.00 450.0 0.0

And again, and again...

Each mission, since a long while,
the 3 blue objects are dystroed.
Some time, 1 or 2 red objects are killed.
Sometimes, playing in the blue side, I killed myself the 3 red objects.

The Vesele garnison value is always the same...
Vesele 0 allied=154 axis=20

The problem isn't with this location.
It's the same behavior for all of them, no matter the kind of static objects:
Trucks, Wagon8, AAA...

It seems that the garnison value decrease only when static objects are destroyed by ~C featured chiefs...

Sir, trust me, please. I think that I begin to know how DCG works, using it in dogfight mode, for 4 years now.

Thanks and have a good day.
 

Link to comment
Share on other sites

It's the same behavior for all of them, no matter the kind of static objects:
Trucks, Wagon8, AAA... or Anti-Tank

Temporary created objects or belonging to the stationary.dcg file doesn't decrease the garnison value when killed by any kind of killer (other than ~C featured chiefs)

In the .mis file, all this static objects are under [NStationary].

 

About strafing the Anti-Tank guns, I'm an Experten now. :angry:

 

Have a good day, Sir, and be happy. ;)

Link to comment
Share on other sites

  • 2 weeks later...

Hi Sir,

 

That's not so easy as DCG doesn't remember where the active front is from one mission to the next.  So it requires some new code.

 

I agree with you.

But only you can do it, if it is your will.

 

However, DCG is already able to link this static objects to a garrison.

"Determining the nearest location on the map to a static object." (from the dcgerror.txt file) seems to be an usual call to an existing function/procedure.

 

And they are always located nearby a waypoint. The first/last for one side, the third/antepenultimate for the other side.

 

In an other way, the static object ID can locate it.

Extract from the territory.dcg file:

 

Nitra_Supply_Depot 2 allied=0 axis=99
Nitra_Bridge68 2 allied=0 axis=20
Nitra_Power_Plant 2 allied=0 axis=40
Cerman 2 allied=0 axis=30
Horne_Krskany 2 allied=0 axis=70
Nitra_Airfield 2 allied=0 axis=0
Nitra_Airstrip 2 allied=0 axis=130
Hrnciarovce 2 allied=0 axis=20
Mlynarce_Ferry 2 allied=0 axis=30
Capor 2 allied=0 axis=30
Dolne_Krskany 2 allied=0 axis=70
Velke_Janikovce 2 allied=0 axis=30
Pograny 2 allied=0 axis=20
Stitare 2 allied=0 axis=20
DrazovceC3_Ferry 2 allied=0 axis=30
Sarluzky 2 allied=0 axis=20
Lehota 2 allied=0 axis=20
Mocenok 2 allied=0 axis=20
Svatoplukovo 2 allied=0 axis=30
Ivanka_Pri_Nitre 2 allied=0 axis=70
 

Saying that Cerman is the contested location.

It is line #4 in the territory.dcg file. So stactic objects can be 400101, 400102, 400103... for the allied side and 400201, 400202, 400203... for the axe side.

So, parsing the log, if DCG read that the "1000102_Static is destroyed by NAST-idefix44:Bf-109G-6 at 38798.74 45271.54", it decreases the Capor allied garrison value (-9)...

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...