Home | Webstore
Latest News: OOTP 27 Buy Now - FHM 12 Available - OOTP Go! 27 Available

Out of the Park Baseball 27 Buy Now!

  

Go Back   OOTP Developments Forums > Prior Versions of Our Games > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: Mods

 
 
Thread Tools
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  
Old 04-22-2005, 03:39 PM   #2
William Satterwhite
Minors (Double A)
 
Join Date: Aug 2003
Posts: 188
Am I doing something wrong? I keep trying to install the program but nothing ever happens (at least that I can notice).
William Satterwhite is offline  
Old 04-22-2005, 08:46 PM   #3
Gil Thorp
Major Leagues
 
Gil Thorp's Avatar
 
Join Date: Mar 2004
Location: Milford
Posts: 349
Looks good but I think I'll stick with your clean files utility. That and your history sorter are great!
Gil Thorp is offline  
Old 04-22-2005, 08:55 PM   #4
gmo
Hall Of Famer
 
Join Date: May 2002
Location: Longmont, CO
Posts: 3,425
That is a nice little thing to make.

Here's an idea that I would think would be feasible if the program works the way I would figure it does (though since I do not know, maybe it is not). Have the program write another file that includes just the waivers and have it put a link at the top of the "cleaned up" transactions file to that waivers-only file, which in turn links to the transactions page. Similarly, perhaps the various types of transactions can be separated out into different files.
gmo is offline  
Old 04-23-2005, 12:59 AM   #5
21C
Major Leagues
 
Join Date: Mar 2003
Location: Newcastle, Australia
Posts: 303
Quote:
Originally Posted by William Satterwhite
Am I doing something wrong? I keep trying to install the program but nothing ever happens (at least that I can notice).
I don't what happened but I recompiled the setup and tested it this time. I've also included just the exe file in the zip - it should work if you have the Visual Basic runtime files.

It should work OK now if you redownload it.
21C is offline  
Old 04-23-2005, 01:00 AM   #6
21C
Major Leagues
 
Join Date: Mar 2003
Location: Newcastle, Australia
Posts: 303
Quote:
Originally Posted by gmo
That is a nice little thing to make.

Here's an idea that I would think would be feasible if the program works the way I would figure it does (though since I do not know, maybe it is not). Have the program write another file that includes just the waivers and have it put a link at the top of the "cleaned up" transactions file to that waivers-only file, which in turn links to the transactions page. Similarly, perhaps the various types of transactions can be separated out into different files.
I'll give it a try but I can't promise. I think I'll have problems with trades.

Waivers were easy because I just had to search for any line that had the word 'waiver' in it. Contract signings, player releases and trading block announcements ( any others? ) should be easy enough since they get reported on a single line.

Trades will be problematic because they go over several lines, like:
Quote:
1 <b>Trade between Minnesota and Pittsburgh :</b>
1 Pittsburgh gets :
1 CF <a href=p468.html>Torii Hunter</a>
1 P <a href=p86.html>Johnny King</a>
1 LF <a href=p2301.html>Julian Zamora</a>
1 $2,200,000 cash.
1 Minnesota gets :
1 P <a href=p1456.html>Ian Oquendo</a>
Quote:
1 <b>Trade between Kansas City and Pittsburgh :</b>
1 Pittsburgh gets :
1 P <a href=p1013.html>Ben Sheets</a>
1 Kansas City gets :
1 RF <a href=p1463.html>Tony Alvarez</a>
Actually, it could work out OK since I'd just have to search for the other items and trades should be whatever's left. I'll see what I can do but I won't promise in case I can't deliver.
21C is offline  
Old 04-23-2005, 01:09 AM   #7
gmo
Hall Of Famer
 
Join Date: May 2002
Location: Longmont, CO
Posts: 3,425
Quote:
Originally Posted by 21C
I'll give it a try but I can't promise. I think I'll have problems with trades.

Waivers were easy because I just had to search for any line that had the word 'waiver' in it. Contract signings, player releases and trading block announcements ( any others? ) should be easy enough since they get reported on a single line.

Actually, it could work out OK since I'd just have to search for the other items and trades should be whatever's left. I'll see what I can do but I won't promise in case I can't deliver.
I understand nothing could be guaranteed, but I can also relate to enjoying a bit of a programing challenge like this. In any case, good work on what you have already done.

Presumably CatoBase does something like whatever you are doing when it is processing the ltrans file for its output. It might not look nice in a plain text file, but some sort of label at the beginning of a transaction would make separating the various entries much easier. Maybe that could be the move to the future - still dumping everything into a textfile in the game, but having the game be able to read each event individually so you can get only what you want to view at any given time.
gmo is offline  
Old 04-23-2005, 10:56 AM   #8
William Satterwhite
Minors (Double A)
 
Join Date: Aug 2003
Posts: 188
Quote:
Originally Posted by 21C
I don't what happened but I recompiled the setup and tested it this time. I've also included just the exe file in the zip - it should work if you have the Visual Basic runtime files.

It should work OK now if you redownload it.
It works perfectly, great job!
William Satterwhite is offline  
Old 04-23-2005, 11:23 AM   #9
21C
Major Leagues
 
Join Date: Mar 2003
Location: Newcastle, Australia
Posts: 303
Quote:
Originally Posted by 21C
I'll give it a try but I can't promise. I think I'll have problems with trades.
OK - I've done it.

More here.
21C is offline  
 

Bookmarks


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

Forum Jump


All times are GMT -4. The time now is 08:30 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments