Why some changes in Gamerules.pzdat won't take effect?
Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design
Why some changes in Gamerules.pzdat won't take effect?
Hi, when I tried to change these 5 parameters in Gamerules.pzdat: GreenReplacementsExp, ScnReplaceCost, ScnEReplaceCost, CamReplaceCost, CamEReplaceCost, and start a new game, somehow they won't take effect and the game still uses the default rule. While all the other parameters I changed were all applied in the new game.
So are these 5 parameters hard-coded in the game and can't be changed, or did I do something wrong? Please help.
So are these 5 parameters hard-coded in the game and can't be changed, or did I do something wrong? Please help.
-
- Panzer Corps Moderator
- Posts: 2119
- Joined: Tue Jun 03, 2008 9:32 am
Just confirming I can get 4 of the 5 to work:
ScnReplaceCost: sets the replacement cost for green replacements on the battlefield (scenario or campaign). e.g. set to 50 (%) of an M26 (prestige cost 910), 5 points would cost 91 per point x 0.5 x 5 = 227
ScnEReplaceCost: sets the replacement cost of elite replacements on the battlefield (scenario or campaign) e.g. set to 75 (%) of a Marder III (cost 282), 6 points would cost 28.2 x 0.75 x 6 = 127
CamReplaceCost: as per above but only available on the deployment screen (not on the battlefield)
CamEReplaceCost: as above but for elite units on the deployment screen.
The one I could not get to change no matter what is GreenReplacementsExp - it defaults to 30% of XP in any case, even if I delete the value in the field (using Excel).
My testing was done on a custom campaign that is set up the same as the DLCs, ie. under the Mods folder of My Games\Panzer Corps. It reads the gamerules.pzdat that I have in there (I know because the one in the main Data folder has different values).
ScnReplaceCost: sets the replacement cost for green replacements on the battlefield (scenario or campaign). e.g. set to 50 (%) of an M26 (prestige cost 910), 5 points would cost 91 per point x 0.5 x 5 = 227
ScnEReplaceCost: sets the replacement cost of elite replacements on the battlefield (scenario or campaign) e.g. set to 75 (%) of a Marder III (cost 282), 6 points would cost 28.2 x 0.75 x 6 = 127
CamReplaceCost: as per above but only available on the deployment screen (not on the battlefield)
CamEReplaceCost: as above but for elite units on the deployment screen.
The one I could not get to change no matter what is GreenReplacementsExp - it defaults to 30% of XP in any case, even if I delete the value in the field (using Excel).
My testing was done on a custom campaign that is set up the same as the DLCs, ie. under the Mods folder of My Games\Panzer Corps. It reads the gamerules.pzdat that I have in there (I know because the one in the main Data folder has different values).
Many thanks to El_Condoro, I went back and took a further look and found the problem. In the original gamerules.pzdat file, the 4 values of ScnReplaceCost, ScnEReplaceCost, CamReplaceCost, CamEReplaceCost were separated only by a space, not a tab. When I inserted a tab, then these values would take effect when changed.
Earlier I was only using notepad to edit the file and thus couldn't tell.
Also same as EL, GreenReplacementsExp defaults to 30% and couldn't be changed.
Earlier I was only using notepad to edit the file and thus couldn't tell.
Also same as EL, GreenReplacementsExp defaults to 30% and couldn't be changed.
-
- Panzer Corps Moderator
- Posts: 2119
- Joined: Tue Jun 03, 2008 9:32 am
-
- Panzer Corps Moderator
- Posts: 2119
- Joined: Tue Jun 03, 2008 9:32 am
I guess the game reads everything at the beginning of each scenario rather than the beginning of the campaign. I'm glad it does - from a designer's point of view it means scenarios can be edited and played from the end of the preceding one, rather than playing the whole campaign through (or using endscn) each test.
Great catch guys.
- In the stock file spaces are used instead of tabs.
- GreenReplacementsExp value is read from the file using wrong name - GreenReplacementsEx (no "p" at the end!).
Next patch will have both points fixed, and in the meantime there is a workaround you can use. For GreenReplacementsExp value just include both GreenReplacementsEx and GreenReplacementsExp values in the file to make sure the modded file works with both current and future version of the game.
- In the stock file spaces are used instead of tabs.
- GreenReplacementsExp value is read from the file using wrong name - GreenReplacementsEx (no "p" at the end!).
Next patch will have both points fixed, and in the meantime there is a workaround you can use. For GreenReplacementsExp value just include both GreenReplacementsEx and GreenReplacementsExp values in the file to make sure the modded file works with both current and future version of the game.
Thanks for a complete solution to this matter.
Also many thanks for the "chess" mode, the RNG change in 1.05, and the 'ultimate difficulty' level
While we are at it, can this little bug be fixed: after a Recon moved but didn't attack, if it moved again but then backspaced, the Recon will be allowed to still do a full replacement or resupply. In MP someone can move a demaged Recon away from danger and do full replacement in the same turn (reported this sometime ago).
And top of my wishlist, is the ability to buy 1 star, 2 star, 3 star replacements, each with definable prices (think this has been asked around in the forum), preferrably also with the GreenReplacementExp-like feature, that they carry additional 30% of the Exp difference between your unit and the replacements, assuming your unit's Exp has an impact on the imcoming replacements. Any chance this can be considered in future versions? Sorry I got carried away too much.
Also many thanks for the "chess" mode, the RNG change in 1.05, and the 'ultimate difficulty' level

