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: witpDecoder for the Allies

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> War In The Pacific - Struggle Against Japan 1941 - 1945 >> RE: witpDecoder for the Allies Page: <<   < prev  4 5 [6] 7 8   next >   >>
Login
Message << Older Topic   Newer Topic >>
RE: witpDecoder for the Allies - 12/2/2006 7:14:12 PM   
Oliver Heindorf


Posts: 1911
Joined: 5/1/2002
From: Hamburg/Deutschland
Status: offline
well, like I assumed : I wasted time for nothing

I will come back when its version 1.5





Attachment (1)

_____________________________


(in reply to VSWG)
Post #: 151
RE: witpDecoder for the Allies - 12/2/2006 7:21:56 PM   
VSWG


Posts: 3432
Joined: 5/31/2006
From: Germany
Status: offline
Woos,

I did as you said and got the scenario database initialized, but loading a save produces exactly the same error as Oliver Heindorf just posted. Probably another CHS issue? Looks like your utility is the ultimate scenario debugger... 

_____________________________


(in reply to Oliver Heindorf)
Post #: 152
RE: witpDecoder for the Allies - 12/2/2006 8:59:09 PM   
Oliver Heindorf


Posts: 1911
Joined: 5/1/2002
From: Hamburg/Deutschland
Status: offline
quote:

ORIGINAL:  VSWG

Woos,

Looks like your utility is the ultimate scenario debugger...


thats exactly what I think - in this game above where I tried to use this tool, my opponent complains about errors in the game in the production system . (pbem stock scen 15)

