Skip to content

Instantly share code, notes, and snippets.

@kotritrona
Created December 18, 2019 22:32
Show Gist options
  • Save kotritrona/7cf4c2e1738589b19abe96512fb61beb to your computer and use it in GitHub Desktop.
Save kotritrona/7cf4c2e1738589b19abe96512fb61beb to your computer and use it in GitHub Desktop.
Rabi-Ribi Save File Format
cicini needs 7a80h, 79c8h
memory 0E59E81C char -> 0E59E344 variation
0004h - 4650h (7080h): map display
actually has 16 maps, last 6 unused
0004h - 0708h: southern woodland [25x18x4]
070ch - 0e10h: western coast [25x18x4]
0e14h - 1518h: island core [25x18x4]
151ch - 1c20h: northern tundra [25x18x4]
1c24h - 2328h: eastern highlands [25x18x4]
232ch - 2a30h: rabi rabi town [25x18x4]
2a34h - 3138h: plurkwood [25x18x4]
313ch - 3840h: subterranean area [25x18x4]
3844h - 3f48h: warp destination [25x18x4]
3f4ch - 4650h: system interior [25x18x4]
00 00 00 00: not revealed
01 00 00 00: revealed
02 00 00 00: white dot [unused]
03 00 00 00: save point
04 00 00 00: red dot [unused]
05 00 00 00: orange dot [unused]
06 00 00 00: white target mark
07 00 00 00: warp stone
08 00 00 00: red dot / health up2
09 00 00 00: blue dot / mana up
0a 00 00 00: green dot / regen up
0b 00 00 00: purple dot / attack up
0c 00 00 00: yellow dot / pp up
0d 00 00 00: orange dot / item2
0e 00 00 00: white dot / badge2
0f 00 00 00: easter egg
10 00 00 00: + mark
7084h: x pos
7088h: y pos
7090h: [3]piko hammer
7094h: [1]air jump
7098h: [3]sliding powder
709ch: [3]carrot bomb
70a0h: [1]sandglass
70a4h: [3]speed boost
70a8h: [3]auto attack while charging
70ach: [1]ribbon
70b0h: [1]soul heart / display enemy hp
70b4h: [1]rabi slipper / jump height
70b8h: [3]bunny spin / air spin
70bch: [1]quick hairpin / increase charge speed
70c0h: [1]fairy book / auto bp refill
70c4h: [1]chaos rod / purple magic
70c8h: [3]hammer wave
70cch: [3]hammer roll
70d0h: [3]light orb
70d4h: [3]water orb
70d8h: [3]fire orb
70dch: [3]nature orb
70e0h: [3]P hairpin
70e4h: [1]sunny beam / yellow magic
70e8h: [3]plus necklace / ribbon normal attack times
70ech: [1]cyber flower
70f0h: [1]healing staff / green magic
70f4h: [1]max bracelet
70f8h: [1]explosion shot / red magic
70fch: [3]air dash
7100h: [3]bunny strike
7104h: [1]strange box
7108h: [3]wall jump
710ch: [3]spike barrier
7110h: [4]bunny amulet
7114h: [3]charge ring / double charge
7118h: [1]carrot shooter / orange magic
711ch: [3]super carrot
00 00 00 00 - not acquired
01 00 00 00 - level 1
02 00 00 00 - level 2
03 00 00 00 - level 3
7120h: rumi donuts
7124h: rumi cakes
7128h: gold carrot
712ch: cocoa bombs
718ch - 7208h: badges
00 00 00 00 - unearned
01 00 00 00 - unequipped
02 00 00 00 - equipped
720ch - 7308h: health items
[ 72f8h - 730ch: 5 health items from miriam's shop ]
730ch - 7408h: attack up items
740ch - 7508h: mana items
750ch - 7608h: regen items
760ch - 7708h: pack point items
[ 1st run pp is capped at 99 ]
788ch: current bgm
789ch - 8098h: flags
00 00 00 00 - uncleared
01 00 00 00 - cleared
789ch: set to 01 when visiting ravine (00 in pyramid?)
78a0h: cocoa 1 cleared flag
78a4h: ribbon boss cleared flag
78ach: forgotten cave face boss
78b0h: ashuri 1
78b4h: 00 -> 01 after ch1 start, 0a/01 -> 05 after maingame last boss
78b8h: rita
78c0h: cocoa 2
78c4h: cicini
78c8h: inside red system #1
78cch: shadow pandora
78d0h: saya
78d4h: syaro
78dch: nieve
78e0h: nixie
78e4h: some aurora palace flag
78f8h: seana 1
78fch: inside red system #2
7900h: cicini is standing in lab / town cicini flag
7904h: after ribbon cave jumped flag
790ch: teleported back to starting forest
7910h: aruraune
7924h: lilith 1
7928h: vanilla
793ch: kotri 3 (red)
7940h: miriam
7944h: [unknown]
7948h: found teleporter in spectral cave with ribbon
7958h: before miriam shop cutscene flag
795ch: set to 08 after main game last bosses
7960h: looped the hall of memory entrance first time
796ch: uprprc battle 1
7970h: opening hospital flag #1
7978h: opening hospital flag #2
797ch: opening hospital flag #3
7980h: alius 2 #1
7984h: alius 2 #2
798ch: rita phantom
7990h: lilith 2
79a4h: saya/rita in ravine
79a8h: kotri 1 (green)
79ach: coast 2nd uprprc / boost availability flag
79b0h: chocolate
79b8h: exotic lab 1st dialogue
79bch: exotic lab 2nd dialogue
79c0h: exotic lab defense systems scene
79c4h: exotic lab sliding powder scene
79c8h: cicini 17500en mission done
79cch: big case boss
79d4h: system interior maid bosses
79d8h: golden riverbank dialogue (3 holes)
79dch: golden riverbank dialogue (go wrong way)
79e4h: irisu following erina to golden riverbank
79ech: uprprc base intro
79f4h: syaro mission system entrance dialogue
79f8h: into water without water orb
79fch: ashuri 2
7a04h: rainbow crystal boss
7a08h: entered library
7a0ch: stele trip 3 started
7a10h: alius 1 #1
7a14h: last stele dialogue before miru #1
7a18h: alius 3 defeated
7a1ch: alius 1 #2
7a24h: town 2 dialogue
7a28h: town 4 dialogue
7a2ch: town 7 dialogue
7a30h: town 10 dialogue
7a34h: cicini 1st warp scene
7a38h: syaro out of system / town syaro flag
7a40h: forgotten cave cocoa scene
7a50h: forgotten cave cocoa 2 trigger
7a54h: ashuri crystal mission dialogue
7a58h: rainbow crystal ashuri dialogue cave
7a5ch: something related to cicini battle
7a60h: 4th stele dialogue (first into miru room)
7a64h: 4th stele dialogue (mirror room)
7a68h: miru
7a6ch: pandora
7a70h: pyramid blocks after defeating pandora
7a74h: miriam dialogue before shopping
7a78h: miriam gives speed boost
7a7ch: first entered snowland
7a80h: find syaro mission scene [opens system]
7a84h: holo defense system
7a88h: [unknown]
7a8ch: kotri 2 (blue)
7a90h: valley to town dialogue
7a94h: first in town dialogue
7a98h: meet rabi slippers
7a9ch: first save point dialogue
7aa0h: ch1 rumi dialogue / item usability flag
7aa4h: uprprc base yellow car
7aa8h: uprprc base blue car
7aach: uprprc base green car
7ab0h: dropped spring in spectral cave
7ab8h: nieve scene
7abch: lilli/pixie information flag #1
7ac0h: lilli/pixie information flag #2
7ac4h: night forest uprprc another flag
7ac8h: aruraune preboss dialogue
7acch: rainbow crystal pandora/kotri scene
7ad0h: seana 2 mission scene
7ad8h: found saya after beating
7adch: seana 2
7ae0h: 4th stele dialogue (starting point)
7ae8h: how to rabi - badges
7aech: how to rabi - magic type
7af0h: miru (first encounter only?)
7af4h: noah 1 #1
7b00h: how to rabi - pause change
7b0ch: maingame end 5 town members [05 00 00 00]
7b10h: rumi
7b14h: 3rd stele trip otaku bosses #2
7b18h: 3rd stele trip otaku bosses #1
7b1ch: side chapter flag
00 00 00 00 - uncleared
01 00 00 00 - inside side chapter (ribbon cannot fire)
02 00 00 00 - cleared
7b20h: side chapter boss 1
7b24h: side chapter boss 2
7b28h: side chapter boss 3
7b2ch: some flag related to maingame 5 town members
7b30h: volcano saya/rita scene
7b34h: noah 3
7b38h: noah 1 #2 (set to 1 after noah 1, 0 after noah 2)
7b3ch: noah 2
7b44h: system interior pit warning
7b48h: ch1 town wrong direction dialogue
7b4ch: night forest uprprc
7b50h: evernight peak uprprc
7b54h: into dark area without light orb
7b60h: irisu flag
00 00 00 00 - did not defeat irisu, town list according to individual flags
01 00 00 00 - displays a message then turns to 02 00 00 00
02 00 00 00 - defeated irisu, town list full
also opens hidden space in home
7b64h: forgotten cave ii entrance scene
7b68h: forgotten cave ii entrance blocked
7b6ch: ch8 irisu mission flag
00 00 00 00 - ch6
02 00 00 00 - ch7
03 00 00 00 - ch8
7b74h: red system entrance #1
7b78h: red system entrance #2
7b7ch: inside red system #3
7b80h: red system entrance #3
7b84h: ch8 started [ribbon away]
7b8ch: ch8 irisu home
7b90h: ch8 kotri scene
7b98h: library entrance blocked
7b9ch: library irisu scene
7ba0h: meatbone dog scene before plurkwood
7ba4h: plurkwood first scene
7ba8h: plurkwood meet tako
7bach: plurkwood cat bosses
7bb0h: keke bunny [02 to join town]
7bb4h: tako dialogue after keke bunny
7bc0h: ch7 started
7bc4h: [unknown 01]
7bc8h: time in water without water orb
7bd4h: [unknown 01]
7bd8h: [unknown 01]
7bdch: [unknown 01]
7be4h: halloween boss
7c60h: halloween dialogue
7c64h: visited halloween area
80a0h: hp
80a4h: current map
00 00 00 00 - southern woodland
01 00 00 00 - western coast
etc.
80b0h, 80b4h: changed during forgotten cave ii
80b8h: play time
measured in frames; 60 frames = 1 sec
80c0h: mana [8 bytes double]
80c8h: dmg taken
80cch - 80f0h: completion rate of each map
810ch: 00 00 -> c0 1e after nieve scene
8110h: current background (self changes sometimes)
this also changes the tileset
8114h: character using
fd 03 - syaro
f5 03 - rita
fa 03 - cicini
01 00 - erina
fb 03 - saya (no attacks, only model move)
f7 03 - cocoa (no attacks, invincible)
21 04 - health+ (halts game)
20 04 - blue bat
1f 04 - plurkwood computer user
1e 04 - keke bunny
1d 04 - ???
18 04 - golem hand
17 04 - golem
16 04 - lily
15 04 - rita (cannot attack)
13 04 - miru
0f 04 - miriam
0e 04 - irisu
0d 04 - noah
0c 04 - red kotri
0b 04 - illusion alius
09 04 - chocolate
08 04 - vanilla
07 04 - lilith
06 04 - seana
04 04 - red hair npc
01 04 - aruraune
00 04 - nixie
ff 03 - nieve
fe 03 - pandora
f4 03 - ashuri
f3 03 - rumi
f2 03 - red glow
f1 03 - cocoa
f0 03 - white glow, infinite drop
ef 03 - spikeball, infinite drop
ee 03 - spikeball
ed 03 - spikeball
ec 03 - bullet fan, cannot jump
eb 03 -
ea 03 - special erina
e9 03 - small erina
5d 04 - uprprc girl
8118h: difficulty
811ch: some flag related to warping
8128h - 8174h: warpstone availability
00 00 00 00 - cannot warp
01 00 00 00 - can warp
81b8h: boost charge
81bch - 820ch: town member ranks
8230h: noah2 ??? rank
order: rumi, rita, nieve, etc
00 00 00 00 - e
07 00 00 00 - sss
08 00 00 00 - max
827ch: game display mode
01 00 00 00 - hospital mode
02 00 00 00 - hospital mode
03 00 00 00 - no hp bar
04 00 00 00 - no hp bar
05 00 00 00 - has hp bar
8280h: run time
9294h: hammer experience value
9298h: ribbon experience value
929ch: carrot bomb experience value
92a0h: sandbag score
92a8h: amulet charge
92ach: en amount
92b0h - 93ach: buff list
00 00 00 00 - invisible in list
01 00 00 00 - visible in list
93b0h: todo list
4 bytes each item
00 00 00 00
95c4h: town list order
from #1 to #24
01 00 00 00 - rumi
02 00 00 00 - rita
03 00 00 00 - nieve
etc.
if value is missing, game will use the remaining #s
multiple same values take the last #
9644h: map mark map#
96c4h: map mark grid x
9744h: map mark grid y
97c8h: map mark message
each is an array, 4 bytes each
take one from each for a map mark
ex: [9644] 01 00 00 00; [96c4] 0a 00 00 00;
[9744] 09 00 00 00; [97c8] 29 00 00 00
9848h - 9944h: buffs
987ch: hp recover
98b4h: quad dmg
98b8h: double dmg
98f4h: endurance
58 4d - 19800 (330s)
9948h: magic color
994ch: facing
00 00 00 00 - left
01 00 00 00 - right
9950h: total play time
9954h: total run time
9958h: spike dmg taken
9960h: 00 -> 02 after cocoa fight
9964h: 00 -> 01 after get hammer
9968h: 0d -> 00 after first uprprc -> 01 after get hammer
99a8h: current chapter
99ach: dealt damage
99b0h: healed hp
99b4h: halo buff flag
99bch - 9a08h: items found in each map
map1 found (4 bytes) -> map1 total (4 bytes) -> map2 etc
values are recalculated when entering that map
9a0ch - 9a23h: how to rabi flags, 1 byte each
00 - ??? in list
01 - can view
9a2ch: speedrun flag
00 00 00 00 - story mode
01 00 00 00 - speedrun
9a58h: cocoa special rank
9a5ch: ashuri special rank
9a64h: chocolate/vanilla halloween rank
9a94h: ribbon special rank
9af4h: 2d -> 2e / 00 -> 01 after cocoa fight
9af8h: 00 00 -> d5 01 after cocoa fight
9b04h: random fluctuation, does not change in town
9b0ch: ff ff ff ff -> c4 09 after ribbon
9b18h: item%
9b1ch: map%
9b20h: some accumulator
9b24h: dealt damage again
9b28h: times teleported / done something else in scenario
9db6h - e402h (10e32h): map connections
01 00 00 00 - right
00 01 00 00 - down
00 00 01 00 - left
00 00 00 01 - up
10e38h: total map connections
10e3ch: loop count
10e40h - 11092h: easter eggs
each egg takes 6 bytes
first 2bytes: map#
next 2: x coords?
last 2: y coords?
first egg is at 00 00 c9 00 68 00
11098h: game mode
00 00 00 00 - standard
01 00 00 00 - alternative
02 00 00 00 - bunny heaven
03 00 00 00 - bunny hell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment