Skip to content

Jericho Co-op+ 0.3.0

Choose a tag to compare

@dolbaras dolbaras released this 01 Nov 09:29
· 75 commits to main since this release

Jericho Co-op+ 0.3.0 answers the owner's report on 0.2.9 ("not all fighting and ability animations of the squad are shown to the player who watches them"): every weapon, fire mode, reload, melee strike, power and ability of the seven playable characters was gone through, human-held and AI-held, and what the other players saw was looked at on screen. It also makes the mod work next to SMOD Add-ons, adds a single-file setup exe and gives the actions that have no animation in the game a gesture. It is co-op for Clive Barker's Jericho (2007, PC): 2–4 players, each controls their own squad member, the whole campaign, also two players on one PC.

Install / update: with 0.2.3 or later installed, just start the game with the shortcut; it installs 0.3.0 by itself. With any older version (0.1.0 to 0.2.2), or none, run jericho-coop-setup-0.3.0.exe (one file) or extract jericho-coop-0.3.0.zip anywhere and run Install Co-op.bat (the same installer). It finds the game, keeps a copy of every file it replaces, updates an older version and can remove the mod; Uninstall Co-op.bat in the game folder puts everything back. Every player needs the same version (the lobby says so when they differ). Details, network ports and how to report a bug are in README-COOP.txt inside the archive.

What's new since 0.2.9

