Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

CSV processor program

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> CSV processor program Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
CSV processor program - 1/31/2011 9:46:40 PM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.




Attachment (1)

< Message edited by larryfulkerson -- 2/6/2015 2:54:55 AM >


_____________________________

If we're all created in the image of god then why aren't we all invisible?
Post #: 1
RE: CSV processor program - 1/31/2011 9:54:52 PM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.




Attachment (1)

< Message edited by larryfulkerson -- 1/31/2011 9:55:13 PM >


_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to larryfulkerson)
Post #: 2
RE: CSV processor program - 1/31/2011 10:28:52 PM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
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!"

(in reply to larryfulkerson)
Post #: 3
RE: CSV processor program - 1/31/2011 11:25:09 PM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.

< Message edited by larryfulkerson -- 2/6/2015 2:55:34 AM >


_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to 1_Lzard)
Post #: 4
RE: CSV processor program - 1/31/2011 11:42:41 PM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
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!)

< Message edited by 1_Lzard -- 2/1/2011 12:56:17 AM >


_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 5
RE: CSV processor program - 2/1/2011 12:23:50 AM   
Sker


Posts: 41
Joined: 8/15/2007
From: Milano, Italy
Status: offline
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

(in reply to 1_Lzard)
Post #: 6
RE: CSV processor program - 2/1/2011 1:22:55 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.

< Message edited by larryfulkerson -- 2/1/2011 1:43:49 AM >


_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to Sker)
Post #: 7
RE: CSV processor program - 2/1/2011 2:25:31 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
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!"

(in reply to larryfulkerson)
Post #: 8
RE: CSV processor program - 2/1/2011 2:46:48 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.

_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to 1_Lzard)
Post #: 9
RE: CSV processor program - 2/1/2011 3:18:29 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
Good thing it's early <grinz>

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


Takes you awhile, donit!

< Message edited by 1_Lzard -- 2/1/2011 3:30:30 AM >


_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 10
RE: CSV processor program - 2/1/2011 3:31:20 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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?

_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to 1_Lzard)
Post #: 11
RE: CSV processor program - 2/1/2011 3:36:24 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
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?

< Message edited by 1_Lzard -- 2/1/2011 3:39:35 AM >


_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 12
RE: CSV processor program - 2/1/2011 3:45:35 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.

_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to 1_Lzard)
Post #: 13
RE: CSV processor program - 2/1/2011 3:48:14 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
Anytime, Larry!

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



< Message edited by 1_Lzard -- 2/1/2011 3:52:23 AM >


_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 14
RE: CSV processor program - 2/1/2011 4:21:03 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.


< Message edited by larryfulkerson -- 2/6/2015 2:56:15 AM >

(in reply to 1_Lzard)
Post #: 15
RE: CSV processor program - 2/1/2011 4:24:41 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
Would you guys rather have a green background?




Attachment (1)

< Message edited by larryfulkerson -- 2/1/2011 4:26:56 AM >

(in reply to larryfulkerson)
Post #: 16
RE: CSV processor program - 2/1/2011 4:33:38 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.




Attachment (1)

(in reply to larryfulkerson)
Post #: 17
RE: CSV processor program - 2/1/2011 6:23:09 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
Good work, Larry! Suker works quite well.....thanks for the tips, eh?




_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 18
RE: CSV processor program - 2/1/2011 10:05:57 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.


< Message edited by larryfulkerson -- 2/6/2015 2:57:15 AM >


_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to 1_Lzard)
Post #: 19
RE: CSV processor program - 2/1/2011 4:25:12 PM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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




Attachment (1)

_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to larryfulkerson)
Post #: 20
RE: CSV processor program - 2/2/2011 2:39:43 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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





Attachment (1)

< Message edited by larryfulkerson -- 2/6/2015 2:57:39 AM >

(in reply to larryfulkerson)
Post #: 21
RE: CSV processor program - 2/2/2011 6:19:36 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
Larry,

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

_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 22
RE: CSV processor program - 2/2/2011 6:38:51 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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

_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to 1_Lzard)
Post #: 23
RE: CSV processor program - 2/2/2011 6:01:41 PM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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:





Attachment (1)

(in reply to larryfulkerson)
Post #: 24
RE: CSV processor program - 2/2/2011 6:07:31 PM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
Here's lavenderblush on cornflowerblue:




Attachment (1)

_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to larryfulkerson)
Post #: 25
RE: CSV processor program - 2/2/2011 11:12:05 PM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
Looks like white on lt. blue to me, LOL! Considering that I'm running @ 32, well......

_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 26
RE: CSV processor program - 2/3/2011 2:13:46 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.




Attachment (1)

(in reply to 1_Lzard)
Post #: 27
RE: CSV processor program - 2/3/2011 4:49:36 AM   
1_Lzard


Posts: 528
Joined: 8/18/2010
From: McMinnville, OR
Status: offline
Looking good, Larry!

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

< Message edited by 1_Lzard -- 2/3/2011 5:30:04 AM >


_____________________________

"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"

(in reply to larryfulkerson)
Post #: 28
RE: CSV processor program - 2/3/2011 7:57:50 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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.

(in reply to 1_Lzard)
Post #: 29
RE: CSV processor program - 2/7/2011 5:28:19 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
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



< Message edited by larryfulkerson -- 2/7/2011 11:32:53 PM >

(in reply to larryfulkerson)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> CSV processor program Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.859