Database Handicapping Software- JCapper

JCapper Message Board

          JCapper 101
                      -- Cannot load Sunland park on Sunday?

Home Register
Log In
By Cannot load Sunland park on Sunday?
Windoor
3/23/2013
5:52:33 PM
In a very long process of eliminating tracks this year I have found a nice "spot play" for this track.

Every Sunday, when I try to load the modified files for a calculate races routine, I get an error message that this track is already loaded. Not!

Only on Sunday, so I figure it has something to do with the "SUN" in the name of the day??

I don't remember having this problem last year.

Anybody care to take a guess at to why it will not load? Every other day is ok.

Regards,

Windoor

Reply
jeff
3/23/2013
8:43:42 PM
A track code such as "SUN" that happens to match the name of a calendar day of the week such as "Sunday"... That's not going to cause any issues for the routines in JCapper.

I just downloaded the Sunland card from the HDW site for Sunday March 24, 2013. I ran a .JCP file build routine and loaded the resulting SUN0324.JCP file into the program without incident.

Q. Are you able to load your .JCP file into JCapper?

If not - try redownloading that SUN card - followed by a second .JCP file build routine. (If you still can't load the .JCP file into JCapper: Shoot me an email and I will email you my SUN0324.JCP file.)

If you are able to load the SUN0324.JCP file into JCapper... but not your modified file... then my first best guess has to be the issue isn't the .JCP file... but something inside the "modified" file that you created.


-jp

.



Reply
Windoor
3/23/2013
10:50:09 PM
I cleared the loaded cards and tried again. Same thing, Same error message.

I cleared again, and loaded just the card from Sunland from the same folder. It loaded just fine. Cleared again and tried loading all files from the folder and the error message for Sunland appears again. "Already loaded"

The name of the folder the files are in, is located at G:\Q47Sun. I have seven such folders. One for each day of the week, that are set up for daily play.

I copied all of the modified .JCP files from Sunday's folder to the "Q47Mon" folder, and tried again. They all loaded just fine. Wow!

Changed the name of the original folder "G\Q47SUN" to G:\Q4Sunday, and error message appears again for Sunland.

Changed the name of the folder to G\Q47SAN" and everything loaded just fine.

Seems to not like a folder with the name "Sun" in it???
Easy enough to fix, but it's still weird. Maybe just a coincidence? Maybe I got gremlins?

I'll keep an eye on it and see if it stills continues to work with the changed folder name.

Regards,

Windoor


Reply
jeff
3/24/2013
9:42:17 AM
Gemlins?... Keep them away from water.Never feed them after midnight.


Actually, what you posted makes perfect sense.

One of the design considerations when I wrote the program was that the sole purpose for loading data files into the program on a daily basis was to generate same day race reports.

Data files are based on the info model of one card file per track per day.

JCapper's Card Loaders are written to that info model. One of the rules enforced is that loading multiple data files for the same track code is not allowed.

Looking at source code inside of the DFM Card Loader - when that rule is enforced - the 3 character track code for the current data file the user is attempting to load is checked against existing entries for data files already loaded into the program. Those entries are stored in a text file named: unzip-these.txt.

Double clicking this file causes it to pop open in Notepad. Here is a cut and paste of the entries in that file from one of my machines where yesterday I had used the DFM Card Loader to load 7 data files into the program on Data Folder 2:


c:\2013\Q1_2013\FGX0323.jcp
c:\2013\Q1_2013\GGX0323.jcp
c:\2013\Q1_2013\HAW0323.jcp
c:\2013\Q1_2013\OPX0323.jcp
c:\2013\Q1_2013\SAX0323.jcp
c:\2013\Q1_2013\SUN0323.jcp
c:\2013\Q1_2013\TUP0323.jcp



Here is how the program behaves when the user attempts to load a data file into the program:

The 3 character track code from the data file is checked against each of the entries in the unzip-these.txt file.

If a match between the two is not found, the data file is loaded into the program and an entry for that data file is added to the unzip-these.txt file.

After using the DFM Card Loader to load yesterday's .JCP file for MNR into the program on data folder 2, the entries in my unzip-these.txt file on that folder now look like this:


c:\2013\Q1_2013\FGX0323.jcp
c:\2013\Q1_2013\GGX0323.jcp
c:\2013\Q1_2013\HAW0323.jcp
c:\2013\Q1_2013\MNR0323.jcp
c:\2013\Q1_2013\OPX0323.jcp
c:\2013\Q1_2013\SAX0323.jcp
c:\2013\Q1_2013\SUN0323.jcp
c:\2013\Q1_2013\TUP0323.jcp


But if I attempt to load a second SUN data file into the program - when the DFM Card Loader enforces the rule - it discovers that a match exists between the following two character strings:

"SUN" (without the quotes)

and

"c:\2013\Q1_2013\SUN0323.jcp" (without the quotes)

And instead of loading the second SUN data file into the program the user is given a "You can't do that" message instead.




JCapper is now in its 10th year. In that time I've done a lot of support phone calls and emails related to folder structure.

I've seen a lot of different folder structures. This is the first time I've encountered anyone using one folder for each day of the week.

I'm guessing you have valid reasons for doing that.

Provided that I make you aware of how JCapper handles folder and data file names when data files are loaded into the program - that folder structure can work for you.




Here's what was happening at your end:

On Sunday March 24th, 2013, if you are loading multiple data files into the program, the entries in your unzip-these.txt file at the point in time you attempt to load the SUN data file look something like this:


"G\Q4SUN\FGX0324.jcp"
"G\Q4SUN\HAW0324.jcp"
"G\Q4SUN\OPX0324.jcp"
"G\Q4SUN\PHA0324.jcp"


When the DFM Card Loader enforces the rule - it reads the first entry in the unzip-these.txt file - and discovers that a match exists between the following two character strings:

"SUN" (without the quotes)

and

"G\Q4SUN\FGX0324.jcp" (without the quotes)

And instead of loading the SUN data file into the program - you get the "You can't do that" message instead.




Bottom line:

Folders where you are storing data files that you intend to use to load multiple data files into the program need to be named in such a way that the folder name does not contain a match between itself and a 3 character track code.


-jp



.

~Edited by: jeff  on:  3/24/2013  at:  9:42:17 AM~

Reply
Windoor
3/24/2013
10:24:09 AM
Well, that clears that up.

I use a yearly/quarterly/monthly file system for un-modified JCP files and they remain as is, and backed-up, with the original data. Q1_2011, Q2_2011 and so forth with subfolders for Jan, Feb, March for the first quarter. Next set is Q2_2013 for April, May and June.

I grab today's files and "copy" them to the folder that represents this day of racing.

These are the files I modify (and sometimes add to a database) and then run a calc race routine on them for daily play.

At the moment I can only change the value of seven fields, but I have about 21 factors that I am looking at. Different tracks and distances call for different mods to each file.

I keep different days because it makes it easier to review the weeks plays on Sunday night for each track. After review, all files are deleted from these folders to start the next week of racing. Book keeping as become a nightmare. Something I hope to change after this year with enough data.

I'm sure there is a better way to do this, but for right now it serves my purpose.

I just don't remember having this problem last year. Maybe I wasn't playing Sunland then, or I changed the file structure after they stopped running for the year and it never showed up. Either way, the fix is simple and seems to work fine now.

Thanks for the info.

Regards,

Windoor




Reply
SILVER01HDW
3/24/2013
12:54:55 PM
I tried a search on "card not loading" and some other ways, I couldn't find anything, so I thought I would jump in here with my question.

TUP for today only loading R4 and on. I re-downloaded everything from HDW, DFM to load just TUP, did a Calc, and still only showing R4 on. I've come across this before (with diff tracks) not many times, but every now and then.

Any suggestions?

Thx

Reply
AndrewH
3/24/2013
1:45:55 PM
Silver, I think it's because those are quarterhorse races...Not sure


Reply
SILVER01HDW
3/24/2013
1:51:40 PM
That was it.......thanks!

Reply
Reply

Copyright © 2018 JCapper Software              back to the JCapper Message Board              www.JCapper.com