idefix44 Posted November 10, 2014 Report Share Posted November 10, 2014 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 ~C53_Chief Armor.4-T34_85 1 @Elsewhere $4-T34_85_53 ~AActually, 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... Quote Link to comment Share on other sites More sharing options...
Lowengrin Posted November 10, 2014 Report Share Posted November 10, 2014 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. Quote Link to comment Share on other sites More sharing options...
idefix44 Posted November 11, 2014 Author Report Share Posted November 11, 2014 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.dcgVesele 0 7099.98 44640.00From territory.dcgVesele 0 allied=154 axis=20From 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.0From 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.0From 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.0And 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=20The 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. Quote Link to comment Share on other sites More sharing options...
Lowengrin Posted November 12, 2014 Report Share Posted November 12, 2014 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. Quote Link to comment Share on other sites More sharing options...
Lowengrin Posted November 12, 2014 Report Share Posted November 12, 2014 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. Quote Link to comment Share on other sites More sharing options...
idefix44 Posted November 12, 2014 Author Report Share Posted November 12, 2014 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. Have a good day, Sir, and be happy. Quote Link to comment Share on other sites More sharing options...
Lowengrin Posted November 14, 2014 Report Share Posted November 14, 2014 I checked the code and I don't understand why it isn't working as I said. I'll investigate further this weekend. Quote Link to comment Share on other sites More sharing options...
idefix44 Posted November 14, 2014 Author Report Share Posted November 14, 2014 Have a good weeend... Quote Link to comment Share on other sites More sharing options...
idefix44 Posted November 24, 2014 Author Report Share Posted November 24, 2014 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. Quote Link to comment Share on other sites More sharing options...
Lowengrin Posted November 27, 2014 Report Share Posted November 27, 2014 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. Quote Link to comment Share on other sites More sharing options...
idefix44 Posted November 27, 2014 Author Report Share Posted November 27, 2014 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=99Nitra_Bridge68 2 allied=0 axis=20Nitra_Power_Plant 2 allied=0 axis=40Cerman 2 allied=0 axis=30Horne_Krskany 2 allied=0 axis=70Nitra_Airfield 2 allied=0 axis=0Nitra_Airstrip 2 allied=0 axis=130Hrnciarovce 2 allied=0 axis=20Mlynarce_Ferry 2 allied=0 axis=30Capor 2 allied=0 axis=30Dolne_Krskany 2 allied=0 axis=70Velke_Janikovce 2 allied=0 axis=30Pograny 2 allied=0 axis=20Stitare 2 allied=0 axis=20DrazovceC3_Ferry 2 allied=0 axis=30Sarluzky 2 allied=0 axis=20Lehota 2 allied=0 axis=20Mocenok 2 allied=0 axis=20Svatoplukovo 2 allied=0 axis=30Ivanka_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. Quote Link to comment Share on other sites More sharing options...
Lowengrin Posted November 28, 2014 Report Share Posted November 28, 2014 That's one way to do it. But it still requires writing some new code. (And the time to write it.) Quote Link to comment Share on other sites More sharing options...
idefix44 Posted November 28, 2014 Author Report Share Posted November 28, 2014 Any way, thanks for this great soft. Have a good day. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.