Skip to content

Instantly share code, notes, and snippets.

View nephest's full-sized avatar
💭
I may be slow to respond.

nephest

💭
I may be slow to respond.
View GitHub Profile
@Talv
Talv / NOTES.md
Last active April 1, 2024 09:30
StarCraft 2 Custom Games list freeze - technical explanation [2024/03]

UPDATE 29-03-2024: Bug described below was addressed in 5.0.13.92028 released on 26th March. However not long since this event, a new exploit is now being used in similar manner - publishing malformed map, then hosting such map publicly, will trigger a game client crash.

This new variant is harmless - cannot be exploited to distribute malware or anything of this sort. More info about it on the SC2 Forum.

The sad part is that it requires an engine-level fix, or a server-side validation of published maps. Not something we - as a community without access to the code - can help in anyway, it's up to Blizzard now.


StarCraft 2 Custom Games list freeze - technical explanation [2024/03]

@HADB
HADB / fetch-starcraft-2-ladders-data-of-kr-region.md
Last active November 15, 2021 08:58
Two ways to fetch starcraft 2 ladders data of KR region

Hi, there! Here's how I fetch the data of KR region in sczone-crawler.

We know that the League api and Legacy Ladder api are not working as expected in KR region. But other apis still work. So we just have to find a way to get the ladders.

An inefficient way:

  1. Loop all the characters of KR.
  2. Use Profile Ladder Summary api (/sc2/profile/:regionId/:realmId/:profileId/ladder/summary) with each profileId above to get all ladders of each character.
  3. Use Profile Ladder api (/sc2/profile/:regionId/:realmId/:profileId/ladder/:ladderId) with profileId and ladderId above to get all teams of each ladder.
  4. Add new characters found in these ladder teams.

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@tmazeika
tmazeika / caspian.css
Created June 2, 2015 03:23
JavaFX default Caspian style sheet.
/*
* Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*