CSV processor program (Full Version)

All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III



Message


larryfulkerson -> CSV processor program (1/31/2011 9:46:40 PM)

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]local://upfiles/16287/F8F610693DE54FB0908167879F9F5BDC.gif[/image]




larryfulkerson -> RE: CSV processor program (1/31/2011 9:54:52 PM)

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]local://upfiles/16287/5511AAEB955A455EACF4264B1AFEB35D.gif[/image]




1_Lzard -> RE: CSV processor program (1/31/2011 10:28:52 PM)

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!




larryfulkerson -> RE: CSV processor program (1/31/2011 11:25:09 PM)

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.




1_Lzard -> RE: CSV processor program (1/31/2011 11:42:41 PM)

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




Sker -> RE: CSV processor program (2/1/2011 12:23:50 AM)

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




larryfulkerson -> RE: CSV processor program (2/1/2011 1:22:55 AM)

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.




1_Lzard -> RE: CSV processor program (2/1/2011 2:25:31 AM)

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

[sm=terms.gif]




larryfulkerson -> RE: CSV processor program (2/1/2011 2:46:48 AM)

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.




1_Lzard -> RE: CSV processor program (2/1/2011 3:18:29 AM)

Good thing it's early <grinz>

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


Takes you awhile, donit!




larryfulkerson -> RE: CSV processor program (2/1/2011 3:31:20 AM)

quote:

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?




1_Lzard -> RE: CSV processor program (2/1/2011 3:36:24 AM)

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?




larryfulkerson -> RE: CSV processor program (2/1/2011 3:45:35 AM)

quote:

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.




1_Lzard -> RE: CSV processor program (2/1/2011 3:48:14 AM)

Anytime, Larry!

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





larryfulkerson -> RE: CSV processor program (2/1/2011 4:21:03 AM)

quote:

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.




larryfulkerson -> RE: CSV processor program (2/1/2011 4:24:41 AM)

Would you guys rather have a green background?

[image]local://upfiles/16287/8717C197CC7E48E4B16D79752D23A3AA.jpg[/image]




larryfulkerson -> RE: CSV processor program (2/1/2011 4:33:38 AM)

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]local://upfiles/16287/FB9C732D63304751BC6922D054CBDA43.gif[/image]




1_Lzard -> RE: CSV processor program (2/1/2011 6:23:09 AM)

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


[:D][:D][:D]




larryfulkerson -> RE: CSV processor program (2/1/2011 10:05:57 AM)

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.




larryfulkerson -> RE: CSV processor program (2/1/2011 4:25:12 PM)

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]local://upfiles/16287/586B053C7EE74B50A93AAD94A2F9FBFE.gif[/image]




larryfulkerson -> RE: CSV processor program (2/2/2011 2:39:43 AM)

Okie dokie......now we have an easier way to change the colors of the output. I've added a color picker and some menu items so you can change the colors easier. The colors of the memo box changes to the colors you've picked so you can judge whether or not you want the output written with those colors.

Also, I've fixed it so that as long as you use the menu choice to shut down the program and not the panic kill button your choices will be written to the config file to be used the next time the program runs.

As always you can find the latest version here:


http://www.filedropper.com/csvviewer


[image]local://upfiles/16287/3950FE7FAA9C487D9C386988B451762A.gif[/image]




1_Lzard -> RE: CSV processor program (2/2/2011 6:19:36 AM)

Larry,

You should change the version number for things like this, eh? They've been 4.0 for awhile now, LOL!




larryfulkerson -> RE: CSV processor program (2/2/2011 6:38:51 AM)

quote:

ORIGINAL: 1_Lzard
You should change the version number for things like this, eh? They've been 4.0 for awhile now, LOL!

You're quite right. I managed to change the last one to a 5.0 LOL




larryfulkerson -> RE: CSV processor program (2/2/2011 6:01:41 PM)

Part of the problem with having an html output file is that you have to use the colors that the browser will recognize and sometimes the color isn't one of those that the compiler has a defination for. I experimented with several colors and found out that even though the program won't recognize it, that color will still be used in the output file so I made a chart of the allowed colors and these are they:


[image]local://upfiles/16287/7E829947FE704FC5A007463A83918E62.gif[/image]




larryfulkerson -> RE: CSV processor program (2/2/2011 6:07:31 PM)

Here's lavenderblush on cornflowerblue:

[image]local://upfiles/16287/B99939B01A594617B8B78469168B8DE9.gif[/image]




1_Lzard -> RE: CSV processor program (2/2/2011 11:12:05 PM)

Looks like white on lt. blue to me, LOL! Considering that I'm running @ 32, well......




larryfulkerson -> RE: CSV processor program (2/3/2011 2:13:46 AM)

And now there's a version that prints out side-by-side losses. As always you can find the newest version in the shared folder.

[image]local://upfiles/16287/640379A2B5F3442080B2A92378A30A51.gif[/image]




1_Lzard -> RE: CSV processor program (2/3/2011 4:49:36 AM)

Looking good, Larry!

(never mind the last post.....my mistake!)




larryfulkerson -> RE: CSV processor program (2/3/2011 7:57:50 AM)

quote:

ORIGINAL: 1_Lzard
Looking good, Larry!

Well, thank you very much. I'm not getting any questions or comments so I'm guessing all is well with everybody. I'm thinking maybe I ought to try to see if I can't plot these attacks on a mini-map so the user can get an idea where they occured. I'm not at all sure I can do something like that but I really want to try it at least. Anybody else have something they want to see? Maybe some kind of summary of the total losses at the bottom of the page? Or would you guys rather see the totals at the top?

quote:

ORIGINAL: 1_Lzard
(never mind the last post.....my mistake!)

Not a problemo my friend.




larryfulkerson -> RE: CSV processor program (2/7/2011 5:28:19 AM)

I have bad news guys.........I was working on having a display of the mini-map so that I could plot the locations of the attacks and it wasn't working so I went to Borland's successor ( borland was bought out ) and browsed through the forum postings and found out that I'm not the only one having problems with the C+ Builder.  Several of the guys posted that when they were using Windows 7 64-bit ( which is what I'm using ) they experienced graphical glitches and there's no known workaround yet.

So I'm going to have to go back to Java to develop this bad boy I guess.  Unless somebody has a better idea. 

Also....I've been receiving a lot of spam lately so I thought I'd post their addresses in the clear here so that any email address robots could grab them so THEY would start receiving spam. Good idea no?

Spam providers:

maryperry9825003@yahoo.com
orchardvdc@besthatshop.net
ala146@aol.com
mystery.shopping11@rogers.com
Robert.Lachner@web.de
revrichard.johnson387@gmail.com
conte1111111@gmail.com
odigo1111122@gmail.com
63284529502@email.ro
info@stevemorgan.st
dhellen---gibson1@att.net
eric2122@blumail.org
paulkinbros03@yahoo.cn
paulkinbros888@live.com
rludens2009@hotmail.com
ed.beck@effros.collaborationhost.net
meheaton@verizon.net
pinty.frostell@btbbsolutions.com
soledadnevawp@tinet.ie
www.rotaryfoundation@gmail.com
rotarys@gmail.com
healthfpq@bestdealsweb.net
data25211407@bestdealsweb.net
opga@opga.com
Wilfredo@campaigningnew.org
wandawatson8446486@yahoo.com
ccdrawnotice4@att.net
certificatesrtr@bestwebclub.net
infoofficenskyebank@rocketmail.com
nskyebank@rocketmail.com
citylink.customerservice@hotmail.com.tw
verablair@msn.com





Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.859375