Witpchk Program Does Not Work

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

Post Reply
User avatar
BananaConvention
Posts: 747
Joined: Wed Jan 19, 2022 9:04 pm
Location: March ARB, CA

Witpchk Program Does Not Work

Post by BananaConvention »

Hello,

I am trying to get witpchk program found in the TOOLS folder to work. When I double click it, nothing happens. It doesn't open a window, launch, or do anything. The readme states:

To run the program:
witpchkAE.exe /d <location of scenario base> /s <scenario number> /i [use default directory]

Example:
To check scenario number 26 in the default directory, run witpchkAE.exe /i /s 26.


However, I don't even get to the point where I can do this. Does anyone know how to make this work?
Jochen Heiden

My WitP Tutorial Playlist:
https://youtube.com/playlist?list=PLFaQ ... Q9HG1hSiAG

Join my Discord Server! Over 1600 members and growing DAILY!
https://discord.gg/v4A9STzW7R
User avatar
LargeSlowTarget
Posts: 4963
Joined: Sat Sep 23, 2000 8:00 am
Location: Hessen, Germany - now living in France

Re: Witpchk Program Does Not Work

Post by LargeSlowTarget »

You need to run the tool in the DOS Command Prompt.

Push the Window key and the r key at the same time to open the "Execute" panel, then type "cmd" to open the DOS Command Prompt.

There you can run the DOS command line witpchkAE.exe /d <location of scenario base> /s <scenario number> /i [use default directory]
User avatar
RangerJoe
Posts: 19131
Joined: Mon Nov 16, 2015 2:39 pm
Location: Who knows?

Re: Witpchk Program Does Not Work

Post by RangerJoe »

If you know how to do so and if you were to use it frequently, you might want to build a batch file to run this and any other DOS program with just one click. It may even be set up to ask for the save or other information needed.
Seek peace but keep your gun handy.

I'm not a complete idiot, some parts are missing! :o

“Illegitemus non carborundum est (“Don’t let the bastards grind you down”).”
:twisted: ; Julia Child


Image
User avatar
BananaConvention
Posts: 747
Joined: Wed Jan 19, 2022 9:04 pm
Location: March ARB, CA

Re: Witpchk Program Does Not Work

Post by BananaConvention »

LargeSlowTarget wrote: Fri Mar 29, 2024 10:44 pm You need to run the tool in the DOS Command Prompt.

Push the Window key and the r key at the same time to open the "Execute" panel, then type "cmd" to open the DOS Command Prompt.

There you can run the DOS command line witpchkAE.exe /d <location of scenario base> /s <scenario number> /i [use default directory]
I don't know much about using the cmd prompts, could you type out an example line to show me how to format the text I need to type?
Jochen Heiden

My WitP Tutorial Playlist:
https://youtube.com/playlist?list=PLFaQ ... Q9HG1hSiAG

Join my Discord Server! Over 1600 members and growing DAILY!
https://discord.gg/v4A9STzW7R
Chris21wen
Posts: 7708
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: Witpchk Program Does Not Work

Post by Chris21wen »

Batch files are simply text files with a different extension (.bat) that allows windows to interprept what is in them as commands. To create one from scratch:-
Create a raw txt file with notepad.
Rename it *.bat. Windows will complain you are changing the extension. Ignore it.
Right click on it and edit the contents as if it was a txt file.

This what you want?
First copy witpchk.exe into your scenario folder. This will save faffing with /d or /i switches.
Copy the attached text file witpchkAE.txt to anywhere and then rename it witpchkAE.bat.
Run it. The output of scenario s001 will be displayed in a cmd box.

Notes
You will need to edit the bat file for your scenario. To do so just change s001 to s###.
Any line beginning with rem are remarks telling you what the command above that line does
Attachments
witpchkAE.txt
(405 Bytes) Downloaded 35 times
Post Reply

Return to “Scenario Design and Modding”