RE: A Layman's Guide to Successfully Editing the MWiF Game File. (Full Version)

All Forums >> [New Releases from Matrix Games] >> World in Flames >> Mods and Scenarios



Message


rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/16/2018 4:55:19 PM)

quote:

ORIGINAL: jjdenver

Ronnie can you add notes here on how to increase saved oil on map? Say there is 1 oil in Montreal - how to make it 4?

Thanks

Johnny, editing oil points work exactly as editing build points. So just follow these instructions to increase oil points.

quote:

ORIGINAL: rkr1958

1. The encoded hex location of the BP, or any RP for that matter, is in the 8th column of the RP status record, or RPSR(8).

2. The value of the BP, or any RP, marker is encoded in the 12th column of that same record (i.e., RPSR(12)). The formula for the encodeing is, RPSP(12) = # BPs (or RPs) x 256.

3. The number of saved BPs by the French at Nantes (i.e., hex [56, 25], encoded hex 28697) is increased by 4 BPs by changing the value of RPSR(12) from 256 to 1024. That is, RPSR(12) = 4 BP's x 256 = 1024.

[image]local://upfiles/31901/A064FDAD37374072974C39BBFF6B6848.jpg[/image]




paulderynck -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/16/2018 5:05:39 PM)

What if there are both oil points and BPs in the hex? How do you know which is being changed?




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/16/2018 8:48:14 PM)

quote:

ORIGINAL: paulderynck

What if there are both oil points and BPs in the hex? How do you know which is being changed?
The very first line inside of the purple box for the BP example above is ,80,70,1936 This tells you not only what type of unit it is but whose unit it is. The second number is the unit type code (see pp's 205 & 206 of the player's manual vol 2). A unit type code of 70 is a build point. Oil points have a unit type code of 69.

The first number is the country id number (see pages 199-202 of vol 2 of the player's manual). In this example the country id is 80, which is France.

The third number by the way is the year. Not sure why it's 1936, but all resource units (e.g., build points, oil points) are year 1936.




paulderynck -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/16/2018 10:28:18 PM)

Thanks.




hazmaxed -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/17/2018 8:42:10 PM)


quote:

ORIGINAL: rkr1958
The third number by the way is the year. Not sure why it's 1936, but all resource units (e.g., build points, oil points) are year 1936.


If I remember correctly, you could play WiF and DoD as a combined campaign that started in 1936. The coded year for BPs and saved oil points might be set for 1936 for someone who mods the game for an earlier start.




jjdenver -> Unable to find AUS Beaufort (11/27/2018 1:14:48 PM)

I'm unable to find the AUS Beaufort near Brisbane on an island that is disorganized and OOS. It was mistakenly RTB'ed there and I'd like to reorg it and move it. Hex is
148,182 which is 75958. But when I search the file for 75958 I don't find it. Any ideas?

EDIT: I found the post near mid of previous page of this thread that discussed hex encoded locations greater than 65536 and followed the method there (subtract 65536) to find the unit in the file. So question answered. :)




jjdenver -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (11/27/2018 1:18:48 PM)

Also here is a great example of the kind of silly stuff MWIF "intelligent" routing does. This really should be able to be manually controlled (completely) by the player to take the "intelligent-stupid" routing AI out of the equation.

Here US is lending 3 BP to France which has a capitol in Senegal. There are enough res to ship the 3 BP but MWIF has decided France will only get 2. Upon investigation I noticed that MWIF is sending Venezuelan res going to Newcastle improperly.

Proper routing is (Carib->USEC->NAtl) then there is a chain of unused to send the BP to France. However game for some reason routes it (Carib->CAtl->NAtl) thus not leaving room for the BP to US. See yellow highlight on left of screenshot.

[image]local://upfiles/26942/1A2E68A9F6324F05B0D46289EB2326B1.jpg[/image]




Mayhemizer_slith -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/3/2019 7:57:22 PM)

rkr1958, here comes a question I did not find with quick reading:

We forgot to send German oil To Vichy. Now we have one oil in Vienna, it should go to Lyons (or any other city).

This line in oil in Vienna:
10135,10181,0,0,1023,65535,0,29226,0,0,0,256,0,0,0,0

If I change hex, we have German oil in Lyons. How do I change it to Vichy oil?

This line is Vichy BP in Vichy:
26519,26566,0,0,1023,65535,0,29726,0,0,0,256,0,0,0,0

I tested to change second column (10181) into 26566 but that changed it into Vichy BP.
Changing first column does not seem to be doing anything.

