June Release: WitPTracker now at 1.6!

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

User avatar
n01487477
Posts: 4759
Joined: Tue Feb 21, 2006 12:00 am

RE: Happy New Year -- WitPTracker now at 1.5

Post by n01487477 »

ORIGINAL: JeffK
Great work Guys,

Picking Nits.

A game versus the AI.
As the Allies, In the Aircraft production tab I can see japanese aircraft & engines and theit pools..    Is this as designed?
[*]Definitely not designed like that EVEN for AI games ... Is it all the aircraft ? Can you see Allied planes too ? This was blocked at source, so I can't see how it happened unless you changed the parameters(sides) in the witptracker.properties file and then loaded a turn.


Jeff, can you please confirm what your properties file says and whether you upgraded tracker or was it a fresh install.
In the Victory points tab, the chart for VP is great, can we get similar for aircraft & ships?

The compare button in the ship upgrades tab is fan bloody tastic..... Now I can see if its worth updating as I might loose the 8" guns off the Lex & Sara, or loose some cargo carrying ability or a few knots of speed.

User avatar
n01487477
Posts: 4759
Joined: Tue Feb 21, 2006 12:00 am

RE: Happy New Year -- WitPTracker now at 1.5

Post by n01487477 »

Well Jeff,
I have just confirmed my hypothesis. IF and ONLY IF you are playing the AI you can change the parameters in the Witptracker.properties file to switch side and see the AI's planes. IT probably will not load the full turn and tracker will halt.

So Jeff I believe that you have upgraded, changed the parameters to the Japanese and loaded a turn. This is impossible Vs PBEM partners as the program checks for the correct password.

Damian
floydg
Posts: 2060
Joined: Sat Jun 26, 2004 10:08 pm
Location: Middletown, NJ

RE: Happy New Year -- WitPTracker now at 1.5

Post by floydg »

ORIGINAL: n01487477

Chris,
I could be wrong but I believe this to be reading in a turn while in a non-static screen. Try reading your turns when you are in the airplane(not production)/shipclass/air comparison windows. I know it is a little troublesome, but this is how is works.

I am interested that people are having to increase the heap size, I haven't had to yet and I am using it a lot to test. Maybe Floyd and I will have to look into memory management more closely if it becomes a larger problem.

That type of error comes when you're showing a table that depends on data that changes from turn-to-turn ("non-static") while a new turn is being loaded. In this case, you were looking at the LCU panel and probably switched context to another application and then back to the WitPTracker. These types of errors can be ignored.

I have seen cases where I ran out of heap space, but that was because of some development-in-progress which was fixed. Since I fixed that code, I never saw problems again. I run Vista with 3GB RAM and usually have WitPTracker running with WitP, Eclipse, IE and several other programs running at the same time. If it can be reliably reproduced, we may have a shot at fixing it, but debugging memory problems with Java is not simple...
Delete the trackerdb.* files.
Copy the pwsdll.dll file from the game folder to the WitPTracker folder.
Try running the WitPTracker.bat again.
floydg
Posts: 2060
Joined: Sat Jun 26, 2004 10:08 pm
Location: Middletown, NJ

RE: Happy New Year -- WitPTracker now at 1.5

Post by floydg »

ORIGINAL: JeffK

Great work Guys,

[...]

In the Victory points tab, the chart for VP is great, can we get similar for aircraft & ships?

The compare button in the ship upgrades tab is fan bloody tastic..... Now I can see if its worth updating as I might loose the 8" guns off the Lex & Sara, or loose some cargo carrying ability or a few knots of speed.

Glad you like it.

I'll work on more graphs later - put these in at the last minute to "compete" with the new charts Damian added. [;)]

The Upgrade Comparison was my interpretation of a suggestion from Nemo, I think. I hope it helps.
Delete the trackerdb.* files.
Copy the pwsdll.dll file from the game folder to the WitPTracker folder.
Try running the WitPTracker.bat again.
User avatar
JeffroK
Posts: 6415
Joined: Wed Jan 26, 2005 4:05 am

