Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

RE: A Layman's Guide to Successfully Editing the MWiF Game File.

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> World in Flames >> Mods and Scenarios >> RE: A Layman's Guide to Successfully Editing the MWiF Game File. Page: <<   < prev  3 4 5 6 [7]
Login
Message << Older Topic   Newer Topic >>
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/30/2022 5:36:26 PM   
Courtenay


Posts: 4003
Joined: 11/12/2008
Status: offline
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.

_____________________________

I thought I knew how to play this game....

(in reply to craigbear)
Post #: 181
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/30/2022 6:02:17 PM   
craigbear

 

Posts: 185
Joined: 1/21/2020
From: Calgary, Alberta
Status: offline
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

(in reply to Courtenay)
Post #: 182
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/30/2022 6:04:05 PM   
craigbear

 

Posts: 185
Joined: 1/21/2020
From: Calgary, Alberta
Status: offline
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.

(in reply to craigbear)
Post #: 183
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/31/2022 8:28:22 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
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.


< Message edited by rkr1958 -- 1/31/2022 8:30:42 PM >


_____________________________

Ronnie

(in reply to craigbear)
Post #: 184
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/1/2022 1:28:39 AM   
craigbear

 

Posts: 185
Joined: 1/21/2020
From: Calgary, Alberta
Status: offline
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:


Attachment (1)

(in reply to rkr1958)
Post #: 185
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/1/2022 4:14:32 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline

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.




Attachment (1)

_____________________________

Ronnie

(in reply to craigbear)
Post #: 186
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/1/2022 4:39:47 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
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?




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 187
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/1/2022 4:45:49 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
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).




Attachment (1)

< Message edited by rkr1958 -- 2/1/2022 4:46:29 PM >


_____________________________

Ronnie

(in reply to rkr1958)
Post #: 188
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/1/2022 4:53:34 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
Below is the output of ExamDiff, which shows the changes. That is, (all) the differences between the before and after edited game files.




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 189
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/2/2022 1:36:29 AM   
craigbear

 

Posts: 185
Joined: 1/21/2020
From: Calgary, Alberta
Status: offline
Thank-you. That will be very useful. I will be altering our game file when received.

(in reply to rkr1958)
Post #: 190
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/20/2022 4:48:02 PM   
craigbear

 

Posts: 185
Joined: 1/21/2020
From: Calgary, Alberta
Status: offline
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.


< Message edited by craigbear -- 2/20/2022 4:49:33 PM >

(in reply to craigbear)
Post #: 191
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/22/2022 5:50:28 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline

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.


_____________________________

Ronnie

(in reply to craigbear)
Post #: 192
Page:   <<   < prev  3 4 5 6 [7]
All Forums >> [New Releases from Matrix Games] >> World in Flames >> Mods and Scenarios >> RE: A Layman's Guide to Successfully Editing the MWiF Game File. Page: <<   < prev  3 4 5 6 [7]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.342