Skip to content

ReCoF v0.2.3-beta.7 (test build)

Pre-release
Pre-release

Choose a tag to compare

@caixax caixax released this 15 Nov 22:28

Warning

Test build. These files have not all been confirmed in game yet. Use them 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.

This is a beta of 0.2.3, built from the multicore branch. It has everything planned for 0.2.3 plus the first multicore work, faster drawing on slow computers, and a performance log for players whose game stutters.

Stutters or low fps? Send a performance log

  1. Turn on Performance log in the launcher's ReCoF options (Performance section), or type rc_perflog 1 in the console after the game starts.
  2. Play the part that runs badly for a minute or two.
  3. Quit the game (or type rc_perflog 0).
  4. Send the newest file in cryoffear\perflogs\ (perflog_<date>.txt) to the ReCoF developers, with the map and what was happening.

The log has what the computer is (processor, graphics card and driver, Windows version, power plan, memory, the timer Windows gives the game, the ReCoF settings that change performance) 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 with the map, the place, and whether the game was working or waiting. It changes nothing in the game. The launch options are written without the game's folder.

What changed since 0.2.3-beta.6

  • No more particle stutters with many monsters around (B362). Particles that bounce (sparks, debris) check every frame where their next move takes them, and the engine answered each check by building the hitboxes of every monster in the level, one bone setup per monster, before even looking whether the particle was near them. With many monsters loaded this froze the game for runs of frames: a player's performance log showed frames of 25 to 46 ms on c_doc_city, with the particles alone taking up to 38 ms of a frame. Now a particle's check leaves out the monsters it cannot reach, so the particles bounce exactly as before at a fraction of the cost.