sorry for sounding harrash before and destroying your party - language barrier. (and when I tried to run your tool, my noodles on the stove burned as I had totally forgotten them cooking there

_____________________________


(in reply to VSWG)
Post #: 153
RE: witpDecoder for the Allies - 12/2/2006 10:30:17 PM   
Woos

 

Posts: 683
Joined: 6/5/2005
From: Germany
Status: offline
quote:

ORIGINAL: Oliver Heindorf
also da kann ich mir auch linux drauf machen, das hat dann den selben charm

Now that explains the problem. You didn't read the fine print (see last bullet of post 71).

Besides that, not all errors stem from mods/WitP. Sometimes the internal checks catch what they were intended to do: an internal error. So the "bad LCU count" is witpDecoders fault and should have hit most Allied players (as I said, Allies are badly tested).
New version with fix is uploaded (same name and URL and same procedure to install but with another database format change). As additional goodie you get:





I liked the WitPShips.xls file someone posted a few weeks ago (sorry, forgot who it was) but it was for the wrong scenario. So I shamelessly stole the idea and integrated it into witpDecoder so now one can get the same information for all scenarios. The tab probably still has bugs (this is a release to fix the LCU count problem) and no documentation yet.

Concerning the ease of installation: If you want to write an installer for witpDecoder to ease everyone's job, great, just do it! Otherwise you will have to live with my plans for development which still include new functionality as the highest priority because that's what I want from the tool. Sooner or later database setup will be completely GUI driven (if only to reduce the support requests), but since setup is only a one time effort for everyone that's low priority.

Attachment (1)

< Message edited by Woos -- 12/2/2006 10:48:03 PM >

(in reply to Oliver Heindorf)
Post #: 154
RE: witpDecoder for the Allies - 12/2/2006 11:10:36 PM   
VSWG


Posts: 3432
Joined: 5/31/2006
From: Germany
Status: offline
I've downloaded the utility and the .jar file again, and now I can't initialize the DB anymore:



Same .csv files as I sent you. No witp.* files and no errorlog are created.

The classes-tab looks great, Woos.


_____________________________


(in reply to Woos)
Post #: 155
RE: witpDecoder for the Allies - 12/2/2006 11:17:52 PM   
ctangus


Posts: 2153
Joined: 10/13/2005
From: Boston, Mass.
Status: offline
I figured out my earlier goof (didn't rename the csv files). I'm now, with the new .jar, getting the exact same error message as VSWG.

By the way, thanks for your work on this Woos!

(in reply to VSWG)
Post #: 156
RE: witpDecoder for the Allies - 12/2/2006 11:53:35 PM   
Woos

 

Posts: 683
Joined: 6/5/2005
From: Germany
Status: offline
quote:

ORIGINAL: VSWG
I've downloaded the utility and the .jar file again, and now I can't initialize the DB anymore:

Sorry, that was the debug version, which will only run on my computer. Correctly generated version is uploaded.

BTW, does anyone know how to convince eclipse to do several things in a row for generating a release? I currently have to
1. Edit the debug flag.
2. Compile (if not done already)
3. Create the jar file
4. Run the optimizer/obfuscator.
Sounds like a makefile job (or an ant job in the java world) but what is an IDE for if it can't do that without the user generating a makefile?

(in reply to VSWG)
Post #: 157
RE: witpDecoder for the Allies - 12/3/2006 12:04:59 AM   
VSWG


Posts: 3432
Joined: 5/31/2006
From: Germany
Status: offline
Now it works! 

quote:

ORIGINAL:  Woos

BTW, does anyone know how to convince eclipse to do several things in a row for generating a release? I currently have to
1. Edit the debug flag.
2. Compile (if not done already)
3. Create the jar file
4. Run the optimizer/obfuscator.
Sounds like a makefile job (or an ant job in the java world) but what is an IDE for if it can't do that without the user generating a makefile?

Wow, you can speak Chinese, too!


_____________________________


(in reply to Woos)
Post #: 158
RE: witpDecoder for the Allies - 12/3/2006 12:27:25 AM   
ctangus


Posts: 2153
Joined: 10/13/2005
From: Boston, Mass.
Status: offline
Still some difficulties.

The save starts to load, then I get this:

Couldn't write things to the DB due to
java.sql.SQLException: Integrity constraint violation - no parent SYS_FK_105 table: Suffixes
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.as.a(Unknown Source)
at de.retsiemuab.witpDecoder.g.a(Unknown Source)
at de.retsiemuab.witpDecoder.U.b(Unknown Source)
at de.retsiemuab.witpDecoder.d.a(Unknown Source)
at de.retsiemuab.witpDecoder.aE.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at de.retsiemuab.witpDecoder.I.a(Unknown Source)
at de.retsiemuab.witpDecoder.m.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.ae.a(Unknown Source)
at de.retsiemuab.witpDecoder.Main.a(Unknown Source)
at de.retsiemuab.witpDecoder.Main.main(Unknown Source)

I don't know if it's relevant, but it's a Nik Mod game.

(in reply to VSWG)
Post #: 159
RE: witpDecoder for the Allies - 12/3/2006 2:23:41 AM   
Oliver Heindorf


Posts: 1911
Joined: 5/1/2002
From: Hamburg/Deutschland
Status: offline
I loaded the new jar file from the link from the page 5.

now I get a few messages that probably the leader bug has been struck my game ( about 5-6 messages)

and finally I get this one :








all from stock scen 15 game, no mods

Attachment (1)

< Message edited by Oliver Heindorf -- 12/3/2006 1:49:46 PM >


_____________________________


(in reply to Oliver Heindorf)
Post #: 160
RE: witpDecoder for the Allies - 12/3/2006 2:26:12 AM   
Knavey

 

Posts: 3037
Joined: 9/12/2002
From: Valrico, Florida
Status: offline
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.

< Message edited by Knavey -- 12/3/2006 3:15:31 AM >


_____________________________

x-Nuc twidget
CVN-71
USN 87-93
"Going slow in the fast direction"

(in reply to Oliver Heindorf)
Post #: 161
RE: New tool: WitpDecoder; No more spreadsheets! - 12/3/2006 3:11:37 AM   
Knavey

 

Posts: 3037
Joined: 9/12/2002
From: Valrico, Florida
Status: offline
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

_____________________________

x-Nuc twidget
CVN-71
USN 87-93
"Going slow in the fast direction"

(in reply to Helpless)
Post #: 162
RE: New tool: WitpDecoder; No more spreadsheets! - 12/3/2006 4:37:24 AM   
Knavey

 

Posts: 3037
Joined: 9/12/2002
From: Valrico, Florida
Status: offline
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

_____________________________

x-Nuc twidget
CVN-71
USN 87-93
"Going slow in the fast direction"

(in reply to Knavey)
Post #: 163
RE: New tool: WitpDecoder; No more spreadsheets! - 12/3/2006 10:28:52 AM   
Oliver Heindorf


Posts: 1911
Joined: 5/1/2002
From: Hamburg/Deutschland
Status: offline
ava -Djava.library.path=. -jar witpdecoder2.jar 3 PASSWORD

taken from post #141 here

< Message edited by Oliver Heindorf -- 12/3/2006 10:33:58 AM >


_____________________________


(in reply to Knavey)
Post #: 164
RE: witpDecoder for the Allies - 12/3/2006 1:41:37 PM   
Woos

 

Posts: 683
Joined: 6/5/2005
From: Germany
Status: offline
quote:

ORIGINAL: ctangus
java.sql.SQLException: Integrity constraint violation - no parent SYS_FK_105 table: Suffixes

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

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

(in reply to ctangus)
Post #: 165
RE: witpDecoder for the Allies - 12/3/2006 2:44:14 PM   
Roger Neilson II


Posts: 1517
Joined: 7/16/2006
From: Newcastle upon Tyne. England
Status: offline
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

_____________________________


(in reply to Woos)
Post #: 166
RE: witpDecoder for the Allies - 12/3/2006 2:52:54 PM   
ctangus


Posts: 2153
Joined: 10/13/2005
From: Boston, Mass.
Status: offline
quote:

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.

(in reply to Woos)
Post #: 167
RE: witpDecoder for the Allies - 12/3/2006 2:54:15 PM   
ctangus


Posts: 2153
Joined: 10/13/2005
From: Boston, Mass.
Status: offline
quote:

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"

(in reply to Roger Neilson II)
Post #: 168
RE: witpDecoder for the Allies - 12/3/2006 2:54:43 PM   
VSWG


Posts: 3432
Joined: 5/31/2006
From: Germany
Status: offline
quote:

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

Try this:

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.

_____________________________


(in reply to Roger Neilson II)
Post #: 169
RE: witpDecoder for the Allies - 12/3/2006 2:56:17 PM   
pjkeas

 

Posts: 11
Joined: 8/20/2006
Status: offline
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






< Message edited by pjkeas -- 12/3/2006 3:18:19 PM >

(in reply to Roger Neilson II)
Post #: 170
RE: witpDecoder for the Allies - 12/3/2006 3:19:32 PM   
Roger Neilson II


Posts: 1517
Joined: 7/16/2006
From: Newcastle upon Tyne. England
Status: offline
AAAAARGH!






Attachment (1)

_____________________________


(in reply to VSWG)
Post #: 171
RE: witpDecoder for the Allies - 12/3/2006 3:25:11 PM   
qgaliana

 

Posts: 311
Joined: 4/27/2005
Status: offline
The new version isn't loading my save game vs AI anymore. Wants a password for some mysterious reason?

quote:


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?
quote:


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

(in reply to pjkeas)
Post #: 172
RE: witpDecoder for the Allies - 12/3/2006 3:53:22 PM   
VSWG


Posts: 3432
Joined: 5/31/2006
From: Germany
Status: offline
quote:

ORIGINAL: Roger Neilson II

AAAAARGH!






You have to use the command prompt. Clicking on the .exe doesn't work.



_____________________________


(in reply to Roger Neilson II)
Post #: 173
RE: witpDecoder for the Allies - 12/3/2006 4:02:44 PM   
Woos

 

Posts: 683
Joined: 6/5/2005
From: Germany
Status: offline
quote:

ORIGINAL: qgaliana
java -Djava.library.path=. -jar witpdecoder2.jar 3

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?

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.

< Message edited by Woos -- 12/3/2006 4:17:36 PM >

(in reply to qgaliana)
Post #: 174
RE: witpDecoder for the Allies - 12/3/2006 4:28:50 PM   
pjkeas

 

Posts: 11
Joined: 8/20/2006
Status: offline
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



< Message edited by pjkeas -- 12/3/2006 4:44:18 PM >


_____________________________

A1W CGN-38 CVN-70 D1G CVN70 MARF CVN-73

(in reply to Roger Neilson II)
Post #: 175
RE: witpDecoder for the Allies - 12/3/2006 6:01:55 PM   
Roger Neilson II


Posts: 1517
Joined: 7/16/2006
From: Newcastle upon Tyne. England
Status: offline
YES!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thank you.

Roger

_____________________________


(in reply to pjkeas)
Post #: 176
RE: witpDecoder for the Allies - 12/3/2006 6:19:43 PM   
qgaliana

 

Posts: 311
Joined: 4/27/2005
Status: offline

quote:

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.

(in reply to Woos)
Post #: 177
RE: witpDecoder for the Allies - 12/3/2006 6:27:03 PM   
Roger Neilson II


Posts: 1517
Joined: 7/16/2006
From: Newcastle upon Tyne. England
Status: offline
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




Attachment (1)

_____________________________


(in reply to Roger Neilson II)
Post #: 178
RE: witpDecoder for the Allies - 12/3/2006 7:42:28 PM   
qgaliana

 

Posts: 311
Joined: 4/27/2005
Status: offline
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

(in reply to Roger Neilson II)
Post #: 179
RE: witpDecoder for the Allies - 12/3/2006 8:56:16 PM   
Oliver Heindorf


Posts: 1911
Joined: 5/1/2002
From: Hamburg/Deutschland
Status: offline
quote:

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

_____________________________


(in reply to Woos)
Post #: 180
Page:   <<   < prev  4 5 [6] 7 8   next >   >>
All Forums >> [Current Games From Matrix.] >> [World War II] >> War In The Pacific - Struggle Against Japan 1941 - 1945 >> RE: witpDecoder for the Allies Page: <<   < prev  4 5 [6] 7 8   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

0.203