RE: Happy New Year -- WitPTracker now at 1.5

Post by JeffroK »

ORIGINAL: n01487477

Well Jeff,
I have just confirmed my hypothesis. IF and ONLY IF you are playing the AI you can change the parameters in the Witptracker.properties file to switch side and see the AI's planes. IT probably will not load the full turn and tracker will halt.

So Jeff I believe that you have upgraded, changed the parameters to the Japanese and loaded a turn. This is impossible Vs PBEM partners as the program checks for the correct password.

Damian

?

From memory, when I set up properties I made it a japanese view. When it didnt run I checked the DOS file and it told me, so I changed it back to Allies.

But since then I have loaded about 6 turns (I only do it once per fortnight) and it has continued to show japanese aircraft.

I'll be more careful for V1.7[8D] and it doesnt affect the game for me.

Wots a heap??
Interdum feror cupidine partium magnarum Europae vincendarum
User avatar
n01487477
Posts: 4759
Joined: Tue Feb 21, 2006 12:00 am

RE: Happy New Year -- WitPTracker now at 1.5

Post by n01487477 »

Jeff,
I think you will have to delete your DB files and start again ... delete all the trackerdb.* files (as shown in the pic and restart Tracker). This will clear up your problem, but you will lose your saved data unless you still have the savefiles to reload ...



Image

Java Heap (the long) :
Garbage collection is the VM process of de-allocating unused Java objects in the Java heap.The Java heap is where the objects of a Java program live. It is a repository for live objects, dead objects, and free memory. When an object can no longer be reached from any pointer in the running program, the object is garbage.

The JVM heap size determines how often and how long the VM spends collecting garbage. An acceptable rate for garbage collection is application-specific and should be adjusted after analyzing the actual time and frequency of garbage collections.

If you set a large heap size, full garbage collection is slower, but it occurs less frequently. If you set your heap size in accordance with your memory needs, full garbage collection is faster, but occurs more frequently.

The goal of tuning your heap size is to minimize the time that you spend doing garbage collection while maximizing the number of clients that you can handle at a given time.

To ensure maximum performance during benchmarking, you might set high heap size values to ensure that garbage collection does not occur during the entire run of the benchmark.

(the short): Just the memory allocation allowed for the program. Don't worry about it unless you have a problem
Attachments
Capture.gif
Capture.gif (34.96 KiB) Viewed 181 times
Chris21wen
Posts: 7459
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

RE: Happy New Year -- WitPTracker now at 1.5

Post by Chris21wen »

I'm continually getting error similar to this. The errors do not occur during the loading process now turn update but when I switch between witp and tracker. I have increased the max heap size to 256 as can be seen from the jpg. Any ideas?
Oh and I've deteted the old db files and reinitiated the java database.


Image
Attachments
error.jpg
error.jpg (193.54 KiB) Viewed 180 times
User avatar
Local Yokel
Posts: 1494
Joined: Sun Feb 04, 2007 12:55 pm
Location: Somerset, U.K.

RE: Happy New Year -- WitPTracker now at 1.5

Post by Local Yokel »

Chris,

I'm no expert on Java, but I understand the "-xmx" syntax you are using sets the maximum amount of memory that your program can employ, whereas the "-xms" syntax is used to fix the program's initial allocation of memory. Also, I don't know what the effect is of using the "<" and ">" to wrap the figure you supply as the memory amount parameter; I don't use these symbols myself.

A couple of points that may be worth considering.
Image
floydg
Posts: 2060
Joined: Sat Jun 26, 2004 10:08 pm
Location: Middletown, NJ

RE: Happy New Year -- WitPTracker now at 1.5

Post by floydg »

ORIGINAL: Chris H

I'm continually getting error similar to this. The errors do not occur during the loading process now turn update but when I switch between witp and tracker. I have increased the max heap size to 256 as can be seen from the jpg. Any ideas?
Oh and I've deteted the old db files and reinitiated the java database.


