Skip to content

Instantly share code, notes, and snippets.

@Prof9
Prof9 / rebuild_cache.py
Created January 3, 2024 21:57
Scratchpad cache rebuild script for EXEPoN/EXELoN
import argparse
import dataclasses
import pathlib
import struct
import zipfile
@dataclasses.dataclass
class QuestData:
scenario_num: int
@Prof9
Prof9 / _parse_e.py
Last active January 3, 2024 23:11
EXEPoN event parser
import struct
import zipfile
from argparse import ArgumentParser
from io import BytesIO
from pathlib import Path
from common import Constants
path_7zip = Path("C:\\Program Files\\7-Zip\\7z.exe")
@Prof9
Prof9 / extractsp.py
Last active December 29, 2023 23:20
LoN and PoN scratchpad dump
import shutil
import struct
import subprocess
from pathlib import Path
path_7zip = Path("C:\\Program Files\\7-Zip\\7z.exe")
path_lon_in = Path("LoN_ch1\\DoJa_5_1_files\\LoN")
path_pon_in = Path("PoN_ch1to3\\DoJa_5_1_files\\PoN")
path_lon_out = Path("LoN_sp")
path_pon_out = Path("PoN_sp")
@Prof9
Prof9 / extracttext.py
Last active December 29, 2023 23:20
LoN and PoN text dump
import struct
import subprocess
from datetime import datetime
from pathlib import Path
path_7zip = Path("C:\\Program Files\\7-Zip\\7z.exe")
path_lon = Path("LoN_ch1\\DoJa_5_1_files\\LoN")
path_pon = Path("PoN_ch1to3\\DoJa_5_1_files\\PoN")
path_lon_sp = Path("LoN_sp")
path_pon_sp = Path("PoN_sp")
@Prof9
Prof9 / debugfont.tbl
Created December 25, 2022 23:53
MMBN4 (Blue Moon US) - Display Emotion Value during battle
C0F2=
C1F2=!
C2F2="
C3F2=#
C4F2=$
C5F2=%
C6F2=&
C7F2='
C8F2=(
C9F2=)
@Prof9
Prof9 / guide.md
Last active June 25, 2022 04:21
Kaeru WFC connection guide for Nintendo Wi-Fi USB Connector

Notes:

  • For some people setting DNS settings in the Nintendo Wi-Fi USB Connector properties doesn't seem to work, if that applies to you you may have to set up DNS in the internet-facing connection properties instead.

Connection guide

  1. Set up a virtual machine running Windows XP.

    • Plenty of guides online on how to do this, so I won't be going into too much detail here.
    • I'd recommend using VirtualBox and the "Windows XP Mode" method found here, as all the downloads you need are from official sources: https://www.makeuseof.com/tag/download-windows-xp-for-free-and-legally-straight-from-microsoft-si/. NOTE: Skip the part where it tells you to set up Windows XP Virtual Machine Network Settings, you don't need to do this if the internet connection in your VM is already working.
@Prof9
Prof9 / tomc.asm
Created December 5, 2017 21:29
The One Mod Card
CARD_NO equ 0
ENGLISH equ 1
REVISION equ 0
.gba
.create "card.msg",0x0
.area 0x5C
@@header:
.dh @@scr0 - @@header
@Prof9
Prof9 / drodtas.py
Created November 1, 2017 02:14
Input replay PoC on PS4 Remote Play using FreePIE
import time
fps = 60
print_interval = 10
def getTime():
return int(time.clock() * 1000)
def getFrameCount():
global start, fps, delay
@Prof9
Prof9 / Readme.md
Last active February 1, 2024 07:02
THIS SCRIPT NO LONGER WORKS! Twitter has rolled out a fix for the web client hack. (Original text: Force enable cramming (280 character tweets) on Twitter. Use TamperMonkey. NOTE: Stops working when you switch pages, refresh to fix.)

As of 7 November 2017 everyone has access to 280 characters in supported clients, so you no longer need this script!

@Prof9
Prof9 / scrape.js
Last active June 21, 2022 01:17
Quick-n-dirty Photobucket scraper
// Quick-n-dirty Photobucket scraper
// Dumps one page of photos on Photobucket at a time.
// You'll have to do the folder management yourself.
// Hey, it beats saving everything one by one!
//
// Before you use it:
// Change the 3 on line 39 to the number of digits in the server number of your Photobucket album.
// (You know... the XXX numbers in the url http://sXXX.photobucket.com)
//
// How to use: