Skip to content

Instantly share code, notes, and snippets.

View Slattz's full-sized avatar

Shane Slattery Slattz

View GitHub Profile
@Slattz
Slattz / ACNL-ItemFilenames.c
Created April 1, 2019 22:45
[ACNL] Item IDs/Item Names -> Item Model Filenames
/*
********************************
Main Code and Research by Slattz
********************************
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
@Slattz
Slattz / Season.cpp
Last active July 24, 2019 16:37
[ACNL] Season Stuff
/* Season: End Day - End Month - Type (End days are inclusive i.e. next season starts day after)
Season00: 15 - 01 - Winter - Brown Trees; Snow
Season01: 18 - 02 - Winter - Transition from Brown->Green Trees; Brown more prominent; Snow
Season02: 24 - 02 - Winter - Transition from Brown->Green Trees; Green more prominent; Snow
Season03: 31 - 03 - Spring - 'Light' Green Tree; No more snow
Season04: 05 - 04 - Spring - Cherry Blossom Trees; Light Cherry Blossoms in sky???
Season05: 10 - 04 - Spring - Cherry Blossom Trees; Heavy Cherry Blossoms in sky???
Season06: 14 - 04 - Spring - 'Light' Green Tree; Same as Season03?
Season07: 07 - 06 - Summer - 'Mantis' Tree;
Season08: 15 - 06 - Summer - 'Mantis' Tree; Same as Season07?
@Slattz
Slattz / Room.cpp
Created September 1, 2018 21:03
[ACNL] Room Stuff
static const u32 RoomUniqueArray[0xA5] = {
0x26, 0x206, 0x400008, 0x188, 0x188, 0x188, 0x4000188, 0x4000188,
0x188, 0x188, 0x188, 0x188, 0x4000188, 0x4000188, 0x188, 0x188,
0x188, 0x188, 0x4000188, 0x4000188, 0x188, 0x188, 0x188, 0x188,
0x4000188, 0x4000188, 0x188, 0x148, 0x148, 0x148, 0x148, 0x148,
0x148, 0x148, 0x148, 0x148, 0x148, 8, 8, 0x400018,
0x400018, 0x400018, 0x400018, 0x1008, 8, 0x18, 8, 0x18,
0x10008, 0x10008, 0x1000008, 0x1000018, 8, 0x1108, 8, 8,
0x1008, 0x1008, 0x1008, 0x1008, 0x1008, 0x1008, 0x1008, 0x1008,
0x1008, 0x1008, 0x1008, 0x1008, 0x1008, 0x800008, 0x800008, 0x800008,
@Slattz
Slattz / Weather.cpp
Last active February 24, 2020 08:35
[ACNL] Weather Stuff
/*
Weather Values:
0: Sky completely clear
1: Few Clouds, but clear weather
2: Dark sky/clouds to signify rain is coming, clear weather
3: Sky completely filled with grey clouds, Light Rain
4: Black clouds, Heavy Rain w/ Thunder+Lightning
5: Sky completely filled with light grey clouds, Light Snow
6: Black clouds, Heavy Snow, looks kinda 'foggy'
7+: Invalid, Music doesn't play and weather is always clear
@Slattz
Slattz / acnl_pid.c
Created May 31, 2018 23:43
Code to generate an ACNL Player ID
//#include <stdio.h>
#include <time.h> //time
#include <stdlib.h> //rand & srand
#include <stdint.h>
int GeneratePlayerID(void)
{
time_t t;
srand(time(&t));
@Slattz
Slattz / ItemPrices.txt
Created March 29, 2018 22:31
[ACNL] Item Prices
| Item | Bell Buy Price | Medals Buy Price | Sell Price [Retail, Nooks, Island] |
0x2001 - Apple | 2000 Bells | 40 Medals | [500, 400, 25] Bells
0x2002 - Orange | 2000 Bells | 40 Medals | [500, 400, 25] Bells
0x2003 - Pear | 2000 Bells | 40 Medals | [500, 400, 25] Bells
0x2004 - Peach | 2000 Bells | 40 Medals | [500, 400, 25] Bells
0x2005 - Cherry | 2000 Bells | 40 Medals | [500, 400, 25] Bells
0x2006 - Coconut | 1000 Bells | 20 Medals | [250, 200, 12] Bells
0x2007 - Durian | 1000 Bells | 20 Medals | [250, 200, 12] Bells
0x2008 - Lemon
@Slattz
Slattz / ACNL-Inv_Item_WL-RE.c
Created October 18, 2017 20:41
ACNL Inventory Item Whitelist RE
/*
Reverse Engineering of ACNL's Inventory Whitelist by Slattz
Any hardcoded pointer offsets are based on EUR
Code.bin Offsets of functions below:
0x769864: CheckInventoryItemWhitelist
0x535908: ItemValidity
0x53589C: CheckIfValidItem
0x768DC4: CheckItemValidity