Build Next JS Cricket Simulator

To be used when developing an addon/patch/app etc

HighFlyingDwarf

County Cricketer
Joined
Apr 30, 2023
I have returned.

It's been a bit of a wild year. I moved halfway across the UK and ended up getting engaged. I went AWOL from here and am pretty apologetic about that, especially to my good friend @ahmedleo414 and to @Na Maloom Afraad given all the great work he put into World of Cricket, and that's partly what spurred my return, as I was disappointed to see that WoC is on a bit of a break.

I've been developing my developer skills over the last few years and I'm at a point now where I wanted to crack on with doing some sort of game, and with the text based format in mind, cricket is perfect for that.

With that in mind, NextJSCricket is a modern cricket management simulation game built with Next.js, TypeScript, and Tailwind CSS. Many features are already developed, including a full squad management system, and T20 and ODI match support (Test support is still in development, due to some issues supporting the length of the matches.)

The game will be fully online. It's feasible to instance it, meaning different leagues can have different setups, etc. The game is fully hosted on a server less edge CDN.

This is all very WIP, but a bit of an idea of what we're dealing with here:

1734554986871.png

1734555054082.png
1734555198331.png

1734555171353.png

I'm interested in peoples opinions and inputs on what they would like to see in the game, or what they would use it for.
 
so this will be Cricket Captain/Coach type of simulation game right?...
This is more in line with Battrick.

I'm genuinely not sure about the scope. As I've been working on it, it's taken on a life of its own.

Really I wanted to make something that would make WoC a lot more manageable to run and take out some of the busy work that NMA is having to do.

With it being online, I've been leaning towards it being an mmo, but the underlying systems are quite flexible and mean it can be repurposed for a bunch of different things.
 
Last edited:
Evening update

Sign up form now has team creation implemented.

Leaning into the MMO side of things. There is logic to create a pyramid system so that as teams are created, the leagues are added dynamically.

The dynamic features are a way to see "what can it do?" But it's completely workable with statically defined competitions, like those in the real world

The nations included are based on those in the database. There's scope to add and remove countries to make the world bigger and smaller.

Some challenges:

Only T20's are currently supported. The process for running the matches is very inefficient, and fails when the matches are over a certain length. This needs to be refined. The test engine needs to be completely rewritten to support multi day, rain, etc.

Figuring out how the mechanics of week by week processing are handled is a challenge. How well will it scale if lots of people play. Etc.
 

Attachments

  • Screenshot_20241222_184759_Firefox Focus.jpg
    Screenshot_20241222_184759_Firefox Focus.jpg
    255 KB · Views: 6
  • Screenshot_20241222_184730_Firefox Focus.jpg
    Screenshot_20241222_184730_Firefox Focus.jpg
    247.3 KB · Views: 6
  • Screenshot_20241222_184755_Firefox Focus.jpg
    Screenshot_20241222_184755_Firefox Focus.jpg
    392.6 KB · Views: 6
Morning update.

I was out last night at a pre christmas party and my head hurts.

Anyways, yesterday I made a lot of progress. T20's and One Day matches are now fully working after a rewrite of the match engine to make it more efficient. It was making a lot of database calls and also had trouble with memory leaks.

There's various other bits in terms of presentation. I've revamped the league menu and added the individual pages for viewing involved squads, fixtures and the league table.

1735039869688.png
 
Merry Christmas.

The big one to start. Test and first class matches can be simulated from start to finish now without any systemic issues. It's still super broken and needs modifying to have proper strategy etc and recognition of more than two innings. But they are there in a form!

Two new pages today. One is the transfer market. This is live updating. Some parts of the screenshot are redundant as this page hasn't had a lot of love lately but it's fully functional.

The other is club membership and a nice looking breakdown of different parts of the supporter base. This impacts match attendance and revenue. The plan is this will go up and down based on success or failure.

Screenshot_20241225_143156_Firefox Focus.jpgScreenshot_20241225_143226_Firefox Focus.jpg
 
Probably going back to this again, it's more Cricket Coach than cricket captain, but more battrick than either of those
Love the work being done, a newer version of battrick would be so good!
If you want any inspiration maybe consider checking out From The Pavilion if you haven't already. I don't want to add any extra load on you but their feature of having players in your club being called to play for their national teams is super cool imo.
 
Love the work being done, a newer version of battrick would be so good!
If you want any inspiration maybe consider checking out From The Pavilion if you haven't already. I don't want to add any extra load on you but their feature of having players in your club being called to play for their national teams is super cool imo.
Thank you. Will check it out.

The national and club teams are split, and all players have their own nationalities, so that should be fairly easy to do tbh
 

Users who are viewing this thread

Top