Im sleep watch v 8.9
# Im Sleep Watch v8.9 ## Sleep through your wristwatch (R1 Wrist) for S.T.A.L.K.E.R. Anomaly ### What it does The vanilla sleep dialog is fully suppressed. Instead, when you press F near a bed, the wristwatch from the R1 Wrist mod rises, and sleep is configured right on your wrist: - F near a bed — the watch rises (the watch model itself is untouched, the mod uses the native R1 Wrist inspect mechanism); - LEFT/RIGHT arrows — choose sleep duration (1 to 24 hours); an on-screen message shows "Sleep: N h, wake ~HH:00", and the watch hands display the wake-up time as a live preview; - X (the watch inspect key) — go to sleep: fade to black, time jump, autosave after waking up; - F during inspection — put the watch away and cancel sleep; - after waking up, an alarm rings (the "decoder" sound, looping for 6 seconds). Game time is properly advanced by the chosen number of hours, the actor's power is fully restored, and the world simulation proceeds as with a normal sleep.
### Requirements
- S.T.A.L.K.E.R. Anomaly 1.5.3.
- The R1 Wrist (HUDless Watches) mod — provides the wristwatch and inspect mechanism
- MCM is not required
- S.T.A.L.K.E.R. Anomaly 1.5.3.
- The R1 Wrist (HUDless Watches) mod — provides the wristwatch and inspect mechanism
- MCM is not required
### Installation
1. Installation via MO2; this mod should take priority.
2. Make sure the R1 Wrist mod is installed and enabled.
3. Launch the game. Files must be loaded before entering a save — start a new game
session rather than loading a save when using this mod for the first time.
1. Installation via MO2; this mod should take priority.
2. Make sure the R1 Wrist mod is installed and enabled.
3. Launch the game. Files must be loaded before entering a save — start a new game
session rather than loading a save when using this mod for the first time.
Mod files:
- gamedata\scripts\im_sleep_watch.script — the main script;
- gamedata\config\text\rus\string_table_im_sleep.xml — Russian texts;
- gamedata\config\text\eng\string_table_im_sleep.xml — English texts;
- the alarm sound comes from sounds\decoder.ogg (this file may already exist in
gamedata from other mods; you can drop in your own sound and point the script
to it in the settings).
- gamedata\scripts\im_sleep_watch.script — the main script;
- gamedata\config\text\rus\string_table_im_sleep.xml — Russian texts;
- gamedata\config\text\eng\string_table_im_sleep.xml — English texts;
- the alarm sound comes from sounds\decoder.ogg (this file may already exist in
gamedata from other mods; you can drop in your own sound and point the script
to it in the settings).
IMPORTANT: im_sleep_watch.script must be saved in ANSI (Windows-1251) encoding.
If Russian characters look broken in game after editing the script, re-save the
file as ANSI (Notepad++: Encoding -> Convert to ANSI).
If Russian characters look broken in game after editing the script, re-save the
file as ANSI (Notepad++: Encoding -> Convert to ANSI).
### How to use
1. Walk up to a bed (any spot where vanilla Anomaly allows sleeping) and press F.
2. The vanilla dialog will not open — the wristwatch rises instead.
3. Use LEFT/RIGHT arrows to pick the sleep duration. The watch hands show the
wake-up time, and the on-screen message repeats it.
4. Press X — the actor falls asleep, the screen fades, time jumps forward.
5. After waking up the alarm rings, and the watch shows the new Zone time.
1. Walk up to a bed (any spot where vanilla Anomaly allows sleeping) and press F.
2. The vanilla dialog will not open — the wristwatch rises instead.
3. Use LEFT/RIGHT arrows to pick the sleep duration. The watch hands show the
wake-up time, and the on-screen message repeats it.
4. Press X — the actor falls asleep, the screen fades, time jumps forward.
5. After waking up the alarm rings, and the watch shows the new Zone time.
If the automatic raise fails, an on-screen prompt asks you to press the inspect
key — just press X manually.
key — just press X manually.
### Settings (top of im_sleep_watch.script)
- ALARM_SOUND — path to the alarm sound relative to sounds\ (default: decoder);
- ALARM_VOLUME — alarm volume (0.0-1.0);
- ALARM_REPEAT_SECONDS — how long the alarm keeps ringing after waking up.
- ALARM_SOUND — path to the alarm sound relative to sounds\ (default: decoder);
- ALARM_VOLUME — alarm volume (0.0-1.0);
- ALARM_REPEAT_SECONDS — how long the alarm keeps ringing after waking up.
### Watch: Zone time vs system time
The R1 Wrist settings include a time source option for the dial. It is recommended
to select Zone (in-game) time — then the hands always match in-game time,
including right after sleep. If system time is selected, the dial shows your
computer's local clock instead of Zone time.
The R1 Wrist settings include a time source option for the dial. It is recommended
to select Zone (in-game) time — then the hands always match in-game time,
including right after sleep. If system time is selected, the dial shows your
computer's local clock instead of Zone time.
### Localization
Texts are loaded from string_table: a Russian game shows Russian, an English game
shows English. For any other game language the mod falls back to the built-in
English strings — raw identifiers will never appear.
Texts are loaded from string_table: a Russian game shows Russian, an English game
shows English. For any other game language the mod falls back to the built-in
English strings — raw identifiers will never appear.
### Diagnostics (in-game console)
- im_sleep_watch.check() — mod state summary;
- im_sleep_watch.dump() — R1 Wrist API dump;
- im_sleep_watch.dump_config() — R1 Wrist config dump;
- im_sleep_watch.test_sound("path") — test the alarm sound;
for example: run_string im_sleep_watch.test_sound("decoder")
- im_sleep_watch.check() — mod state summary;
- im_sleep_watch.dump() — R1 Wrist API dump;
- im_sleep_watch.dump_config() — R1 Wrist config dump;
- im_sleep_watch.test_sound("path") — test the alarm sound;
for example: run_string im_sleep_watch.test_sound("decoder")
### Known notes
- Sleep is only possible where vanilla Anomaly allows sleeping;
- if the watch is unequipped or R1 Wrist is unavailable, vanilla sleep works
as a fallback — the game never breaks;
- the selected sleep duration persists between sessions and saves.
- Sleep is only possible where vanilla Anomaly allows sleeping;
- if the watch is unequipped or R1 Wrist is unavailable, vanilla sleep works
as a fallback — the game never breaks;
- the selected sleep duration persists between sessions and saves.
Many thanks to **R1nk1** for his wonderful work; without him, this mod wouldn’t exist.
RU
# Im Sleep Watch v8.9
## Сон через наручные часы (R1 Wrist) для S.T.A.L.K.E.R. Anomaly
### Что делает мод
Ванильный диалог сна полностью подавляется. Вместо него у кровати (или в любом месте,
когда игра пытается усыпить героя) поднимаются наручные часы из мода R1 Wrist, и сон
настраивается прямо на запястье:
- F у кровати — часы поднимаются (модель часов не трогается, используется родной
механизм осмотра R1 Wrist);
- стрелки ВЛЕВО/ВПРАВО — выбор времени сна (от 1 до 24 часов);
на экране появляется сообщение «Сон: N ч, пробуждение ~HH:00»,
а стрелки часов показывают время пробуждения (превью);
- X (клавиша осмотра часов) — уснуть: затемнение, прыжок во времени,
авто-сохранение после пробуждения;
- F во время осмотра — убрать часы и отменить сон;
- после пробуждения звенит будильник (звук «decoder», цикл 6 секунд).
Игровое время честно перематывается на выбранное количество часов, силы героя
восстанавливаются полностью, генерация и события мира обрабатываются как при
обычном сне.
### Требования
- S.T.A.L.K.E.R. Anomaly 1.5.3.
- Мод R1 Wrist (HUDless Watches) — часы на запястье и механизм осмотра
- MCM не требуется
### Установка
1. Установка через MO2, этот мод должен иметь приоритет.
2. Убедитесь, что мод R1 Wrist установлен и включён и находится выше этого мода в списке.
3. Запустите игру. Файлы должны загрузиться до входа в сохранение —
при первом запуске мода нужен именно новый старт игры, а не загрузка сейва.
Файлы мода:
- gamedata\scripts\im_sleep_watch.script — основной скрипт;
- gamedata\config\text\rus\string_table_im_sleep.xml — русские тексты;
- gamedata\config\text\eng\string_table_im_sleep.xml — английские тексты;
- звук будильника берётся из sounds\decoder.ogg (файл может уже лежать в gamedata
от других модов; свой звук можно положить рядом и указать путь в настройках).
ВАЖНО: файл im_sleep_watch.script должен быть сохранён в кодировке ANSI
(Windows-1251). Если после правки скрипта в игре поехали русские буквы —
пересохраните файл в ANSI (Notepad++: Кодировки -> Преобразовать в ANSI).
### Как пользоваться
1. Подойдите к кровати (месту, где ванильная игра разрешает сон) и нажмите F.
2. Ванильный диалог не откроется — вместо него поднимутся часы.
3. Стрелками ВЛЕВО/ВПРАВО выберите длительность сна. Часы на запястье покажут
время пробуждения, сообщение на экране продублирует его.
4. Нажмите X — герой заснёт, экран затемнится, время перемотается.
5. После пробуждения прозвучит будильник, часы покажут новое время Зоны.
Если поднять часы автоматически не удалось, на экране появится подсказка
«нажмите клавишу осмотра» — просто нажмите X вручную.
### Настройки (в шапке im_sleep_watch.script)
- ALARM_SOUND — путь к звуку будильника относительно sounds\ (по умолчанию decoder);
- ALARM_VOLUME — громкость будильника (0.0–1.0);
- ALARM_REPEAT_SECONDS — сколько секунд звенит будильник после пробуждения.
### Часы: время Зоны или системное
В настройках R1 Wrist есть источник времени для циферблата. Рекомендуется
выбрать время Зоны (игровое) — тогда стрелки всегда совпадают с игровым
временем, в том числе после сна. Если оставить «системное время», циферблат
будет показывать локальное время компьютера, а не время Зоны.
### Локализация
Тексты берутся из string_table: русская игра покажет русский, английская —
английский. Для любого другого языка мод покажет английские строки-запаски,
сырые идентификаторы не появятся никогда.
### Диагностика (в консоли игры)
- im_sleep_watch.check() — сводка состояния мода;
- im_sleep_watch.dump() — дамп API R1 Wrist;
- im_sleep_watch.dump_config() — дамп конфига R1 Wrist;
- im_sleep_watch.test_sound("путь") — проверить звук будильника;
например: run_string im_sleep_watch.test_sound("decoder")
### Известные особенности
- Сон возможен только там, где ванильная игра позволяет спать;
- если часы сняты или мод R1 Wrist недоступен — работает ванильный сон
как запасной вариант, игра не ломается;
- время сна сохраняется между сессиями и между сохранениями.
Большое спасибо **R1nk1** за его замечательную работу. Без него этот мод не появился бы на свет.