Image

Yes, these are real memory issues. And I agree with Yokel -- ditch the "<" and ">" and try setting the initial heap size (Xms) to 128m (default is 32m). Let us know if that works.
Delete the trackerdb.* files.
Copy the pwsdll.dll file from the game folder to the WitPTracker folder.
Try running the WitPTracker.bat again.
Ambassador
Posts: 1756
Joined: Fri Jan 11, 2008 5:15 pm
Location: Brussels, Belgium

RE: Happy New Year -- WitPTracker now at 1.5

Post by Ambassador »

Hi guys,
&nbsp;
The charts are really cool.[8D]
&nbsp;
One question, still.&nbsp; I've just installed CHS, does Tracker work with it okay ?&nbsp; I believe it's an information that probably lies somewhere in the 28 pages of the thread, but one of my resolutions for the new year is to lose a lot less time on forums...[:o]&nbsp; So, thanks for the future answer.[&o]
Chris21wen
Posts: 7459
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

RE: Happy New Year -- WitPTracker now at 1.5

Post by Chris21wen »

ORIGINAL: Ambassador

Hi guys,

The charts are really cool.[8D]

One question, still.  I've just installed CHS, does Tracker work with it okay ?  I believe it's an information that probably lies somewhere in the 28 pages of the thread, but one of my resolutions for the new year is to lose a lot less time on forums...[:o]  So, thanks for the future answer.[&o]

Works fine but the only thing you will need to import and possibly change the correct base-region definition file. These are stored in the region-mappings folder and can be imported by going to 'File/Import base-region definition.
Chris21wen
Posts: 7459
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

RE: Happy New Year -- WitPTracker now at 1.5

Post by Chris21wen »

ORIGINAL: floydg

Yes, these are real memory issues. And I agree with Yokel -- ditch the "<" and ">" and try setting the initial heap size (Xms) to 128m (default is 32m). Let us know if that works.

Thanks guys. There are not <> but (), I think changing the jpg resolution for the forum caused that. And yes, I should have removed them and I now have a very sore head and a hole in the wall.[8|]

I think the problem is the brackets not xmx but I'll experiment with both as I'm unsure why the minimum value set by xms should be important.


Ambassador
Posts: 1756
Joined: Fri Jan 11, 2008 5:15 pm
Location: Brussels, Belgium

RE: Happy New Year -- WitPTracker now at 1.5

Post by Ambassador »

Thank you, Chris.[:)]
floydg
Posts: 2060
Joined: Sat Jun 26, 2004 10:08 pm
Location: Middletown, NJ

RE: Happy New Year -- WitPTracker now at 1.5

Post by floydg »

ORIGINAL: Chris H

ORIGINAL: floydg

Yes, these are real memory issues. And I agree with Yokel -- ditch the "<" and ">" and try setting the initial heap size (Xms) to 128m (default is 32m). Let us know if that works.

Thanks guys. There are not <> but (), I think changing the jpg resolution for the forum caused that. And yes, I should have removed them and I now have a very sore head and a hole in the wall.[8|]

I think the problem is the brackets not xmx but I'll experiment with both as I'm unsure why the minimum value set by xms should be important.

Some times it's easier to accept that something works rather than understanding why it works... [;)]

But I'm glad you got it to work.
Delete the trackerdb.* files.
Copy the pwsdll.dll file from the game folder to the WitPTracker folder.
Try running the WitPTracker.bat again.
User avatar
boba
Posts: 144
Joined: Mon Oct 22, 2001 8:00 am
Location: Belgrade, Serbia

RE: Happy New Year -- WitPTracker now at 1.5

Post by boba »

I'd tried to install WitPTracker, but keep getting this message.
Any idea what's the problem?


Image
Attachments
error.jpg
error.jpg (40.52 KiB) Viewed 180 times
Image
User avatar
n01487477
Posts: 4759
Joined: Tue Feb 21, 2006 12:00 am

