Skip to content

Instantly share code, notes, and snippets.

View cfogrady's full-sized avatar

Christopher O'Grady cfogrady

View GitHub Profile
@cfogrady
cfogrady / BEM_Specification.md
Last active April 2, 2024 06:48
BE Memory Specification

Basic Layout

BEM Card images are very similar to DIM Card images (https://gist.github.com/cfogrady/65606fa1a58d5d3dd5c6c0411edabb38) with a few differences.

  • 0x10 - Metadata
  • 0x10000 - Locks on older devices, now just 0xFF all the way until 0x20000
  • 0x30000 - Stats
  • 0x40000 - Evolution Requirements
  • 0x50000 - Adventure Missions
  • 0x60000 - Sprite Dimensions
  • 0x70000 - Unknown. This was the jogress table in DIMs. BEMs are filled with 0xFFFF
@cfogrady
cfogrady / Secification.md
Last active May 11, 2023 08:08
VB DIM Format

Basic Layout

DIM Card images all seem to be 4MB in size with a bitwise NOT applied to the entire image. Data all appears to be little endian byte format with the vast majority being 16-bit unsigned integers. The only exception is a small amount of text at the beginning of the header section and sprite section.

  • 0x10 - DIM Metadata
  • 0x10000 - Locked VB Id (0s on fresh DIM) (doesn't seem to have a compliment, probably excluded from checksum)
  • 0x11000 - 2nd Locked Digivice-V Id (0s on fresh DIM)
  • 0x12000 - 1st Locked Digivice-V Id (0s on fresh DIM)
  • 0x13000 - Compliment to cancel out id at 0x11000
  • 0x14000 - Compliment to cancel out id at 0x12000
  • 0x30000 - Stats
  • 0x40000 - Evolution Requirements
@cfogrady
cfogrady / OpenSimplexNoise.cpp
Last active January 20, 2019 01:38 — forked from tombsar/OpenSimplexNoise.hh
C++ port of KdotJPG's OpenSimplexNoise in Java. A self-contained set of functions for generating visually axis-decorrelated, coherent noise from a simplectic honeycomb.
#include "OpenSimplexNoise.hh"
// Array of gradient values for 2D. They approximate the directions to the
// vertices of a octagon from its center.
// Gradient set 2014-10-06.
const int OSN::Noise<2>::gradients [] = {
5, 2, 2, 5, -5, 2, -2, 5,
5,-2, 2,-5, -5,-2, -2,-5
};