Skip to content

Instantly share code, notes, and snippets.

@JLaferri
JLaferri / g_ucf_084_stealth.txt
Created June 15, 2023 04:33
Slippi UCF 0.84 codes
$UCF 0.84 Slippi [Altimor, PracticalTAS, CarVac, Krohnos]
C20D65EC 00000010 #External/UCF 0.84/UCF/UCF DBOOC SquatRv Fix.asm
4800003D 3F170A3D
42A00000 38D1B717
00000000 00000000
FC200A10 C0440004
C0640008 EC2118B8
FC20081E D824000C
80C40010 38C60002
4E800020 C0040094
@JLaferri
JLaferri / port-priority-fixes.txt
Last active November 17, 2022 21:36
Gecko codes to fix port priority throw hitstun and same frame ledge grab. DO NOT USE IN UNRANKED
$Optional: Port Priority Fixes [Punkline, Achilles, PKFreeZZy]
*DO NOT USE IN UNRANKED
C206C3A8 0000003E #External/PortPriority/LedgeGrab/CheckLastGObj.asm
4800018C 4E800021
00000000 00000000
00000000 00000001
48000004 7C641B78
38A0FFFF 8004000C
38A50001 2C000000
4080000C 7C040378
@JLaferri
JLaferri / SendMenuFrame.asm
Last active July 27, 2022 19:51
Send Menu Info on Stack
################################################################################
# Address: 0x801a4fa4
################################################################################
################################################################################
# Routine: SendMenuFrame
# ------------------------------------------------------------------------------
# Description: Gets menu information and sends it to the Slippi device
################################################################################
@JLaferri
JLaferri / openskillTesting.js
Created March 16, 2022 00:23
Testing openskill, specifically whether rating can go down on a win
const util = require('util');
const { range, random, chain, min, max, mean, takeRight, cloneDeep, orderBy } = require('lodash');
const { rating, ordinal, rate } = require('openskill');
const PLAYER_COUNT = 100;
const START_MU = 25;
const START_SIGMA = 25.0 / 3.0;
const MATCH_COUNT = PLAYER_COUNT * 1000; // Creates ~200 games per player
// const TAU = 25.0 / 300.0;
const TAU = START_SIGMA / 100.0;
@JLaferri
JLaferri / mmrTesting.js
Created March 8, 2022 21:16
Script to test openskill by generating random players and simulating a bunch of matches
const util = require('util');
const { range, random, min, max, mean, orderBy } = require('lodash');
const { rating, rate } = require('openskill');
const PLAYER_COUNT = 100;
const START_MU = 25;
const START_SIGMA = 25.0 / 3.0;
const MATCH_COUNT = PLAYER_COUNT * 1000; // Creates ~200 games per player
// const TAU = 25.0 / 300.0;
const TAU = 0.3;
@JLaferri
JLaferri / ComboVideoInput.json
Last active March 26, 2020 07:32
Input to Dolphin to queue up multiple clips
{
"mode":"queue",
"queue":[
{
"path":"D:\\Slippi\\Tournament-Replays\\Pound-2019\\Station 101-A\\Game_20190419T100350.slp",
"startFrame":65,
"endFrame":711
},
{
"path":"D:\\Slippi\\Tournament-Replays\\Pound-2019\\Station 101-B\\Game_20190419T102006.slp",
[
{
"label": "Openings / Kill",
"player1Value": "4.5",
"player2Value": "2.0"
},
{
"label": "Damage / Opening",
"player1Value": "25.1",
"player2Value": "34.3"
{
"gameIdx": 0,
"settings": {
"isTeams": false,
"isPAL": false,
"stageId": 32,
"players": [
{
"playerIndex": 0,
"port": 1,
{
"name": "slippi-api-js",
"scripts": {
"start": "node start.js",
"deploy": "gcloud app deploy --quiet",
"tail": "gcloud app logs tail -s api-js",
"upload-replays": "node scripts/runScript.js uploadReplays.js"
},
"dependencies": {
"@babel/core": "^7.3.4",
Slippi Flight Notes
General
- MAC Address does not get initialized if network thread doesn’t start. Will likely be using USB at Gang
- Should we use something other than MAC Address for console ID? Or should we just initialize and use it as an ID even if not using networking
- A safer method for real-time mode might be to track the frames and keep track of how far behind we are and look for the minimums, if the constant minimum is something like 5 frames, that means we should be able to FFW 5 frames without ever having to wait. Maybe also only ever FFW a single frame at a time, intervals of 15 frames or so? Might create a smoother FFW experience.
Tournament Set-up
- Make sure latest Slippi Nintendont is installed on all the Wiis
- Set up the console times for all the consoles (Vin plz halp ;-;)