RE: Happy New Year -- WitPTracker now at 1.5

Post by n01487477 »

boba - TRacker for some reason has not loaded the aircraft data from the savefile. I suggest that you delete all the database files (trackerdb.*), recheck your tracker.properties file and then try again.

floydg
Posts: 2060
Joined: Sat Jun 26, 2004 10:08 pm
Location: Middletown, NJ

RE: Happy New Year -- WitPTracker now at 1.5

Post by floydg »

ORIGINAL: boba

I'd tried to install WitPTracker, but keep getting this message.
Any idea what's the problem?


Image

EDIT: Damian beat me to it... [:o]

It seems like it didn't initialize the database. Do you have files named "trackerdb.data" and three others that start with "trackerdb"? If so, delete all of them and start again. You should see a message "Initializing WitP Tracker database.".

Floyd
Delete the trackerdb.* files.
Copy the pwsdll.dll file from the game folder to the WitPTracker folder.
Try running the WitPTracker.bat again.
User avatar
boba
Posts: 144
Joined: Mon Oct 22, 2001 8:00 am
Location: Belgrade, Serbia

RE: Happy New Year -- WitPTracker now at 1.5

Post by boba »

ORIGINAL: floydg

EDIT: Damian beat me to it... [:o]

It seems like it didn't initialize the database. Do you have files named "trackerdb.data" and three others that start with "trackerdb"? If so, delete all of them and start again. You should see a message "Initializing WitP Tracker database.".

Floyd

It worked! Thanks guys!
Image
User avatar
Grotius
Posts: 5842
Joined: Fri Oct 18, 2002 5:34 pm
Location: The Imperial Palace.

RE: Happy New Year -- WitPTracker now at 1.5

Post by Grotius »

I'm new to Tracker, and I want to thank you guys for writing this tremendous program. The most important thing about it is that it makes the game more fun -- I just get a kick out of tracking how my pilots improve, or how fast ships repair, or how my Heavy Industry or Armaments stockpiles are developing. But it also helps me play better. If Tracker weren't warning me about oil and resource shortages at various bases, I'd have no clue. Thanks to Tracker, I now have a clear understanding of what I get when I upgrade ships, and what ships to move when. It's almost February 1 in my game as Japan against the AI, and by golly I have every DD in place (or sailing to a repair facility) for the February 1 upgrade.

I do have one minor question. Is there a way to view the stats/history of minor ships, like PC, PG, MSW, etc.? I ask because those ships have actually seen most of the action in my game -- they do constant ASW battle every turn, and I'm curious whether their XP has improved. The Ships screen lets us look at SS, APD, DD, DE, but I don't see MSW, PC, PG, and other small ships. Not a big deal, obviously.

Also, I second the motion for more graphs -- they're great! I'd especially like a graph showing changing levels of oil and resources, especially oil. I can see it go down about 9000 every turn, and Tracker tells me how many days I have left, but a visual reminder would be nice. :)

Finally, I'm still not entirely sure how to play around with the "calc" feature for merchant/naval yards. I'll probably figure it out.

Anyway, thanks for all your hard work on this terrific program.
Image
Ambassador
Posts: 1756
Joined: Fri Jan 11, 2008 5:15 pm
Location: Brussels, Belgium

RE: Happy New Year -- WitPTracker now at 1.5

Post by Ambassador »

Hi Damian & Floyd,
&nbsp;
It's a long time since the last idea I got, but here is a new one : an alert for the complete repair of a ship.&nbsp; That is, whenever a ship goes down from any damage to a sys/flt/fir 0/0/0, a warning would tell it in the Alert panel.&nbsp; Maybe only if said ship is in a port which has a repair yard.
&nbsp;
This would allow the user to put a ship in a port for repair, and not having to worry about it each turn.
&nbsp;
&nbsp;
Otherwise, keep up the good work.[:)]
Post Reply

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