WITE Situational Map Generator

Post new scenarios and mods here to share with other gamers.

Moderator: Joel Billings

Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Goran,
You did this with WITE1 commander's report?
The most dangerous thing in the combat zone is an officer
with a map.
goranw
Posts: 1738
Joined: Tue Oct 23, 2001 8:00 am
Location: Uppsala,Sweden
Contact:

Re: WITE Situational Map Generator

Post by goranw »

Hi!
No, I didnt. Its just my usual map manipulation.
Goran
goranw
Posts: 1738
Joined: Tue Oct 23, 2001 8:00 am
Location: Uppsala,Sweden
Contact:

Re: WITE Situational Map Generator

Post by goranw »

Hi!
I am so inspired by your usuable situational map generator.
Tried it with many different maps.
It would be a great gain if it was possible to have a slightly bigger
resolution like I have seen on WitE-1 implications. Is it possible?
Regards
Goran
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

I will try but I can't promise it will be soon as I have very little time available.
The most dangerous thing in the combat zone is an officer
with a map.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

New version of WITE Situational Map Generator has been released.

What it does?

It will produce maps showing your progress throughout the game, like this:
example.jpg
example.jpg (150.9 KiB) Viewed 749 times
How it looks ?

After launching you may
(1) choose a game (WITE 2 is a default)
(2) select a directory with background images (let's call it MAP FOLDER)
(3) select CSV file with data
(4) select where you want your generated maps to be saved to
(5) customize look
(6) watch messages when application is working
(7) click "Create map" to merge your data and background image into situational map
ui.jpg
ui.jpg (44.4 KiB) Viewed 749 times
What you need?

To get it to work you need
- the program itself - check for actual download link in first post of this thread: https://www.matrixgames.com/forums/view ... 2#p4924472
- some background image
default one: https://drive.google.com/file/d/1hSLKZy ... sp=sharing
Gewässer karte: https://drive.google.com/file/d/1jghdfT ... sp=sharing
- CSV file with commander's report

Commander's report

To get CSV file with commander's report, open your game, load your save and in any moment during your turn go to "Info Screens", then choose "Show Commander's Report screen":
report_button.jpg
report_button.jpg (29.29 KiB) Viewed 749 times
Then in upper right corner find "Export" button and click it:
report_content.jpg
report_content.jpg (14.1 KiB) Viewed 749 times
Commander's Report is saved as a CSV file in your game's directory e.g. in D:\Matrix Games\Gary Grigsby's War in the East 2\Dat\CSV\Commander's Report
or if you use Steam version it may be something like this:
D:\Program Files (x86)\Steam\steamapps\common\Gary Grigsby's War in the East 2\Dat\CSV\Commander's Report

Background images

Download one or both of those:
default one: https://drive.google.com/file/d/1hSLKZy ... sp=sharing
Gewässer karte: https://drive.google.com/file/d/1jghdfT ... sp=sharing

Save them to the location of your choice. It will be your MAP FOLDER.

The program

Download jar: https://drive.google.com/file/d/1o6FU55 ... sp=sharing
Save it where you want.
Double-click to launch.
If double-click doesn't work:
- be sure to install Java
- double-click again
If still doesn't work:
- right-click the file, choose "Open with...", choose Java platform binary (or similar).
If still doesn't work:
- in Windows open Start menu, type "cmd", choose "Command prompt" ( https://www.howtogeek.com/235101/10-way ... indows-10/ )
- in the command prompt type "java --version"
- see if java version appears (if not, you have to properly install Java in your system)
Last edited by Niedowidek_slith on Tue Apr 01, 2025 2:38 pm, edited 2 times in total.
The most dangerous thing in the combat zone is an officer
with a map.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Example usage for WITE 2

I download map, e.g. default one: https://drive.google.com/file/d/1hSLKZy ... sp=sharing
I save it to D:\_wite\map

I export Commander's Report from WITE 2. I find it in D:\Program Files (x86)\Steam\steamapps\common\Gary Grigsby's War in the East 2\Dat\CSV\Commander's Report and copy to D:\_wite\csv

I download jar - check for actual download link in first post of this thread: https://www.matrixgames.com/forums/view ... 2#p4924472
I save it anywhere I want.
I double-click on it.
It opens:
ui.jpg
ui.jpg (44.4 KiB) Viewed 747 times
WITE 2 is chosen by default.

I select directory with downloaded map (2) i.e. D:\_wite\map
Default map, as the only one available, will be automatically selected.

I tick "Select stats file from custom location" (3) and then click "Select stats file" and find the CSV file I saved before in D:\_wite\csv

I click "Select output directory" (4). It will be D:\_wite\output

I leave default "Icons" selection in (5)

I click "Create map" (7)

Messages appear in (6) finished with "Map images created".
ui_selected.png
ui_selected.png (34.42 KiB) Viewed 747 times
Fragment of the result from D:\_wite\output
created.jpg
created.jpg (182.47 KiB) Viewed 747 times
Last edited by Niedowidek_slith on Tue Apr 01, 2025 2:38 pm, edited 2 times in total.
The most dangerous thing in the combat zone is an officer
with a map.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Example of usage for WITE 1

I export Commander's Report from WITE 1.


I download jar - check for actual download link in first post of this thread: https://www.matrixgames.com/forums/view ... 2#p4924472
I save it anywhere I want.
I double-click on it.
It opens.
I choose "WITE 1".

I select "Game directory", i.e. folder where your WITE 1 is installed. For me it's D:\Matrix Games\Gary Grigsby's War in the East

I untick "Select stats file from custom location". I should see a list of available Commander's reports. I choose one I exported earlier.

I choose "output directory" (anywhere will do).

I leave "Map zoom 4" and "Icons".

I click "Create map".
wite1_ui.jpg
wite1_ui.jpg (40.74 KiB) Viewed 745 times
Fragment of generated image:
wite1_result.jpg
wite1_result.jpg (168.83 KiB) Viewed 745 times
Last edited by Niedowidek_slith on Tue Apr 01, 2025 2:38 pm, edited 2 times in total.
The most dangerous thing in the combat zone is an officer
with a map.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

New feature: map customization

This version let's you add your own map and configure it to work with the app.

There's example:
Gewasser Karte: https://drive.google.com/file/d/1jghdfT ... sp=sharing
Configuration file for Gewasser Karte: https://drive.google.com/file/d/1Ref5ee ... sp=sharing

Configuration file is in JSON format:
{
"label" : "Gewasser",
"filename" : "Gewasser.jpg",
"yStartingHex" : "93",
"yEndingHex" : "243",
"xStartingHex" : "153",
"xEndingHex" : "334"
}
label - it's how it appear in the app
filename - name of the background image
yStartingHex - the uppermost hex in Y axis
yEndingHex - the lowest hex Y axis
xStartingHex - the leftmost hex in X axis
xEndingHex- the rightmost hex X axis

To determine starting and ending hexes you need to compare your background image with in-game map and see there in-game coordinates (hover the mouse to see popup box with X and Y position of a hex).
position.jpg
position.jpg (18.86 KiB) Viewed 743 times
Both image and configuration files have to be in the same folder.
The most dangerous thing in the combat zone is an officer
with a map.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

New feature: map customization

As I wrote before: both image and configuration files have to be in the same folder.
Preferably in the folder with other background images that you selected via "Select directory with downloaded maps".
Below default map (moose...) is placed alongside custom pair of background image and JSON (Gewasser.jpg and Gewasser.json).
custom_map.jpg
custom_map.jpg (10.03 KiB) Viewed 698 times
This way the app will recognize JSON files and add an option to select it.
ui_custom_map.jpg
ui_custom_map.jpg (34.17 KiB) Viewed 698 times
The most dangerous thing in the combat zone is an officer
with a map.
IckeFleischer
Posts: 8
Joined: Sat Jul 27, 2024 8:55 pm

Re: WITE Situational Map Generator

Post by IckeFleischer »

Hmm, I have a problem, it don't work.

Same with Gewasser
Attachments
2025-05-11_20h04_01.png
2025-05-11_20h04_01.png (52.26 KiB) Viewed 571 times
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Hi,
Log says that the program didn't find the folder containing commander's reports. Could you double check if you selected a proper folder with CSV file inside?
I will recheck it on my end tomorrow.
Niedowidek
The most dangerous thing in the combat zone is an officer
with a map.
IckeFleischer
Posts: 8
Joined: Sat Jul 27, 2024 8:55 pm

Re: WITE Situational Map Generator

Post by IckeFleischer »

i had to pick the right file and not only the folder
IckeFleischer
Posts: 8
Joined: Sat Jul 27, 2024 8:55 pm

Re: WITE Situational Map Generator

Post by IckeFleischer »

It seems that the Program scan for the game directory and only find the Map folder.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Ah, yes. "Game directory" is misleading if you use the program to generate map for WITE2's CSV.

It should be called "Map directory" as WITE'2 game directory is not needed to generate a map. I'll correct that.

You should tick "Select stats file from custom location" and then select CSV file exported from WITE2.
The most dangerous thing in the combat zone is an officer
with a map.
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

I uploaded executable version 2.0.5 with corrected label: https://drive.google.com/file/d/10BqR6x ... drive_link
Apart from that it seems to work fine if a proper CSV file, map folder and output folder are selected (for WITE2).
The most dangerous thing in the combat zone is an officer
with a map.
IckeFleischer
Posts: 8
Joined: Sat Jul 27, 2024 8:55 pm

Re: WITE Situational Map Generator

Post by IckeFleischer »

Niedowidek_slith wrote: Mon May 12, 2025 9:47 pm I uploaded executable version 2.0.5 with corrected label: https://drive.google.com/file/d/10BqR6x ... drive_link
Apart from that it seems to work fine if a proper CSV file, map folder and output folder are selected (for WITE2).
thx, but it didnt work. am i using a Version from WirE2 witch is not supportet?

2025-32-14 22:32:07.082 [AWT-EventQueue-0] INFO com.ravineteam.WiteStaffMap.menu.MainMenu - Started 2025-05-14T22:32:06.754
2025-32-14 22:32:18.034 [AWT-EventQueue-0] INFO com.ravineteam.WiteStaffMap.model.file.FileFinder - Found file: D:\_wite\map\Gewasser.jpg
2025-32-14 22:32:18.034 [AWT-EventQueue-0] INFO com.ravineteam.WiteStaffMap.model.file.FileFinder - Found file: D:\_wite\map\moose_map_y4703.jpg
2025-32-14 22:32:18.037 [AWT-EventQueue-0] INFO com.ravineteam.WiteStaffMap.model.file.FileFinder - Found file: D:\_wite\map\Gewasser.json
2025-32-14 22:32:18.126 [AWT-EventQueue-0] ERROR com.ravineteam.WiteStaffMap.model.file.StatsFinder - com.ravineteam.WiteStaffMap.model.file.StatsFinder_0002 Problem with finding folder containing stats files
2025-32-14 22:32:40.685 [AWT-EventQueue-0] ERROR com.ravineteam.WiteStaffMap.model.file.StatsFinder - com.ravineteam.WiteStaffMap.model.file.StatsFinder_0002 Problem with finding folder containing stats files
2025-32-14 22:32:52.611 [AWT-EventQueue-0] INFO com.ravineteam.WiteStaffMap.menu.createbutton.CreateButtonListener - WITE Situational Map Generator version 2.0.4
2025-32-14 22:32:52.722 [AWT-EventQueue-0] INFO com.ravineteam.WiteStaffMap.model.images.ImageLoaderWite2 - Image file D:\_wite\map\moose_map_y4703.jpg found.

Thats from the 2.0.4 Version. 2.0.5 is the same.

Where do you put the .jar File? Witch Java Version did you use? I installed 8u451
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Java 8u451 is fine. Any Java 8 or newer will do.

Jar file may placed where you want. If the app opens - you can select folders/files and hit Create button etc. then it works OK.

As for your specific problem I think I have to improve logging (those messages that you copy-pasted). Please give me a while.
The most dangerous thing in the combat zone is an officer
with a map.
IckeFleischer
Posts: 8
Joined: Sat Jul 27, 2024 8:55 pm

Re: WITE Situational Map Generator

Post by IckeFleischer »

thanks
Niedowidek_slith
Posts: 148
Joined: Mon Nov 11, 2013 5:16 am
Contact:

Re: WITE Situational Map Generator

Post by Niedowidek_slith »

Hi IckeFleischer
I'm sorry to keep you waiting.
I improved logging and fixed updating properties file.
Please try this version https://drive.google.com/file/d/1ARjd9U ... sp=sharing
From what you shared I see that you know how to find logfile (subfolder logs). You can try to create another map and then send me a logfile (a file called log_2025-05-29.txt or similar).
Artur
The most dangerous thing in the combat zone is an officer
with a map.
User avatar
terry1040
Posts: 156
Joined: Wed Oct 11, 2000 8:00 am
Location: The bright side of life

Re: WITE Situational Map Generator

Post by terry1040 »

Hi Artur,
thanks for revitalizing this little gem.
I am using it with WitE2 and it works quite nicely.
Due to the nature of the csv-files structure, the leader names of HQs are not displayed (see screenshot).
The data is simply not availabale in the the unit-main.csv. It rather is hidden in HQ-HQs.csv.
Is there a way to include the leader names as well?
Cheers
Terry
Attachments
---Clipboard_06-01-2025_01.jpg
---Clipboard_06-01-2025_01.jpg (106.11 KiB) Viewed 288 times
Post Reply

Return to “Scenario Design and Modding”