Latest News: OOTP 11 Now Available for Preorder! - Updated Patch #4, version 10.4.31 available! - OOTP 10 RELEASED! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Click here to download Out of the Park Baseball 10!

Go Back   OOTP Developments Forums

> OUT OF THE PARK BASEBALL 9 > OOTP 9 - Mods > Database Tools


Database Tools Do you need to take a dump? SQL gurus welcome

Reply
 
LinkBack Thread Tools Display Modes
Old 01-29-2007, 02:37 PM   #41 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Quote:
Originally Posted by mikev View Post
You're saying I have to wait until next sim, which will put the league to 4/21/1996, and then upload the HTML reports before I run genDev.html again. Then it should read correctly and show 4/21/1996 on the development.html page?
Yes. Each development change is logged with a date. Subsequent runs of the utility don't go back and edit previous changes, and it won't detect any changes since you are using the same .csv files as the last time you ran it. Once it's logged, it's logged permamently (unless you go in and manually edit).

I also assume this means the utility is not hanging anymore?
Getch is offline   Reply With Quote
Old 01-29-2007, 04:03 PM   #42 (permalink)
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 3,765
Thanked 17x in 13 posts
Quote:
Originally Posted by Getch View Post
Yes. Each development change is logged with a date. Subsequent runs of the utility don't go back and edit previous changes, and it won't detect any changes since you are using the same .csv files as the last time you ran it. Once it's logged, it's logged permamently (unless you go in and manually edit).

I also assume this means the utility is not hanging anymore?
Actually, it did hang. It finishes, it just doesn't redirect to development.html
__________________
70% of the earth's surface is covered by water. The other 30% is taken care of by Patrick Willis.


Global Unified Baseball Association - Vice Commish and California Crusaders GM
mikev is offline   Reply With Quote
Old 02-01-2007, 12:38 PM   #43 (permalink)
Major Leagues
 
Zubes's Avatar
 
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
I keep getting a 500 Internal Server Error when i try to run the script to make sure its working. i am pretty sure i have everything setup correctly.

any ideas why i would be getting this error? im thinking its a permissions error, but i have tried on 644 and 755 and it still doesnt work.
__________________
Phil Zuber

Beyond the Ivy - Commish, Twins GM
Stars and Stripes Baseball League - Cubs GM
Bricks and Ivy - Orioles GM

Sim Coalition - co-founder

Zubes is offline   Reply With Quote
Old 02-02-2007, 12:54 PM   #44 (permalink)
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 3,765
Thanked 17x in 13 posts
Quote:
Originally Posted by Zubes View Post
I keep getting a 500 Internal Server Error when i try to run the script to make sure its working. i am pretty sure i have everything setup correctly.

any ideas why i would be getting this error? im thinking its a permissions error, but i have tried on 644 and 755 and it still doesnt work.
You probably uploaded the files as binary instead of ASCII when you put the .html and .pm files on the server.


BTW, Getch. It's not working again. I don't know what I did wrong this time since I was the simmer. I did everything last night EXCEPT export csv and run the development stuff. I created HTML last night, uploaded it, adn it was all correct, showing 5/1/1996 as the league date.

I created the CSV this morning, uploaded it, and ran the script. Still shows 4/21/1996 and no new development.
__________________
70% of the earth's surface is covered by water. The other 30% is taken care of by Patrick Willis.


Global Unified Baseball Association - Vice Commish and California Crusaders GM
mikev is offline   Reply With Quote
Old 02-02-2007, 11:51 PM   #45 (permalink)
Major Leagues
 
Zubes's Avatar
 
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
ok i reuploaded in ASCII, and i am still getting a 500 Internal Server Error on genDev.html
__________________
Phil Zuber

Beyond the Ivy - Commish, Twins GM
Stars and Stripes Baseball League - Cubs GM
Bricks and Ivy - Orioles GM

Sim Coalition - co-founder

Zubes is offline   Reply With Quote
Old 02-03-2007, 03:12 PM   #46 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,751
Thanked 1x in 1 post
See this link to resolve error 500 messages...

