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 4 5   next >   >>
Login
Message << Older Topic   Newer Topic >>
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/23/2016 12:06:46 AM   
rkr1958


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




Attachment (1)

< Message edited by rkr1958 -- 11/23/2016 12:07:51 AM >


_____________________________

Ronnie

(in reply to rkr1958)
Post #: 31
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/23/2016 1:01:23 AM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
Part 1 of a pdf version (zipped) of my editing guide to date.

Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 32
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/23/2016 1:02:05 AM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
Here's part 2.

Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 33
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/23/2016 2:56:17 AM   
paulderynck


Posts: 8201
Joined: 3/24/2007
From: Canada
Status: offline
Great job Ronnie, a real keeper.

_____________________________

Paul

(in reply to rkr1958)
Post #: 34
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/23/2016 4:33:51 AM   
rkr1958


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

quote:

ORIGINAL: paulderynck

Great job Ronnie, a real keeper.

Thanks!

_____________________________

Ronnie

(in reply to paulderynck)
Post #: 35
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:26:13 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 36
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:26:58 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 37
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:27:22 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 38
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:27:44 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 39
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:28:14 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 40
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:28:41 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 41
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:29:03 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 42
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:29:23 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 43
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/8/2017 7:29:43 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 44
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/9/2017 3:39:00 AM   
ashkpa


Posts: 1507
Joined: 1/16/2014
Status: offline
very nice

(in reply to rkr1958)
Post #: 45
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/9/2017 4:53:54 AM   
davidc


Posts: 61
Joined: 12/5/2007
Status: offline
Agreed
Excellent stuff Ronnie

(in reply to ashkpa)
Post #: 46
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/9/2017 7:44:09 PM   
paulderynck


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

_____________________________

Paul

(in reply to davidc)
Post #: 47
RE: A Layman's Guide to Successfully Editing the MWiF G... - 10/11/2017 12:31:53 AM   
rkr1958


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

quote:

ORIGINAL: ashkpa

very nice
Thanks!


quote:

ORIGINAL: davidc

Agreed
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.

_____________________________

Ronnie

(in reply to ashkpa)
Post #: 48
RE: A Layman's Guide to Successfully Editing the MWiF G... - 11/18/2017 4:28:01 AM   
TrogusP96

 

Posts: 160
Joined: 6/15/2015
Status: offline
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

(in reply to rkr1958)
Post #: 49
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/1/2018 12:20:46 PM   
sfreudig

 

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

(in reply to TrogusP96)
Post #: 50
RE: A Layman's Guide to Successfully Editing the MWiF G... - 2/2/2018 10:48:21 PM   
rkr1958


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


< Message edited by rkr1958 -- 2/2/2018 10:59:11 PM >


_____________________________

Ronnie

(in reply to sfreudig)
Post #: 51
RE: A Layman's Guide to Successfully Editing the MWiF G... - 4/12/2018 3:40:48 PM   
Kull


Posts: 2625
Joined: 7/3/2007
From: El Paso, TX
Status: offline
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.

_____________________________


(in reply to rkr1958)
Post #: 52
RE: A Layman's Guide to Successfully Editing the MWiF G... - 4/13/2018 9:37:26 PM   
rkr1958


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

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.


_____________________________

Ronnie

(in reply to Kull)
Post #: 53
RE: A Layman's Guide to Successfully Editing the MWiF G... - 6/2/2018 5:42:00 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 54
RE: A Layman's Guide to Successfully Editing the MWiF G... - 6/2/2018 5:43:32 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 55
RE: A Layman's Guide to Successfully Editing the MWiF G... - 6/2/2018 5:44:32 PM   
rkr1958


Posts: 23483
Joined: 5/21/2009
Status: offline
Let's get this puppy edited, change hex control and see if this gets us through the infinite loop the games apparently entered into.




Attachment (1)

< Message edited by rkr1958 -- 6/2/2018 5:48:24 PM >


_____________________________

Ronnie

(in reply to rkr1958)
Post #: 56
RE: A Layman's Guide to Successfully Editing the MWiF G... - 6/2/2018 5:48:44 PM   
rkr1958


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




Attachment (1)

_____________________________

Ronnie

(in reply to rkr1958)
Post #: 57
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/8/2018 9:13:13 PM   
AxelNL


Posts: 2386
Joined: 9/24/2011
From: The Netherlands
Status: offline
Excellent sherlocking! Maybe somebody will make a little program to do this edits with a nice GUI, and it saves even more time.

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


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

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 ...


_____________________________

Ronnie

(in reply to AxelNL)
Post #: 59
RE: A Layman's Guide to Successfully Editing the MWiF G... - 8/16/2018 2:06:15 PM   
jjdenver

 

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

(in reply to rkr1958)
Post #: 60
Page:   <<   < prev  1 [2] 3 4 5   next >   >>
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 4 5   next >   >>
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.813