OpenHoldem Manual / Руководство по OpenHoldem

→ttlimits, ttlimits0 - ttlimits9

These symbols are intended to provide a format string that is used to parse the window's titlebar text, and extract sblind, bblind, bigbet, ante and game type information. The syntax usage of the format string is very much like the standard C-language format strings for scanf and printf. The placeholders use the caret character as the indicator and have the following meanings:
^h hand number
^d dummy integer (read chars 0-9 only)
^f dummy float (read chars 0-9 including decimal '.')
^s sblind
^b bblind
^B bigbet
^a ante
^v sb or bb depending on limit type
^V bb or BB depending on limit type
^* skip all text up to the literal character following the *
^R roman numeral as in "Level VIII" as typically seen in SNGs
^L limit indicator

For the integer and float numerics, the scanner will automatically accept and skip a leading dollar sign “$” or leading/trailing cent sign “¢” (ascii 162 hex a2). In the case of the cent sign the target number will be divided by 100. The scanner will also recognize the standard trailing metric unit multipliers of “k” and “m” (1000 and 1000000 respectively).

The following case-insensitive strings are recognized for the ^L limit indicator:
no limit, no-limit, nolimit, nl
pot limit, pot-limit, potlimit, pl
fixed limit, fixed-limit, fixedlimit, fl, limit

As an example, this title bar text "NL SNG Level VI 25/50 (2)" could be parsed with this format string "^L SNG Level ^R ^s/^b (^a)" to result in the sblind, bblind and game type being recognized.

If multiple ttlimits symbols are provided, then the engine will scan each in order, and extract matching information from the first time it is found. That means that if you specify ^s in both ttlimits and ttlimits3, for example, it will be extracted from ttlimits and ignored in ttlimits3. OpenHoldem allows you to specify up to 11 ttlimits records in any single Table Map file. Specifying multiple ttlimits records might be needed if a given Table Map file is intended to describe multiple Texas Hold’em game flavors. However, it is a best practice to define different game flavors in different Table Maps, and thus most Table Maps contain a single ttlimits symbol record.
0 ttlimits, ttlimits0 - ttlimits9

Эти символы предоставляют строку форматирования, используемую для передачи заголовка окна, извлечения значений малого блайнда, большого блайнда, наибольшей ставки, анте и информации о типе игры. Синтакс этой строки такой же, как и у строки форматирования в функциях scanf и printf в C-подобных языках программирования. Placeholder'ы начинаются с символа вставки (^) и имеют следующике значения:

^h номер раздачи
^d dummy integer (read chars 0-9 only)
^f dummy float (read chars 0-9 including decimal '.')
^s малый блайнд
^b большой блайнд
^B наибольшая ставка
^a анте
^v малый или большой блайнд в зависимости от типа лимитов
^V большой блайнд или большая ставка (Big Bet)
^* пропустить весь текст до буквенного символа, следующего после знака *
^R римский числа как в "Уровень VIII", которые обычно используются в SNG-турнирах
^L индикатор лимитов

У целочисленных значений и значений с плавающей запятой программа автоматически фильтрует символ $ в начале и символ ¢ (ascii 162 hex a2) в начале или конце. Если используется символ ¢, то итоговое число будет разделено на 100. Также автоматический распознаются стандартные метрические множители k и m (1000 и 1000000 соответственно).

Для индикатора лимитов ^L используются следующие (не чувствительные к регистру) строки:
no limit, no-limit, nolimit, nl
pot limit, pot-limit, potlimit, pl
fixed limit, fixed-limit, fixedlimit, fl, limit

Пример: для отображения в заголовке онка текста "NL SNG Level VI 25/50 (2)" можно использовать такую строку форматирования "^L SNG Level ^R ^s/^b (^a)", которая выводит иформацию о блайндах и типе игры.

Если вы используете несклько символов ttlimits, то программа просканирует каждый из них по порядку и извлечет информацию только из первого нахождения. То есть, если вы используете placeholder ^s в обоих tlimits и tlimits3, то значение будет извлечено только из tlimits, а в tlimits3 проигнорировано.
Вы можете использовать до 11 символов tlimits на каждый файл Table Map. Использование нескольких tlimits может быть необходимо когда один файл Table Map используется для описания нескольких игр. Однако, лучше использовать свой Table Map для каждой отдельной игры. Таким образом в каждом файле Table Map будет содержаться только один символ ttlimits.
Резюме
Пол:
мужчина
Родной язык:
русский
С нами:
с 4 июля 2011 г. (5586 дней)
Деятельность:
974 версии перевода с общим рейтингом 140
49 комментариев
Карма: 3 (оценок: 3)
Написать sammasati личное сообщение