http://www.checkupdown.com/status/E500.html
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 02-05-2007, 04:18 PM   #47 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Quote:
Originally Posted by mikev View Post
\
I created the CSV this morning, uploaded it, and ran the script. Still shows 4/21/1996 and no new development.
Sure you uploaded the .csv files to the right location? If no change in the development on 4/21, then it's likely you put them in the wrong dir. Also, check the prevRatings.txt and .tmp files in the cgi-bin directory... are they the same? If they are not the same, make backups of them before going any further (and backup the development directory into a zip file too). If they are, double check your .csv location and if that's the right .csv files.

Last edited by Getch; 02-05-2007 at 04:22 PM.
Getch is offline   Reply With Quote
Old 02-05-2007, 04:20 PM   #48 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Quote:
Originally Posted by Zubes View Post
ok i reuploaded in ASCII, and i am still getting a 500 Internal Server Error on genDev.html
Try:

chmod +x genDev.html

If not, just run it from the server (go to cgi-bin directory and type ./genDev.html) and you'll get your error message that'll tell you what's wrong. One thing you have to make sure is that the location of the perl executable is correct at the top of each .html file. Might be in a different directory.
Getch is offline   Reply With Quote
Old 02-05-2007, 04:40 PM   #49 (permalink)
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 3,765
Thanked 17x in 13 posts
Quote:
Originally Posted by Getch View Post
Sure you uploaded the .csv files to the right location? If no change in the development on 4/21, then it's likely you put them in the wrong dir. Also, check the prevRatings.txt and .tmp files in the cgi-bin directory... are they the same? If they are not the same, make backups of them before going any further (and backup the development directory into a zip file too). If they are, double check your .csv location and if that's the right .csv files.
Weird enough, I did it this last sim and everything is fine. It must have been a typo on my part or something.
__________________
70% of the earth's surface is covered by water. The other 30% is taken care of by Patrick Willis.


Global Unified Baseball Association - Vice Commish and California Crusaders GM
mikev is offline   Reply With Quote
Old 02-07-2007, 01:47 AM   #50 (permalink)
Major Leagues
 
Zubes's Avatar
 
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
Quote:
Originally Posted by Getch View Post
If not, just run it from the server (go to cgi-bin directory and type ./genDev.html) and you'll get your error message that'll tell you what's wrong.
im confused about this.

did the chmod, same 500 internal error.
__________________
Phil Zuber

Beyond the Ivy - Commish, Twins GM
Stars and Stripes Baseball League - Cubs GM
Bricks and Ivy - Orioles GM

Sim Coalition - co-founder

Zubes is offline   Reply With Quote
Old 02-07-2007, 01:47 PM   #51 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Quote:
Originally Posted by Zubes View Post
im confused about this.

did the chmod, same 500 internal error.
Telnet or SSH to the server (download putty if you do not have a utility to do this). Then go to the cgi-bin directory, or whatever directory your files exist in, and run the genDev.html file there. It's not an actual HTML file, but a perl script, so it is executable (the html extension is to workaround a Firefox bug). It'll likely print back an error message, paste or PM me the error and we'll work it out.
Getch is offline   Reply With Quote
Old 02-07-2007, 11:05 PM   #52 (permalink)
Major Leagues
 
Zubes's Avatar
 
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
error is as follows:

readline () on closed filehandle IN at ./genDev.html line .146
ERROR - players.csv bad or not found.


I am guessing that i probably have my setup file scrwed up, or maybe not.

I probably need an example of how that stuff should be written in there.
__________________
Phil Zuber

Beyond the Ivy - Commish, Twins GM
Stars and Stripes Baseball League - Cubs GM
Bricks and Ivy - Orioles GM

Sim Coalition - co-founder

Zubes is offline   Reply With Quote
Old 02-08-2007, 12:41 PM   #53 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Quote:
Originally Posted by Zubes View Post
error is as follows:

readline () on closed filehandle IN at ./genDev.html line .146
ERROR - players.csv bad or not found.

I am guessing that i probably have my setup file scrwed up, or maybe not.

I probably need an example of how that stuff should be written in there.
CSV should just be the full directory path where the .csv files are. Probably the easiest thing to is to go to the directory where you uploaded the .csv files and type "pwd" (stands for print working directory). It'll give you the directory path, and just plug that into the CSV: entry in the setup.txt file.
Getch is offline   Reply With Quote
Old 02-08-2007, 01:03 PM   #54 (permalink)
Major Leagues
 
