Skip to content

Instantly share code, notes, and snippets.

{
"ak47u": {
"ads_scale": 0.75,
"max_pitch": [
0.0,
-3.5,
-7.0,
-10.5,
-14.0,
-17.5,
{
"PhysicsAsset Core_HitboxPhysicsAsset2": {
"BoundsBodies": [
0,
1,
2,
3,
4,
5,
6,
$Swap X/L (Netplay Safe) [Altimor]
C234E2AC 00000002
5000843E 5000A56A
50006672 00000000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ghidra.app.script import *
from ghidra.app.services import DataTypeManagerService
from ghidra.app.util.bin import BinaryReader, ByteArrayProvider, \
MemoryByteProvider
from ghidra.program.model.address import Address, AddressOutOfBoundsException
from functools import reduce
def fnv(data: bytes, prime: int, basis: int, mod: int):
return reduce(lambda hash, b: ((hash * prime) ^ b) % mod, data, basis)
def fnv_a(data: bytes, prime: int, basis: int, mod: int):
return reduce(lambda hash, b: ((hash ^ b) * prime) % mod, data, basis)
def find_basis_a(hash: int, data: bytes, prime: int, mod: int):
# reverse the operations using the prime's modular multiplicative inverse
#include <algorithm>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <Windows.h>
char *rva_to_pointer(char *data, uint32_t rva)
{
void Physics_UpdateECBBones(Physics *phys,ECBUpdateFlag flags)
{
float min_asymmetrical_width;
float min_asymmetrical_height;
float width;
float height;
float max_x;
float min_x;
float max_y;
float min_y;
import io
import os
import os.path
import struct
import sys
class NcdFile():
def __init__(self, name, compressed, offset, size):
self.name = name
self.compressed = compressed
import math
import numpy
from numpy import int32, float64
import random
numpy.seterr(all='ignore')
SUMMONS = {
'421A': [
[["Vtuber"],4],
--------------------------------------------------------------------------------
Luck 0 421A
Net luck (average +0.7407):
74.07%: +1
25.93%: +0
Summons:
37.04%: Lv0 Luck+1 - Light
37.04%: Lv0 Luck+1 - Train
18.52%: Lv1 Luck+0 - SOS
7.41%: Lv2 Luck+0 - Necocan