WitpDecoder; Now providing some overview
Moderators: Joel Billings, wdolson, Don Bowen, mogami
RE: witpDecoder for the Allies
If we are going to try this as allies, do we use the readme in the .zip file? It isn't updated for the allies, but I would assume everything is the same?
Nevermind, got that part working.
Nevermind, got that part working.
x-Nuc twidget
CVN-71
USN 87-93
"Going slow in the fast direction"
CVN-71
USN 87-93
"Going slow in the fast direction"
RE: New tool: WitpDecoder; No more spreadsheets!
Ok...not sure exactly how I put my password into this thing! This is how my edited .bat file looks with my password in it, but its still telling me I am using the wrong password. Can someone look at theirs and tell me what I am doing wrong?
echo off
java -Djava.library.path=%CD% -jar witpdecoder2.jar PASSWORD
java -Djava.library.path=. -jar witpdecoder2.jar
pause
echo off
java -Djava.library.path=%CD% -jar witpdecoder2.jar PASSWORD
java -Djava.library.path=. -jar witpdecoder2.jar
pause
x-Nuc twidget
CVN-71
USN 87-93
"Going slow in the fast direction"
CVN-71
USN 87-93
"Going slow in the fast direction"
RE: New tool: WitpDecoder; No more spreadsheets!
Ok my latest attempt after reading all posts is this, but still get a password error. I am trying for an Allied PBEM game which is why there is a 0 in there. Any suggestions? Or perhaps someone would just cut and paste thier .bat file without the password (but show me exactly were it is supposed to be. [:)]
echo off
java -Djava.library.path=. -jar witpdecoder2.jar 0 PASSWORD
REM java -Djava.library.path=%CD% -jar witpdecoder2.jar PasswordHere
REM java -Djava.library.path=. -jar witpdecoder2.jar
pause
echo off
java -Djava.library.path=. -jar witpdecoder2.jar 0 PASSWORD
REM java -Djava.library.path=%CD% -jar witpdecoder2.jar PasswordHere
REM java -Djava.library.path=. -jar witpdecoder2.jar
pause
x-Nuc twidget
CVN-71
USN 87-93
"Going slow in the fast direction"
CVN-71
USN 87-93
"Going slow in the fast direction"
- Oliver Heindorf
- Posts: 1911
- Joined: Wed May 01, 2002 2:49 am
- Location: Hamburg/Deutschland
RE: New tool: WitpDecoder; No more spreadsheets!
ava -Djava.library.path=. -jar witpdecoder2.jar 3 PASSWORD
taken from post #141 here
taken from post #141 here
RE: witpDecoder for the Allies
This is caused by LCU 2638 (86th USA CD Bn) having a suffixID of 1 which is not allowed (and especially not for an LCU of type 11). Same problem later with LCU 2738 (144th USA CD Rgt).ORIGINAL: ctangus
java.sql.SQLException: Integrity constraint violation - no parent SYS_FK_105 table: Suffixes
Now the interesting thing is that in the .csv files ctangus sent me, both units have
1) a correct SuffixID
2) a different unit type (9 instead of 11)
3) a different name (86th US CD Battalion)
So either
a) ctangus used a newer version of the mod, which had the previous error fixed, for generating the csv files than the one used to start the game.
b) WitP is manipulating lcutypes, names and suffixes.
I would assume the former, so some versions of NikMod are currently not supported by witpDecoder (don't ask me when the error was fixed). The next version of witpDecoder will then read in even save games with broken suffixes (and I'm getting a bit annoyed at the amount of inconsistency in the save files).
- Roger Neilson II
- Posts: 1419
- Joined: Sun Jul 16, 2006 11:16 am
- Location: Newcastle upon Tyne. England
RE: witpDecoder for the Allies
My head hurts.... I got as far as witpload and am trying to run it from the command line - but this is not an area i like!
It says it cannot find the path?
What's wrong with my syntax anyone?
C:\Matrix Games\War in the Pacific\witpload\witpload /dscen /s15 /e
Roger
It says it cannot find the path?
What's wrong with my syntax anyone?
C:\Matrix Games\War in the Pacific\witpload\witpload /dscen /s15 /e
Roger

