CnCNet / ts-patches

Command and Conquer: Tiberian Sun patches for CnCNet online gameplay.
GNU General Public License v3.0
42 stars 15 forks source link

Adds Bink Video support to Tiberian Sun #86

Closed CCHyper closed 3 years ago

CCHyper commented 3 years ago

This PR adds support for Bink video (version 1) to Tiberian Sun. Sidebar video support is not implemented in this PR.

This system is optional, three conditions must be met for the game to play a Bink video;

It is suggested you create videos at a resolution of no larger than 800x600. The game will attempt to show an error message when the video is larger than the users resolution, but may also crash. Please keep this in mind.

The implementation is based on the same version that Red Alert 2 uses, thus only works with Bink V1.0~.

Some additional notes: Due to the use of the older version of the BINKW32.DLL, please make sure any .BIK video you produce sets the "Compress level" to the desired compression level +100. For example; A level of 4 should be 104, this makes the encoder produce the BIK video file with the older audio format which is required by the older DLL. Otherwise, you will not hear any audio when your video is played back by the game. See attached screenshot for the best options to use when creating the Bink video.

Also, an optional compile option can be used if you wish to make the Bink video playback interface exit on failure to play or find the .BIK, just compile the project with BINK_REQUIRED.

Optional settings for creating .BIK;

Untitled
CCHyper commented 3 years ago

Changes made as requested, PR updated.