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 > Out of the Park Baseball 23 > OOTP 23 - General Discussions

OOTP 23 - General Discussions Everything about the brand new 2022 version of Out of the Park Baseball - officially licensed by MLB and the MLBPA.

Reply
 
Thread Tools
Old 08-11-2022, 10:11 AM   #21
Matt Arnold
OOTP Developer
 
Matt Arnold's Avatar
 
Join Date: Jun 2009
Location: Here and there
Posts: 16,329
The graphs might be an issue where the various results charts don't have the same number of data points. It looks like we size each team separately, so we probably just need to coordinate better to make sure they all line up.
Matt Arnold is offline   Reply With Quote
Old 08-11-2022, 12:00 PM   #22
Sweed
Hall Of Famer
 
Sweed's Avatar
 
Join Date: Apr 2002
Location: Iowa
Posts: 7,177
Quote:
Originally Posted by Matt Arnold View Post
The graphs might be an issue where the various results charts don't have the same number of data points. It looks like we size each team separately, so we probably just need to coordinate better to make sure they all line up.
Well, this morning, I've progressed two days and it seems the graphs are now all correct. I guess it needs a look but, maybe it has sorted itself?

Sorry for the confusion but I did not expect it to fix itself so, figured it best to report before the patch became final. Now, frankly, I don't know what to think
Sweed is offline   Reply With Quote
Old 08-11-2022, 12:14 PM   #23
Matt Arnold
OOTP Developer
 
Matt Arnold's Avatar
 
Join Date: Jun 2009
Location: Here and there
Posts: 16,329
Quote:
Originally Posted by Sweed View Post
Well, this morning, I've progressed two days and it seems the graphs are now all correct. I guess it needs a look but, maybe it has sorted itself?



Sorry for the confusion but I did not expect it to fix itself so, figured it best to report before the patch became final. Now, frankly, I don't know what to think
It depends on how many data points and the width. So, for example, day the widget was 400 wide, and the teams all have about 100 games each. If one team has played 99 games, then each game can take up 400/99 = 4.00x wide, or we can set it to 4 and fit safely. If another team has 101 games, then 400/101=3.9x, so using 4 per game for that team will be too much, so we have to drop down to 3.

The correct answer is to pick the same size for each team. We'll fix it up to do it that way, so thanks for reporting
Matt Arnold is offline   Reply With Quote
Old 08-11-2022, 12:37 PM   #24
beepollen
All Star Starter
 
beepollen's Avatar
 
Join Date: May 2020
Posts: 1,187
Thank you for addressing the graphs.

When I shuffle off this mortal coil, who knows what legacy I shall leave behind - but I can take to the bank that I got OOTP to ditch winning percentage in favor of +/- .500.
beepollen is offline   Reply With Quote
Old 08-11-2022, 03:43 PM   #25
uruguru
All Star Starter
 
Join Date: May 2022
Posts: 1,386
Quote:
Originally Posted by Matt Arnold View Post
It depends on how many data points and the width. So, for example, day the widget was 400 wide, and the teams all have about 100 games each. If one team has played 99 games, then each game can take up 400/99 = 4.00x wide, or we can set it to 4 and fit safely. If another team has 101 games, then 400/101=3.9x, so using 4 per game for that team will be too much, so we have to drop down to 3.

The correct answer is to pick the same size for each team. We'll fix it up to do it that way, so thanks for reporting
Instead of calculating the width of each game and treating it like a constant for all games, you should calculate the start/end points of each game (as float) and then the width of that game is the difference.

for example, 10 games for a team over 45 pixels would result in alternating widths of 4 or 5 pixels for each game, whereas a team with 9 games of course would have exactly 5 pixels for each game.

This will result in all team's total lines ending at the same spot (the rightmost side of the panel) by dynamically sizing as you draw each team's line

I literally had to deal with this exact (EXACT) same problem in a game I developed where I needed to plot lines for data (except each line was part of some historical timeline comparing an an attribute for different alien races).

pseudocode something like this:

int panelWidth = 45;

// totalGames different for each team
int totalGames = 10;

for (int i=0;i<totalGames;i++) {
int startPoint = (int) (panelWidth * i / totalGames);
int endPoint = (int) (panelWidth * (i+i) / totalGames);
drawLineSegment(startPoint,endPoint);
}

Last edited by uruguru; 08-11-2022 at 03:44 PM.
uruguru is offline   Reply With Quote
Old 08-11-2022, 03:55 PM   #26
uruguru
All Star Starter
 
Join Date: May 2022
Posts: 1,386
Quote:
Originally Posted by beepollen View Post
Thank you for addressing the graphs.

When I shuffle off this mortal coil, who knows what legacy I shall leave behind - but I can take to the bank that I got OOTP to ditch winning percentage in favor of +/- .500.

Now if they can only treat the division standings the same way!
uruguru is offline   Reply With Quote
Old 08-12-2022, 01:08 PM   #27
Markus Heinsohn
Developer OOTP
 
Markus Heinsohn's Avatar
 
Join Date: Dec 2001
Location: Germany
Posts: 24,803
Thanks for all the feedback! We have fixed some reported issues and released a new public beta: https://forums.ootpdevelopments.com/...d.php?t=340198
Markus Heinsohn is offline   Reply With Quote
Reply

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 09:07 AM.

 

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