Admin
Improved Backup Logic - Need Your Help Testing!
December 15, 2009 at 11:47PM View BBCode
I've been working on a change related to what positions backups play.
Here's how it will work. Based on your fill order, Abe will shift players in the lineup around before putting the new guy on the field.
For example, let's say you have a pretty standard fill order like this:
1 C
2 SS
3 2B
4 3B
5 CF
6 1B
7 RF
8 LF
Let's say your backup catcher starts at 1B vs LHP, and your starting catcher is tired. Abe will shift your backup catcher to catcher, then choose your first choice at 1B to play 1B. Just to complicate things, let's say your first choice at 1B is the guy who starts in LF vs LHP. Abe will then shift that guy to play LF, and then use the first choice to play LF. And so on.
At this point, I have the code working so that it doesn't crash. But have not had a chance to see if it is actually working.
I have also only enabled this for your lineup and backups vs LHP I will do more testing tomorrow, let me know if you see anything.
Tyson
[Edited on 12-17-2009 by Admin]
Admin
December 16, 2009 at 05:44PM View BBCode
I'm going to zip through the playoffs and offseason to test this with next seasons games, and test some code related to Stadiums and offseason.
Tyson
Admin
December 16, 2009 at 06:09PM View BBCode
I've also changed the code to always use the lineups vs LHP and to treat all SP as LHP, this is temporary obviously while we test.
Tyson
Admin
December 16, 2009 at 06:28PM View BBCode
Ok, I've tested 3 cases. The 3rd one didn't work at first, so I wrote new code which was in place for game #10.
Case 1: Simple sub, guy is tired, first sub for that position is on the bench
Case 2: SS is tired, first sub is current 2B. First sub for 2B is current CF. First sub for CF is current RF. First Sub for RF is on the bench.
Case 3: SS is first sub for 2B. SS has a lower Fill Order than 2B. SS should not be moved to 2B.
Let me know if you have other scenarios you can think of, or if you see a problem with this. I'm going to put in a manager pref for this and will probably turn this off by default.
Tyson
Admin
December 16, 2009 at 06:29PM View BBCode
On second thought, a manager pref probably isn't necessary. You can turn this off by making sure you don't have any starters setup as backups.
Tyson
Admin
December 17, 2009 at 09:36PM View BBCode
Ok, I've enabled this for right handed pitchers. I cleaned up the code a bit while I was in there to make easier to adjust in the future, hopefully that didn't break anything else.
Please keep an eye out to make sure that your lineups are being set properly, and backups are being set properly. As of game 28, Abe should be using the correct lineups.
If you find a bug, I'll pay you a D$500 bounty (or $5 credit).
Tyson
Shaheen
December 18, 2009 at 06:32PM View BBCode
It worked correctly for my team in game 43. It moved my starting 2B to replace my injured SS and then added a 2B replacement at the end of my batting order.
Hamilton2
December 21, 2009 at 05:44PM View BBCode
This is the single most awesome change since system 3 minors. Thank you!
redcped
December 28, 2009 at 04:13PM View BBCode
I can't wait for this to take effect in the main site. I have a precarious middle infield situation!
Thanks, Tyson.
Pages: 1