Skip to content

ReCoF v0.1.6 (test build)

Pre-release
Pre-release

Choose a tag to compare

@caixax caixax released this 05 Nov 00:18

Warning

For testing only. These files have not all been confirmed to work 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.

What changed since 0.1.5

Speedrun tools

  • In-game run timer (B312). rc_hud_timer 1 shows the run time at the left edge as MM:SS:MS, and HH:MM:SS:MS from an hour on. It counts what the LiveSplit autosplitter counts: real time without pauses, loads, the menus and the cutscenes that take control away. It starts, resets and stops at the endings on its own (rc_timer_auto 1), and works by hand as BunnymodXT's timer does: rc_timer_start, rc_timer_stop, rc_timer_reset, for example bind DEL "map c_nightmare;rc_timer_reset;rc_timer_start". rc_timer_debug prints what the timer sees.
  • RebuiltSimon's information panel, built in (B310). rc_info 1 shows ReCoF and its version, Simon's health, stamina and speed, and a clock at the top right, with RebuiltSimon's options under rc_info_*.
  • HUD numbers as RebuiltSimon draws them (B311). The speedometer (rc_speedometer 1) and the takeoff speed now use the HUD's digits, each at its own place (rc_speedometer_jump_pos). New: rc_hud_health and rc_hud_stamina.
  • Autosplitter values fixed (B313). Two of the client.dll values the autosplitter block hands to LiveSplit scripts pointed at the wrong variables (the script's "igt" and its music name), so the script addition in docs/speedrun.md could not work. The run timer also publishes its state in a block of its own for autosplitters. A LiveSplit autosplitter made for ReCoF is being tested and is not part of this release.

End of the game

  • The statistics and grade always show (B309). A click while they faded in skipped them or left them frozen half visible, and they were drawn white over the bright ending view. Now a click waits until they are fully shown and a dark backdrop sits behind them (rc_endstats, on by default). rc_print_score prints them in the console once the game has ended.

Settings without a restart

  • Resolution and display mode change at once (B307). Options, Video applies a new resolution or display mode without restarting the game (console: rc_vidmode <width> <height> <mode>). In single player the game is saved to the quick slot and loaded again, as the old restart did.
  • Borderless window (B305). A third display mode, and the launch option -noborder. At the desktop resolution it covers the screen without switching the display mode, so alt-tab is instant.
  • Other settings apply on Apply (B306). Brightness and gamma no longer restart the game; EAX and A3D restart the sound device at once (rc_snd_restart); turning the joystick on looks for one again; gl_posteffects is kept between starts.

Performance

  • Models on the GPU (B287, confirmed in game). Studio models are moved by their bones and lit in a vertex shader from buffers built once per map (rc_gpumodels, on by default): the CPU time for models went from 2.4 ms to 0.5 ms a frame on an RTX 3060, and models draw as one list of triangles per mesh (rc_modelarrays).
  • Dynamic lights in a shader (B195, confirmed in game). Lights on the world (the flashlight, lamps, muzzle flashes) are worked out in a vertex shader and drawn sorted by surface (rc_lightshader, on by default): their GPU time went from 0.44 ms to 0.07 ms in the test. World polygons that share the same state are drawn together (rc_worldbatch).
  • The screen blur no longer allocates its texture every frame (B196), and the menus no longer read the projection back from the driver for every panel (B255); both confirmed in game. Smaller savings for spot lights (B204) and the left hand weapon (B294).
  • Laptops with two GPUs (B296): cof.exe now asks the NVIDIA and AMD drivers for the discrete GPU.

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

Downloads

  • ReCoF-v0.1.6.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.1.6.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 these warnings and instructions, the new options, and the SHA-256 of every file

How to test

With the ReCoF Launcher: it offers 0.1.6 as an update 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 test).
  2. Extract ReCoF-v0.1.6.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.

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: the published Cry of Fear autosplitter reads addresses that only follow the game in retail, so it is not reliable on ReCoF. rc_hud_timer 1 shows the run's time in game.
  • The Linux patcher does not apply to these files.
  • 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.
  • 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 b207623.