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. (11/23/2016 12:06:46 AM)

...

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




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (11/23/2016 1:01:23 AM)

Part 1 of a pdf version (zipped) of my editing guide to date.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (11/23/2016 1:02:05 AM)

Here's part 2.




paulderynck -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (11/23/2016 2:56:17 AM)

Great job Ronnie, a real keeper.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (11/23/2016 4:33:51 AM)


quote:

ORIGINAL: paulderynck

Great job Ronnie, a real keeper.

Thanks! [:)]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:26:13 PM)

---

[image]local://upfiles/31901/3C76111A2D4E4314B1AD5330F39BAF69.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:26:58 PM)

---

[image]local://upfiles/31901/8E2BAEFB43F64F129FD5D80512E63954.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:27:22 PM)

---

[image]local://upfiles/31901/04BB8CFFCB934F04820B055FF0D37FB0.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:27:44 PM)

---

[image]local://upfiles/31901/8FE057CBBEF044F4B815B369D78D00E7.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:28:14 PM)

---

[image]local://upfiles/31901/73F4B45AF69D4A04A0C80F4A6684D20E.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:28:41 PM)

---

[image]local://upfiles/31901/8352515810BF44C6946D7034AF0B53DE.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:29:03 PM)

---

[image]local://upfiles/31901/28FE696FE4424A66A6E25EEE04C5EA6E.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:29:23 PM)

---

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




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/8/2017 7:29:43 PM)

---

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




ashkpa -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/9/2017 3:39:00 AM)

very nice [&o]




davidc -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/9/2017 4:53:54 AM)

Agreed [&o] [&o]
Excellent stuff Ronnie




paulderynck -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/9/2017 7:44:09 PM)

One of the reasons that Production got so complicated in the code is this simple sentence in the rules: "If, during production (see 13.6), it is possible for the promised resources (or build points) to be delivered then they must be delivered."

This means FREX if the route to northern Russia gets cut by U-boats then you might have to run some of your resources and/or build points around Africa to Persia if they can be delivered that way - because you must. You must do this no matter how much it messes up your carefully planned CP routes. Unless you spot the problem during Stay-at-Sea and RTB some inconsequential CP that is providing the connection to Russia - thus making it impossible to get the stuff there and then you are OK except you can't use that number of resources and/or BPs for yourself.

Now I'm not saying this alone is causing the "Faroes-Biscay Triangle" issues but it illustrates that convoy routing and delivery is quite difficult to code. (also consider Search and Seizure being planned for).

So if you are going to edit the file, you now become responsible for enforcing the applicable rules.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (10/11/2017 12:31:53 AM)


quote:

ORIGINAL: ashkpa

very nice [&o]
Thanks! [:)]


quote:

ORIGINAL: davidc

Agreed [&o] [&o]
Excellent stuff Ronnie
Thanks! [:)]


quote:

ORIGINAL: paulderynck
So if you are going to edit the file, you now become responsible for enforcing the applicable rules.
I agree 100%. This workaround assumes you are enforcing the applicable rules and that you live with any oversights or misinterpretations. That's the risk player's must accept in applying this method. However, I think the gains are obvious to those of us who've played MWiF for a while and struggled with convoy routing and production. In the end the "unwillingness" of MWiF to accept and maintain my overrides to reroute from the Bay of Biscay to the Faeroes Gap finally drove me over the edge. I absolutely love this game and the fact that MWiF handles everything else so well. I just didn't want this one flaw to destroy that love.

By the way, I've started another game with jjdenver who's an experienced WiF player (much more experienced than me) but is new to MWiF. He's playing the allies and the CW convoy routing during preliminary and final production of turn 1 nearly drove him to abandoned our game and MWiF. This was the driving reason behind me documenting and posting this workaround I came up with a while back. I just hadn't got around to documenting and posting it yet. Sorry.

Also, we're playing with the isolated reorganization optional rule, which we're having to enforce ourselves. This certainly changes some of the dynamics in China, East and Central Africa. I can see how this optional rule may be even more significant in MWiF than in WiF given the new Asia scale and unit densities in MWiF.




TrogusP96 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (11/18/2017 4:28:01 AM)

I thought it was just me and I have spent inordinate time with CW convoys in particular so I just added more BPs and factories.

Thanks for explanation about CW convoy routes. Faroes Island and Bay of Biscay reversion.

What I really want to be able to edit are divison, eng, arty AT armor etc costs




sfreudig -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (2/1/2018 12:20:46 PM)