What changed in beta.6 since 0.2.3-beta.5

  • Skip cutscenes with any key (rc_cutscene_skip, B359). Cry of Fear skips a cutscene when you press Enter, but that key cannot be changed and many players never find it. rc_cutscene_skip does the same, so you can bind it: bind x rc_cutscene_skip. Some scenes are marked by their map so that Enter cannot skip them (about 200 of the game's 458 cutscene cameras, the whole train scene among them); with sv_cheats 1 the command fast-forwards those instead, until the scene ends. Single player only. Without sv_cheats it does only what Enter does.
  • Half-Life movement (rc_hlmovement 1):
    • A jump takes you off a ladder at once, a mouse wheel jump or a quick tap too. Before, a short jump often put you straight back on the ladder (B358).
    • The ladder of c_doc_sewer, and one of c_ending5b, can now be climbed by walking into it. The way out at their top is low: climb up, then crouch while holding forward to get onto the floor, as out of a low exit on a Half-Life ladder (B360).
    • You can save anywhere, as in Half-Life: save <name> and load <name> in the console, or keys such as bind f6 "save quick" and bind f9 "load quick" (B361). The save points work as before.

What changed in beta.5 since 0.2.3-beta.4

  • The vignette works again (B308, rc_vignette). Cry of Fear 1.0 to 1.55 always darkened the four corners of the screen. Version 1.6a added a Vignette option and, by mistake, hid the effect for good: the option has never done anything since. ReCoF draws it again when you turn on Vignette in Options, Graphics, Effects (or the launcher's options, or rc_vignette 1 in the console), with each corner scaled to your resolution instead of the fixed 256 pixels of 1.55, and under the HUD. It is off by default, so the game looks as you know it.

What changed in beta.4 since 0.2.3-beta.3

Faster on slow computers

Three new options, all on by default, in Options, Graphics, Performance and in the launcher's ReCoF options. Each one set to 0 draws the old way. Paused screenshots with them on and off were compared pixel for pixel on 22 maps: the picture is the same.

  • Parts of brush entities outside the view are not drawn (B354, rc_bmodelcull). Doors, walls, illusionary brushes and other brush entities were drawn whole as soon as any part of them could be seen, and half the maps hold more faces in them than in the world itself (c_stad has one over the whole map).
  • The world is drawn grouped by texture (B355, rc_worldsort). The map's faces went to the graphics driver in the order of the map's tree, changing texture at almost every face, and every change is a separate draw. Slow graphics chips and AMD's driver pay the most for that.
  • Rain, snow and grass go out in one block each (B356, rc_fxbatch) instead of one per raindrop with a color change in between.

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

Maps that already ran at 100 fps stay there. On a laptop with an RTX 3050 the same places gain 5 to 29% without the limit. On slow computers, Bump maps (Options, Graphics, Quality) is still the heaviest setting: turning it off gives another 5 to 20%.

Fixes

  • 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; once in a while that memory did not exist and the game crashed during the load. Original game bug.
  • Closing the game window no longer ends in an error (B352). Closing the window (its X or Alt+F4) skipped the shutdown of the local server, so Steam's crash handler ended the game with error 0xC0000409 on every close. It now does what the menu's Quit does. Original game bug.
  • Quitting no longer crashes about one time in four (B351). The crash reporter's watchdog kept running while the client was unloaded. In ReCoF since 0.2.0.

Performance log

  • Writing a stutter line no longer makes the next frames stutter on slow computers (B353), and the time it takes to stop the game inside a driver is no longer counted as a system stall (B350). The log lists the three new options with the other settings.

What changed in beta.3 since 0.2.3-beta.2

  • The performance log says where a stutter comes from (B347, B348, B349). Under every STUTTER line it now writes where the game was while that frame ran long (the game's own code, the graphics driver, Windows' window messages, the sound system), how long the buffer swap took, and whether the game window was in front. It also counts the moments when the whole computer stood still: drivers or the BIOS can hold every processor for 20 to 30 ms at a time, whatever the game does, and the log now tells those apart from the game's own work. If you sent a log before, a new one tells us much more.
  • Fewer hitches with rc_threads on processors with efficiency cores (B345). The bone threads no longer wait for a worker that has not woken up yet when the other threads already did all the work; on a laptop with an i5-13420H that removed a 20 ms hitch.
  • rc_ch_give (B346), a practice command with sv_cheats 1: gives a weapon, ammo or item (rc_ch_give weapon_glock, rc_ch_give ammo_glock 5), as Cry of Fear has no give command.

If the log shows "the system held the processors"

Then part of the stutter is the computer, not the game. LatencyMon (free) names the driver that holds the processors; updating the BIOS, the chipset and the audio, network and graphics drivers usually helps. On laptops with two graphics chips, a "discrete graphics only" or MUX mode, where the laptop has one, removes the copy of every frame to the other chip.

What changed in beta.2 since 0.2.3-beta.1

  • Particle effects cost less CPU over a long map (B342). Every picture, every particle effect (flares, blood on gibs, gun smoke, steam, fire) looked for its entity by going through all the entities before it, and the effects of a map are never removed until the map changes, so the work grew with every flare thrown and every fight. Each effect now finds its entity at once, with the same result. Original game behavior.
  • The performance log says more (B341, B344): the particle effects have their own time and count (particles drawn, effects in the list), each second gives the GPU time of every pass, and a menu, the inventory, a note or a load no longer shows up as a stutter of several seconds (it is a PAUSE line now).

What changed in 0.2.3 since 0.2.2

Performance

  • Bone setup on several cores (B339, rc_threads). The bones of the models in view are worked out on worker threads and the main thread together. The default (-1) uses up to 3 workers on processors with 8 or more threads and none below that. rc_threads 0 turns it off. Every model takes the result only if its inputs are the same as when the work started, so it draws exactly as before; on a test map with 64 monsters in view it saves about 8% of the frame.
  • Performance log (B340, rc_perflog), see above.
  • rc_prof times more (B337, B338): the local server's frame, the bone setup and the engine's model lighting, and it counts the monsters drawn. rc_svprof 1 times the game logic of the monsters.

Smooth frames (rc_smoothframes 1)

  • Cutscenes: the mouse no longer turns a cutscene camera and the picture no longer flickers to the player's view (B333).
  • Menus no longer stutter while one has the mouse (main menu, inventory, notes) (B335).
  • Monitors above 200 Hz: the pictures of each game frame are evenly spaced (B336).

Fixes

  • The inventory no longer leaks memory while the mouse points at an item (B334). It loaded the item's picture again on every frame.

Menus

  • Join Server opens ReCoF's server list (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. Cry of Fear's own browser listed none.
  • New options window (B332): seven tabs (Game, Controls, Graphics, HUD, Audio, Multiplayer, ReCoF) with every ReCoF option, a help line for each and a crosshair preview.

Multiplayer and dedicated servers (ReCoF Server)

Single player plays as in 0.2.2: these changes are about multiplayer games and what happens after one.

  • Multiplayer 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.
  • Leaving a co-op game no longer breaks the menu (B330). After playing on another machine's server, going back to the menu could stop the game with "Illegible server message - svc_bad" and the 3D menu did not load. Original game bug.
  • The iron sights toggle and the subtitle language are each player's own (B328), and the head shield and morphine sound effects reach the right player (B329).
  • Servers with nobody at the keyboard (B320 to B326): "the player" is the first player in the game rather than slot 1, no crashes when nobody is in the game, suit sounds play on a dedicated server, and a dedicated server writes no endings or unlockables, does not start Steam for the machine's own user and keeps players in at the end doors of the demo.

The main menu shows ReCoF-v0.2.3-beta.7. Everything from 0.2.2 is still in; every option is listed in docs/speedrun.md ("ReCoF cvars").

Downloads

  • ReCoF-v0.2.3-beta.7.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-beta.7.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 test

With the ReCoF Launcher: open Tools, Updates, and set the release channel to Beta. The launcher then offers 0.2.3-beta.7 as an update. Set it back to Stable to go back to stable releases when 0.2.3 is out. 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 test).
  2. Extract ReCoF-v0.2.3-beta.7.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. To measure fps, start the game from the ReCoF Launcher instead: on slow computers Windows Defender checks qconsole.log on every console line, which costs a few milliseconds each time.
  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 test copy, or restore your backup. In the launcher, setting the release channel back to Stable brings the stable releases again from 0.2.3 on.
  • 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 482804c on the multicore branch.