Page 1 of 2
CSV processor program
Posted: Mon Jan 31, 2011 7:46 pm
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.

RE: CSV processor program
Posted: Mon Jan 31, 2011 7:54 pm
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.

RE: CSV processor program
Posted: Mon Jan 31, 2011 8:28 pm
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!
RE: CSV processor program
Posted: Mon Jan 31, 2011 9:25 pm
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.
RE: CSV processor program
Posted: Mon Jan 31, 2011 9:42 pm
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!)
RE: CSV processor program
Posted: Mon Jan 31, 2011 10:23 pm
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
RE: CSV processor program
Posted: Mon Jan 31, 2011 11:22 pm
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.
RE: CSV processor program
Posted: Tue Feb 01, 2011 12:25 am
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........

RE: CSV processor program
Posted: Tue Feb 01, 2011 12:46 am
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.
RE: CSV processor program
Posted: Tue Feb 01, 2011 1:18 am
by 1_Lzard
Good thing it's early <grinz>
Next item: cc3260mt.dll......
Takes you awhile, donit!
RE: CSV processor program
Posted: Tue Feb 01, 2011 1:31 am
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?
RE: CSV processor program
Posted: Tue Feb 01, 2011 1:36 am
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?
RE: CSV processor program
Posted: Tue Feb 01, 2011 1:45 am
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.
RE: CSV processor program
Posted: Tue Feb 01, 2011 1:48 am
by 1_Lzard
Anytime, Larry!
You'd be advised to delete the project 1.zip asap befor anyone else gets screwed up, eh?
RE: CSV processor program
Posted: Tue Feb 01, 2011 2:21 am
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.
RE: CSV processor program
Posted: Tue Feb 01, 2011 2:24 am
by larryfulkerson
Would you guys rather have a green background?

RE: CSV processor program
Posted: Tue Feb 01, 2011 2:33 am
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.

RE: CSV processor program
Posted: Tue Feb 01, 2011 4:23 am
by 1_Lzard
Good work, Larry! Suker works quite well.....thanks for the tips, eh?
[:D][:D][:D]
RE: CSV processor program
Posted: Tue Feb 01, 2011 8:05 am
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.
RE: CSV processor program
Posted: Tue Feb 01, 2011 2:25 pm
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
