NitroClash Replay Analysis

This project is focused on analyzing replays of the game NitroClash.io. Access the project at parasetanol.com

This project wouldn't even exist if not for sawy who first experimented on the game using tampermonkey. That prompted me to inspect the game's browser script which basically started this project.
Another special thanks will go to lemone, he took the time to come up with ideas and refining the stats that would be useful for each nc game.

Getting Started

The scripts.js file in nitroclash.io browser sources actually exposes a lot of useful functions and variables. However it is a very very long minified js script that is humanly impossible to read. Therefore i had to use LLMs to help me understand what is included in the code. My go-to was gemini due to its free context size.

The first interesting discovery was the replay parsing code. The script didnt explain it but llm could tell what bytes are parsed out of the replay files, it one-shotted the metadata end events parsing. However it was not as successful when it came to the frame-by-frame data.
So i had to inspect the data myself, after extracting their values byte by byte into a csv file. In my notes file, you can see the hex values and the separation i made when analyzing the replay data.
This was a hobby project that i started working on with a quick spike in inspiration, so i got help from LLMs a lot in this project.

I initially tried parsing the code in python, so the full replay parsing happens within the python code. Later though, i wanted to host this on a website, meaning i had to somehow parse the replays from a js app. Easiest solution i thought of is simply running python as a child process from website, python saves everything in a json file for website to read and import.

Well... This blog post is not finished yet so you are pretty much early to see it in it's full glory.
Anyways, Did you know that the subject word 'I' is written in uppercase in English because people kept missing lowercase 'i' when reading old English prints? I learned this in a short video or smth. You will see a lot of lowercase 'i's in this website though because it is not printed from an old machine.