View Single Post
Old 04-21-2005, 04:21 AM   #1
21C
Major Leagues
 
Join Date: Mar 2003
Location: Newcastle, Australia
Posts: 303
Utility - Waiver Cleaner

I've just made a program that cleans out all of the mentions of player waivers.

http://web.aanet.com.au/21C/pafiledb...tion=file&id=6

I've noticed a few people complaining about the fact that there are too many mentions of player waivers. I can't stop the actual waivers in the game but I was able to change the reporting of this:
Quote:
6 Friday 2/5/2008 :
1 Anaheim: Free agent 3B <a href=p591.html>Troy Glaus</a> has been signed to a contract of $9,727,000 per year, for 6 years.
1 Montreal: Free agent P <a href=p7.html>C.C. Sabathia</a> has been signed to a contract of $4,839,600 per year, for 3 years.
1 Los Angeles: Free agent RF <a href=p334.html>Ryan Ludwick</a> has been signed to a contract of $2,268,600 per year, for 3 years.
1 Oakland: Free agent P <a href=p300.html>Julio Mateo</a> has been signed to a contract of $8,109,900 per year, for 4 years.
1 Houston: Free agent P <a href=p633.html>Chad Fox</a> has been signed to a contract of $2,738,800 per year, for 5 years.
1 Houston: Free agent CF <a href=p3.html>Alex Sanchez</a> has been signed to a contract of $677,100 per year, for 4 years.
1 Anaheim: Free agent 3B <a href=p197.html>Abraham Nunez</a> has been signed to a contract of $866,700 per year, for 3 years.
1 Arizona: Free agent C <a href=p187.html>Miguel Olivo</a> has been signed to a contract of $500,700 per year, for 2 years.
1 Philadelphia: Free agent P <a href=p680.html>Scott Elarton</a> has been signed to a contract of $425,100 per year, for 2 years.
1 Kansas City: Free agent P <a href=p1448.html>Franklin Perez</a> has been signed to a contract of $497,200 per year, for 2 years.

1 <b>Trade between Colorado and Anaheim :</b>
1 Anaheim gets :
1 LF <a href=p1339.html>Jorge Piedra</a>
1 P <a href=p1094.html>Markus Chase</a>
1 Colorado gets :
1 3B <a href=p1246.html>Dallas McPherson</a>
1 Colorado: Put RF <a href=p1416.html>Brandon Watson</a> on irrevocable waivers and designated him for assignment.
1 Anaheim: Placed P <a href=p2158.html>Joe Torres</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Kansas City: Placed 3B <a href=p1612.html>Andres Blanco</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Oakland: Put P <a href=p1968.html>Bill Murphy</a> on irrevocable waivers and designated him for assignment.
1 Montreal: Placed P <a href=p1116.html>Ismael Valdez</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Philadelphia: Placed 3B <a href=p388.html>Brandon Larson</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Philadelphia: Put P <a href=p1087.html>Brad Thomas</a> on irrevocable waivers and designated him for assignment.
1 Houston: Placed P <a href=p1783.html>Derick Grigsby</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Houston: Placed 3B <a href=p1879.html>Brock Koman</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Houston: Put CF <a href=p2141.html>Willy Taveras</a> on irrevocable waivers and designated him for assignment.
1 Houston: Put P <a href=p1831.html>D.J. Houlton</a> on irrevocable waivers and designated him for assignment.
1 Arizona: Placed C <a href=p187.html>Miguel Olivo</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Los Angeles: Placed CF <a href=p13.html>Wilkin Ruan</a> on waivers and designated him for assignment for the purpose of removing him off the 40-man roster.

1 Los Angeles: Put 1B <a href=p1158.html>Daryle Ward</a> on irrevocable waivers and designated him for assignment.
To this:
Quote:
6 Friday 2/5/2008 :
1 Anaheim: Free agent 3B <a href=p591.html>Troy Glaus</a> has been signed to a contract of $9,727,000 per year, for 6 years.
1 Montreal: Free agent P <a href=p7.html>C.C. Sabathia</a> has been signed to a contract of $4,839,600 per year, for 3 years.
1 Los Angeles: Free agent RF <a href=p334.html>Ryan Ludwick</a> has been signed to a contract of $2,268,600 per year, for 3 years.
1 Oakland: Free agent P <a href=p300.html>Julio Mateo</a> has been signed to a contract of $8,109,900 per year, for 4 years.
1 Houston: Free agent P <a href=p633.html>Chad Fox</a> has been signed to a contract of $2,738,800 per year, for 5 years.
1 Houston: Free agent CF <a href=p3.html>Alex Sanchez</a> has been signed to a contract of $677,100 per year, for 4 years.
1 Anaheim: Free agent 3B <a href=p197.html>Abraham Nunez</a> has been signed to a contract of $866,700 per year, for 3 years.
1 Arizona: Free agent C <a href=p187.html>Miguel Olivo</a> has been signed to a contract of $500,700 per year, for 2 years.
1 Philadelphia: Free agent P <a href=p680.html>Scott Elarton</a> has been signed to a contract of $425,100 per year, for 2 years.
1 Kansas City: Free agent P <a href=p1448.html>Franklin Perez</a> has been signed to a contract of $497,200 per year, for 2 years.

1 <b>Trade between Colorado and Anaheim :</b>
1 Anaheim gets :
1 LF <a href=p1339.html>Jorge Piedra</a>
1 P <a href=p1094.html>Markus Chase</a>
1 Colorado gets :
1 3B <a href=p1246.html>Dallas McPherson</a>
From the Readme:
Quote:
This program will remove all of the waivers reports from the Transactions file. The original file ( ltrans.txt ) will be backed up ( called ltrans-backup.txt )

The program must be put in the LEAGUE_NEWS_BOX folder for your league.
Like C:\Program Files\Out of the Park Developments\OOTP 6\MyLeague.lg\LEAGUE_NEWS_BOX

There is only one issue with the program. On days where there were only waivers, these get removed, leaving something like this:
6 Tuesday 4/20/2008 :
~
6 Wednesday 4/21/2008 :
~
6 Thursday 4/22/2008 :
~
6 Friday 4/23/2008 :

Not elegant but the original file size should be cut in half.
21C is offline