witpDecoder 0.5 released

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
Yava
Posts: 2129
Joined: Fri Jul 21, 2006 10:36 am
Location: Poland/Kolobrzeg

RE: Fixing some problems with 0.5a

Post by Yava »

ORIGINAL: Woos

A new version (0.5a) is available from http://extweb.retsiemuab.de/witp/witpdecoder0.5a.zip . It is the whole zip file (and not only the jar) since I also included a new version of hsqldb.jar (although that didn't help with the Load Batch problem)).

Fixed:
  • CHS 157/158 problem: Now witpDecoder simply uses 127 as durability and warns you about it.
  • Scenario 2 & 5: Missing HQs for Airgroups are now allowed, so the scenarios should load. Be aware that if all planes of one type have missing HQs, they will only show in the "AC classes" tab if "All nationalities" are selected.
  • Load Batch might now work. I could reproduce Martti's problems with the Allies and "fixed" it by increasing the checkpoint frequency. Of course that is not really a fix but it seems to work now.
  • On special request from VSWG the numbers of Ships Available/Building/Sunk are now listed per class in the "Ship classes" tab. Note that for witpdecoder each update is an own class, so to see all ship, select the "All" choice for "Availability". Otherwise you will not see ships building for future updates and (once you have updated) won't see ships of out-of-date classes anymore.


And so it works [:)]
Image
Art by Dixie.
User avatar
kfmiller41
Posts: 1063
Joined: Tue Mar 25, 2003 9:00 pm
Location: Saint Marys, Ga
Contact:

RE: witpDecoder 0.5 released

Post by kfmiller41 »

could someone please post or explain how to get a password set up in wipdecoder please. I am having trouble with it for some reason[&:]
You have the ability to arouse various emotions in me: please select carefully.
User avatar
Nomad
Posts: 7273
Joined: Wed Sep 05, 2001 8:00 am
Location: West Yellowstone, Montana

RE: witpDecoder 0.5 released

Post by Nomad »

try this Ken

echo off
REM java -Djava.library.path=%CD% -jar witpdecoder2.jar PasswordHere
java -Djava.library.path=. -jar witpdecoder2.jar password

Also note, you can not use a password on the turn I sent. You will need to open
the game file, setting your password, and then save it to a slot. You can then use
the saved file. the file I sent will NOT have your password in it yet - next turn it
will and you can use it.
User avatar
kfmiller41
Posts: 1063
Joined: Tue Mar 25, 2003 9:00 pm
Location: Saint Marys, Ga
Contact:

RE: witpDecoder 0.5 released

Post by kfmiller41 »

worked for my other game as allies, thanks a bunch

You have the ability to arouse various emotions in me: please select carefully.
User avatar
VSWG
Posts: 3217
Joined: Wed May 31, 2006 5:04 pm
Location: Germany

RE: Fixing some problems with 0.5a

Post by VSWG »

ORIGINAL: Woos

A new version (0.5a) is available from http://extweb.retsiemuab.de/witp/witpdecoder0.5a.zip . It is the whole zip file (and not only the jar) since I also included a new version of hsqldb.jar (although that didn't help with the Load Batch problem)).

Fixed:
  • CHS 157/158 problem: Now witpDecoder simply uses 127 as durability and warns you about it.
  • Scenario 2 & 5: Missing HQs for Airgroups are now allowed, so the scenarios should load. Be aware that if all planes of one type have missing HQs, they will only show in the "AC classes" tab if "All nationalities" are selected.
  • Load Batch might now work. I could reproduce Martti's problems with the Allies and "fixed" it by increasing the checkpoint frequency. Of course that is not really a fix but it seems to work now.
  • On special request from VSWG the numbers of Ships Available/Building/Sunk are now listed per class in the "Ship classes" tab. Note that for witpdecoder each update is an own class, so to see all ship, select the "All" choice for "Availability". Otherwise you will not see ships building for future updates and (once you have updated) won't see ships of out-of-date classes anymore.
Thank you very much! [:)]
Image
User avatar
VSWG
Posts: 3217
Joined: Wed May 31, 2006 5:04 pm
Location: Germany

RE: witpDecoder 0.5 released

Post by VSWG »

ORIGINAL: Eskil

It is working now as well apart from tab with historical ship movement but that is most likely due to user error. This information is only available once you have loaded multiple save files, right?
Yes.
If this is the case, what's a good strategy to handle to the save slots? I read somewhere that you get get auto saves weekly and daily, are these overwritten or renamed so you can use those?
I guess it doesn't matter if you're using an auto save slot or a regular slot. However, you must load every single turn into witpdecoder in order to make full use of the ship movement tab. You can do this manually, or use the batch load feature, but you need a save for every turn.
Image
Eskil
Posts: 25
Joined: Sat Sep 18, 2004 9:17 pm

