My question for those with modding skills and the patience to break this down for someone with no modding experience (me), is there a way to mod the game so that instead of simply turning oil consumption on or off that oil consumption can be scaled back by some percentage? Adding advantages, even a minor one, really throws game balance out of whack (I know, you guys warned me) but reducing oil consumption by a small percentage may be enough to make my games go the distance - win, lose or draw - which is my goal.
Modding oil use
Moderators: firepowerjohan, rkr1958, Happycat, Slitherine Core
-
gchristie
- Sergeant - 7.5 cm FK 16 nA

- Posts: 230
- Joined: Thu Jan 28, 2010 8:02 pm
- Location: Maine, USA
Modding oil use
Hello, my name is George, and I have a problem: I'm one of those players that really struggles with oil usage when playing as Axis in PBEM games. Yep, I've read the posts, studied the AARs of elite players, rail oil consuming units, avoid moving/flying in mud zones, etc. but mastering this part of the game eludes me. So I've come to terms with the fact that I am a "not quite elite but fairly competent player" who is very creative in finding new ways to run out of oil and lose.
I own it, I don't blame the game developers or the modders, this one's on me.
My question for those with modding skills and the patience to break this down for someone with no modding experience (me), is there a way to mod the game so that instead of simply turning oil consumption on or off that oil consumption can be scaled back by some percentage? Adding advantages, even a minor one, really throws game balance out of whack (I know, you guys warned me) but reducing oil consumption by a small percentage may be enough to make my games go the distance - win, lose or draw - which is my goal.
My question for those with modding skills and the patience to break this down for someone with no modding experience (me), is there a way to mod the game so that instead of simply turning oil consumption on or off that oil consumption can be scaled back by some percentage? Adding advantages, even a minor one, really throws game balance out of whack (I know, you guys warned me) but reducing oil consumption by a small percentage may be enough to make my games go the distance - win, lose or draw - which is my goal.
"Despite everything, I believe that people are really good at heart."
~Anne Frank
~Anne Frank
Re: Modding oil use
There are two data files where oil consumption is controlled. These files are unit.txt and technology.txt and are both located in the installed GS data folder. The last record in unit.txt is "Oil Consumption" and defines the base oil usage for all units. In the technology.txt file the column "OilConsumption" controls the increased in oil consumption for technology advancements. Note that changing either or both of these files will result in a checksum message when playing someone who hasn't modified these files. As per standard advice always backup your original files before changing them.gchristie wrote:Hello, my name is George, and I have a problem: I'm one of those players that really struggles with oil usage when playing as Axis in PBEM games. Yep, I've read the posts, studied the AARs of elite players, rail oil consuming units, avoid moving/flying in mud zones, etc. but mastering this part of the game eludes me. So I've come to terms with the fact that I am a "not quite elite but fairly competent player" who is very creative in finding new ways to run out of oil and lose.I own it, I don't blame the game developers or the modders, this one's on me.
My question for those with modding skills and the patience to break this down for someone with no modding experience (me), is there a way to mod the game so that instead of simply turning oil consumption on or off that oil consumption can be scaled back by some percentage? Adding advantages, even a minor one, really throws game balance out of whack (I know, you guys told me so) but reducing oil consumption by a small percentage may be enough to make my games go the distance - win, lose or draw - which is my goal.
-
gchristie
- Sergeant - 7.5 cm FK 16 nA

- Posts: 230
- Joined: Thu Jan 28, 2010 8:02 pm
- Location: Maine, USA
Re: Modding oil use
Thank you. I see this is fairly involved but nowhere near as complicated as I thought.
I will play around with these and test them in hotseat to see if this is something of interest to PBEMers out there who are facing the same challenges with oil as I do.
I will play around with these and test them in hotseat to see if this is something of interest to PBEMers out there who are facing the same challenges with oil as I do.
"Despite everything, I believe that people are really good at heart."
~Anne Frank
~Anne Frank
Re: Modding oil use
You could even play was a set of customized files for the axis player, which lower oil cost, and the regular file set of the allied player. This would be a way to give the axis player an advantage without it applying to the allied player. The downside would be that you both would get checksum messages, which you'd need to ignore, every time you loaded your turn.gchristie wrote:Thank you. I see this is fairly involved but nowhere near as complicated as I thought.
I will play around with these and test them in hotseat to see if this is something of interest to PBEMers out there who are facing the same challenges with oil as I do.
-
gchristie
- Sergeant - 7.5 cm FK 16 nA

- Posts: 230
- Joined: Thu Jan 28, 2010 8:02 pm
- Location: Maine, USA
Re: Modding oil use
I was thinking along the same lines, making minor adjustments only for some of the Axis units and not the allied. I appears that I can only use whole numbers, not fractions (1.5, etc.) correct?rkr1958 wrote:Note that changing either or both of these files will result in a checksum message when playing someone who hasn't modified these files. As per standard advice always backup your original files before changing them.
If both my PBEM partner and I make the same changes to the files would we then get the checksum messages?
"Despite everything, I believe that people are really good at heart."
~Anne Frank
~Anne Frank
Re: Modding oil use
If you are both using the same file then you will not get any checksum messages. The only way, I know, to reduce oil usage for axis; but not allied, units is to use to separate set of files.gchristie wrote:I was thinking along the same lines, making minor adjustments only for some of the Axis units and not the allied. I appears that I can only use whole numbers, not fractions (1.5, etc.) correct?rkr1958 wrote:Note that changing either or both of these files will result in a checksum message when playing someone who hasn't modified these files. As per standard advice always backup your original files before changing them.
If both my PBEM partner and I make the same changes to the files would we then get the checksum messages?
-
BuddyGrant
- Sergeant - 7.5 cm FK 16 nA

- Posts: 225
- Joined: Sat Apr 11, 2009 7:06 am
Re: Modding oil use
You could edit the scenario file (EG: '1939.scn') to give the axis more oil to start with. If you want a gradual increase then increase the oil income of a German hex by 1 or 2 (or more). That would give them x (x = whatever amount you increased that oil hex value to) extra oil per turn. That hex change would have to be done either in the 'ww2.map' file or the '*.scn' file, or both - It's been awhile since I've manually edited these files.
Re: Modding oil use
That's correct.gchristie wrote:I was thinking along the same lines, making minor adjustments only for some of the Axis units and not the allied. I appears that I can only use whole numbers, not fractions (1.5, etc.) correct?
No, neither would get the messages.gchristie wrote:If both my PBEM partner and I make the same changes to the files would we then get the checksum messages?