Zubes's Avatar
 
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
Quote:
Originally Posted by Getch View Post
CSV should just be the full directory path where the .csv files are. Probably the easiest thing to is to go to the directory where you uploaded the .csv files and type "pwd" (stands for print working directory). It'll give you the directory path, and just plug that into the CSV: entry in the setup.txt file.
i verified it, i have the correct path.

even re-uploaded a new set of csv files after a few days were simmed and its still not working.

the waiver page shows up, but nothing is being pulled.
__________________
Phil Zuber

Beyond the Ivy - Commish, Twins GM
Stars and Stripes Baseball League - Cubs GM
Bricks and Ivy - Orioles GM

Sim Coalition - co-founder

Zubes is offline   Reply With Quote
Old 02-08-2007, 02:31 PM   #55 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
One last check... you have the forward slash at the beginning of the directory name, and no forward slash at the end, correct? So something like:

/home/user/csv

If so, I'll have to get you a debug patch, or just log onto your system and get it running (if you let me, of course). Let me know.
Getch is offline   Reply With Quote
Old 02-08-2007, 02:33 PM   #56 (permalink)
Major Leagues
 
Zubes's Avatar
 
Join Date: Sep 2005
Location: Chicago, IL
Posts: 361
Quote:
Originally Posted by Getch View Post
One last check... you have the forward slash at the beginning of the directory name, and no forward slash at the end, correct? So something like:

/home/user/csv

If so, I'll have to get you a debug patch, or just log onto your system and get it running (if you let me, of course). Let me know.
yes the forward slash is there. i will need the debug patch, its not my server account so i dont want to pass on that info.

Thanks.
__________________
Phil Zuber

Beyond the Ivy - Commish, Twins GM
Stars and Stripes Baseball League - Cubs GM
Bricks and Ivy - Orioles GM

Sim Coalition - co-founder

Zubes is offline   Reply With Quote
Old 02-09-2007, 01:02 PM   #57 (permalink)
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 3,765
Thanked 17x in 13 posts
Quote:
Originally Posted by mikev View Post
Weird enough, I did it this last sim and everything is fine. It must have been a typo on my part or something.
So apparently every other time I do this, it works. I did it this time, and it's not updated again.

I follow the same process every time.

1. Generate league reports
2. Generate CSV
3. Upload both to server as seperate tarballs
4. Extract tarball for HTML, verify that it's updated on League Home Page (currently 6/1/1996)
5. Extract CSV tarball into csv directory specified in setup.txt
6. Run genDev.html
7. Check development html page which shows 5/21/1996.

I don't think I missed a step, did I?
__________________
70% of the earth's surface is covered by water. The other 30% is taken care of by Patrick Willis.


Global Unified Baseball Association - Vice Commish and California Crusaders GM
mikev is offline   Reply With Quote
Old 02-09-2007, 06:28 PM   #58 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Quote:
Originally Posted by mikev View Post
So apparently every other time I do this, it works. I did it this time, and it's not updated again.

I follow the same process every time.

1. Generate league reports
2. Generate CSV
3. Upload both to server as seperate tarballs
4. Extract tarball for HTML, verify that it's updated on League Home Page (currently 6/1/1996)
5. Extract CSV tarball into csv directory specified in setup.txt
6. Run genDev.html
7. Check development html page which shows 5/21/1996.

I don't think I missed a step, did I?
It only works when there is a Waxing Gibbous moon, did I tell you that? Sorry, just wanted to say "Waxing Gibbous". Steps look fine. I can log into your server and take a peek around, if you're ok with that.

Were there any development updates between this 5/21/1996 and the previous one? Or was there just no change altogether? PM me, I think the natives are getting tired of our banter.
Getch is offline   Reply With Quote
Old 02-11-2007, 03:20 PM   #59 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Just in case anyone was having the same issue as Zubes, the issue was because the .csv files had semilcolon delimiters and not comma.
Getch is offline   Reply With Quote
Old 03-22-2007, 02:22 PM   #60 (permalink)
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 537
Thanked 11x in 7 posts
Upgraded for 2007:

http://www.ootpdevelopments.com/boar...35#post2114335

It'll still work off of the 2006 utility, so you don't have to lose your development history upgrading!
Getch is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2009 Out of the Park Developments