Skip to content

ReCoF v0.2.3

Latest

Choose a tag to compare

@caixax caixax released this 24 Nov 14:22

Warning

Not every change has been confirmed in game yet. Use these files in a copy of the game, never in your Steam installation. If you use them anyway, you do so at your own risk and with your own consent.

ReCoF is Cry of Fear 1.6a rebuilt from the DeCoF source with bug fixes and improvements. Speedrun techniques are kept, and the balance fixes can be switched back to retail with rc_retail_gameplay 1. The zips only contain binaries; no game assets are included.

0.2.3 brings story co-op through Steam, faster drawing on slow computers, the first work on several cores, a performance log for players whose game stutters, new menus and settings, and a long list of fixes. It is everything from the fifteen 0.2.3 betas, plus a crash fix and the co-op label. The VR mode of 0.2.3-beta.16 is not in this release: it comes back in the 0.2.4 betas.

Questions, bug reports and news: the ReCoF Discord.

What changed since 0.2.2

Story co-op (beta)

Simon's story for 2 to 4 players, joined through Steam: no Radmin, no port forwarding, and nobody sees the others' IP addresses (co-op goes through Steam's relays only). The maps are the original ones, and single player plays exactly as before. Co-op is still being tested, so the menus call it Co-op (Beta) (B541).

How to play. Everyone needs this same ReCoF version and Steam running.

  1. The host: main menu, Co-op (Beta). The lobby opens. In a game, Esc and Co-op (Beta) go back to the main menu and open it there.
  2. Invite friends opens Steam's invite list. A friend who accepts comes into the lobby and sees the host's choices.
  3. Game tab: the campaign, the difficulty, and New game or Continue (the newest co-op save). Co-op settings tab: the host's rules (how long an exit waits for the group, how soon a dead player comes back, monster health per extra player, autosave, the vote to skip scenes, Simon or police officers, players solid to each other or passing through) and each player's own voice settings.
  4. Start: the friends' games join the host's by themselves. A friend invited later joins the running game the same way.

What it does:

  • You are Simon in the main campaign: his body, his voice and his arms on the weapons. The game has no Simon model made for players, so ReCoF makes one the first time it starts, from your own game files, into cryoffear\models\player\simon\simon.mdl. In the other campaigns the players are Cry of Fear's police officers.
  • Level exits wait for the group ("Waiting at the exit: 1 of 2 players"), and a new level waits until everyone has loaded, so nobody misses a scene.
  • Everyone keeps their health, weapons and items through level changes. A dead player comes back next to a teammate with their things; if the whole group dies, everyone goes back to the level's start.
  • Keys belong to the group, padlock and keypad codes are the same for everyone, and story phone calls ring a teammate when the one they were for cannot answer.
  • Scenes take the group along. The host's Enter skips a scene for everyone; a friend's Enter is a vote.
  • Saving: an autosave on each new level (load coop_auto), and the group's game at any tape recorder (load coop_tape).
  • Difficulty: Easy, Normal, Hard and Nightmare, each with co-op rules; monsters get tougher for each friend.
  • Proximity voice: push to talk or open mic, your microphone, and a friend's voice that comes from where they stand (Options, Audio, Talking).
  • The lobby hosts every co-op game: story co-op and Cry of Fear's own co-op games (the co-op campaign, Manhunt, Survival 1 to 4 and any multiplayer map you add) through Steam, and Server list opens the server list. Leaving one of these games puts the game back to one player.
  • Tested with the whole main campaign on two PCs through Steam, every level change in story order, the scenes, the bosses, the five endings and the wheelchair, and with three players from c_intro to c_start. Less tested: four players. When something goes wrong, the host's rc_coop_dump in the console and qconsole.log help us.

The full guide is docs/coop.md.

Faster on slow computers

Three options, all on by default, in Options, Graphics, Performance and in the launcher's options. Each one set to 0 draws the old way, and paused screenshots on 22 maps came out the same pixel for pixel.

  • Parts of brush entities outside the view are not drawn (B354, rc_bmodelcull).
  • The world is drawn grouped by texture (B355, rc_worldsort): slow graphics chips and AMD's driver gain the most.
  • Rain, snow and grass go out in one block each (B356, rc_fxbatch).

Measured on a laptop with an i3-7020U and Radeon R7 M440 graphics, at the normal 100 fps limit, average fps over the same walk through each map with the three options off and on:

Map Off On
c_cof_lake (the co-op campaign's lake) 65.7 96.6
c_subway2st1 74.2 99.5
c_stad 75.6 98.7
c_park3 81.4 95.3
c_doc_city 82.3 97.2
c_buscity 82.6 98.9
c_forest4 88.2 95.2
c_city 92.7 99.6

On a laptop with an RTX 3050 the same places gain 5 to 29% without the limit.

Smoother

  • Bone setup on several cores (B339, rc_threads): the bones of the models in view are worked out on worker threads, with exactly the same result. The default uses up to 3 workers on processors with 8 or more threads; rc_threads 0 turns it off.
  • No stutter when you pick up an item (B363) or when a music track starts (B364): those files are now read ahead on a thread of their own, with the models the game loads late and each map's music (B365). If music misbehaves, rc_music_thread 0 goes back to the old way.
  • No particle stutters with many monsters around (B362), and particle effects cost less over a long map (B342).
  • Smooth frames (rc_smoothframes 1): cutscene cameras no longer turn with the mouse or flicker (B333), menus no longer stutter (B335), monitors above 200 Hz get evenly spaced pictures (B336), and one slow frame no longer turns the in-between pictures off for seconds (B509).

Stutters or low fps? Send a performance log

  1. Turn on Performance log in the launcher's ReCoF options (Performance section) or in Options, Graphics, Performance, or type rc_perflog 1 in the console (B340).
  2. Play the part that runs badly for a minute or two, then quit the game (or type rc_perflog 0).
  3. Send the newest file in cryoffear\perflogs\ to the ReCoF developers, with the map and what was happening.

The log has what the computer is and a line each second with the frame rate, the slowest frames and where the time went; every stutter gets a line of its own that says what the game was doing, and whether the whole computer stood still (B341, B344, B347 to B350, B353, B366, B367). It changes nothing in the game.

Menus and settings

  • A new look for Options, the console, the server list and the Esc menu: one dark theme in Cry of Fear's red with clear text in the Inter font, flat windows and tabs, and sizes that grow with your screen from 720p to 4K (Menu size in Options, Game, General makes everything larger still). Cry of Fear's own picture main menu stays.
  • A new Options window (B332) with every ReCoF option, a one line help for each, a crosshair preview, and the settings that were spread over other screens (subtitle language, developer commentary, the co-op rules, the voice, ReCoF's key actions). rc_options opens it from the console or a key.
  • A server list for ReCoF (B331): ReCoF servers on the Internet and on the local network, a box to show ReCoF servers only, and a box to join an address.
  • Menus on 4:3 and small screens (B423, B427): the main menu fits under the logo at 800 x 600, and window titles no longer hide under their content.
  • The menu music no longer starts twice (B496), louder than your music volume. Original game bug.
  • More settings in Options (B499): the main menu style (rc_menu_text), Bone threads, Performance log, Music loads in the background, Spray size.

Fixes

  • No crash when the screen size changes (B540). Changing the resolution or the window mode could crash the game in GameUI.dll: the check that moves windows back onto a smaller screen did not expect a window from another part of the game, such as the server browser's. In every release since 0.1.6; found from a player's crash report.
  • A crash while a map loads (B357): the HUD asked for a sprite that Cry of Fear's hud.txt does not have and read the memory in front of its list. Original game bug.
  • Closing the game window no longer ends in an error (B352). Original game bug.
  • Quitting no longer crashes about one time in four (B351).
  • No crash at the first map when the water shaders are missing (B504). Original game bug.
  • The inventory no longer leaks memory while the mouse points at an item (B334).
  • The vignette works again (B308, rc_vignette, off by default): Cry of Fear 1.6a added the option and, by mistake, hid the effect for good.
  • Leaving a multiplayer game no longer breaks the menu with "Illegible server message - svc_bad" (B330). Original game bug.

Speedrun and practice

  • Skip cutscenes with any key (B359): bind x rc_cutscene_skip does what Enter does; with sv_cheats 1 it also fast-forwards the scenes Enter cannot skip. Single player only.
  • Half-Life movement (rc_hlmovement 1): a jump takes you off a ladder at once (B358), the ladders of c_doc_sewer and c_ending5b climb by walking into them (B360), and you can save anywhere with save and load (B361).
  • Practice commands with sv_cheats 1: rc_ch_give (B346), rc_ch_fire and rc_ch_hurt (B501, B507).
  • LiveSplit: the ReCoF Autosplitter follows the game's run timer.

Multiplayer and dedicated servers (ReCoF Server)

  • Servers that run ReCoF take ReCoF players only (B319). The game tells the server its ReCoF version, and a server with ReCoF's game DLL turns away the original game and ReCoF 0.2.2 or older, with a message that links here. Server owners can let everyone in with rc_require_recof 0.
  • The iron sights toggle and the subtitle language are each player's own (B328), and the head shield and morphine sounds reach the right player (B329).
  • Servers with nobody at the keyboard (B320 to B326): no crashes when nobody is in the game, and a dedicated server writes no endings or unlockables and keeps players in at the end doors of the demo.
  • Smoother teammates (B442): the host sends up to 60 updates a second to each player.

The main menu shows ReCoF-v0.2.3. Everything from 0.2.2 is still in; every option is listed in docs/speedrun.md ("ReCoF cvars"), and each fix has its row in docs/bugs.md (B308 and B319 to B541; what each beta changed is in the 0.2.3 beta notes).

Downloads

  • ReCoF-v0.2.3.zip: everything, to install by hand. It mirrors the game folder, so extracting it into a copy of the game puts every file in place.
  • recof-0.2.3.zip, recof-manifest.json and recof-manifest.json.sig: the same build for the ReCoF Launcher, which checks the signed manifest (every file and its SHA-256) before it installs anything.
File in the game folder What it is
cof.exe engine launcher
CoFLaunchApp.exe settings launcher
hw.dll, sw.dll GoldSrc engine (sw.dll is the same file, as in retail)
opengl32.dll Paranoia OpenGL wrapper
cryoffear/cl_dlls/hl.dll game logic (server DLL)
cryoffear/cl_dlls/client.dll client DLL and renderer
cryoffear/cl_dlls/GameUI.dll menus
Play ReCoF.bat test launch: the launcher's settings plus -condebug; open it in Notepad to set the resolution, windowed mode or extra options such as -novid or -noborder
recof-cvars.json the ReCoF options, for the launcher's options screen
README-ReCoF-TEST.txt the warning and instructions, the new options, and the SHA-256 of every file

How to install

With the ReCoF Launcher: it offers 0.2.3 as an update on the stable channel (and on the beta channel). Or use Maintenance, Install from a file, with the three launcher files in one folder.

By hand:

  1. Copy your Cry of Fear game folder to another place (for example Cry of Fear ReCoF).
  2. Extract ReCoF-v0.2.3.zip into that copy and let it replace the existing files.
  3. Start Steam, then double-click Play ReCoF.bat in the copy. The console goes to qconsole.log next to cof.exe.
  4. Report problems with the map name and what you did, and attach qconsole.log if you can. After a crash, the files in crashes\ help too.

Before you play

  • Do not load RebuiltSimon with this build: its hl.dll patch lands on other code. ReCoF has its options built in, its information panel and HUD numbers included.
  • Retail saves load.
  • LiveSplit: use the ReCoF Autosplitter; the published Cry of Fear autosplitter reads addresses that only follow the game in retail. rc_hud_timer 1 shows the run's time in game.
  • The Linux patcher does not apply to these files.
  • Windows 11 "Bad Image" error naming hw.dll (0xc0e90002): Smart App Control blocks ReCoF's unsigned files. Turn it off in Windows Security, App & browser control, Smart App Control settings (or Win+R, windowsdefender://smartapp/); see the 0.2.2 notes.
  • On a laptop with two GPUs, make sure the game runs on the discrete one: Windows Settings, System, Display, Graphics, add cof.exe from the game folder and choose High performance. gl_dump in the console names the GPU in use.

How to go back

  • Delete the copy, or restore your backup. The launcher keeps the last versions, so it can roll back to 0.2.2.
  • If you replaced files in your Steam installation, Steam can restore them: Library, right-click Cry of Fear, Properties, Installed Files (Local Files in older clients), Verify integrity of game files.

Requires Cry of Fear 1.6a, the current Steam version. Built from the source at commit 1ec4fa1.