Build {version 4.5} 'Pinch Hitter Cricsim' is live!.. *added Leagues tab*

To be used when developing an addon/patch/app etc
I thought about adding stadium, but it actually don't make any difference in the simulation, so i leave that thought behind... Currently I am working on even more exciting features called Leagues :D... I want to create something which I wanted to have during World of Cricket...
I want to suggest something like Cricket coach where you can simulate a whole season of a domestic leagues
 
Version 4.5 of 'Pinch Hitter Cricsim' is live!

Added new LEAGUES tab, allowing you to create and manage persistent, multi-match competitions beyond single exhibition games.
  1. Creation: You begin by clicking the + Create New League button. This opens a modal where you define the competition's core rules:
    • Name & Format: You give your competition a unique name and choose whether the matches will be 20 Overs or 50 Overs.
    • Competition Type:This is the most important choice, with three options:
      • Series: A simple head-to-head competition between two teams over a set number of matches.
      • League: A round-robin format where teams play each other. You can decide if the winner is the team at the top of the points table or if the top teams advance to a Knockout Stage or an IPL-style Play-off.
      • Tournament: A cup-style competition. You can choose a straight Single Elimination bracket or a Group Stage + Knockouts format, where teams first play in groups and the top performers advance.
  2. Team Selection: After setting the rules, you are taken to a dedicated team selection screen. Here, you can use drag-and-drop or double-click to move teams from your "Available Teams" list into the competition. If your format uses groups, you can assign teams to specific groups on this screen.
  3. Generation & Management: Once you've selected the required number of teams, you click Generate League. The simulator then automatically creates all the necessary components for your competition:
    • A full fixture list of all the matches to be played.
    • Points tables for each group or for the main league.
    • A visual knockout bracket for tournaments and playoff leagues.
  4. Playing Matches: The main league page will now show a Next Match button. Clicking this takes you to the MATCHDAYtab with the correct two teams already loaded and the match format locked. After you simulate the match and click "Save & Download", the system automatically:
    • Updates the fixture list with the winner, loser, and result.
    • Updates the points tables with points and Net Run Rate (NRR).
    • Advances the winning team in the knockout bracket.
    • Updates the leaderboards for Most Runs, Most Wickets, and MVP.
    • Sets up the "Next Match" button for the next game in the schedule.

Home Advantage Button, this feature is located in the MATCHDAY tab and adds a layer of realism to your matches.
  • Purpose: The "Home" dropdown menu allows you to give a slight statistical advantage to Team 1 to simulate the effect of playing in front of a supportive home crowd.

The STATS tab has been significantly upgraded to provide more organized and meaningful statistics. The key change is the separation of data into two distinct sub-tabs:
  1. Exhibition Matches: This section now exclusively tracks stats from one-off friendly matches that you play through the MATCHDAY tab. Any league or tournament matches are completely ignored here.
  2. League Matches:This is the powerful new addition. It allows you to analyze the statistics from your competitions separately from your friendly matches.
    • League Selection: A dropdown menu lets you choose any league or tournament you have created.
    • Specific Stats: Once you select a league, it displays detailed batting and bowling stats for all players, but only for the matches played within that specific competition.
    • Team Filtering: You can use a second dropdown to filter the stats and see players from just one team within that league.
    • Downloading: The "Download Stats" button in this section will save a formatted .txt file of the currently filtered data (e.g., stats for just one team in one specific league).

 

Attachments

  • PHcricsim v4.5.zip
    79.8 KB · Views: 0

Users who are viewing this thread

Top