RE: witpDecoder 0.5 released

Post by Eskil »

ORIGINAL: VSWG

ORIGINAL: Eskil

If this is the case, what's a good strategy to handle to the save slots? I read somewhere that you get get auto saves weekly and daily, are these overwritten or renamed so you can use those?
I guess it doesn't matter if you're using an auto save slot or a regular slot. However, you must load every single turn into witpdecoder in order to make full use of the ship movement tab. You can do this manually, or use the batch load feature, but you need a save for every turn.

Right.. Perhaps something to use in a larger scenario in that case..

/Eskil
User avatar
FeurerKrieg
Posts: 3400
Joined: Wed Jun 15, 2005 8:43 pm
Location: Denver, CO

RE: witpDecoder 0.5 released

Post by FeurerKrieg »

Does WITPDecorder care whether a turn has been ended or not? I'd like batch in all my old turns, but the files I have are the ones that I email off to my opponent.

Thanks
Image
Upper portion used with permission of www.subart.net, copyright John Meeks
Woos
Posts: 277
Joined: Sun Jun 05, 2005 5:12 pm
Location: Germany

RE: witpDecoder 0.5 released

Post by Woos »

In principle it should work. But I never tried it. You should get something similar to as if you read in a save game you saved directly before turn execution in an AI game. And that works.
Mistmatz
Posts: 1399
Joined: Sun Oct 16, 2005 8:56 pm

RE: witpDecoder 0.5 released

Post by Mistmatz »

I believe the decoder uses WitPload to extract data in csv format from the scenario files. Those files are then used for setting up a database on top of which the turns are loaded.

Unfortunately RHS scenario 070 is not converted correctly by WitPload and setting up the database is not working therefore. This can easily be seen when the 'delay' fields are checked, most of them are wrong, although the format (yymmdd) is correct.
El Cid guided me to WitPExcel which generates a single huge file with all the data and the entries seem to be correct.

I was now thinking if it would be possible to input a fileset (csv) into the decoder that I extract more or less manually from the WitPExcel database rather than using the standard method. Would this be possible?
If you gained knowledge through the forum, why not putting it into the AE wiki?

http://witp-ae.wikia.com/wiki/War_in_th ... ition_Wiki

Woos
Posts: 277
Joined: Sun Jun 05, 2005 5:12 pm
Location: Germany

RE: witpDecoder 0.5 released

Post by Woos »

ORIGINAL: Mistmatz
I believe the decoder uses WitPload to extract data in csv format from the scenario files. Those files are then used for setting up a database on top of which the turns are loaded.
Correct.
I was now thinking if it would be possible to input a fileset (csv) into the decoder that I extract more or less manually from the WitPExcel database rather than using the standard method. Would this be possible?
Yes, albeit it sounds like a lot of work. Although I guess if it is really a problem of witpload your approach is the only way to resolve it since I doubt witpload will be fixed so it also works with all mods. But you can of course ask.
Otherwise follow the "remove witpload.exe" approach described in section 3.3 of the doc to load the hand generated .csv files into witpDecoder.
User avatar
Historiker
Posts: 4742
Joined: Wed Jul 04, 2007 8:11 pm
Location: Deutschland

RE: witpDecoder 0.5 released

Post by Historiker »

Could not create or initialize the database

java.syl.SQLException: bad TEXT table source file - line number: 271
java.lang.NumberFOrmatException For input string: "MG" in statement [
SET TABLE WITPDEV SOURCE "WITPdec.csv;ignore_first=true"]
what to do?
Without any doubt: I am the spawn of evil - and the Bavarian Beer Monster (BBM)!

There's only one bad word and that's taxes. If any other word is good enough for sailors; it's good enough for you. - Ron Swanson
Woos
Posts: 277
Joined: Sun Jun 05, 2005 5:12 pm
Location: Germany

RE: witpDecoder 0.5 released

Post by Woos »

> java.lang.NumberFOrmatException For input string: "MG" in statement [
> SET TABLE WITPDEV SOURCE "WITPdec.csv;ignore_first=true"]

Did you type that by hand? Because normally the file is called WITPdev.csv, not WITPdec.csv.