Hello,
i've got some trouble to find some hex near Noumea in Coral Sea... it seems that the hexes down here have a different coordinate system... is it possible ?
For exemple, Noumea is 143,194 and so should be 73410. But in the file, the hex is noted 7874. So the coordinate "line" seems to be in fact "15" instead of "143".

What do you think ?
Regards
Seb




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

quote:

ORIGINAL: sfreudig

Hello,
i've got some trouble to find some hex near Noumea in Coral Sea... it seems that the hexes down here have a different coordinate system... is it possible ?
For exemple, Noumea is 143,194 and so should be 73410. But in the file, the hex is noted 7874. So the coordinate "line" seems to be in fact "15" instead of "143".

What do you think ?
Regards
Seb
Yes, this is something that I've noticed/encountered a while back (maybe a year or so ago) but haven't documented it. I've figured how to work with it but don't know exactly the rule. I'll write what I know and how I work with it.

Encoded coordinates logged by the game in the USR(8) field do not exceed 2^16, or 65536. So for example, if the coordinate you're working with is, [x=164,y=50] = 84018, USR(8) will be equal to 84018 - 65536 or 18482. However, the field before this value (i.e., USR(7)) will not be 0. I haven't figure out specifically what different non-zero values mean except that a non-zero field will distinguish this coordinate from [x=36,y=50] which also is equal to 18482.

And for your case, x=143, y=194; USR(8)=(512 x 143 + 194) - 65536 = 73410 - 65536 = 7874. However, USR(7) is (must be) non-zero in order to distinguish it from the x=15 & y =194. This coordinate, which also is 7874 will have USR(7) = 0).

On the upside, you can edit a game file and put a coordinate in greater than 65536 in USR(8) provided the preceding field (i.e., USR(7) is zero). You can then load that game file and (re) save it and MWiF will take care of the wrap around (i.e., subtracting 65536) and populating USR(7) with a non-zero value. If you're editing a coordinate that is already larger than 65537, in which case USR(7) ~= 0, you can use the formula USR(8) = 512x + y - 65536 to change the coordinate provided the new (unwrap) coordinate is also greater than 65536. That is, USR(8) can NEVER be less than 0.




Kull -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (4/12/2018 3:40:48 PM)

Very interesting thread, thanks! As to the choice of editor, I highly recommend that you consider switching to Notepad++. It's superior to Notepad in almost every way, in particular because the Total War mod team I work with has found that Notepad sometimes inserts unwanted characters and line breaks that can directly result in CTDs. Perhaps the same issue does not apply with MWIF files, but even if not, the many cool features of Notepad++ vault it to the top of the class, in our estimation. And of course, it's free.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (4/13/2018 9:37:26 PM)


quote:

ORIGINAL: Kull

Very interesting thread, thanks! As to the choice of editor, I highly recommend that you consider switching to Notepad++. It's superior to Notepad in almost every way, in particular because the Total War mod team I work with has found that Notepad sometimes inserts unwanted characters and line breaks that can directly result in CTDs. Perhaps the same issue does not apply with MWIF files, but even if not, the many cool features of Notepad++ vault it to the top of the class, in our estimation. And of course, it's free.
Thanks. Will download and give it a go then.




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (6/2/2018 5:42:00 PM)

Because of an infinite loop I encountered with 2.8.4 that caused my game to hang, see http://www.matrixgames.com/forums/tm.asp?m=4489140# , I thought I'd post these edits on how to change hex control That was the only way I found, barring not capturing hex, to get around this bug.

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




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (6/2/2018 5:43:32 PM)

I highly recommend notepad ++ (a free application) for editing the game file. As always, make sure you backup your game file before beginning any edits.

[image]local://upfiles/31901/9755536FB9804E1A849711F05ABEB9E6.jpg[/image]




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (6/2/2018 5:44:32 PM)

Let's get this puppy edited, change hex control and see if this gets us through the infinite loop the games apparently entered into.

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




rkr1958 -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (6/2/2018 5:48:44 PM)

Success!

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




AxelNL -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/8/2018 9:13:13 PM)

Excellent sherlocking! Maybe somebody will make a little program to do this edits with a nice GUI, and it saves even more time.




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


quote:

ORIGINAL: AxelNL

Excellent sherlocking! Maybe somebody will make a little program to do this edits with a nice GUI, and it saves even more time.
Thanks! I've been wanting to learn python ... maybe someday ...




jjdenver -> RE: A Layman's Guide to Successfully Editing the MWiF Game File. (8/16/2018 2:06:15 PM)

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




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

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.484375