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


Courtenay -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/30/2022 5:36:26 PM)

This sounds like a bug to me. Why would saving a Chinese BP in Sian make it Russian? It is still a Chinese city.

For production, both Chinese factions are combined.

Please post this in the Tech Support section. I might be wrong, but this really does look like a bug.




craigbear -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/30/2022 6:02:17 PM)

In any case, this has happened to me before. I should have known better. I will post it as a bug.

But my original request for a method of fixing it still stands




craigbear -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/30/2022 6:04:05 PM)

Will changing the BP number in the file from 256 to 0 fix things, or will it cause problems. It is easy enough to increase the BP saved in a nationalist city from 1 to 2.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (1/31/2022 8:28:22 PM)

quote:

ORIGINAL: craigbear

I foolishly saved a Chinese BP in Sian, and now it has become Russian and is unusable. I even have tried to save another Chinese BP in another city, and get the opportunity to move the BP during the BP save phase, but an error comes up when I try to pick the BP up.

I recall somewhere that this has been dealt with by modding, but I cannot seem to find the entry and am uncertain of the search terms needed. Does anyone recall how I can change the BP to Chinese owned, and move it to a nationalist city?

I know it is easy enough to change 1 BP to 2 in the Nationalist city, but what do I do about the unusable one in Sian? I suppose if Japan eventually captures it, they can voluntarily destroy it, but that lacks elegance.

Can anyone point me the way?

I've done this before. I don't think I've "documented" it. However, if you post your game file I'll go through and document the edits to change ownership and nationality of the BP. I think having it documented would be valuable for the future for many of us.




craigbear -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/1/2022 1:28:39 AM)

quote:

My first impulse was to ask you not to bother, as the effect on my game is minimal and we could otherwise ignore it...

However, that you are offering to document, I do believe is important. The file I am sending is actually out-of-date. I am in a PBEM game and the turn is in the other player's hands. That being said, if you are documenting the process, I ought to be able to copy the process when my file is returned and rectify the problem at that point.

I just want you to know that whatever work you put into this particular file will not be useful for me... however the process is one that I believe should be documented as the issue is repeatable (simply save a Chinese BP in Sian (or any communist city), and will likely happen to someone else in future (I think the previous example I recall had to do with Vichy BP which ended up being non-Vichy owned somehow?).

Also note that there is an Chinese BP already saved in Kweiyang... and this could be used to recompense for a Chinese BP simply by adding to it... but ultimately, the solution should be accomplished by simply changing ownership (and perhaps location) of the affected BP.

Another aside, I did try to move the Sian resource to another city by picking it up and transfering via the save BP screen; however, the program would not allow me to do so and gave an error message that even if ignored, did not allow the BP to be moved by this route.

Thank-you in advance for documenting this as I think it will be useful. The file is attached:




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/1/2022 4:14:32 PM)


quote:

ORIGINAL: craigbear

quote:

My first impulse was to ask you not to bother, as the effect on my game is minimal and we could otherwise ignore it...

However, that you are offering to document, I do believe is important. The file I am sending is actually out-of-date. I am in a PBEM game and the turn is in the other player's hands. That being said, if you are documenting the process, I ought to be able to copy the process when my file is returned and rectify the problem at that point.

I just want you to know that whatever work you put into this particular file will not be useful for me... however the process is one that I believe should be documented as the issue is repeatable (simply save a Chinese BP in Sian (or any communist city), and will likely happen to someone else in future (I think the previous example I recall had to do with Vichy BP which ended up being non-Vichy owned somehow?).

Also note that there is an Chinese BP already saved in Kweiyang... and this could be used to recompense for a Chinese BP simply by adding to it... but ultimately, the solution should be accomplished by simply changing ownership (and perhaps location) of the affected BP.

Another aside, I did try to move the Sian resource to another city by picking it up and transfering via the save BP screen; however, the program would not allow me to do so and gave an error message that even if ignored, did not allow the BP to be moved by this route.

Thank-you in advance for documenting this as I think it will be useful. The file is attached:


I moved the USSR BP in Sian to Chengtu and then change it's ownership from USSR to Chinese.

[image]local://upfiles/31901/0D14DDE77C4F45A5B394961587516494.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/1/2022 4:39:47 PM)

The first thing I did was locate the BP and the way I did that was by location. The Soviet BP was located in Sian [76,137]. I converted these coordinates to the encoded coordinate value (i.e., 76 x 512 + 137 = 39049) and searched for that value in the 8th position of the Unit Status Record (USR).

The definition of this BP occupies lines 34418 - 34423 of the game file. The first line for this counter, of any counter, is [Country ID],[Unit Type Code],[Year]. USSR country id is 51 and China is 53. The unit type code for a BP is 70. Country ids can be found on pages 199-202 and unit type codes on pages 204-205 of vol 2 of the MWiF players manual.

To move the BP to Chentgu [81,131] all one needs to do is change the encoded location of the USR from 39049 to 41603 (i.e., 81 x 512 + 131 = 41603).

Changing the nationality of the BP from Soviet to Chinese is a bit more difficult than one might think. For example, changing the country id from 51 to 53 won't do it! While the BP will be moved it will still be Soviet.

Now what to do to make it Chinese?

[image]local://upfiles/31901/27792D995EF5442296795863D1E59A1C.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/1/2022 4:45:49 PM)

I keep a library of various counters, including a Chinese BP. I copied the Chinese BP (in this example lines 2 - 7) and pasted those lines over the Soviet BP in the game file (lines 34418 - 34423). I also changed the encoded location of the copied lines to Chengtu (i.e, 41603).

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




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/1/2022 4:53:34 PM)

Below is the output of ExamDiff, which shows the changes. That is, (all) the differences between the before and after edited game files.

[image]local://upfiles/31901/6C78BC4B3BA8404EA50390546AADC3C2.jpg[/image]




craigbear -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/2/2022 1:36:29 AM)

Thank-you. That will be very useful. I will be altering our game file when received.




craigbear -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/20/2022 4:48:02 PM)

Does anyone have the entries for Free French BP and Oil Points.

Can I just paste them without replacing any BP or Oil, but by simply pasting them into the file (with adjustments for location)? Or is there a particular order all of the entries must be in?

This is due to some sort of bug with the Free French that has arisen in my game. They were Vichified and all territories became Vichy... France was completely conquered. However, when the Axis collapsed Vichy, the Free French were able to select a new home country, in this case Senegal. However, this seems to have led to oddities... both the CW and US have traded build points to the French, but it cannot seem to accept them... no path is always the indication in the production chart. Similarly, Oil is not able to arrive from the USA. I assure you that there is more than enough CPs to guarantee delivery. I have done these trades before in previous games and never had such trouble, this despite putting numerous resources on idle to guarantee a route with more than enough capacity. Another oddity is that the CW oil cannot be used by France despite cooperation. Hence, I want the US to send some via Allied (CS/FF) convoys.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/22/2022 5:50:28 PM)


quote:

ORIGINAL: craigbear

Does anyone have the entries for Free French BP and Oil Points.
I pretty sure I've got a Free French BP "lying around somewhere". Will post once I dig it up. Don't believe I have an oil point but will look and see what I can do.

quote:

ORIGINAL: craigbear
Can I just paste them without replacing any BP or Oil, but by simply pasting them into the file (with adjustments for location)? Or is there a particular order all of the entries must be in?

That I don't know. But would be worth finding out. Definitely back up your original file before trying.




Page: <<   < prev  3 4 5 6 [7]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.84375