RE: witpDecoder for the Allies
ORIGINAL: Woos
So either
a) ctangus used a newer version of the mod, which had the previous error fixed, for generating the csv files than the one used to start the game.
b) WitP is manipulating lcutypes, names and suffixes.
I would assume the former.
Yea, that's probably the case. Since the game was started by my opponent, it's certainly possible we downloaded slightly different versions at different times.
Thanks for looking into it.
RE: witpDecoder for the Allies
ORIGINAL: Roger Neilson II
What's wrong with my syntax anyone?
C:\Matrix Games\War in the Pacific\witpload\witpload /dscen /s15 /e
Roger
Looks like you have one too many "witploads"
RE: witpDecoder for the Allies
Try this:ORIGINAL: Roger Neilson II
My head hurts.... I got as far as witpload and am trying to run it from the command line - but this is not an area i like!
It says it cannot find the path?
What's wrong with my syntax anyone?
C:\Matrix Games\War in the Pacific\witpload\witpload /dscen /s15 /e
Roger
1. Copy witpload.exe (just the .exe file) into the \witp\scen\ folder.
2. Open the command prompt. Go to \witp\scen\
3. Type in: "witpload /s15 /e" (to extract data for scen 15. For any other scenario, replace the "15" with the scenario number)
4. Done. Copy & rename the .csv files (they are in \witp\scen\)into the witpDecoder folder.

RE: witpDecoder for the Allies
To export scenario #15 from the default install directory (from the wiptload_readme.txt)
witpload /e /s015 /i
It you put the wiptload files in C:\Matrix Games\War in the Pacific\witpload
Then from cmd line cd C:\Matrix Games\War in the Pacific\witpload
then witpload /e /s015 /i (change the s015 to s016 or any scen)
This will extract the files from the
from C:\Matrix Games\War in the Pacific\scen
to C:\Matrix Games\War in the Pacific\witpload
And if you want to recompress them
then witpload /s015 /i
witpload /e /s015 /i
It you put the wiptload files in C:\Matrix Games\War in the Pacific\witpload
Then from cmd line cd C:\Matrix Games\War in the Pacific\witpload
then witpload /e /s015 /i (change the s015 to s016 or any scen)
This will extract the files from the
from C:\Matrix Games\War in the Pacific\scen
to C:\Matrix Games\War in the Pacific\witpload
And if you want to recompress them
then witpload /s015 /i
A1W CGN-38 CVN-70 D1G CVN70 MARF CVN-73
- Roger Neilson II
- Posts: 1419
- Joined: Sun Jul 16, 2006 11:16 am
- Location: Newcastle upon Tyne. England
RE: witpDecoder for the Allies
AAAAARGH!


- Attachments
-
- erroronwitpupload.gif (8.03 KiB) Viewed 180 times

RE: witpDecoder for the Allies
The new version isn't loading my save game vs AI anymore. Wants a password for some mysterious reason?
Here's my batch file same as before for Jap AI?
Couldn't write things to the DB due to
java.sql.SQLException: TsTsTs! Wrong Password you cheater.
at de.retsiemuab.witpDecoder.b.a(Unknown Source)
at de.retsiemuab.witpDecoder.as.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at de.retsiemuab.witpDecoder.B.a(Unknown Source)
at de.retsiemuab.witpDecoder.h.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at de.retsiemuab.witpDecoder.Y.a(Unknown Source)
at de.retsiemuab.witpDecoder.Main.a(Unknown Source)
at de.retsiemuab.witpDecoder.Main.main(Unknown Source)
Aborting a non-running Transaction. Most probably something is wrong
Couldn't shutdown DB.
java.sql.SQLException: Access is denied: Session is closed
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
at de.retsiemuab.witpDecoder.ai.a(Unknown Source)
at de.retsiemuab.witpDecoder.B.c(Unknown Source)
at de.retsiemuab.witpDecoder.B.a(Unknown Source)
at de.retsiemuab.witpDecoder.Z.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at de.retsiemuab.witpDecoder.B.b(Unknown Source)
at de.retsiemuab.witpDecoder.a.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at de.retsiemuab.witpDecoder.Y.a(Unknown Source)
at de.retsiemuab.witpDecoder.Main.a(Unknown Source)
at de.retsiemuab.witpDecoder.Main.main(Unknown Source)
Here's my batch file same as before for Jap AI?
echo off
REM java -Djava.library.path=%CD% -jar witpdecoder2.jar PasswordHere
java -Djava.library.path=. -jar witpdecoder2.jar 3
pause
RE: witpDecoder for the Allies
You have to use the command prompt. Clicking on the .exe doesn't work.ORIGINAL: Roger Neilson II
AAAAARGH!
![]()


