WitP Utility

Gary Grigsby's strategic level wargame covering the entire War in the Pacific from 1941 to 1945 or beyond.

Moderators: Joel Billings, wdolson, Don Bowen, mogami

Post Reply
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update available - 02/03/2005

Post by Bodhi »

ORIGINAL: erstad

OK, downloaded Witp_utility for the first time. Re-ran one turn from a PBEM, and it looks really cool and useful but...

The combats report tab is empty. The combat file is in the new directory created by the tool; sigint and operations reports view fine; but the combat report tab is blank.

Any ideas?

One comment is that I play two day turns - any chance that confuses it?

Don't think the 2 day turns should be a problem - not that I've tested it. Maybe it's something I should look at. Is anyone else using the utility and 2 day turns?

Anyway, let's just confirm we have all the data first.

Assuming the save slot is 10, in the 010 sub-folder of WITP's main SAVE folder do you have the following files (and do they contain data) com_operationsreport.txt, com_asigint.txt, com_jsigint.txt, and, most importantly in this case, com_combatreport.txt? If not, let me know.

If you do, don't worry things seem to be working. I guess you're game isn't new and has been going on a while? In that case there's a possibility that the utility may not have the correct game date yet. Try restarting the utility and checking if the game date is in fact correct. If it isn't, it should catch up and set itself correctly after the next turn is completed (either using the auto turn resolution function or the manual check for new intel/ops).
Bodhi
User avatar
CobraAus
Posts: 2322
Joined: Mon Aug 23, 2004 6:15 am
Location: Geelong Australia
Contact:

RE: WitP Utility - new update available - 02/03/2005

Post by CobraAus »

hi Bodhi me again in susing the util I find that it be very usefull to have a secondary sort function inthe intel/ops data area
1 to sort the day column
2 to sort the details odthe reports

maybe use a combination of left cntrl button and mouse key or even the the right hand mouse button -should be possible

Cobra Aus
Coral Sea Battle = My Birthday
User avatar
scout1
Posts: 3100
Joined: Mon Aug 23, 2004 11:26 pm
Location: South Bend, In

RE: WitP Utility - new update available - 02/03/2005

Post by scout1 »

Any ideas?

One other idea. The combat report window will be blank until you click on a hex where a battle occurred. Then the combat report for that hex is shown in the window. This one took me a bit to figure out.
Hope it helps.

Bodhi, Really sweet [;)]
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update available - 02/03/2005

Post by Bodhi »

ORIGINAL: CobraAus

hi Bodhi me again in susing the util I find that it be very usefull to have a secondary sort function inthe intel/ops data area
1 to sort the day column
2 to sort the details odthe reports

maybe use a combination of left cntrl button and mouse key or even the the right hand mouse button -should be possible

Cobra Aus

If you want the sorting to be by day, then one of the other columns, first sort by the "other" column by clicking on the column header, then sort by the day column by clicking on the column header. That way to should get the ordering by the day first, then the "other" column. I think I should have put in another column for intel - intel type - but there's so little room in the list views, I tend to rely on the filtering to exclude the ones I'm not interested in at that time. I agree the format is ideal, thanks for the ideas, we'll get it right yet. [;)]
Bodhi
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update available - 02/03/2005

Post by Bodhi »

ORIGINAL: scout1

One other idea. The combat report window will be blank until you click on a hex where a battle occurred. Then the combat report for that hex is shown in the window. This one took me a bit to figure out.
Hope it helps.

Bodhi, Really sweet [;)]

Errr, that would be the most obvious thing to check, sorry I missed it [:o] and thanks for picking up on it. Of course I should have mentioned that the combat reports are handled slightly differently to intel/ops. As there's so much info available, I ditched the complete listing of all "active" reports, and gave all the space to the reports for the current hex. That's why the combat reports tab is blank until you select a hex with active reports. Maybe you should be writing the manual. [;)]

Glad you find it useful.
Bodhi
erstad
Posts: 1944
Joined: Mon Aug 02, 2004 11:40 pm
Location: Midwest USA

RE: WitP Utility - new update available - 02/03/2005

Post by erstad »

That was it - thanks!
Sonny
Posts: 2005
Joined: Wed Apr 03, 2002 9:51 pm

RE: WitP Utility - new update available - 02/03/2005

Post by Sonny »

Is the big gap in the cold zone due to the games definition of the zone or your program?

BTW - good stuff.
Quote from Snigbert -

"If you mess with the historical accuracy, you're going to have ahistorical outcomes."

"I'll say it again for Sonny's sake: If you mess with historical accuracy, you're going to have
ahistorical outcomes. "
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update available - 02/03/2005

