This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ak47u": { | |
"ads_scale": 0.75, | |
"max_pitch": [ | |
0.0, | |
-3.5, | |
-7.0, | |
-10.5, | |
-14.0, | |
-17.5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"PhysicsAsset Core_HitboxPhysicsAsset2": { | |
"BoundsBodies": [ | |
0, | |
1, | |
2, | |
3, | |
4, | |
5, | |
6, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Swap X/L (Netplay Safe) [Altimor] | |
C234E2AC 00000002 | |
5000843E 5000A56A | |
50006672 00000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <cstdint> | |
#include <fstream> | |
#include <iostream> | |
#include <memory> | |
#include <stdexcept> | |
#include <Windows.h> | |
char *rva_to_pointer(char *data, uint32_t rva) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy | |
from numpy import int32, float64 | |
import random | |
numpy.seterr(all='ignore') | |
SUMMONS = { | |
'421A': [ | |
[["Vtuber"],4], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
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 |