Skip to content

Instantly share code, notes, and snippets.

View y-ack's full-sized avatar
♻️
brain damage per second

ywy y-ack

♻️
brain damage per second
View GitHub Profile
[:] - bbbb ------------------------- 100
[:] SP[3]: 1,1 0
[:] PF[0]: 0,0 .
[:] PF[1]: 0,0 .
[:] SP[2]: 1,1 0
[:] PF[2]: 0,0 .
[:] SP[1]: 1,1 0
[:] PF[3]: 0,0 .
[:] SP[0]: 1,1 0
[:] PIVOT: 0,0 .
name bank start param ofs u1 u2 start ofs u3 loop start loop type loop end u5
SE01 2097152 341 187 169 1020610 127 1020610 0 1048570 0
SE02 2097152 355 187 169 1010882 127 1010882 0 1020606 0
SE03 2097152 369 187 169 1000316 127 1000316 0 1010878 0
SE04 2097152 383 187 169 985690 127 985690 0 1000312 0
SE05 2097152 397 187 169 970842 127 970842 0 985686 0
SE06 2097152 411 187 169 947076 127 947076 0 970838 0
SE07 2097152 425 187 169 945518 127 945518 0 947072 0
SE08 2097152 439 187 169 930160 127 930160 0 945514 0
SE09 2097152 453 187 169 890464 127 890464 0 930156 0
@y-ack
y-ack / pushback_meter_fbneo.lua
Last active June 1, 2022 02:07
aifa, try to remember some of the basics of pushback... (pushback accumulator visualization scripts)
-- fbneo (Game > Lua Scripting > New Lua Script Window)
read_u16 = memory.readword
colors = {
meter_insufficient = 0x5080F8FF,
meter_sufficient = 0x58C058FF,
bg_fill = 0x001830C0,
bg_outline = 0xFFFFFF80,
threshold = 0xB1FFEEFF,
text = 0xFFFFFFF0
}
@y-ack
y-ack / landmaker_damage_pushback_ywy.txt
Last active July 18, 2022 07:28
i don't think we can 32183P our way out of this one, aifa.
# LAND MAKER ~ DAMAGE AND PUSHBACK [ywy] REV.1 2022/07/18
addresses apply for: landmakrj
## terminology:
'break' refers to a shot action that hits a piece on a corner,
causing them to disappear and send damage.
'placing' refers to a shot action that does not break.
'building' refers to pieces transformed into houses by a placing
shot action.
'pushback' refers to the behavior of the pusher retracting as a
(gdb)x/176x 0x4073b6
0x4073b6: 0xffff0000 0xffff0000 0x00000000 0x00000000
0x4073c6: 0x00000000 0x00000000 0x00000000 0xffff0000
0x4073d6: 0xffff0000 0xffff0000 0x00000000 0x00000000
0x4073e6: 0x00000000 0x00000000 0xffff0000 0xffff0000
0x4073f6: 0xffff0000 0xffff0000 0x00000000 0x00000000
0x407406: 0x00000000 0x00000000 0x00000000 0xffff0000
0x407416: 0xffff0000 0xffff0000 0x00000000 0x00000000
0x407426: 0x00000000 0x00000000 0xffff0000 0xffff0000
0x407436: 0xffff0000 0xffff0000 0x00000000 0x00000000
@y-ack
y-ack / cted.ps1
Created November 16, 2021 16:51
sep 16, 2016
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,Position=1)] [String]$filepath
)
$Window = $Host.UI.rawUI.WindowSize
[String]$file = Get-Item $filepath
[bool]$allIsWell = 1
[int]$line = 0
[int]$endline = $line + $Window.Height - 3
@y-ack
y-ack / exgame.js
Created November 16, 2021 16:47
exgame colorizer bookmarklet
game = document.body.getElementsByClassName('modulemessage')[document.body.getElementsByClassName('modulemessage').length - 1].getElementsByTagName('span')[0];text = game.innerHTML;var words = [['`','<b style='color:#060;background-color:#5B0;font-family:\'Courier New\',Courier'>`</b>'],['\\.','<b style='color:#333;background-color:#740;font-family:\'Courier New\',Courier'>.</b>'],['~','<b style='color:#DB0;background-color:#FD1;font-family:\'Courier New\',Courier'>~</b>'],['%E2%96%91','<b style='color:#333;background-color:#BBB;font-family:\'Courier New\',Courier'>%E2%96%91</b>'],['%E2%96%92','<b style='color:#C70;background-color:#BBB;font-family:\'Courier New\',Courier'>%E2%96%92</b>'],['%E2%96%93','<b style='color:#333;background-color:#BBB;font-family:\'Courier New\',Courier'>%E2%96%93</b>'],['%E2%98%BC','<b style='color:#FF4;background-color:#AA7;font-family:\'Courier New\',Courier'>%E2%98%BC</b>'],['%CF%84','<b style='color:#060;background-color:#5B0;font-family:\'Courier New\',Courier'>%CF%84</b>'],['
# $items is all.json ($items = ConvertFrom-Json (Get-Content .\all.json -Raw))
# $mylist is a newline-separated list, the clipboard output of nookplaza lists with the first two lines removed
# this is a mess (besides not actually working
$j = 0
$items = $items | Sort-Object name
$mylist = $mylist | Sort-Object
$mylist | % -Begin{$j=0} {$_ -match "([^,]+),? ?`"?([^`"]*)?`"?,?(.*)?" | Out-null;
while($items[$j].name.CompareTo($Matches[1].toLower()) -lt 0) {$j++;};
if ($items[$j].name.CompareTo($Matches[1].toLower()) -eq 0) {
$variant = "0";
-- -*- coding: utf-8; mode: lua -*-
-- 筆(墨)3 by Medibang. Inc.
-- Modified by Y to allow dynamic pressure
first_call = true
point_count = 0
max_width = 0
max_alpha = 0
last_x = nil
last_y = nil
/* y */
/* zendesk */
/* for 12 frontend */
/* ~10% complete */
:root {
--navigation-hue-primary: rgb(15, 53, 84);
--navigation-hue-secondary: rgb(11, 39, 62);
--navigation-text-color: #FFFFFF;
--button-primary: rgb(31, 115, 183);