Commit Graph

7 Commits

Author SHA1 Message Date
iamsub
f4e14e0c04 otoca: end the letters with the 8th and give the wallpaper then
A full pass over the mission code showed the previous analysis read the
achievement check one slot off: mission k (2-9) is checked against the
flag recorded for k-1 (FUN_100219c0's jump table), so mission 1 is the
first play and Nyandora's 8 letters are missions 2-9. SELECTCARD plays
the "wallpaper complete" animation when mission 9 is done.

The plugin stopped at 9 and gave the wallpaper when reaching it, one
letter early, then ignored the report of 9, so the 8th letter came back
every play. Now reporting 9 adds wallpaper 29 and moves to 10, which the
game treats as no mission. Wallpaper 29 is confirmed by afp_letter.ifs,
which completes card_bg 0018.
2026-09-29 23:18:25 +09:00
iamsub
ec4c3614b7 otoca: choose the rival card pack in the WebUI
The pack of the rival cards offered after a play comes from the game's
version: rivalcard_packdata picks the last row at or below it, and
5-6 to 5-11 unlock the same content otherwise (only the title-screen
pack icon differs). Always sending phase 11 fixed the pack to
Le Fenice.

The new setting "Rival card pack" (one of the five packs, or Random)
picks the phase sent by getVersion and getCardInfo. getCardInfo's
version is applied when the card is scanned, so Random draws a pack for
each play; plays without a scan use getVersion's.
2026-09-29 20:41:52 +09:00
iamsub
7518cd2abc otoca: split the plugin into handlers, models and helpers
index.ts now only registers settings and routes. Handlers are grouped
by part of the game (version, card, key, print, play, item, gift), the
stored documents live in models/, and the closet, player creation, db
access, game data and helpers each have their own file. No behavior
change: the test flow gives the same results.
2026-09-29 15:32:48 +09:00
iamsub
4a8ad31779 otoca: follow the arcade's rules from the fan wiki and official site
- kira cards: +1 to 1-3 random stats (was a guessed +1-3 / +1-5)
- accessory stats and skills vary within the wiki's per-grade ranges
- a card keeps the coord it was printed with; scanning an old card
  plays the latest doll in that coord, even with items sold since
- the first key card comes with the Pink March Ribbon (tailor tutorial)
- an offline card's present also gives a stamp, pressed with the next
  play's stamp
- all 8 letters add the letter wallpaper to closet/cardbg
- salon trial ticket on by default
2026-09-29 15:32:48 +09:00
iamsub
44bd5a29fe otoca: rebuild every response from a full game.dll analysis
- addUser/addDoll: doll_seed within 0-23327 (higher values disable
  growth), starting equipment from dollinitdata on the doll and in the
  closet, mission 1, first powder and rival ticket
- getCardInfo: locked/active_key follow the key card, accessories are
  counted in the equip list, worn accessories fill equip[4]/[5], the
  scanned card's own kira bonus, version 5/11
- setCardInfo: kira rolled per card (0-9), equip slots kept in place,
  star powder and decoseal spent
- checkKeyUser answers status 10 for a key that is not the player's
- addItem rows line up with the items; delItem adds the kept drops;
  sellItem handles the sell scene's placeholder seqs and takes the
  game's balance; composition takes consumed accessories off the doll
- addStamp: 10-square card (stamp_conv_rate 0 divided by zero),
  powder per full card; reportMission advances; questionnaires off
- receiveGift honours only the game's own offline card
2026-09-29 15:32:47 +09:00
iamsub
2b3ff254c0 otoca: battle_result 0 is a win, keep every beaten team/level
The game appends the fought team/level to score/enemy only when
battle_result is 0 (seen on a cabinet: a clear sent 0), and the list is
team/level pairs rather than one level per team.
2026-09-29 15:32:47 +09:00
iamsub
9dea6ae9ae otoca: first plugin for otoca d'or (NCG)
Handles the game.* XRPC module of ealocal.dll: getVersion, addUser,
getCardInfo, setCardInfo (issues the QR card ids), report, items,
makeup and key cards. Field names, node types and limits follow the
psmap tables in ealocal.dll; every reply was checked against them.
2026-09-29 15:32:47 +09:00