Baseball game dev diary: V1.0.1.202012220933 Addition of on deck / in hole player info

  1. Added buttons for on deck and in hole player info. Runs existing procedure for show player info when clicked. Uses bases array spaces 8 and 9 which were intended for this purpose right from the start.
  2. Adjusted code to toggle buttons and on-screen info at various situations such as immediately after simming to last inning or end of game. Removed call to ‘buttons toggle simmed entire’ as it was the same code as ‘buttons toggle game over’ and will probably not differ in the future.
  3. Added listboxes showing lineups to make it easier to confirm it is cycling through lineups correctly.
  4. Tidied up the end of game and end of inning code so that simmed and manual games used the same code. See below.

Well, this was an absolute nightmare of a 'minor' addition. The on deck/in hole stuff was no problem as I had already planned for it with the bases array. The lineup listboxes took literally five minutes. But in amongst all of that I decided to try and refine the end of game code as I realised the simmed end of game code duplicated some of the regular end of game code which could cause problems later on. This then snowballed into end of inning code as I saw that there were two procedures that dealt with the end of an inning (again, one for simmed, one for manual). So I fixed that. Eventually. It took nine hours on and off from when I started on it to when I finally got it back to a working state. The good news is the sim code and the manual code now use the same procedures. Not sure why they didn’t in the beginning, must have been all those late nights. 



Comments

Popular posts from this blog

MLB (Road to) The Show attribute progression

MLB The Show 21: create a stadium prediction & using created stadiums in online games

V1.1.4.202103032300 Basic player creator, line score tidy up and additional play results, including errors