Skip to content

Instantly share code, notes, and snippets.

View PlatinumMaster's full-sized avatar
💭
I may be slow to respond.

PlatinumMaster

💭
I may be slow to respond.
View GitHub Profile
local rshift, lshift=bit.rshift, bit.lshift
local md,mw,mb=memory.readdwordunsigned,memory.readwordunsigned,memory.readbyteunsigned
local gt,sf=gui.text,string.format
local table={}
local on,enbl,overprint,enblo=1,1,1,1
if mb(0x023FFE09)==0x00 then -- Not "2" ~ Not B2/W2
pos_m=md(0x02000024)+0x3461C
zds=md(0x02000024)+0x3DFAC
owstart=md(0x02000024)+0x34E04
@PlatinumMaster
PlatinumMaster / aspertia_city.s
Created April 20, 2020 04:43
Test B2W2 Script
.include "B2W2.s"
Header:
script Script0
script Script1
script Script2
script Script3
script Script4
script Script5
script Script6
script Script7
@PlatinumMaster
PlatinumMaster / voicegroup_fixup.sh
Last active April 9, 2020 23:49
pokeemerald voicegroup/cry_table fixup script
#!/bin/bash
# Sound Fixup script.
cd sound;
# Voice Groups
mkdir voicegroups;
cd voicegroups;
csplit -z -n 3 "../voice_groups.inc" /".align 2"/ {*} -f voicegroup;
@PlatinumMaster
PlatinumMaster / m4a_1.s
Created April 15, 2019 14:55 — forked from ShinyDragonHunter/m4a_1.s
Mixer updated to comply with newer pokeemerald.
.include "asm/macros.inc"
.include "constants/gba_constants.inc"
.include "constants/m4a_constants.inc"
.syntax unified
.text
thumb_func_start umul3232H32
umul3232H32:
@PlatinumMaster
PlatinumMaster / NARCTool.py
Last active December 29, 2023 01:20
[WIP] NARC Tool for the DS games (currently supports files with no directories).
import struct
import os
# NARC Tool
def NARC_Unpack(narc):
if ('.' in narc) == True:
output_folder = narc.split('.')[0] + "_u"
else:
output_folder = narc + "_u"
@PlatinumMaster
PlatinumMaster / a_readme.md
Last active December 30, 2018 04:43
[WIP] Furniture Editor for B2W2
  • Extract the overworld NARC a1/2/6.

  • Feed the script one of the files: python raymour_flanigan.py decompile 126_xxx.bin

  • Make your changes.

  • Recompile: python raymour_flanigan.py compile 126_xxx.s Make sure you have the b2w2.s in the same directory.

  • Reinsert to NARC, reinsert NARC into ROM.

@PlatinumMaster
PlatinumMaster / archlinux-steamlink_install.sh
Last active May 25, 2022 16:07
Arch Linux chroot installation on the Steam Link.
NARC Description
/a/0/0/0 connection strength icons
/a/0/0/1 unused (underground etc)
/a/0/0/2 "systems" text
/a/0/0/3 game text
/a/0/0/4 sprites (pokegra)
/a/0/0/5 basic boxes and arrow
/a/0/0/6 move effects
/a/0/0/7 Pokemon icons

Findings by "PokemonMusic" on SOUNDCLOUD, HCS64, DISCORD, LORDDRAGON3005, LUCASTHEPLATINUMMASTER, GEOTHERN1683, GARAGEBANDPOKE/Alimu, ThePokMixr92, recordreader/icecream, and Alex Naveira

STYLUS RMX (they're all RMX Grooves, unless noted otherwise)

Preset Name Where it was used
57 Isle a (Classic) - B2W2 Cheren Encounter
58 Motion Century - B2W2 Nimbasa Gym
70 Eden - B2W2 Elesa Gym Stage (alternate)
72 Liquid Frame Combo - B2W2 Castelia Gym (Also used in Kirby's Epic Yarn's "Tube Town")