Skip to content

Instantly share code, notes, and snippets.

@GMMan
GMMan / be_battles.md
Last active February 11, 2023 23:33
Vital Bracelet BE Battle Logic

Vital Bracelet BE Battle Logic

If you're looking for Vital Bracelet (Digital Monster, Digivice -V-, Characters, Vital Hero) battle logic, please see here.

Encounter and setup

Each character on a BEM has three encounter chance percentages: one for phase 1-4, one for phase 5-7, and one for phase 8. For Dims and VBMs, there is no

@GMMan
GMMan / build_xtrapc_ultra.md
Last active November 12, 2022 08:59
Xtra-PC Ultra Build Guide

Building Xtra-PC Ultra from Source

Superseded by this repo. See wiki page for build instructions.

@GMMan
GMMan / gpce4_test.md
Created August 4, 2022 06:01
GPCE4 Test Program

GPCE4 Test Program

Entry

Before powering on the MCU, raise TEST pin high, configure wait states, select the test to run, and configure any inputs.

Test mode selection

Determines whether MCU starts in test mode.

@GMMan
GMMan / passwords.txt
Created October 27, 2021 20:17
Dragon Quest: The Adventure of Dai - Portable Adventure passwords
Note that the first one appears to be a story unlock password. Not sure what
that means since I kind of skipped over the message box that displayed for it.
Original page for that is at https://www.takaratomy-arts.co.jp/specials/dqdai-pa/pw/
6B8HY 10xやくそう
NUGBV 30xやくそう
LBKWF 30xやくそう
K5L2Z 30xやくそう
YWVYC 30xやくそう
VCGVU 30xやくそう
@GMMan
GMMan / vb_battles.md
Last active December 31, 2022 00:59
Digimon Vital Bracelet Battle Logic

Digimon Vital Bracelet Battle Logic

If you're looking for Vital Bracelet BE battle logic, please see here.

Encounter and setup

Each Digimon on a Dim has two encounter chance percentages: one for when your current Digimon is a Rookie or Champion, and one for Ultimate or Mega. A

@GMMan
GMMan / S90overclock
Created January 25, 2021 20:25
Overclock script for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
}
stop() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
@GMMan
GMMan / S40rndis
Created January 7, 2021 17:12
RNDIS enabler for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
echo "rndis" > "/sys/class/android_usb/android0/functions"
echo 1 > "/sys/class/android_usb/android0/f_rndis/wceis"
echo 1 > "/sys/class/android_usb/android0/enable"
sleep 1
ifconfig rndis0 169.254.215.100 netmask 255.255.0.0
}
@GMMan
GMMan / GameAndWatchBackdropToGif.cs
Created December 6, 2020 12:15
Game & Watch splash converter
using System;
using System.IO;
namespace GameAndWatchBackdropToGif
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
@GMMan
GMMan / DrawingSongConv.cs
Last active December 5, 2020 04:26
Game & Watch Mario Drawing Song animation converter
using System;
using System.IO;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace DrawingSongConv
{
class Program
@GMMan
GMMan / decompress_rwdata.cs
Created December 3, 2020 23:40
Game & Watch decompress RWdata snippet
static void DecompressRwData(BinaryReader br, int init_pos, string savePath)
{
br.BaseStream.Seek(init_pos + 4, SeekOrigin.Begin);
int startOffset = init_pos + 4 + br.ReadInt32();
uint length = br.ReadUInt32() >> 1; // lowest bit indicates whether to add base from r9
uint dest = br.ReadUInt32();
br.BaseStream.Seek(startOffset, SeekOrigin.Begin);
File.WriteAllBytes(savePath, DoDecompressRwData(br, length));
}