jleonard2099 / LHG_ProBB

Lance Haffner Basketball Pro Game
GNU Affero General Public License v3.0
2 stars 0 forks source link

Human vs PC has no PBP for 0 delay #10

Closed jleonard2099 closed 6 days ago

jleonard2099 commented 1 year ago

These issues are present in the original game. Input options work as expected (pass/shoot/etc.) but there is no way to see what is going on as PBP window is mostly empty.

The approach in the original code to when PBP has 0 delay was simply not to print it at all. This makes it difficult to know what's happening if you want 0 delay in a game that is not autoplayed.

It is anticipated that the best resolution is to behave as Baseball and Football, where 0 delay translates only as that (and the text is still printed).

Based on how this is handled, there may be an issue with the presence of text prompting for TIMEOUT / SUB during the PBP. It appears to remain steadily there even when not needed.

jleonard2099 commented 3 weeks ago

At this time I am now trying to recreate the behavior in Courtside with PBP. This includes building a more consistent call to routines and how they behave. This should then make both games able to provide some, if limited, feedback during 0 pbp.

Obviously with no output, the game can proceed faster to generating results but this only assumes auto-play scenarios.

jleonard2099 commented 6 days ago

After testing several ideas and options, I was able to settle on a conditional to replace the existing checks. PBP will now be printed in all games that are NOT autoPlay, OR in all games with pbpDelay > 0.

This is having the expected behavior and working well during human play and pc vs pc.

This behavior is now being copied over to Courtside as well since it was using the same logic as PBB.