lfnetwork.com mark read register faq members calendar

Thread: [Guide] How to force KotOR II's .bik movies to play in any resolution
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-02-2013, 09:41 AM   #1
RenegadeSniper7
Rookie
 
RenegadeSniper7's Avatar
 
Join Date: Sep 2008
Location: Ontario, Canada
Posts: 52
Lightbulb [Guide] How to force KotOR II's .bik movies to play in any resolution

The ability to run the KotOR games in custom resolutions has existed for a few years now. Personally, I have patched KotOR I and II to run in a 1920x1080 widescreen resolution, and many other people have done the same, with various resolutions. However, despite these patches, no matter what the game is patched to run in, the games' .bik movies do not run in the patched resolution. They merely upscale to fit the width of the screen. For KotOR II, which is the subject of this post, the vanilla non-HQ movies play in an awful 640x272 and upscale from there, maintaining the 640x272 aspect ratio of ~2.353:1 until they are the width of the screen, with ugly black bars on the top and bottom of the movies.

Late last year, in this LucasForums thread, I pieced together the method to getting KotOR II to run the .bik movies in different resolutions -- in my case, 1920x1080. This thread will explain that method, and should allow anyone to force the game to run the movies in the same resolution that their game is patched to.

WARNING: This modification requires the hex editing of KotOR II's executable. Also, while it works, it is not without flaws -- frequently, when the game starts to play a movie, it will, for some reason, switch to the desktop, and you'll have to switch back to the game. I am not sure as to why this happens, and don't know of any way to fix it. But, that is the price to be paid if you want better movies. It is a minor inconvenience.

KotOR I suffers from the same problem, but I do not know how to fix that as I do not know the relevant hex values in the executable for the first game. It is possible that they are identical to KotOR II's, in which case these instructions can be applied to KotOR I as well, but I have yet to test that. EDIT: I have confirmed that the values for KotOR I's executable are, unfortunately, not the same as KotOR II's. If anyone has any idea how to go about finding these values, please let me know.

Remember to back up any and all files that you will be altering in case something goes wrong.

Things you'll need:
  • The KotOR II no-CD patch -- If you've already patched your game to run in a custom resolution, then you've already gotten the no-CD patch, because the normal executable isn't editable. I can't link to the no-CD patch since it's technically illegal, but it is easily found via Google.
  • The official KotOR II HQ movies patch -- I have been told that the Steam version comes with this already installed with the game. I have the Steam version, but I downloaded it anyways. It's available on KotORFiles. Here is part 1. There are 6 parts in total.
  • RAD Video Tools -- this program is used to output the HQ movies to your desired resolution. Download here.
  • HxD Hex Editor -- You will need a hex editor to edit the game's executable. Any will work, but HxD is the one I used, and it's free. Download here.

Now, the instructions.

-----------------------------------------------------------------------------------------------------

Step 1: First, make sure you've backed up everything that you'll be editing. I suggest creating a folder entitled "Backup" inside your KotOR II directory, in which you can put swkotor2.exe and any other important files, although the executable is really the only one that is at risk of being screwed up by a mistake.

Step 2: Create a folder entitled something like "Outputted Movies" and put it somewhere like your desktop. It doesn't really matter where; the desktop is probably the best place. You'll be deleting it once you're finished, as it will no longer be needed.

Step 3: Install the official KotOR II HQ movies patch. This will overwrite many of the files in your \Movies directory with higher quality ones.