Animations the other players see (what was wrong, what is done, how it was checked: a real gamepad on one PC, the other PC's screen recorded (frames looked at for the pistol, the dragon and the fire barrier) and the logs of both read for every other action; "before" = the 0.2.9 behaviour switched on again):

  • Pistol shots. The shot of a pistol in third person starts with a wind-up (Delgado's Raging Bull: 1.4–1.7 s) and the bullet leaves only if the trigger is still held when the wind-up ends. The owner's own pull is 0.1–0.5 s, so the other PC saw the character raise the pistol and lower it again: no shot. The trigger is now kept down until the wind-up has ended and the first shot is played, and the Bull's wind-up is cut short after 0.3 s so the shot comes with the owner's. Before: a short pull on the Bull showed 0 shots (owner 1); now 1 of 1, a held pull 4 of 4. The pistol's and the launcher's magazines (6 rounds, Black's grenade launcher 1) ran dry on the other PC after a few shots and the character stood with the weapon up; they are now refilled while it fires. The pistol reload (Reload0) is played.
  • Black. Both modes are shown: the sniper rifle (one-shot) and the grenade launcher (second weapon, with its reload), and the trick-shot switch as a small gesture. Before (0.2.9 behaviour run again): the first launch was shown, the second one was not (the launcher holds one round and the other PC's copy was never reloaded); now every launch is shown, with the reload.
  • Delgado. The Raging Bull as above. The dragon: with a real gamepad (RB held, then RT) the other PC shows the case/arm opening, the fire, the spirit flying out and the arm closing, and the same for the fire barrier (arm open while held). We did not find what the owner saw missing: the 0.2.9 build also showed the opening arm in our test. If you still see no dragon, send both coop.log files (and an F11 clip).
  • Fire modes and loads. Semi / burst / automatic of Jones', Church's and Cole's guns and Rawlings' standard / fragmenting / explosive pistol load are now sent: the other PC fires the same way (the right action and the same number of shots per pull).
  • Rawlings. Healing, ghost heal and Vlad's curse are shown (their own animations, once each); the effects of those animations no longer run on the other PC's copy of the character (they would have cured or hurt the wrong one).
  • Church. The sabre strikes of a human Church and of the AI's are shown (strike 1–5); the cost of the spell no longer comes out of the character's copy.
  • Cole. The mine launcher throw and the hack are shown (the mine mode pick and the detonator as the hack gesture).
  • Jones. Machine gun (modes), shotgun (second weapon, reload), the astral trance.
  • AI-held characters were watched in a real fight (host's squad against enemies, the other PC watching): shots of every squad weapon incl. the Bull, reloads, cover, hits, going down all played.

Gestures for actions the game has no animation for. Orders (stop / go / follow), switching the fire mode or pistol load, levers, doors, Cole's pillbox attack, a landing, the strikes of a quick-time event, Rawlings' calm: the character plays the nearest existing action, so the other players see that something happened (an order is an idle gesture, a lever a short arm swing, a landing a crouch, a quick-time strike a punch or a hit). Each was run in the game and the other PC played the gesture (seen in its log); the first-person action was started through the game's own action, not by a real lever, door, pillbox or quick-time event, and the calm gesture only by its code (see below). Each group has an off switch in the mod's settings table (gapgestures=false for all, or gaporders, gapmodes, gaplevers, gapfall, gapqte, gapcalm; in the repository: docs/ally-animations.md); a gesture that looks wrong is a one-line change, tell us.

SMOD Add-ons (PHM2D) compatibility. SMOD is SkacikPL's, SMOD Add-ons are PHM2D's; their authors asked for compatibility with their mods and allowed borrowing from them. The mod finds the add-ons by itself, the lobby marks players who have them with [SMOD+], their third-person view (P / O) works for the player alone and is refused in split screen, in cutscenes and while downed, and what a player does in third person (pistol, dragon, fire barrier, ...) is shown to the others like any other character's action. Their slow motions and the F8 "easy QTE" stay off in a session. The recipes for the third-person dragon, barrier, ghost heal and curse were read from the add-ons as facts; no code was copied, nothing of the add-ons is shipped or touched by the installer.

Setup exe. jericho-coop-setup-0.3.0.exe is a second download: one file that unpacks the same installer and runs it (no zip to extract). The zip is unchanged and the shortcut's auto-update still uses it. The exe is NOT code-signed (no certificate), so Windows SmartScreen may warn ("More info" → "Run anyway") and an antivirus may flag a self-extracting program; jericho-coop-setup-0.3.0.exe --extract <empty folder> only unpacks it so you can look inside, and the zip stays the alternative. The source of the exe is in the repository (tools/mkinstaller).

Not finished / known limits

  • What was not seen (the code runs, the pieces were checked one by one): the AI-held Delgado using his dragon (never fired in the fight we watched); a real quick-time event (the strikes were played through the game's own actions); Rawlings' chamanic calm gesture (the message path is only simulated); Cole's detonator in a real mine field; a real lever, door and pillbox (the arms' actions were started by hand); second-weapon actions of a third player; Ross (Act 1) shots.
  • Not a copy of the owner's pull: the other PC plays a shot when the owner pulls, but the number of shots in a burst can differ by one and the bullet's damage is dropped (the owner's PC deals it); the second weapon's own trigger field (SecondWeaponTrigger) is set on the copy but the engine reads it back as 0, the shot comes from the main trigger and the weapon in hand, which is what the real gamepad sets too.
  • SMOD Add-ons: run with SMOD 1.1 (the add-on version we have, SMOD 1.0.5 inside) on one PC against a plain host: loading, the third-person Delgado (pistol, dragon, barrier) as the host sees it. NOT run: the add-ons on both PCs at once, split screen with them, a third-person cutscene or split-screen start, the revive cool-down across PCs, the add-ons' own menus/display settings, SMOD 1.0.5 itself (not obtainable: the add-ons' files that need it were not compared). Their balance numbers are each player's own.
  • Setup exe: unsigned (above); the unpacked files do not carry the "from the Internet" mark.
  • Still open from 0.2.9: attacks not seen in a real fight (mortar and cluster shells, the Behemoth's vomit, the Firstborn's ray on a joining player, a pustule shot by a joining player), a real Steam session with two accounts (Steam was not started on the test PCs), the squad choice cases listed in the 0.2.9 notes, a whole co-op playthrough by people with this version.

Status: every item above was run in the game on two PCs (the owner's side on one with a real gamepad, the watching side on the other), split screen on one, except where it says otherwise; the code passes its simulation tests (11 files). The complete regression on the final code: the whole campaign (33 of 33 levels) host + joining player with two real games on two PCs, the 9 story splits (same outcome as in 0.2.9, no error or crash), the Lost Patrol (both branches by bots), souls, split screen (60 of 60 body switches twice), gamepads (9 of 9 runs), player 2 waiting / raw / AI revive, starting without a mouse, the game's own exit, the menu label in 16:10 and 4:3, and for the package: every earlier version (0.1.0 to 0.2.9, each one, all in a row, and removed directly by the new installer) updated to 0.3.0 and removed (the folder ends equal to the clean game), the setup exe (unpack, install, reinstall, uninstall, a wrong folder), and the update 0.2.9 -> 0.3.0 by the shortcut's launcher from a local feed that lists the setup exe first (the launcher took the zip). Not run for this version: a real Steam session with two accounts (Steam was not started on the test PCs; the Steam code is the same as in 0.2.9).

Tested on the retail DVD release (Jericho.exe SHA-256 7fb5b759823283a83b685adc4848289a149f520ddbab6dbc7f9e6131b15d2a62) and with SMOD 1.0.3 and SMOD Add-ons 1.1, Windows 10/11. No game files are included. The installer only sets the large-address-aware flag in the exe (the original is kept) and builds Pack1.packed from your own files.


Jericho Co-op+ 0.3.0 отвечает на сообщение владельца о 0.2.9 («не все анимации боя и способностей бойцов отряда показываются игроку, который за ними наблюдает»): пройдено всё, что умеют семь играбельных персонажей (оружие, режимы огня, перезарядка, ближний бой, силы и способности), под управлением игрока и ИИ, и то, что видят остальные игроки, посмотрено на экране. Ещё мод теперь работает рядом со SMOD Add-ons, есть установщик одним файлом, а действиям, для которых в игре нет анимации, добавлен жест. Это кооператив для Clive Barker's Jericho (2007, PC): 2–4 игрока, каждый за своего бойца отряда, вся кампания, в том числе вдвоём на одном ПК.

Установка / обновление: если стоит 0.2.3 или новее, просто запустите игру ярлыком: он сам установит 0.3.0. Если стоит любая более старая версия (от 0.1.0 до 0.2.2) или мода нет, запустите jericho-coop-setup-0.3.0.exe (один файл) или распакуйте jericho-coop-0.3.0.zip куда угодно и запустите Install Co-op.bat (тот же установщик). Он найдёт игру, сохранит копию каждого заменяемого файла, обновит старую версию и умеет удалять мод; Uninstall Co-op.bat в папке игры всё вернёт. У всех игроков должна быть одна версия (лобби об этом скажет). Подробности, сетевые порты и как сообщить об ошибке — в README-COOP.txt в архиве.

Что нового по сравнению с 0.2.9

Анимации, которые видят остальные игроки (что было не так, что сделано, как проверено: настоящий геймпад на одном ПК, экран другого ПК записан (кадры смотрели для пистолета, дракона и огненного барьера), журналы обоих прочитаны для остальных действий; «до» = поведение 0.2.9, включённое обратно):

  • Выстрелы из пистолета. Выстрел пистолета от третьего лица начинается с замаха («Бешеный бык» Дельгадо: 1,4–1,7 с), и пуля вылетает, только если курок всё ещё зажат, когда замах кончился. Собственное нажатие владельца длится 0,1–0,5 с, поэтому другой ПК видел, как персонаж поднимал пистолет и опускал его обратно: без выстрела. Теперь курок удерживается, пока замах не закончится и первый выстрел не сыгран, а замах «Быка» через 0,3 с обрывается, чтобы выстрел совпадал с выстрелом владельца. До: короткое нажатие на «Быка» показывало 0 выстрелов (у владельца 1); теперь 1 из 1, длинное — 4 из 4. Магазины пистолета и гранатомёта (6 патронов, у гранатомёта Блэка 1) на другом ПК кончались через несколько выстрелов, и персонаж стоял с поднятым оружием; теперь они пополняются, пока он стреляет. Перезарядка пистолета (Reload0) показывается.
  • Блэк. Показываются оба режима: снайперская винтовка (одиночный выстрел) и гранатомёт (второе оружие, с перезарядкой), а переключатель режима прицела — небольшим жестом. До (поведение 0.2.9, прогнанное снова): первый выстрел гранатомёта показывался, второй нет (в гранатомёте один заряд, а копия на другом ПК не перезаряжалась); теперь показывается каждый выстрел, с перезарядкой.
  • Дельгадо. «Бешеный бык» как выше. Дракон: с настоящего геймпада (RB зажат, затем RT) другой ПК показывает раскрывающийся футляр/руку, огонь, вылетающий дух и закрывающуюся руку, и то же для огненного барьера (рука раскрыта, пока кнопка держится). Что именно владелец не видел, мы не нашли: сборка 0.2.9 в нашем тесте тоже показывала раскрывающуюся руку. Если дракона всё ещё не видно, пришлите оба файла coop.log (и клип по F11).
  • Режимы огня и заряды. Одиночный / очередь / автомат у оружия Джонса, Чёрча и Коула и стандартный / осколочный / разрывной заряд пистолетов Роулингса теперь передаются: другой ПК стреляет так же (то же действие и то же число выстрелов на нажатие).
  • Роулингс. Лечение, призрачное лечение и проклятие Влада показываются (собственные анимации, по разу); последствия этих анимаций больше не выполняются на копии персонажа на другом ПК (иначе они лечили или ранили не того).
  • Чёрч. Удары сабли живого Чёрча и Чёрча под ИИ показываются (удары 1–5); цена заклинания больше не списывается с копии персонажа.
  • Коул. Бросок мины и взлом показываются (выбор режима мин и подрывник — жестом взлома).
  • Джонс. Пулемёт (режимы), дробовик (второе оружие, перезарядка), астральный транс.
  • Персонажи под ИИ наблюдались в настоящем бою (отряд хоста против врагов, другой ПК смотрит): выстрелы всего оружия отряда, включая «Быка», перезарядка, укрытие, попадания и падение — всё сыграно.

Жесты для действий, для которых в игре нет анимации. Приказы (стоять / вперёд / за мной), смена режима огня или заряда пистолета, рычаги, двери, атака дота Коулом, приземление, удары в QTE, спокойствие Роулингса: персонаж проигрывает ближайшее существующее действие, и остальные видят, что что-то произошло (приказ — холостой жест, рычаг — короткий взмах руки, приземление — присед, удар в QTE — удар или попадание). Каждый прогнан в игре, и другой ПК сыграл жест (видно в его журнале); действие от первого лица запускалось через собственное действие игры, а не настоящим рычагом, дверью, дотом или QTE, а жест спокойствия проверен только кодом (см. ниже). У каждой группы есть выключатель в таблице настроек мода (gapgestures=false для всех или gaporders, gapmodes, gaplevers, gapfall, gapqte, gapcalm; в репозитории: docs/ally-animations.md); жест, который выглядит плохо, меняется одной строкой, скажите нам.

Совместимость со SMOD Add-ons (PHM2D). SMOD — SkacikPL, SMOD Add-ons — PHM2D; их авторы просили совместимости с их модами и разрешили заимствования. Мод находит дополнения сам, лобби помечает игроков с ними [SMOD+], их вид от третьего лица (P / O) работает только для самого игрока и запрещён в сплитскрине, в роликах и пока он повержен, а то, что игрок делает от третьего лица (пистолет, дракон, огненный барьер ...), остальные видят как действие любого другого персонажа. Их замедления времени и «лёгкое QTE» на F8 в сессии отключены. Рецепты третьего лица для дракона, барьера, призрачного лечения и проклятия прочитаны в дополнениях как факты; код не копировался, файлы дополнений не поставляются и установщиком не трогаются.

Установщик-exe. jericho-coop-setup-0.3.0.exe — вторая загрузка: один файл, который распаковывает тот же установщик и запускает его (архив распаковывать не нужно). Архив не изменился, и автообновление ярлыка по-прежнему берёт его. Exe НЕ подписан (сертификата нет), поэтому SmartScreen может предупредить («Подробнее» → «Выполнить в любом случае»), а антивирус — отметить самораспаковывающуюся программу; jericho-coop-setup-0.3.0.exe --extract <пустая папка> только распаковывает, чтобы заглянуть внутрь, а архив остаётся запасным вариантом. Исходник exe лежит в репозитории (tools/mkinstaller).

Что не закончено / известные ограничения

  • Что не видели (код работает, части проверены по отдельности): дракон Дельгадо под ИИ (в бою, который мы смотрели, не стрелял); настоящий QTE (удары сыграны через собственные действия игры); жест спокойствия Роулингса (путь сообщения только смоделирован); подрывник Коула на настоящем минном поле; настоящий рычаг, дверь и дот (действия рук запускались вручную); действия второго оружия у третьего игрока; выстрелы Росса (акт 1).
  • Не копия нажатий владельца: другой ПК играет выстрел, когда владелец нажимает, но число выстрелов в очереди может отличаться на один, а урон пули отбрасывается (его наносит ПК владельца); поле второго курка (SecondWeaponTrigger) на копии выставляется, но движок читает его обратно как 0, выстрел идёт от основного курка и оружия в руке, то есть так же, как у настоящего геймпада.
  • SMOD Add-ons: прогнано со SMOD 1.1 (версия дополнений, что у нас, внутри SMOD 1.0.5) на одном ПК против обычного хоста: загрузка, Дельгадо от третьего лица (пистолет, дракон, барьер) глазами хоста. НЕ прогнано: дополнения на обоих ПК сразу, сплитскрин с ними, ролик от третьего лица или запуск сплитскрина, пауза восстановления воскрешения между ПК, их собственные меню и настройки экрана, сам SMOD 1.0.5 (достать не удалось: файлы дополнений, которым он нужен, не сравнивались). Их числа баланса у каждого свои.
  • Установщик-exe: без подписи (см. выше); распакованные файлы не несут метки «из Интернета».
  • Всё ещё открыто с 0.2.9: атаки, не виденные в настоящем бою (снаряды миномёта и кассетные, рвота Бегемота, луч Перворождённого по подключившемуся, «прыщ», подстреленный подключившимся), настоящая сессия Steam с двумя аккаунтами (Steam на тестовых ПК не запускали), случаи выбора отряда из заметок 0.2.9, полное прохождение кооператива живыми игроками на этой версии.

Состояние: каждый пункт выше проверен в игре на двух ПК (сторона владельца на одном с настоящим геймпадом, наблюдающая сторона на другом), сплитскрин на одном, если не сказано иначе; код проходит свои симуляционные тесты (11 файлов). Полная регрессия на итоговом коде: вся кампания (33 из 33 уровней) хостом и подключившимся двумя настоящими играми на двух ПК, 9 сюжетных разделений (тот же исход, что в 0.2.9, ни ошибок, ни падений), «Потерянный патруль» (обе ветки ботами), души, сплитскрин (60 из 60 смен тела дважды), геймпады (9 из 9 прогонов), ожидание, «сырой» режим и воскрешение ИИ у второго игрока, запуск без мыши, штатный выход, надпись меню в 16:10 и 4:3, а для пакета: каждая прежняя версия (от 0.1.0 до 0.2.9, по одной, подряд и с прямым удалением новым установщиком) обновлена до 0.3.0 и удалена (папка возвращается равной чистой игре), установщик-exe (распаковка, установка, переустановка, удаление, неверная папка) и обновление 0.2.9 -> 0.3.0 через ярлычный запуск из локальной ленты, где установщик-exe указан первым (обновитель взял архив). Не гонялась для этой версии: настоящая сессия Steam с двумя аккаунтами (Steam на тестовых ПК не запускали; код Steam тот же, что в 0.2.9).

Проверено на розничной DVD-версии (SHA-256 Jericho.exe 7fb5b759823283a83b685adc4848289a149f520ddbab6dbc7f9e6131b15d2a62) и со SMOD 1.0.3 и SMOD Add-ons 1.1, Windows 10/11. Файлы игры не входят в архив. Установщик только ставит флаг large address aware в exe (оригинал сохраняется) и собирает Pack1.packed из ваших файлов.