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  1 2 [3]
Login
Message << Older Topic   Newer Topic >>
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/16/2018 4:55:19 PM   
rkr1958


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





< Message edited by rkr1958 -- 8/16/2018 4:58:04 PM >


_____________________________

Ronnie

(in reply to rkr1958)
Post #: 61
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/16/2018 5:05:39 PM   
paulderynck


Posts: 7733
Joined: 3/24/2007
From: Canada
Status: offline
What if there are both oil points and BPs in the hex? How do you know which is being changed?

_____________________________

Paul

(in reply to rkr1958)
Post #: 62
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/16/2018 8:48:14 PM   
rkr1958


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

< Message edited by rkr1958 -- 8/17/2018 1:30:29 AM >


_____________________________

Ronnie

(in reply to paulderynck)
Post #: 63
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/16/2018 10:28:18 PM   
paulderynck


Posts: 7733
Joined: 3/24/2007
From: Canada
Status: offline
Thanks.

_____________________________

Paul

(in reply to rkr1958)
Post #: 64
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/17/2018 8:42:10 PM   
hazmaxed

 

Posts: 102
Joined: 11/21/2013
From: Baton Rouge, LA
Status: offline

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.

_____________________________

There is no overkill. There is only "open fire" and "reloading."

(in reply to paulderynck)
Post #: 65
Unable to find AUS Beaufort - 11/27/2018 1:14:48 PM   
jjdenver

 

Posts: 1829
Joined: 11/2/2007
Status: offline
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. :)


< Message edited by jjdenver -- 11/27/2018 1:39:03 PM >

(in reply to rkr1958)
Post #: 66
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/27/2018 1:18:48 PM   
jjdenver

 

Posts: 1829
Joined: 11/2/2007
Status: offline
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.




Attachment (1)

(in reply to jjdenver)
Post #: 67
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/3/2019 7:57:22 PM   
Mayhemizer_slith


Posts: 6712
Joined: 9/7/2011
From: Finland
Status: online
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

< Message edited by Mayhemizer -- 1/3/2019 8:03:54 PM >

(in reply to jjdenver)
Post #: 68
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/4/2019 3:06:46 AM   
rkr1958


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

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.




Attachment (1)

_____________________________

Ronnie

(in reply to Mayhemizer_slith)
Post #: 69
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/4/2019 4:15:14 AM   
Mayhemizer_slith


Posts: 6712
Joined: 9/7/2011
From: Finland
Status: online
Thank you

(in reply to rkr1958)
Post #: 70
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/4/2019 4:41:36 AM   
Mayhemizer_slith


Posts: 6712
Joined: 9/7/2011
From: Finland
Status: online
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.

Attachment (1)

< Message edited by Mayhemizer -- 1/4/2019 4:43:46 AM >

(in reply to Mayhemizer_slith)
Post #: 71
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/4/2019 3:54:27 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to Mayhemizer_slith)
Post #: 72
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/4/2019 3:55:28 PM   
rkr1958


Posts: 15550
Joined: 5/21/2009
Status: offline
I know it's OBE now but attached is your game file with those edits.

Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 73
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/4/2019 4:26:57 PM   
Mayhemizer_slith


Posts: 6712
Joined: 9/7/2011
From: Finland
Status: online
Great work, once again!

(in reply to rkr1958)
Post #: 74
RE: A Layman's Guide to Successfully Editing the MWiF G... - 1/16/2019 8:23:30 AM   
Mayhemizer_slith


Posts: 6712
Joined: 9/7/2011
From: Finland
Status: online
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

< Message edited by Mayhemizer -- 1/16/2019 8:24:26 AM >

(in reply to Mayhemizer_slith)
Post #: 75
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/18/2019 8:49:46 AM   
Majorball68


Posts: 347
Joined: 11/22/2013
Status: offline
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?


(in reply to Mayhemizer_slith)
Post #: 76
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/19/2019 1:42:05 AM   
rkr1958


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

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.


_____________________________

Ronnie

(in reply to Majorball68)
Post #: 77
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/4/2019 9:03:51 AM   
Majorball68


Posts: 347
Joined: 11/22/2013
Status: offline

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.



(in reply to rkr1958)
Post #: 78
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/6/2019 8:57:15 PM   
sfreudig

 

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

(in reply to Majorball68)
Post #: 79
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/6/2019 9:08:21 PM   
paulderynck


Posts: 7733
Joined: 3/24/2007
From: Canada
Status: offline
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?

_____________________________

Paul

(in reply to sfreudig)
Post #: 80
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/7/2019 5:58:54 AM   
sfreudig

 

Posts: 5
Joined: 5/21/2017
Status: offline
yes i'm sure. Last turn JF, Germany attacks in USSR...
I'm playing with v2.9.4,10,1.
Here's the file...



Attachment (1)

(in reply to paulderynck)
Post #: 81
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/10/2019 12:10:18 AM   
rkr1958


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

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.




Attachment (1)

_____________________________

Ronnie

(in reply to sfreudig)
Post #: 82
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/10/2019 5:09:09 AM   
Courtenay


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

_____________________________

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

(in reply to rkr1958)
Post #: 83
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/10/2019 12:58:54 PM   
sfreudig

 

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

< Message edited by sfreudig -- 3/10/2019 1:00:19 PM >

(in reply to Courtenay)
Post #: 84
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/10/2019 3:27:06 PM   
Courtenay


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

_____________________________

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

(in reply to sfreudig)
Post #: 85
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/30/2019 8:47:47 PM   
Divadov

 

Posts: 9
Joined: 3/27/2019
Status: offline
Awesome Ronnie!!!

Thanks to you I can continue my blocked game.

< Message edited by Divadov -- 3/30/2019 11:31:32 PM >

(in reply to rkr1958)
Post #: 86
RE: A Layman's Guide to Successfully Editing the MWiF G... - 3/31/2019 5:04:11 PM   
rkr1958


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

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.

_____________________________

Ronnie

(in reply to Divadov)
Post #: 87
RE: A Layman's Guide to Successfully Editing the MWiF G... - 5/1/2019 6:27:44 PM   
Divadov

 

Posts: 9
Joined: 3/27/2019
Status: offline
Hi Ronnie,

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


Thanks

(in reply to rkr1958)
Post #: 88
RE: A Layman's Guide to Successfully Editing the MWiF G... - 5/1/2019 11:43:38 PM   
rkr1958


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

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.

_____________________________

Ronnie

(in reply to Divadov)
Post #: 89
Page:   <<   < prev  1 2 [3]
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  1 2 [3]
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

0.164