Skip to content

Instantly share code, notes, and snippets.

View Wunkolo's full-sized avatar
💻

Wunk Wunkolo

💻
View GitHub Profile
@Wunkolo
Wunkolo / SaiPal.cpp
Created October 5, 2014 05:37
SaiPal
#include <windows.h>
#include <iostream>
#include <iomanip>
#include <stdlib.h>
#include <conio.h>
#include <TlHelp32.h> //GetModuleBase
#pragma pack()
struct Color
{
Color()
@Wunkolo
Wunkolo / FTEX File
Last active August 29, 2015 14:12
010 editor templates for various Fox engine file formats
typedef enum <uint>
{
FTEX_Param = 1, // Found for srm and mtm files
// Each channel acts as material parameter
// R = Ambient Occlusion
// G = Specular Albedo
// B = Roughness
FTEX_Color = 3, // Found for bsm files(albedo texture)
FTEX_Cubemap = 7, // Found for cbm(cubemap) and
@Wunkolo
Wunkolo / ASCIIRayTrace.cpp
Last active June 13, 2021 05:36
Just a fun ASCII raytracer I made one day.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <string>
#include <initializer_list>
#include <thread>
#include <chrono>
@Wunkolo
Wunkolo / ARDS.cpp
Last active May 15, 2016 20:37
Action Replay code snippets
// Parse Action Replay DS Code
#include <string>
#include <vector>
#define STR(x) # x
enum Button
{
A = 0xFFFE,
B = 0xFFFD,
@Wunkolo
Wunkolo / spiral.cpp
Created February 4, 2015 02:03
Spiral generator
//Spirals
//┌─────────┐
//│┌───────┐│
//││┌─────┐││
//│││┌───┐│││
//││││┌─┐││││
//│││││└┘││││
//││││└──┘│││
//│││└────┘││
//││└──────┘│
@Wunkolo
Wunkolo / Pi_Approx.cpp
Created February 4, 2015 02:12
Pi Approximation
// Pi approximatization
//http://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80
//Slow conversion...
#include <stdint.h>
#include <stdio.h>
int main()
{
double result = 0;
for( size_t k = 1; k <= 1000000; k++ )
@Wunkolo
Wunkolo / ACNL.md
Last active January 15, 2024 14:22
Animal Crossing New Leaf research

Large player data struct, stores all patterns, letters, mayor info, mayor picture in what seems to be a JFIF stream with EXIF, and other data yet to be mapped out.

Generally in the 0x1FB8190 area of a FCRAM dump. Give or take a few offsets of 0x100.

Between me and troggs the offset seems to be 0x300

64EDD198 F8000200 Possible magic ints to look for to detect player info. Starts right before patterns. Common through-out. Patterns

Offset |Type |info

@Wunkolo
Wunkolo / TinySHA1.hpp
Created April 10, 2015 05:38
Messy little program for salted Blam Engine SHA1 checksums.
/*
*
* TinySHA1 - a header only implementation of the SHA1 algorithm in C++. Based
* on the implementation in boost::uuid::details.
*
* SHA1 Wikipedia Page: http://en.wikipedia.org/wiki/SHA-1
*
* Copyright (c) 2012-22 SAURAV MOHAPATRA <mohaps@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
<!DOCTYPE html>
<head>
<title>{Title}{block:PostTitle} | {PostTitle}{/block:PostTitle}{block:PostSummary} | {PostSummary}{/block:PostSummary}</title>
<meta charset="utf-8">
<meta name="color:Text" content="#ddd" />
<meta name="color:Background" content="#111" />
<meta name="color:ContentBackground" content="#151515" />
<meta name="color:Trims" content="#444" />
<meta name="color:TrimsSecondary" content="#555" />
<meta name="color:Links" content="#fef248" />
@Wunkolo
Wunkolo / CommandBankDump.py
Last active March 2, 2016 06:21
Some info from messing around with kero blaster
import struct
#used to quickly dump all the available commands from the executable
fIn = open("PinkHour.exe","rb")
fIn.seek(0xD2180)
for i in range(0,164):
magic = ''.join(struct.unpack("cccc",fIn.read(4)))
CmdNum = struct.unpack("I",fIn.read(4))[0]
argcount = struct.unpack("I",fIn.read(4))[0]
print "{0:<13} | {1:<14} | {2}".format('`'+magic+'`',argcount,CmdNum)