EDIT
This line is USSR saved oil in Moscow:
6551,6597,0,0,1023,65535,0,22077,0,0,0,256,0,0,0,0

So maybe I need to change both columns 1 and 2, but to what?

EDIT2
I don't have any save files with Vichy and saved oil [&:]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/4/2019 3:06:46 AM)


quote:

ORIGINAL: Mayhemizer

rkr1958, here comes a question I did not find with quick reading:

We forgot to send German oil To Vichy. Now we have one oil in Vienna, it should go to Lyons (or any other city).

This line in oil in Vienna:
10135,10181,0,0,1023,65535,0,29226,0,0,0,256,0,0,0,0

If I change hex, we have German oil in Lyons. How do I change it to Vichy oil?

This line is Vichy BP in Vichy:
26519,26566,0,0,1023,65535,0,29726,0,0,0,256,0,0,0,0

I tested to change second column (10181) into 26566 but that changed it into Vichy BP.
Changing first column does not seem to be doing anything.

EDIT
This line is USSR saved oil in Moscow:
6551,6597,0,0,1023,65535,0,22077,0,0,0,256,0,0,0,0

So maybe I need to change both columns 1 and 2, but to what?

EDIT2
I don't have any save files with Vichy and saved oil [&:]

OK, I think I've figured it out. To change ownership you need to change three numbers. In the example below I change the CW oil in Manchester to a French oil. The records for the oil point start at the line ,201,69,1936 201=CW, 69=oil point and 1936=year of the unit. In my example the first thing I changed was the 201 to 80 which is the country code for France. Next I had to change the first two values on the next to the last record for the oil point (i.e., the record that contains the coordinates of the oil point). This is the change that actually converts the oil point from CW to French. To do that I changed 25751,25797, to 10263,10309,

Now if Vichy were active to change that oil point to Vichy I'd first change the ,201 on the first record to ,207 (Now this change in itself will not convert the oil point). To do that I would then change the 25751,25797, on the next to last record to 26519,26565, which will (should) convert the saved oil point to Vichy.

DISCLAIMER: This is the first time I've tried to edit the game file to change ownership of a resource so I'd caution to use at your own risk.

[image]local://upfiles/31901/80D9759172C442A797F48995B495E2E0.jpg[/image]




Mayhemizer_slith -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/4/2019 4:15:14 AM)

Thank you [&o]




Mayhemizer_slith -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/4/2019 4:41:36 AM)

One problem, oil ends up being Free France oil.

80 = Free France and 207 = Vichy France.

I'm not sure sure how to change other two numbers to make it right.

Can you please check it out from our save file? Or if any beta tester finds this first, feel free to fix it if possible [:)]

EDIT: This feels like risky thing to do, so I think safer way to fix this in send oil next turn end and manually reorg 2 ships that are dis org now.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/4/2019 3:54:27 PM)

I was able to move the German oil in Vienna to Vichy and change ownership from Germany to Vichy by changing the values highlighted in red to those highlighted in green.

[image]local://upfiles/31901/16D020A577A74DB992C154D5B285C30E.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/4/2019 3:55:28 PM)

I know it's OBE now but attached is your game file with those edits.




Mayhemizer_slith -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/4/2019 4:26:57 PM)

Great work, once again!




Mayhemizer_slith -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/16/2019 8:23:30 AM)

We faced again same BP problem: China had saved one BP to nationalist city and another one communist city. Game gave that communist BP to USSR and nobody was able to use it.

Easy to fix with Ronnie's instructions by changing first, second and eight number.

6807,6854,0,0,1023,65535,0,35434,0,0,0,256,0,0,0,0 Nationalist Chinese BP in nationalist city.
(6807,6853,0,0,1023,65535,0,35434,0,0,0,256,224,0,0,0 Nationalist Chinese saved oil in nationalist city.)

6551,6598,0,0,1023,65535,0,38019,0,0,0,256,0,0,0,0 Communist Chinese (USSR) BP in communist city.
6807,6854,0,0,1023,65535,0,45698,0,0,0,256,0,0,0,0 Communist Chinese (USSR) BP in communist city moved to Nationalist Chinese.

Thanks again [:)]




Majorball68 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/18/2019 8:49:46 AM)

Appear to have lost a USSR factory railed from Kiev. Is it possible to edit a green factory or edit a single green factory to have 2 in the hex to compensate?





rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/19/2019 1:42:05 AM)


quote:

ORIGINAL: Majorball68

Appear to have lost a USSR factory railed from Kiev. Is it possible to edit a green factory or edit a single green factory to have 2 in the hex to compensate?