If that is not the problem, you have most probably some device name with an apostrophe (') in it without proper inclusion in double quotes (i.e. not following the proper .csv way). Should be around line 271 in the file and have an MG in it. You can solve it by editing the csv file to either put quotes around the name or remove the apostrophe. Then follow the "remove witpload.exe" from section 3.3 in the documentation.
User avatar
Nomad
Posts: 7273
Joined: Wed Sep 05, 2001 8:00 am
Location: West Yellowstone, Montana

RE: witpDecoder 0.5 released

Post by Nomad »

I am not sure what senario you are using Historiker, but I had a simular problem with a file I made and used things like 3" mortar. It really confuses things in the CSV file. To me, it looks like you have something like .5" MG in your device table.
User avatar
Historiker
Posts: 4742
Joined: Wed Jul 04, 2007 8:11 pm
Location: Deutschland

RE: witpDecoder 0.5 released

Post by Historiker »

I wanted to use it for 075 RHS EOS
I used the database editor to change the 271 and removed the " " in it.
Now this message is coming:

Image
Attachments
fehlermeldung.jpg
fehlermeldung.jpg (27.5 KiB) Viewed 230 times
Without any doubt: I am the spawn of evil - and the Bavarian Beer Monster (BBM)!

There's only one bad word and that's taxes. If any other word is good enough for sailors; it's good enough for you. - Ron Swanson
User avatar
Nomad
Posts: 7273
Joined: Wed Sep 05, 2001 8:00 am
Location: West Yellowstone, Montana

RE: witpDecoder 0.5 released

Post by Nomad »

As far as I know, WitPDecoder will not work with RHS. It doesn't like circular paths in the upgrades or something.

But, you can look up ship class 800 with the editor and see. Most likely it points to an undefined ship class slot - just change it to point to itself and try again.
Mistmatz
Posts: 1399
Joined: Sun Oct 16, 2005 8:56 pm

RE: witpDecoder 0.5 released

Post by Mistmatz »

ORIGINAL: Historiker

I wanted to use it for 075 RHS EOS
I used the database editor to change the 271 and removed the " " in it.
Now this message is coming:
...

I learned that WitPload does not handle the RHS scenario files correctly (at least RHSCVO scen. 70). WitPExcel on the other hand seems to work but is not compatible with the decoder.

When I have some spare time I'll try to input the WitPExel data into the decoder, I believe this should work, see also my above postings.

Btw. initially I had the same message you have historiker and it was _NOT_ due to circular upgrade paths, or at least not with class 800.
If you gained knowledge through the forum, why not putting it into the AE wiki?

http://witp-ae.wikia.com/wiki/War_in_th ... ition_Wiki

User avatar
Historiker
Posts: 4742
Joined: Wed Jul 04, 2007 8:11 pm
Location: Deutschland

RE: witpDecoder 0.5 released

Post by Historiker »

Alles klar, danke! Dann werde ich es wohl per Hand machen müssen :(
Without any doubt: I am the spawn of evil - and the Bavarian Beer Monster (BBM)!

There's only one bad word and that's taxes. If any other word is good enough for sailors; it's good enough for you. - Ron Swanson
User avatar
Historiker
Posts: 4742
Joined: Wed Jul 04, 2007 8:11 pm
Location: Deutschland

RE: witpDecoder 0.5 released

Post by Historiker »

ORIGINAL: Nomad

As far as I know, WitPDecoder will not work with RHS. It doesn't like circular paths in the upgrades or something.

But, you can look up ship class 800 with the editor and see. Most likely it points to an undefined ship class slot - just change it to point to itself and try again.
seems so :(
with CHS it works fine! [:@]
Without any doubt: I am the spawn of evil - and the Bavarian Beer Monster (BBM)!

There's only one bad word and that's taxes. If any other word is good enough for sailors; it's good enough for you. - Ron Swanson
User avatar
Historiker
Posts: 4742
Joined: Wed Jul 04, 2007 8:11 pm
Location: Deutschland

RE: witpDecoder 0.5 released

Post by Historiker »

ORIGINAL: Mistmatz

ORIGINAL: Historiker

I wanted to use it for 075 RHS EOS
I used the database editor to change the 271 and removed the " " in it.
Now this message is coming:
...

I learned that WitPload does not handle the RHS scenario files correctly (at least RHSCVO scen. 70). WitPExcel on the other hand seems to work but is not compatible with the decoder.

When I have some spare time I'll try to input the WitPExel data into the decoder, I believe this should work, see also my above postings.

Btw. initially I had the same message you have historiker and it was _NOT_ due to circular upgrade paths, or at least not with class 800.
What would have to be done to make the Decoder usable for RHS?
Without any doubt: I am the spawn of evil - and the Bavarian Beer Monster (BBM)!

There's only one bad word and that's taxes. If any other word is good enough for sailors; it's good enough for you. - Ron Swanson
Post Reply

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