- ESC no longer triggers the emergency stop (an ESC in another app stopped the run at 20:29); stopping only via ctrl-opt-cmd-S or the stop button - a table whose program runs counts as open even when its window is not visible (other desktop, Cockpit without screen recording): no reopening, no giving up, correct table count; teardown and closing a full table work over the channel - Cockpit checks and requests the screen recording permission - gapless tiling (sicht/kacheln.py): tables fill the full height, the Cockpit bar takes the rest and never goes below its minimum width; own animated resize no longer stored as minimum - earlier today: top-up safety net, leave after the hand (sit out next hand), tournament lock, waitlist left on close, Cockpit start lock, warning throttle, preflop raise-war reading, Bomb Pot practice, tournament break and level-up on the stage - teacher core for the streamer mode (betrieb/lehrer.py, betrieb/grund_lesen.py) and its plan
169 lines
12 KiB
Markdown
169 lines
12 KiB
Markdown
# Sonderfaelle der Buehne - je Form der Client-Beleg und was die Buehne setzt
|
|
|
|
Stand 2026-11-04. Auftrag: JEDE Sonderform, die der CoinPoker-Client eingebaut hat, in der Buehne
|
|
abbilden - aus dem CLIENT-CODE belegt, nicht geraten. Alles in der Buehne (hand/theater.py +
|
|
hand/geber.py, echter Spielprozess, unser Server); nichts live.
|
|
|
|
Quellen (woertlich gelesen, Fundstelle je Form):
|
|
|
|
* **Assembly-CSharp.dll** (Unity, Mono) - Klassen, Handler, Felder, Format-Zeichenketten.
|
|
* **PBCommon.dll / PBConnector.dll** - die Draht-Objekte (`*Bean`) mit ihren Feldern.
|
|
* **app.asar** (`dist/*.prod.js`) - Lobby-Felder (Weissliste), Rahmen-Namen, Tischbild-Namen.
|
|
* **archiv/mitschrieb/main*.log.gz** - echte Client-Zeilen (Rahmen und Felder, woertlich).
|
|
* **~/Library/Application Support/CoinPoker/image-cache** - die eigenen Tischbilder des Clients.
|
|
|
|
Regel je Zeile: **Beleg** (Datei + Name) - **Feld** - **was die Buehne setzt**. Was NICHT geht,
|
|
steht als solches da. Zwei Namen ohne Log-Beleg sind als **ANNAHME** gekennzeichnet.
|
|
|
|
## Was jetzt abgebildet ist (Szene in hand/geber.szenen, Rahmen in hand/buehnenrahmen)
|
|
|
|
Alle Szenen tragen ihr Merkmal mit dem ECHTEN Feldnamen im `game_alldata`; jede Form baut und
|
|
schliesst eine volle Hand (Sieger, Reset). Rahmen-Namen sind aus den echten Logs, wo dort belegt.
|
|
|
|
| Form | Szene | Merkmal (echtes Feld) | Rahmen |
|
|
|---|---|---|---|
|
|
| Splash the Pot | `splash` | `gameDynamicPropertiesResponseData.isSplashThePotEnabled`, `roomProperties.splashSharedBonusPercentage` | `game.splash_the_pot` |
|
|
| Mega-Splash | `mega_splash` | dasselbe + `IsMegaSplash` (Theme) | `game.splash_the_pot` (megaSplash/isIllusion) + `game.mega_splash` |
|
|
| AOF-Splash | `aof_splash` | AOF + Splash, eigenes Tischbild | wie Splash |
|
|
| Big Ante | `big_ante` | `roomProperties.minAnte/maxAnte` (ante >= 0.2*bb) | - (kein eigener Rahmen) |
|
|
| Interaktives Straddle | `straddle` | `roomProperties.isStraddle`, `straddleResponseData.straddle` | `game.seat` caption "Straddle" + `game.auto_post_bb` |
|
|
| Must-Show | `must_show` | `roomProperties.isMustShowEnabled` | `game.show_cards` (Sieger zeigen) |
|
|
| Fixed-Hand-Bombpot | `fixed_bombpot` | `roomProperties.isFixedHandBombpot`, `handsInBombpot`, `isBombpot` | `game.bombpot_info` (totalHandCount/currentHandNumber) |
|
|
| Rabbit Run | `rabbit` | `roomProperties.isRabbitRunAllowed` | `game.rabbit_run_new` (Restkarten) |
|
|
| Mystery Bounty | `bounty` | `tourneyTableProperties.isBountyTournament` | `game.bounty_winner` (ANNAHME) |
|
|
| Hand-for-Hand | `hand_for_hand` | `handForHandTournamentResponseData` | `game.hand_for_hand` (ANNAHME) |
|
|
| Mehrtages-Turnier | `multi_day` | `roomProperties.isMultiDayTournament`, `multiDayStackType`, `multiDayFinishLevel` | - |
|
|
| Arena | `arena` | `roomProperties.restrictedTableData.isArena` + Bild `desk-arena-1.jpg` | - |
|
|
| CGWC | `cgwc` | `roomProperties.restrictedTableData.isCgwc` + Bild `desk-cgwc-1.jpg` | - |
|
|
| Battle Cap | `battle` | `roomProperties.dynamicRakeConfig` (ANNAHME) | - |
|
|
|
|
Schon vorher abgebildet (unveraendert): rit, ev_chop, ante, plo4/5/6, hu, no_limp, bombpot,
|
|
doppelbrett, short_deck, kpoker, aof. Spec: tests/specialfaelle_spec.py (24 Faelle, gruen).
|
|
|
|
## Je Form: Beleg, Feld, was die Buehne setzt
|
|
|
|
### Splash the Pot / Mega-Splash
|
|
* **Beleg**: `Assembly-CSharp.dll` `_PROJECT_NEW.Scripts.State.AppStaticConfig.SplashThePotConfig`
|
|
(`IsFeatureEnabled`, `MegaSplashNotificationThresholdBB`), `TableDataManager.IsSplashThePotEnabled`,
|
|
`TableDataManager.IsMegaSplash`, `ThemeData.CashSplashThemeUrl`, `ThemeData.AofSplashThemeUrl`;
|
|
`PBCommon.dll` `SplashThePotBean` (`isIllusion`, `dropAmount`, `megaSplash`, `megaDrop`),
|
|
`MegaSplashBean` (`amount`, `message`, ...), `GameDynamicPropertiesBean.isSplashThePotEnabled`;
|
|
Log: `game.splash_the_pot` 12x, `game.mega_splash` 39x mit `message:"MEGA SPLASH OCCUR "`.
|
|
Bilder: `desk-cash-mega-splash-0.jpg`, `desk-aof-mega-splash-0.jpg` (Namensschema `desk-<key>.jpg`
|
|
aus app.asar).
|
|
* **Was gesetzt ist**: `isSplashThePotEnabled` + `splashSharedBonusPercentage` im Tischbau, danach
|
|
`game.splash_the_pot` (dropAmount, megaSplash, isIllusion) und bei Mega zusaetzlich
|
|
`game.mega_splash`. Eigenes Tischbild je Cash/AOF.
|
|
* **Nicht**: `MegaSplashNotificationThresholdBB` ist Client-Statik (kein Drahtfeld) - die Buehne
|
|
sendet nur `amount`, die Schwelle beurteilt der Client selbst.
|
|
|
|
### Big Ante
|
|
* **Beleg**: `AppStaticConfig.AnteConfig` (`IsBigAnteEnabled`, `BigAnteBbRatioThreshold`), in der
|
|
echten AppStaticConfig `anteConfig.{isFeatureEnabled,bigAnteBBRatioThreshold,isBigAnteBBRatioThresholdEnabled}`
|
|
(Log-Zitat `"bigAnteBBRatioThreshold":0.2`). `roomProperties.minAnte/maxAnte` (Bestand: null).
|
|
* **Was gesetzt ist**: Szene mit ante >= 0.2*bigBlind; `minAnte`/`maxAnte` = ante. Kleiner Ante
|
|
(Szene `ante`) traegt das Merkmal NICHT (Spec prueft beide Seiten).
|
|
* **Nicht**: kein eigener Rahmen; `anteConfig` liegt in der Client-Statik, nicht im Tischbau.
|
|
|
|
### Interaktives Straddle
|
|
* **Beleg**: `AppStaticConfig.InteractiveStraddleConfig.EnableInteractiveStraddle`,
|
|
`GameTableConfig.ShowStraddleInMenu`, `StraddleHandler`; `PBCommon.dll` `StraddleBean`
|
|
(`straddle`, `sessionStraddle`), `AutoPostBbBean` (`autoPostBB`, `showAutoPostBB`);
|
|
Log: `game.seat` mit `caption:"Straddle"` (betAmout), `game.auto_post_bb` 3x.
|
|
* **Was gesetzt ist**: der Straddle ist ECHTES Geld (Hand/selbstspiel: der Sitz hinter dem BB legt
|
|
2*BB live vor, der Zu startet dahinter); `isStraddle`/`straddleResponseData` gesetzt, Sitz-Caption
|
|
"Straddle" und `game.auto_post_bb` gesendet. Spec prueft: genau EIN Straddle-Zug mit 2*BB.
|
|
* **Nicht**: der Menue-Knopf (`ShowStraddleInMenu`) ist Client-Aussehen, kein Drahtfeld.
|
|
|
|
### Must-Show
|
|
* **Beleg**: `roomProperties.isMustShowEnabled`, `TableDataManager.IsMustShowFeatureEnabled`,
|
|
`AppConstants.MustShow/MustShowTitle`, `AppStaticConfig_*MustShowConfig_*`, `PopupHandlerType.MustShowInfo`;
|
|
Mechanik im Log: `game.show_cards` 161x (`ShowCardsBean`: seatId, showCardsList, showCardIndexMap).
|
|
* **Was gesetzt ist**: `isMustShowEnabled` + `game.show_cards` fuer die Sieger im Showdown.
|
|
* **Nicht**: kein eigenes Merkmal je Hand im Log gefunden - die Durchsetzung ist Client-seitig.
|
|
|
|
### Fixed-Hand-Bombpot
|
|
* **Beleg**: `roomProperties.isFixedHandBombpot`, `handsInBombpot`, `bombpotInducesDoubleBoard`;
|
|
`PBCommon.dll` `BombThePotBean` (`totalHandCount`, `currentHandNumber`, `bombpotInducesDoubleBoard`);
|
|
app.asar-Filter `FIXED_BOMB_POT = isBombpot && isFixedHandBombpot`; Log: `game.bombpot_info` 6x.
|
|
* **Was gesetzt ist**: `isFixedHandBombpot`, `handsInBombpot=3`, `isBombpot`; `bombpot_info` traegt
|
|
`totalHandCount`/`currentHandNumber`.
|
|
* **Nicht**: die dauerhafte Wiederholung ueber mehrere Haende zeigt die Buehne als EIN Rahmen je Hand
|
|
(die Handzahl steht im Feld) - die Zaehlung ueber Haende ist Sache des Ablaufs, nicht der Szene.
|
|
|
|
### Rabbit Run
|
|
* **Beleg**: `RabbitRunCardsHandler`; `roomProperties.isRabbitRunAllowed` (Bestand: true);
|
|
`PBCommon.dll` `RabbitRunCardsBean` (`rabbitRunCards`, `rabbitRunCardsDoubleBoard`, `username`);
|
|
Log: `game.rabbit_run_new` 1x. `AppConstants.RabbitCardSelectedMsgInfo`.
|
|
* **Was gesetzt ist**: `isRabbitRunAllowed` + `game.rabbit_run_new` mit den Restkarten des Bretts.
|
|
* **Nicht**: Rabbit Run wird im echten Client vom SPIELER ausgeloest (nur nach Fold-Out) - die Buehne
|
|
sendet den Rahmen immer, damit er sichtbar wird.
|
|
|
|
### Mystery Bounty / Bounty
|
|
* **Beleg**: `TourneyTablePropertiesBean.isBountyTournament`; `BountyWinnerBean`
|
|
(`bountyWinnerData`, `mysteryBountyWinnerData`), `MysteryBountyDistributionBean`,
|
|
`MysteryBountyLevelData` (`amountPerBounty`, `bountyType`, `isSpecial`), `PlayerBountyInfoBean`
|
|
(`bountyOnHead`, `bountyInWallet`), `SpecialBountyAlertData` (`BountyType`, `BountyAmount`),
|
|
`_PROJECT_NEW.Scripts.Player.BountyChip`, `MysteryBountyMicroInteractionConfig.GoldenBounty`;
|
|
app.asar: Menue `mystery_bounty_details`, `bountyAmount` in Gewinnerlisten.
|
|
~~**ANNAHME**: Rahmen-Name `game.bounty_winner`~~ - **WIDERLEGT 5.11.**: der Client kennt
|
|
`game.bounty_winnings_data` -> `BountyWinnerBean` -> Ereignis `bounty_winnings_data`
|
|
(`PBClient.BeanAndClientEventMap`). Die Form ist auch eine andere: `bountyWinnerData` ist eine
|
|
Liste von `PlayerBountyInfoBean` (`playerId` int, `playerName`, `seatId` int, `eliminationDetails`,
|
|
`bountyOnHead`, `bountyInWallet` - Objekte), `mysteryBountyWinnerData` ein WOERTERBUCH
|
|
string -> `MysteryBountyWinnerData` (`losers` List<long>, `bountyAmount` List<double>,
|
|
`bountyType` List<string>, `initTimeStamp`).
|
|
* **Was gesetzt ist**: `isBountyTournament` + `game.bounty_winner` mit `bountyType:"MYSTERY"` - der
|
|
Rahmen kommt so beim Client NICHT an (falscher Name, Liste statt Woerterbuch). Offen, siehe unten.
|
|
* **Nicht**: die echte Verteil-Drawer-Daten laufen ueber den TURNIERLOBBY-Kanal
|
|
(`lobby.mystery_bounty_details`, `MysteryBountyDistributionBean`) - die Buehne bedient nur den Tisch.
|
|
|
|
### Hand-for-Hand
|
|
* **Beleg**: `InitBean.handForHandTournamentResponseData`; `HandForHandBean` (`notification`,
|
|
`tableId`, `toPauseTable`, `handForHandStatus`, `isHandForHandFinalTable`, `isTableAlreadyPaused`,
|
|
`pausedTables`, `reschedule`); `TourneyGameMessages.HandForHandPause`, `TourneyMessages.HandForHand`,
|
|
`TournamentPopupType.HandForHand/FinalTable`, `TournamentConstants.HandForHandHeader`.
|
|
~~**ANNAHME**: Rahmen-Name `game.hand_for_hand`~~ - **BELEGT 5.11.**: `tournamentgame.hand_for_hand`
|
|
-> `HandForHandBean` -> Ereignis `hand-for-hand` (`PBClient.BeanAndClientEventMap`); der alte Name
|
|
kam beim Client nie an.
|
|
* **Was gesetzt ist**: `handForHandTournamentResponseData` im Tischbau + `tournamentgame.hand_for_hand`.
|
|
* **Nicht**: der Pausen-/Balancing-Mechanismus (Tische zueinander) ist Ablauf, nicht ein Rahmen.
|
|
|
|
### Mehrtages-Turnier
|
|
* **Beleg**: `AppStaticConfig.MultiDayGameTableConfig.MultiDayLastLevel`;
|
|
`roomProperties.isMultiDayTournament`, `isMultiDayFinalTournament`, `multiDayStackType`,
|
|
`multiDayFinishLevel`; `TournamentConstants.MultiDayFinalLevelMessage`.
|
|
* **Was gesetzt ist**: `isMultiDayTournament`, `multiDayFinishLevel` + Turnierdaten.
|
|
`multiDayStackType` bleibt leer: im Client `Nullable<int>` ohne Leser (Bedeutung unbekannt). Bis 5.11.
|
|
stand dort Text ("FREEZE") - daran scheiterte der GANZE Tischbau (`JsonReaderException`, 92-mal je
|
|
Lauf); der Mehrtages-Tisch der Buehne war also nie zu sehen.
|
|
* **Nicht**: kein eigener Rahmen; die Flug-Zuordnung (Flight 2) ist Turnierlogik.
|
|
|
|
### Arena / CGWC / Battle
|
|
* **Beleg**: `Theme.ArenaTable/CgwcTable/...`, `ThemeData.CgwcHoldemThemeUrl/CgwcPloThemeUrl`;
|
|
`roomProperties.restrictedTableData.isArena/isCgwc`; app.asar-Weissliste `isArena`, `isCgwc`,
|
|
`isBattle` und das Bildschema `desk-arena-<n>.jpg` / `desk-cgwc-<n>.jpg` (Dateien liegen im Cache).
|
|
* **Was gesetzt ist**: `restrictedTableData.isArena`/`isCgwc` und das eigene Tischbild.
|
|
**ANNAHME Battle**: `isBattle` ist nur ein Lobby-Feld; auf dem Draht bleibt
|
|
`roomProperties.dynamicRakeConfig` als Merkmal (in der AppStaticConfig heisst die Sache
|
|
`tableSpecs.battleCap`).
|
|
* **Nicht**: `isBattle` als eigenes roomProperties-Feld existiert nicht; Arena/CGWC sind im Bestand
|
|
aktuell false, die Felder und Bilder aber da.
|
|
|
|
## Wie das Tischbild wirkt (wichtig, ehrlich)
|
|
`geber.tischbild(szene)` liefert je Form die Client-Datei (BILDER-Zuordnung); jede Szene traegt sie
|
|
als `szene["thema"]`. **Aber**: `betrieb/buehne_show.py` waehlt das Thema ueber SEINE `THEMEN`-Tabelle
|
|
nach dem Szenen-Namen - die Datei gehoert dem Eigentuemer und wurde nicht angefasst. Wer eine neue
|
|
Form in die Show haengen will, ergaenzt dort eine Zeile (`"arena": "desk-arena-1.jpg"`, ...); die
|
|
Namen und die Bilddateien stehen hier.
|
|
|
|
## Was offen bleibt
|
|
1. **Bounty-Rahmen richtigstellen**: `game.bounty_winnings_data` mit der echten Form (siehe Mystery
|
|
Bounty) - die Annahme `game.bounty_winner` ist widerlegt, `game.hand_for_hand` ist erledigt
|
|
(`tournamentgame.hand_for_hand`, 5.11.).
|
|
2. **Super Holdem** (`ThemeData.SuperHoldemThemeUrl`, Bild `desk-super-holdem-1.jpg`) ist da, war
|
|
aber nicht im Auftrag - als eigener Modus noch nicht als Szene gefuehrt.
|
|
3. **Battle Cap** ohne Drahtfeld (`isBattle` nur in der Lobby) - Merkmal ueber `dynamicRakeConfig`.
|
|
4. **Turnierlobby-Kanal**: Mystery-Bounty-Verteilung (`lobby.mystery_bounty_details`) laeuft nicht
|
|
ueber den Tisch; die Buehne bedient weiterhin nur den Tischkanal.
|