Posts tagged "League Import/Export"


Streaming JSON parsing with the Web Streams API

As I sometimes do, this post is just me geeking out over some technical detail of the ZenGM codebase that doesn't directly impact gameplay. So maybe it's of interest to some fellow programmers or other people who just want to geek out with me, but for everyone else, I promise the next blog post will be about a new feature :)

ZenGM leagues can get quite large. So large that I need to be careful when importing/exporting them, because there may not be enough RAM to read a large league into memory. For this reason, I take advantage of the Web Streams API to import/export leagues incrementally, meaning you just read in a little bit of the data and a time, process that data, and then discard it before going on to the next little bit of data.

Read more...


Gzip compressed league files

This is a small feature, but it gets a blog post because it needs a little explanation.

The Export Leauges screen now has an option to apply gzip compression to league files, and you can now import gzip compressed league files.

This is what the option looks like (except for a few of you using old browsers that don't support it):

Read more...


No more size limit for exporting leagues

Previously, exporting leagues only worked for small leagues. After you played a couple hundred seasons, it no longer worked unless you deleted some historical data. A similar problem existed for importing large league files, although that was probably not noticed much due to the issue with exporting.

That's why there have been no updates the past couple weeks - I have been trying to fix all these import/export issues. It's actually pretty tricky, because it requires rewriting a lot of my code and also working around missing features and bugs in various browsers. But I think I am finally happy with it, so it is now released in version 2021.10.26.0638.

As an added bonus, you can also see progress bars when importing/exporting leagues, which is nice for large leagues:

Read more...


New customization features: full league import/export and custom draft class import

This post is to announce two new features that have gone live over the past couple weeks that should enhance the customizability of Basketball GM: full league import/export and draft class import.

Read more...