Skip to content

Instantly share code, notes, and snippets.

View windwakr's full-sized avatar
😐
Set your status

windwakr

😐
Set your status
View GitHub Profile
@windwakr
windwakr / !Readme.md
Last active October 3, 2024 23:37
Learn with Pokemon: Typing Adventure - Bluetooth info

Information regarding Learn with Pokemon: Typing Adventure

First off, I would like to acknowledge the PTSM project for the basic info on interacting with the cartridge. Refer to that page to see how save file access works.

All below info is from a Japanese version of the game and keyboard.

The bluetooth chip returns 0x00 when not returning actual data.

Here are replies from informational commands

@windwakr
windwakr / genwavs.py
Last active September 8, 2024 19:55
Generates wav files for use with Mega Man Star Force(JP) - Ryuusei no Rockman - 流星のロックマン - Wave Scanner - ウェーブスキャナー
#Generates wav files for use with Mega Man Star Force(JP) - Ryuusei no Rockman
import wave
import os
path = "./rockman wavs"
if not os.path.exists(path):
os.makedirs(path)
#The game samples the DS Microphone at 33,513,982 / 83784 = ~400.005Hz
#The game checks for peak/valley of 9-15 samples each to indicate the start
@windwakr
windwakr / gm4dec.py
Last active September 22, 2024 21:50
Game Maker 4.1/4.2/4.3 decompiler
#Game Maker 4.X decompiler
#for python 2.7 :^)
#Only tested on ~20 files
#
#As far as I can tell, there are no tools out there that actually support GM4(even if they claim to).
#Unlike later versions, image data is stored unencrypted. So we need to partially parse the GMD.
import struct
import io
import os
import sys
@windwakr
windwakr / !nxtmodelformat
Last active August 29, 2024 00:53
Runescape 3 RS3 NXT 3D model format
Models in the cache have an lzma wrapper
BIG ENDIAN
1 byte, header 0x03
1 int, compressed size?
1 int, decompressed size?
compressed data
The model data itself
LITTLE ENDIAN