While we are at it, can this little bug be fixed: after a Recon moved but didn't attack, if it moved again but then backspaced, the Recon will be allowed to still do a full replacement or resupply. In MP someone can move a demaged Recon away from danger and do full replacement in the same turn (reported this sometime ago).
And top of my wishlist, is the ability to buy 1 star, 2 star, 3 star replacements, each with definable prices (think this has been asked around in the forum), preferrably also with the GreenReplacementExp-like feature, that they carry additional 30% of the Exp difference between your unit and the replacements, assuming your unit's Exp has an impact on the imcoming replacements. Any chance this can be considered in future versions? Sorry I got carried away too much.

-
- Panzer Corps Moderator
- Posts: 2119
- Joined: Tue Jun 03, 2008 9:32 am
Thanks for the fixes, Rudankort. I also really like "chess" mode but I think "ultimate" would be my undoing!
Interesting that you found a bug to do this - in PG2 it was done by design. If a recon moved but had enough movement remaining it could resupply fully. Personally, I really like that - it makes recon more useful, considering they are often cannon fodder, as discussed elsewhere on the forum.While we are at it, can this little bug be fixed: after a Recon moved but didn't attack, if it moved again but then backspaced, the Recon will be allowed to still do a full replacement or resupply. In MP someone can move a demaged Recon away from danger and do full replacement in the same turn (reported this sometime ago).
It has also been requested that designers be able to set new purchases in campaigns to have the desired experience, rather than starting at zero.And top of my wishlist, is the ability to buy 1 star, 2 star, 3 star replacements, each with definable prices
I'll see if I can fix this in the next update.fenglicao wrote: While we are at it, can this little bug be fixed: after a Recon moved but didn't attack, if it moved again but then backspaced, the Recon will be allowed to still do a full replacement or resupply. In MP someone can move a demaged Recon away from danger and do full replacement in the same turn (reported this sometime ago).
Do we REALLY need to make experience management this complicated? I think, it is quite complicated already, with two types of replacements and four different prices for them, depending on exact campaign stage. I can understand people giving mixed green and elite replacements to their units to optimize resulting experience (number of full stars) and prestige spent, but configuring the price of each star separately? I dunno. You can create a separate thread for this in the main forum, and see what people say and if the concept can be refine enough.fenglicao wrote: And top of my wishlist, is the ability to buy 1 star, 2 star, 3 star replacements, each with definable prices (think this has been asked around in the forum), preferrably also with the GreenReplacementExp-like feature, that they carry additional 30% of the Exp difference between your unit and the replacements, assuming your unit's Exp has an impact on the imcoming replacements. Any chance this can be considered in future versions? Sorry I got carried away too much.![]()
Good point, and funny PG2 worked the same. Recon movement is a hack in game rules, and I'm pretty sure they did it the same way as I. Hence the same behavior.El_Condoro wrote:und a bug to do this - in PG2 it was done by design. If a recon moved but had enough movement remaining it could resupply fully. Personally, I really like that - it makes recon more useful, considering they are often cannon fodder, as discussed elsewhere on the forum.

Hmm, I need to give this some thought.
I guess it may be good to allow Recon to move and resupply in the same turn (so just need to make it available without the 'move again and backspace' trick?), but will this throw some game balance off? Right now Recons are much cheaper than a low end Tank with comparable stats, yet with better spotting and movement. In MP games I often buy them a lot to mess up the opponent. So they are already very effective. In campaign games people just need to protect them better.
Ok maybe I'll open a thread in the main forum about buying Units/Replacements with specific Exp.
Rudankort, I'm already very, very thankful for all the things you and others have done. So can I buy you a Christmas gift? Ok I'll include El_Condoro on the list too.
Ok maybe I'll open a thread in the main forum about buying Units/Replacements with specific Exp.
Rudankort, I'm already very, very thankful for all the things you and others have done. So can I buy you a Christmas gift? Ok I'll include El_Condoro on the list too.