RE: witpDecoder for the Allies
That is strange, because it works nicely here. Do you have any garbage behind the "3" which could be interpreted as another argument (specifying a password when none is needed also counts as "Wrong password")? Is the save file you are trying to load not from the game you think it is from?ORIGINAL: qgaliana
java -Djava.library.path=. -jar witpdecoder2.jar 3
You did download the witpDecoder2b.jar file and overwrote the witpDecoder2.jar file (note that there is no b) with it? Otherwise nationality specification is not supported and your "3" is seen as password.
RE: witpDecoder for the Allies
Roger
3 ways to use the RUN box
1. (Just type in the run box, Like I think you did)
use " " for the path (when using first VSWG's instructions)
(assuming you copied witpload.exe into the \scen dir)
"C:\Matrix Games\War in the Pacific\SCEN\witpload" /e /s015
note: the " " covers the path and the command and does not include the /e /s015
this will run super fast (you might not see it)
or
2. Try using the command prompt.
in the "RUN" box type cmd
this will bring up a fake dos box... (the command line)
then C:\Matrix Games\War in the Pacific\SCEN\witpload /e /s015 (no " " needed)
this will show the extracts as VSWG just displayed..
(again assuming you copied witpload.exe into the \scen dir)
3.
In my above example I dont need to copy anything.. (but its a 2 part proceedure)
I cd to where ever the witpload files are.
then run the command adding an /i to the end
first
cd C:\Matrix Games\War in the Pacific\witpload
(or where ever you put unzipped the witpload files)
then
witpload /e /s015 /i
3 ways to use the RUN box
1. (Just type in the run box, Like I think you did)
use " " for the path (when using first VSWG's instructions)
(assuming you copied witpload.exe into the \scen dir)
"C:\Matrix Games\War in the Pacific\SCEN\witpload" /e /s015
note: the " " covers the path and the command and does not include the /e /s015
this will run super fast (you might not see it)
or
2. Try using the command prompt.
in the "RUN" box type cmd
this will bring up a fake dos box... (the command line)
then C:\Matrix Games\War in the Pacific\SCEN\witpload /e /s015 (no " " needed)
this will show the extracts as VSWG just displayed..
(again assuming you copied witpload.exe into the \scen dir)
3.
In my above example I dont need to copy anything.. (but its a 2 part proceedure)
I cd to where ever the witpload files are.
then run the command adding an /i to the end
first
cd C:\Matrix Games\War in the Pacific\witpload
(or where ever you put unzipped the witpload files)
then
witpload /e /s015 /i
A1W CGN-38 CVN-70 D1G CVN70 MARF CVN-73
- Roger Neilson II
- Posts: 1419
- Joined: Sun Jul 16, 2006 11:16 am
- Location: Newcastle upon Tyne. England
RE: witpDecoder for the Allies
ORIGINAL: Woos
You did download the witpDecoder2b.jar file and overwrote the witpDecoder2.jar file (note that there is no b) with it? Otherwise nationality specification is not supported and your "3" is seen as password.
My mistake, I thought the allied version had been included in an upload to the main zip file - works now, thanks.
- Roger Neilson II
- Posts: 1419
- Joined: Sun Jul 16, 2006 11:16 am
- Location: Newcastle upon Tyne. England
RE: witpDecoder for the Allies
And twenty minutes later I have the utility running and WOWthis is a current PBEM game with me as the Allies........
Thank you WOOS!
Now i just have to sort my leaders out......
Roger

Thank you WOOS!
Now i just have to sort my leaders out......
Roger

- Attachments
-
- inconsistencies.gif (19.77 KiB) Viewed 180 times

RE: witpDecoder for the Allies
Woos,
Two quick observations:
Inconsistencies lists ship captains leading TF's, which should be ok. But maybe there's no easy way to allow that.
Air leaders seem odd. None show as being assigned to any units (basically a stock 15 scenario I'm looking at). A quick spot check of Canadians for example (nice and short): I see the currently assigned leaders, but their current assignment is blank. The leaders listed in the game when I try to change an RCAF air group commander don't appear in the decoder. Something funky with leader vs pilots?
Sorry if you've already covered this, thread is getting a bit long to reread.
Thanks
Two quick observations:
Inconsistencies lists ship captains leading TF's, which should be ok. But maybe there's no easy way to allow that.
Air leaders seem odd. None show as being assigned to any units (basically a stock 15 scenario I'm looking at). A quick spot check of Canadians for example (nice and short): I see the currently assigned leaders, but their current assignment is blank. The leaders listed in the game when I try to change an RCAF air group commander don't appear in the decoder. Something funky with leader vs pilots?
Sorry if you've already covered this, thread is getting a bit long to reread.
Thanks
- Oliver Heindorf
- Posts: 1911
- Joined: Wed May 01, 2002 2:49 am
- Location: Hamburg/Deutschland
RE: witpDecoder for the Allies
ORIGINAL: Woos
The next version of witpDecoder will then read in even save games with broken suffixes (and I'm getting a bit annoyed at the amount of inconsistency in the save files).
Is this the reason why here it doesnt work ?
I tried it now for 2 of my pbem games and always get errors like above posted [:(]