Don't know about that one ... but you never know until you try. The way I'd go about it would be to go back to a previous saved game and move two factories into the same hex that you currently have a green factory in. Then, I'd examine the difference between a hex with one green factory and the hex with two green factories. If the difference is obvious then I'd edit the game file to create this two green factory hex. As always, backup your original game file before editing.




Majorball68 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/4/2019 9:03:51 AM)


quote:

ORIGINAL: rkr1958


quote:

ORIGINAL: Majorball68

Appear to have lost a USSR factory railed from Kiev. Is it possible to edit a green factory or edit a single green factory to have 2 in the hex to compensate?


Don't know about that one ... but you never know until you try. The way I'd go about it would be to go back to a previous saved game and move two factories into the same hex that you currently have a green factory in. Then, I'd examine the difference between a hex with one green factory and the hex with two green factories. If the difference is obvious then I'd edit the game file to create this two green factory hex. As always, backup your original game file before editing.



Railed factories are a little more complicated than that I think. Not easy to duplicate as there seem to have set parameters and look like they have set numbers already reserved.






sfreudig -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/6/2019 8:57:15 PM)

Hello !
I have a problem with the gearing limit of the USSR that trop to 1 for every unit class. Is it possible to fix it easily by editing the file ?
Thank's for answer !
S.




paulderynck -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/6/2019 9:08:21 PM)

Are you sure it's not because either no attacks were made by Germany west of Siberia or there are no in supply German units in that area?




sfreudig -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/7/2019 5:58:54 AM)

yes i'm sure. Last turn JF, Germany attacks in USSR...
I'm playing with v2.9.4,10,1.
Here's the file...





rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/10/2019 12:10:18 AM)


quote:

ORIGINAL: sfreudig

Hello !
I have a problem with the gearing limit of the USSR that trop to 1 for every unit class. Is it possible to fix it easily by editing the file ?
Thank's for answer !
S.

Yes. Attached are the instructions for one way that I've found.

[image]local://upfiles/31901/9EE397F579104CEDBED20A090814EFC5.jpg[/image]




Courtenay -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/10/2019 5:09:09 AM)

What will the gearing limits be for the next turn?

Somewhere there has to be some settings for the current gearing limits. To find it, in this example, search for the one of the two strings: "2, 1, 1, 1, 5, 1, 4, 3, 1, 1, 1" or "1, 0, 0, 0, 4, 0, 3, 2, 0, 0, 0"; the game might save the limits as either how many were built last turn, or how many can be built this turn.

If you could change those values, it would be a lot less work.




sfreudig -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/10/2019 12:58:54 PM)

Ronnie, thank's a lot for the tip !

Courtnay, "To find it, in this example, search for the one of the two strings: "2, 1, 1, 1, 5, 1, 4, 3, 1, 1, 1" or "1, 0, 0, 0, 4, 0, 3, 2, 0, 0, 0";" : Yes i do it (too quickly maybe...), but coulnd't find any match in the file




Courtenay -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/10/2019 3:27:06 PM)

Hmm. Interesting. Upon looking at a saved file, it looks like the gearing limits are not stored by Country/Unit Type, but by Unit Type/Country, which strikes me as perverse. I think, but am not sure, that they are the numbers after "ProductionForm". I am not certain about that; I can't figure out what all the minus ones are if that is the case. I am not going to spend any more time on this right now, but that is the first place I would look.




Divadov -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/30/2019 8:47:47 PM)

Awesome Ronnie!!!

Thanks to you I can continue my blocked game.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (3/31/2019 5:04:11 PM)


quote:

ORIGINAL: Divadov

Awesome Ronnie!!!

Thanks to you I can continue my blocked game.

Good deal! Glad you found it useful. As you learn the game please feel free to contribute to this thread. I've always intended this to be a "community" project to build the knowledge and, maybe eventually the tools, to edit the game file.




Divadov -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (5/1/2019 6:27:44 PM)

Hi Ronnie,

I have a ship damaged that I want to undamage, do you know how change this state?


Thanks




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (5/1/2019 11:43:38 PM)


quote:

ORIGINAL: Divadov

Hi Ronnie,

I have a ship damaged that I want to undamage, do you know how change this state?


Thanks

I don't, but I'll take a look. Can't promise anything, so if it's critical to move on don't wait on me.




TrogusP96 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/23/2019 5:50:44 PM)

Do you know how to lower div costs?




Page: <<   < prev  1 2 [3] 4 5   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.59375