Skip to content

Instantly share code, notes, and snippets.

@robojumper
robojumper / Verify SSR PR logic with the new-logic tracker.md
Last active January 17, 2024 21:14
How to quickly verify Skyward Sword Randomizer logic data changes using the new-logic tracker

An SSR developer noted:

grafik

So let's fix this and actually validate the fix directly in the tracker.

Step 0: Reproduce the situation

This issue was identified on an experimental build with random Pillar First Time Dive bird statues. But this is not strictly needed to reproduce the issue. Instead, we can just set the Volcano East statue as our starting entrance.

@robojumper
robojumper / 01-natural.md
Last active February 6, 2022 12:47
Why natural T33 builds are impossible in Destiny 2

Why natural T33 builds are impossible in Destiny 2

Ever since Armor 2.0 with random stats started dropping in Destiny 2: Shadowkeep, many have been chasing the perfect stat distribution. An important aspect of an armor set is the natural total tier: Players only gain beneficial effects from stats in intervals of 10 (30 Mobility has the same effect as 39 Mobility), so a large number of effective stat points with few stat points "wasted" indicates a high-quality armor set. Destiny Item Manager's Loadout Optimizer can help you find high-quality sets, as can D2ArmorPicker.

grafik
DIM's Loadout Optimizer found a natural T32 build

A natural T32 build is a set of fully masterworked armor which, without any stat-modifying mods or Stasis fragments, can hit a sum of 32 tiers in the six stats. A T32 set requires some high-quality armor, but most players who

@robojumper
robojumper / UIUnitFlag.uc
Created July 30, 2018 18:47
Example code for #257 Unit Flag changes.
// ...
function UpdateFocusBar(XComGameState_Unit UnitState)
{
local bool visible;
local int current;
local int max;
local string color;
local Object Tuple;
@robojumper
robojumper / RasterToSVG.java
Created April 15, 2016 21:48
Convert Raster Images to SVG Rects
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import javax.imageio.ImageIO;
@robojumper
robojumper / autoclicker_android.py
Created October 19, 2015 10:21
Clicks very often at (x, y)
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
x = 50 # x-koordinate
y = 750 # y-koordinate
device = MonkeyRunner.waitForConnection()
while True:
device.touch(x, y, "DOWN_AND_UP")
package de.mars.bitmaps;
import java.nio.file.Files;
import java.nio.file.Path;
/**
*
* Beschreibung: Die Klasse realisiert verschiedene Forderungen für
* - das Lesen der Datei in eine 1D-Feld
* - das Extrahieren des Kopfes aus dem 1D-Feld
* - das Extrahieren der Bildmatrix aus dem 1D-Feld
@robojumper
robojumper / Hausaufgabe.java
Last active September 30, 2015 17:21
Die Informatikhausaufgabe, abzugeben bis zum 01.10.2015 18:00 Uhr
package de.mars.hausaufgabe;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.InputMismatchException;