Jump to content


Photo

Garnison value


  • Please log in to reply
12 replies to this topic

#1 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 10 November 2014 - 06:51 PM

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:

 



#2 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 613 posts

Posted 10 November 2014 - 11:22 PM

Destroying a static object currently reduces the garrison value.  Destroying "chief" objects does not (as they are not permanently assigned to a location).  Sorry, I don't plan to change that any time soon.



#3 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 11 November 2014 - 08:54 AM

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.
 



#4 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 613 posts

Posted 12 November 2014 - 02:35 AM

lol

 

And I'm just the programmer. 

 

I'll look into it, but I'm pretty sure that it's not intentional if only columns in contact are attacking garrisons.



#5 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 613 posts

Posted 12 November 2014 - 03:45 AM

Okay, I see the issue.  Static objects that are in the campaign template (and therefore in the static object file) will reduce troop strength when destroyed, but the temporary ones created for the front lines will not.



#6 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 12 November 2014 - 11:22 AM

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. ;)



#7 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 613 posts

Posted 14 November 2014 - 06:25 AM

I checked the code and I don't understand why it isn't working as I said.  :angry:

 

I'll investigate further this weekend.



#8 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 14 November 2014 - 04:02 PM

Have a good weeend... :rolleyes:



#9 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 24 November 2014 - 05:44 PM

Hi Sir,

 

All works fine now since 3.48b14 and 3.48b15.

Can you do the same thing for the static objects spawning at contested areas when the "Active Front" option is enabled?

 

Thanks.



#10 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 613 posts

Posted 27 November 2014 - 02:56 AM

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.



#11 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 27 November 2014 - 10:18 AM

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.



#12 Lowengrin

Lowengrin

    Advanced Member

  • Members
  • PipPipPip
  • 613 posts

Posted 28 November 2014 - 04:56 AM

That's one way to do it.  But it still requires writing some new code.  (And the time to write it.)  :lol:



#13 idefix44

idefix44

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts

Posted 28 November 2014 - 01:51 PM

Any way, thanks for this great soft.

 

Have a good day.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users