CSV processor program

Norm Koger's The Operational Art of War III is the next game in the award-winning Operational Art of War game series. TOAW3 is updated and enhanced version of the TOAW: Century of Warfare game series. TOAW3 is a turn based game covering operational warfare from 1850-2015. Game scale is from 2.5km to 50km and half day to full week turns. TOAW3 scenarios have been designed by over 70 designers and included over 130 scenarios. TOAW3 comes complete with a full game editor.

Moderators: ralphtricky, JAMiAM

User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

CSV processor program

Post by larryfulkerson »

Hey you guys..........so um.......you know how TOAW doesn't produce a hard copy of the combat results screens we see during a game. And the only hard copy we get are the sitrep_log files that get produced at the end of the program run? Well, I got tired of cutting and pasting and thought I'd get busy and write a little quick and dirty program in C++ to give us an output file that resembles our combat results screens.

This program is the C++ version of the one I wrote in JAVA about 6 months ago. I thought maybe more people would use it if they didn't have to have JAVA's run-time library on their machine so I re-wrote it in C++ so it would be a stand-alone program, small and fast and no problems ( I'm crossing my fingers ). You can find the executable here:

http://www.filedropper.com/csvviewer

And inside it you might be able to find a file called CSVviewer.zip which contains the executable and input files for it. I'm anticipating that you'll probably need at least one additional DLL but as yet I don't know which one. There may be a need for more than one more. Anyway I need somebody to try running project1.exe on their machine just so I'll know which one(s) are needed and I'll upload it ( them ) too so we can all run this bad boy on our machines.

It takes in a CSV file from the sitrep_log process as the input file and produces an html file as output. I needed to produce an html file because I wanted pictures of the equipment in the output like in our combat results screens.

I'm attaching a picture of it up and running on my machine just now so you can see what it looks like. I need feedback to know what needs to be changed to make it more user friendly and easier to use etc. I've sent it to my opponents but haven't heard back from them yet so I'm posting this thing here to get more beta testers into the process.

Lemme know what you find out and your comments and questions are welcomed of course.

Image
Attachments
up and running.gif
up and running.gif (82.74 KiB) Viewed 818 times
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

Here's a picture of the output so far: And yes, I know that some of the pictures don't match the equipment but I'm looking into that.

Image
Attachments
outputsofar.gif
outputsofar.gif (26.64 KiB) Viewed 816 times
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

Larry,

Hitting the execute gives me "wont start due to vcl60.bpl" not being found. Is this what your looking for or is it something personal, LOL!
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

Thanks for your quick reply 1_Lzard dude:

I've uploaded the VCL60.BPL file to the shared folder which you can find here:

http://www.filedropper.com/csvviewer

So um......try it again after you add that bad boy to the folder where the executable lives and see what else is missing. Please.

Thanks.
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

LOL! Now it's "rtl60.bpl".........

Note: running a p4 2.4/gig of ram; XPpro system ati vid card@128mb (yeah, I know, but I'll be building a new one in a couple of weeks!)
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
Sker
Posts: 41
Joined: Wed Aug 15, 2007 3:54 pm
Location: Milano, Italy

RE: CSV processor program

Post by Sker »

The same is happening to me Larry. With both my pc's (one running win 7 and the other with vista). Now rtl60 is missing.
I'm curious to try this one
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

Hey Thanks you guys. I've uploaded the RTL60.BPL file to the shared folder so you can reach it. Enjoy. Oh.......did I happen to mention that you could use any TOAW csv file as input? I found several from my pbem games and each of them works.

So um.......there's at least 256 separate pictures in the images folder, one for each possible piece of equipment ( I'm guessing here ) and you guys can feel free to swap images with those you'd rather have instead. The name will have to be the same is the only thing. It's hard coded to use the names they have already. Hey......that's a thought.....maybe I should add some scripting to make this program more flexible so we can add stuff as we go along. Anyway, you can mix and match the images however you want. Change to bigger images if you'd like. They are 48 by 12 pixels now but you guys can experiment with other sizes to see what happens if you'd like. Maybe some more colorful images would be helpful. I'll have to investigate that possibility.
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

Something makes me believe that this is going to take a while, Larry..........

missing "borlndmm.dll" file now.......and something makes me think there's a bunch more, eh? I suggest you check the .exe's files and load 'em all........

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

Okie dokie I've uploaded the borlndmm.dll. I would upload all of them but there's like 2,356 of them and I don't know which ones you guys need and which ones are just for something else entirely. Surely there's not too many more. Surely.
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

Good thing it's early <grinz>

Next item: cc3260mt.dll......


Takes you awhile, donit!
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

ORIGINAL: 1_Lzard
Good thing it's early <grinz>
Next item: cc3260mt.dll......
Okie dokie the cc3260mt.dll is uploaded. I wish there was another way to do this. If only I had another machine I could do all this myself. It's a good excuse to buy another computer don't you think?
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

ALRIGHTY!

Now for some testing!

Looks like it works, my man! Now I'll have to run a game just to test it on my own stuff, eh?

Anything else?
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

ORIGINAL: 1_Lzard
Anything else?
I've uploaded several csv files to the shared folder so that anybody can run it. I'm working on fixing the equipment pictures even as we speak and I'll upload a new zip file with all the dll's and bpl's and the new images so we won't have to do that again. Thanks for all your help.

Your questions and comments are welcome .........lemme know about what you'd like to see changed etc.
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

Anytime, Larry!

You'd be advised to delete the project 1.zip asap befor anyone else gets screwed up, eh?

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

ORIGINAL: 1_Lzard
You'd be advised to delete the project 1.zip asap befor anyone else gets screwed up, eh?
I just now got through removing and replacing the zip file with the new version that has all the DLLs and BPLs in it. Also I finished monkeying around with the images and uploaded the version 2.0 images.zip file to replace the images you have with new ones.

the new zip file:

http://www.filedropper.com/csvviewer

Thanks everyone for your help. I'm open to suggestions and comments about this bad boy.
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

Would you guys rather have a green background?

Image
Attachments
output sample.jpg
output sample.jpg (84.54 KiB) Viewed 824 times
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

Here's a quick way to change the background color: Just change it in the test.html file. Or whatever your output file is named...change that one. Pink, grey, gray, black, chartruse, purple, whatever you desire. Notice though that white text won't show up on a white background so you might want to experiment with changing the text color too.

Image
Attachments
outputsample.gif
outputsample.gif (53.84 KiB) Viewed 824 times
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: CSV processor program

Post by 1_Lzard »

Good work, Larry! Suker works quite well.....thanks for the tips, eh?


[:D][:D][:D]
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

I tried using the csv file I just now got through producing from my PBEM game with Kevin and it crashed my program.  So I stepped through the debugger and found out that the input file has some trash in it following the input lines for some reason.  So I changed the program so it looks for anomolies like that and re-ran it and all's well.  So I removed and replaced the file with the updated version.  So now you can find the very latest version here:

http://www.filedropper.com/csvviewer

The latest version is now 4.0201        which means it's the fourth change as of Feb 1st........I left off the year digits from the version number you see.
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
User avatar
larryfulkerson
Posts: 42643
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: CSV processor program

Post by larryfulkerson »

I added (1) a menu just so you would have another way to quit the program
(2) a memo box so I could output some stats and give the user some feedback as to what's happening and
(3) some behind the scenes code re-arrangement to make the program easier to work on

Image
Attachments
upandrunning.gif
upandrunning.gif (25.94 KiB) Viewed 824 times
Project 2025: The Series Ep 3.5 - The End Of The World?
https://www.youtube.com/watch?v=zbTn0iz ... kN_Xb0d-Gr
Post Reply

Return to “Norm Koger's The Operational Art Of War III”