Step 4: Get the no-CD patch for KotOR II (can't link here as stated above, use Google) and patch your game to run in whatever resolution you want. Instructions on how to do that can be found online and will not be given here so as to reduce the size of this post. I'm sure most people reading this have already done this step eons ago, anyways.

Step 5: If you haven't already, download and install the RAD Video Tools linked above.

Step 6a: Now, the fun stuff begins. You'll need to use RAD Video Tools to convert all of KotOR II's .bik movies to your desired resolution. Depending on the power of your computer, this can take a significant amount of time. As there are several dozen .bik movies, those of you with weaker computers may have to wait several hours for the video files to be converted. To convert the files, open RAD Video Tools and navigate to your KotOR II installation directory, and then open the Movies subfolder. Select all of the .bik movies. My \Movies subfolder, for example, has 70 files. Some of you may have fewer than that; I have 70 because I have TSLRCM and M4-78EP installed.

Step 6b: Now that you've selected all of the files, click "Bink it!" in the lower left corner of the RAD Video Tools window. A new window should open wherein you can select the output settings. Under "Browse," select the desktop folder we created earlier called "Outputted Movies." All of the converted movies will now be outputted there. Under "Input video settings," enter your desired resolutions. I, for example, put 1920 in the width boxes and 1080 in the height boxes. Unselect "Compress audio;" it's not necessary. Click "Bink" on the right-hand side.

Step 7: Now you play the waiting game. Wait for the movies to be converted.

Step 8: Once the movies have been outputted to your desktop folder, copy and paste them to your KotOR II's Movies folder (e.g. C:\Program Files (x86)\Steam\steamapps\common\Knights of the Old Republic II\Movies). Select yes when asked to overwrite. Once all the files are in place, you can delete the "Outputted Movies" folder from your desktop; it has served its purpose.

Step 9: Install HxD (or any hex editor, really) and open swkotor2.exe, located in your KotOR II installation directory. Here comes the only complex part of these instructions.

You will need to find the following hex values and edit them to match your desired resolution. Change the bolded resolution pairs to your desired widescreen resolution. Remember to flip the order of the hexadecimal values.

For example, 1920 is 0x780 in hexadecimal. I would flip the order (ignoring the x) and enter 1920 as "8007." 1080 is 0x438, and thus, it would be entered as "3804."

The first hex values you must edit are:

80 02 00 00 75 15 81 3D E8 C1 80 00 E0 01

The first bolded pair (80 02) corresponds to the resolution width. The second bolded pair (E0 01) corresponds to the resolution height.

So, for example, if I wanted to use a 1920x1080 resolution it would look like this...

80 07 00 00 75 15 81 3D E8 C1 80 00 38 04

Now, search again for the following hex values:

80 02 00 00 C7 44 24 10 E0 01

Repeat the process detailed in the first part of this step with the bolded pairs.

So, if I am using a 1920x1080 resolution, it would look like this...

80 07 00 00 C7 44 24 10 38 04

Step 10: Most people have probably already done this, but if you haven't, it's vital: open the file swkotor2.ini with Notepad in your KotOR II directory and change the width and height under [Display Options] and [Graphics Options] to whatever your custom resolution is.

-----------------------------------------------------------------------------------------------------

That's it! Assuming everything worked correctly, your KotOR II movies should now play full-screen, with no ugly black bars on the top and bottom. Enjoy the fixed movies, and leave any questions/comments/concerns/feedback you have below. I will update this thread in the future if I find that these instructions work for KotOR I, or to correct any mistakes.

--------------------------------

UPDATE: Thanks to Kainzorus Prime, who found the necessary info to edit the hex of KotOR I:

Quote:
Originally Posted by Kainzorus Prime View Post
I've been looking into the K1 version of this fix, and found it at a Russian Bioware fansite, and later confirmed it it with WSGF information.

Hex coordinates of default 640x480 forced movie resolution:

80 02 00 00 75 15 81 3D D8 D1 78 00 E0 01

Hex coordinates of modded 1920x1080 movie resolution:

80 07 00 00 75 15 81 3D D8 D1 78 00 38 04

Second default coordinates:

80 02 00 00 C7 44 24 10 E0 01

Second modded coordinates:

80 07 00 00 C7 44 24 10 38 04

Additional: Some people reported the game minimizing during the cinematics with a widescreen resolution. The solution to that is relatively simple - creating a shortcut on the desktop and setting the compatibility mode to "Windows XP with Service Pack 3" will eliminate the minimizing.

Last edited by RenegadeSniper7; 08-23-2013 at 04:36 PM. Reason: Clarity
RenegadeSniper7 is offline   you may: quote & reply,
Old 08-02-2013, 03:11 PM   #2
milestails
Junior Member
 
milestails's Avatar
 
Join Date: May 2011
Posts: 283
Now this guide is modding gold!

Don't have the games installed right now, but I will be referring back to this once I do.

So let's see....

1280x960 would be:

(1280) 0x500 = 0005
(960) 0x3C0 = C003

Used this converter: http://www.mathsisfun.com/binary-dec...converter.html
milestails is offline   you may: quote & reply,
Old 08-03-2013, 01:00 AM   #3
RenegadeSniper7
Rookie
 
RenegadeSniper7's Avatar
 
Join Date: Sep 2008
Location: Ontario, Canada
Posts: 52
Quote:
Originally Posted by milestails View Post
Now this guide is modding gold!

Don't have the games installed right now, but I will be referring back to this once I do.

So let's see....

1280x960 would be:

(1280) 0x500 = 0005
(960) 0x3C0 = C003

Used this converter: http://www.mathsisfun.com/binary-dec...converter.html
Correct. You can actually just use Google for quick conversions. If you type, "1280 in hex," it'll correctly output 0x500.
RenegadeSniper7 is offline   you may: quote & reply,
Old 08-23-2013, 09:22 AM   #4
Kainzorus Prime
My vision is augmented
 
Kainzorus Prime's Avatar
 
Join Date: Jul 2005
Location: Top of the food chain.
Posts: 1,217
Current Game: Deus Ex series
Contest winner - Modding 
I've been looking into the K1 version of this fix, and found it at a Russian Bioware fansite, and later confirmed it it with WSGF information.

Hex coordinates of default 640x480 forced movie resolution:

80 02 00 00 75 15 81 3D D8 D1 78 00 E0 01

Hex coordinates of modded 1920x1080 movie resolution:

80 07 00 00 75 15 81 3D D8 D1 78 00 38 04

Second default coordinates:

80 02 00 00 C7 44 24 10 E0 01

Second modded coordinates:

80 07 00 00 C7 44 24 10 38 04

Additional: Some people reported the game minimizing during the cinematics with a widescreen resolution. The solution to that is relatively simple - creating a shortcut on the desktop and setting the compatibility mode to "Windows XP with Service Pack 3" will eliminate the minimizing.

Kainzorus Prime is offline   you may: quote & reply,
Old 08-23-2013, 04:35 PM   #5
RenegadeSniper7
Rookie
 
RenegadeSniper7's Avatar
 
Join Date: Sep 2008
Location: Ontario, Canada
Posts: 52
Awesome, I didn't think there was any information on the KotOR I hex for that. I'll add it to the OP.
RenegadeSniper7 is offline   you may: quote & reply,
Old 08-24-2013, 12:25 AM   #6
Canderis
Mercenary
 
Canderis's Avatar
 
Join Date: Jun 2008
Location: Unknown
Posts: 2,509
Current Game: Skyrim
Veteran Modder Helpful! 
Do they look ok?




Canderis is offline   you may: quote & reply,
Old 08-24-2013, 01:11 AM   #7
RenegadeSniper7
Rookie
 
RenegadeSniper7's Avatar
 
Join Date: Sep 2008
Location: Ontario, Canada
Posts: 52
I haven't tested it yet so I can't say. If I ever get around to it, I'll post my thoughts; maybe someone else can answer, though.
RenegadeSniper7 is offline   you may: quote & reply,
Old 10-28-2013, 01:58 PM   #8
milestails
Junior Member
 
milestails's Avatar
 
Join Date: May 2011
Posts: 283
Is there any reason why my binked and hex-edited KotOR I movies are lacking sound? The movies are at 1440x900, but I cannot hear anything. I can, however, hear the gameplay just fine.
milestails is offline   you may: quote & reply,
Old 10-28-2013, 01:59 PM   #9
RenegadeSniper7
Rookie
 
RenegadeSniper7's Avatar
 
Join Date: Sep 2008
Location: Ontario, Canada
Posts: 52
I'm not sure; I haven't binked & hex-edited the KotOR I movies.
RenegadeSniper7 is offline   you may: quote & reply,
Old 10-28-2013, 03:26 PM   #10
milestails
Junior Member
 
milestails's Avatar
 
Join Date: May 2011
Posts: 283
Found the issue

Unselecting 'Compress audio' removes sound from the movies
milestails is offline   you may: quote & reply,
Old 05-07-2014, 10:59 AM   #11
Rancorslayer
Lurker
 
Join Date: May 2009
Posts: 2
Hey all, for whatever reason, when I try to compress the movies with Bink, I cannot click the bink button to begin the compression if I have multiple files selected. It's greyed out. I really don't want to do them all one by one if possible. Thanks for any help in advance.
Rancorslayer is offline   you may: quote & reply,
Old 05-09-2014, 04:43 PM   #12
RenegadeSniper7
Rookie
 
RenegadeSniper7's Avatar
 
Join Date: Sep 2008
Location: Ontario, Canada
Posts: 52
Quote:
Originally Posted by Rancorslayer View Post
Hey all, for whatever reason, when I try to compress the movies with Bink, I cannot click the bink button to begin the compression if I have multiple files selected. It's greyed out. I really don't want to do them all one by one if possible. Thanks for any help in advance.
I think I heard about someone else having the same problem a while ago, and I don't know the cause or solution. All I can suggest is fiddling with your settings... maybe change your output location? Check that the files aren't marked as read-only? Not sure.
RenegadeSniper7 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Trouble Shooting > The Work Bench > [Guide] How to force KotOR II's .bik movies to play in any resolution

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:14 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.