Post by Bodhi »

ORIGINAL: Sonny

Is the big gap in the cold zone due to the games definition of the zone or your program?

BTW - good stuff.

Here's the code Mike Wood posted for cold zone definition
ORIGINAL: Mike Wood

Code: Select all

 // ---------------------------------------------------------------------------- 
 bool ColdZoneN(i16_t x, i16_t y) 
 { 
 bool answer=false; 
 
 if(gScen.month>2 && gScen.month<11) 
 return SSI_FALSE; 
 
 // korea 
 if(x>56 && x<68 && y<40) 
 answer=true; 
 // siberia 
 else if(x>66 && x<86 && y<35) 
 answer=true; 
 // alaska and northern islands 
 else if(x>88 && x<131 && y<41) 
 answer=true; 
 
 return(answer); 
 } 
 
 // -------------------------------------------------------------------------------- 
 bool ColdZoneS(i16_t x, i16_t y) 
 { 
 bool answer=false; 
 
 if(gScen.month<5 || gScen.month>8) 
 return SSI_FALSE; 
 
 // new zealand 
 if(y>141) 
 answer=true; 
 

I think the utility implements this correctly, so it looks like the gap in columns 86 through 88 are from the game's definition. Looks like an oversight, but I don't think it'll have too much effect, apart from any Japanese carriers raiding the Aleutians in winter that is.[;)]
Bodhi
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update (03/03/2005)

Post by Bodhi »

New update available (03/03/2005).

Latest WitP Utility is here
  • Fixed the scroll bars not covering the whole range of the map
Bodhi
Sonny
Posts: 2005
Joined: Wed Apr 03, 2002 9:51 pm

RE: WitP Utility - new update available - 02/03/2005

Post by Sonny »

I figured it was the definition. Don't think it will ever have an effect on the game either.
Quote from Snigbert -

"If you mess with the historical accuracy, you're going to have ahistorical outcomes."

"I'll say it again for Sonny's sake: If you mess with historical accuracy, you're going to have
ahistorical outcomes. "
JamesM
Posts: 1026
Joined: Mon Aug 28, 2000 8:00 am
Location: QLD, Australia

RE: WitP Utility - new update (03/03/2005)

Post by JamesM »

Thank you Bodhi great update.

[&o][&o][&o][&o][&o][&o][&o]
User avatar
HercMighty
Posts: 397
Joined: Fri Oct 31, 2003 7:09 pm
Location: Minnesota, USA

RE: WitP Utility - new update (03/03/2005)

Post by HercMighty »

I sent a email on some missed operations reports, let me know if you need more info. Thanks
bradfordkay
Posts: 8592
Joined: Sun Mar 24, 2002 8:39 am
Location: Olympia, WA

RE: WitP Utility - new update (03/03/2005)

Post by bradfordkay »

Bodhi, I have been using Andy's map (as you may recall from a question on a seperate thread), and have run into a slight problem. I have two installations of WITP; a regular WITP, and a WITP Mod which is the one with Andy's map. When I open up the utility, it is showing the bases out of position. When I play the game under my WITP Mod istallation, everything is lined up correctly. Could it be that the utility is being confused by two seperate installations?
fair winds,
Brad
User avatar
eMonticello
Posts: 525
Joined: Fri Mar 15, 2002 7:35 am

RE: WitP Utility - new update (03/03/2005)

Post by eMonticello »

Brad,

For the moment, the utility requires the standard map. In the tools-> options menu, you need to set the 'War in the Pacific Map Art Path' to your art folder in the standard installation. Alternatively, you can create another folder in the mod installation that contains all the standard art files necessary for the utility. I believe you'll find a more complete explanation in the user manual.

Gary

Few things are harder to put up with than the annoyance of a good example. -- Pudd'nhead Wilson
bradfordkay
Posts: 8592
Joined: Sun Mar 24, 2002 8:39 am
Location: Olympia, WA

RE: WitP Utility - new update (03/03/2005)

Post by bradfordkay »

It also helps to have the game started BEFORE you open up the utility! I think this is what was confusing the program.
fair winds,
Brad
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update (03/03/2005)

Post by Bodhi »

Just in case anyone's in doubt, let me try to explain, hopefully without confusing you. [:D]


The program uses the following:

1. the hex info file (pwhex.dat) from the WitP folder
2. database files from the WitP SCEN sub folder
3. intel/ops/combat reports from the WitP folder
4. an icon file (from the WitP ART sub folder)
5. the map tile bitmaps (initially set to use those in the WitP ART folder)

There are two paths on the options menu that control where the utility will look for files ("War in the Pacific Path" - items 1-4 and also the location of any save files & "War in the Pacific Map Art Path" - item 5).
On starting for the first time (also on first use after installing an update - sorry) the program checks the registry for the location of the WitP folder and sets these paths according to the settings for WitP.

You can change these any time on the options window, BUT the "War in the Pacific Path" & "War in the Pacific Map Art Path" must point to a pwhex.dat and map tiles that agree - there's no way for me to check this, it's something you must do.


So, for example, let's say you have two installs, with the following structures (not all folders shown)

Code: Select all

C:\Matrix Games\WitP1
 C:\Matrix Games\WitP1\SCEN
 C:\Matrix Games\WitP1\ART
 C:\Matrix Games\WitP1\SAVE
 .
 .
 .

and

Code: Select all

C:\Matrix Games\WitP_MapMod
 C:\Matrix Games\WitP_MapMod\SCEN
 C:\Matrix Games\WitP_MapMod\ART
 C:\Matrix Games\WitP_MapMod\SAVE
 .
 .
 .

and that the registry will return C:\Matrix Games\WitP1 as the WitP folder.

On first running the utility, the paths will be set as
"War in the Pacific Path" = C:\Matrix Games\WitP1
"War in the Pacific Map Art Path" = C:\Matrix Games\WitP1\ART

You can change the "War in the Pacific Map Art Path" to any other folder providing that it contains the map art tile bitmaps that are based on the original pwhex.dat file.

If you want to use Andrew's modified pwhex.dat file/map tiles for the case illustrated above, you'd need to set the folder paths to
"War in the Pacific Path" = C:\Matrix Games\WitP_MapMod
"War in the Pacific Map Art Path" = C:\Matrix Games\WitP_MapMod\ART

Of course if you have games using both versions, you'll have to swap the folders back and forth as you look at data from different games.

Have I totally confused you? [&:]

[Added in edit]
Of course I should have mentioned that the scenario files must also match the pwhex.dat file and the map. So there are three things that are interdependent: the pwhex.dat and the scenario database files, (path set via "War in the Pacific Path") and the map bitmap tiles (path set via "War in the Pacific Map Art Path").
Bodhi
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update (03/03/2005)

Post by Bodhi »

ORIGINAL: HercMighty

I sent a email on some missed operations reports, let me know if you need more info. Thanks

Thanks, will take a look and get back to you.
Bodhi
User avatar
HercMighty
Posts: 397
Joined: Fri Oct 31, 2003 7:09 pm
Location: Minnesota, USA

RE: WitP Utility - new update (03/03/2005)

Post by HercMighty »

ORIGINAL: bradfordkay

It also helps to have the game started BEFORE you open up the utility! I think this is what was confusing the program.

I thought you were supposed to start the utility then the game?
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: WitP Utility - new update (03/03/2005)

Post by Bodhi »

ORIGINAL: HercMighty
ORIGINAL: bradfordkay

It also helps to have the game started BEFORE you open up the utility! I think this is what was confusing the program.

I thought you were supposed to start the utility then the game?

It shouldn't make any difference which you start first, let me know if it does!
Bodhi
bradfordkay
Posts: 8592
Joined: Sun Mar 24, 2002 8:39 am
Location: Olympia, WA

RE: WitP Utility - new update (03/03/2005)

Post by bradfordkay »

I am even a little more embarrassed now. Here's the situation:

I had an earlier version of the utility installed on my computer, which I had used with the original map. In January I started playing Andy's map mod, which I had installed in a seperate folder rather than use his utility to switch back and forth. I really haven't played the original map since, except to occaisionally look at it for differences in discussions here.

Today I downloaded the new version of the utility. I first used MS's load/unload files through the control panel to uninstall the original version of the utility and then installed the new version. You will note that I forgot to go into windows explorer and delete the remainder of the files. When I started up the utility, it had some saves to load, so I loaded one. Somehow, without my directing the utility to a destination folder for the maps, it found my mod folder and not my original one. This is probably because the original is just C:/WITP while the mod is under C:/MatrixGames/WITP_MOD and so it was found first. However the save in the utility file was made using the original pwhex file but the utility had found the new map.

Thus when I looked at the map in the utility the bases were off. I closed both programs, started the modified game again, then started the utility. Since I am now playing scen 116 rather than 15 I decided to make a new save in the utility. Of course this save had all th eright data.

None of this has anything to do with Bodhi's programming, just my own idiocy. My apologies for a false alarm. [:(]
fair winds,
Brad
Post Reply

Return to “War In The Pacific - Struggle Against Japan 1941 - 1945”