Page 2 of 6
Knights of the Old Republic II
Posted: 25 Jul 2008, 05:59
by Sweetz
Did
UniWS not work for you? Making the hex edits manually is the hard way.
Knights of the Old Republic II
Posted: 09 Aug 2008, 06:28
by o0zink0o
Yeah it just keep searching for the SWKOTOR2 folder when it already found it and when i selected the folder it wouldn't let me launch the program to change anything =(
Knights of the Old Republic II
Posted: 13 Aug 2008, 02:37
by Sweetz
I just setup KOTOR 2 today.
o0zink0o: As stated in the original post, the hex edits are unfortunately for a no-CD (cracked) version of KOTOR 2. You will not find the appropriate hex strings to modify in an uncracked version. Took a little bit of work to find a no-CD crack. You'll have better luck searching for just "no cd" and then searching for the game on the first two sites that come up as opposed to searching for "KOTOR 2 no cd" directly.
------
As far as fixing the interface: it's going ok, but just ok.
Right now I'm just trying to get the map sorted out. So I've got the map rendering in the appropriate sized box (ignore the border for now), but it appears that the map itself is still stretched.
I'm not sure I can get that map sorted out. The interface in KOTOR 2 works fairly differently than it did in KOTOR 1 and the map particularly is special. At the very least though, I should be able to "unstretch" the rest of the interface.
---Update 1---
Fixed the map stretching. Editing the hud for KOTOR 2 is a bit confusing. Basically, because the hud ends up stretching, I have to decrease the width of the hud elements for widescreen. Problem is I can't just do a uniform adjustment to the width of everything (which is the cause of the mistmatch of the border in the picture below), because the X coordinates are also affected by the stretching. However, the amount the X coordinates are affected isn't uniform either, it's a linear function of how far they are from their appropriate side of the screen. Basically, fixing up the entire hud is going to require parts of my brain that haven't been used in far too long ;)

Knights of the Old Republic II
Posted: 13 Aug 2008, 09:52
by Sweetz
Well it looks like it's going to be quite a lot of work to completely fix the huds. As in, I probably won't have it done this month even; apart from this brief week off (during which I would like to spend some time relaxing) work is killing me. So for the time being, here are huds which have fixed maps only. The area the map is shown in will still be wider, and the arrow will distort a bit as it spins, but the map itself should be centered and size correctly.
Simply download the appropriate file for your aspect and put in the Override folder found under the main game directory.
Knights of the Old Republic II
Posted: 15 Aug 2008, 10:53
by o0zink0o
Thank you so much for your info Steve and your work you did on the map it looks awesome, I will look for the No CD version of the game. I was wondering why non of the guides matched what i was looking at in the Hex Strings.. I was going crazy lol
Star Wars: KOTOR 2
Posted: 23 Aug 2008, 10:35
by mk86
Hello all,
After some searching, I've seen that some people are still having trouble with running this game in widescreen.
I was one of those people, but after some digging around I found an old patcher that did the job for me.
Just to clarify, none of the files provided were developed or created by me. The patcher was created by Squ1zzy (username on widescreengamingforum.com) and all credits go to him (assuming Squ1zzy is a male :) ).
Credits for the Vista fix go the names listed at the filefront site.
I'm basing this on what I had to do to get the game running in widescreen for me. I take no responsibility if anything goes wrong.
Also note that this was done with the latest official patch for the game.
Here are two files that are needed:
http://www.2shared.com/file/3808838/18020571/Squizzy_Resolution_Patcher.html
AND
http://knightsoftheoldrepublic.filefront.com/file/TSL_Windows_Vista_Fix;85439
Steps for installation:
1. Backup your swkotor.exe and swkotor.ini files
2. Backup your mss32.dll file in your KoToR2 directory.
3. Extract the new mss32.dll file from the Windows Vista Fix in to your KoToR2 directory, replacing the one that is already there.
4. Extract the swkotor2.exe and the resolution patcher exe file in to your KoToR2 directory.
5. Run the resolution patcher from your KoToR2 directory, set the resolution you want, and patch.
That should do it. Be sure to check your swkotor.ini file and see that your wanted resolution is in there. If not, change it.
I hope this is clear enough for you all. If you have any questions, just post them here :)
Knights of the Old Republic II
Posted: 31 Aug 2008, 05:22
by blunden
Well it looks like it's going to be quite a lot of work to completely fix the huds. As in, I probably won't have it done this month even; apart from this brief week off (during which I would like to spend some time relaxing) work is killing me. So for the time being, here are huds which have fixed maps only. The area the map is shown in will still be wider, and the arrow will distort a bit as it spins, but the map itself should be centered and size correctly.
Simply download the appropriate file for your aspect and put in the Override folder found under the main game directory.
Knights of the Old Republic II
Posted: 01 Sep 2008, 06:14
by Sweetz
Truly awesome work. I think we can live with the rest of the HUD stretched for now. The map is the important part.
Thanks.
---------
Unfortunately I have bad news. Doesn't look like I can fix the rest of the hud. Technical explanation below:
KOTOR 1 uses absolute hud placement. Meaning if the X position for some hud element was 960, then that hud element was drawn at pixel 960. Because of this, fixing the hud for widescreen was a simple matter of adding the appropriate difference in resolution size to the X/Y coords of the hud elements. More importantly it meant only the starting X/Y coords needed to be changed - the height and width of the hud element itself didn't need to be changed. Something with a 50 pixel width was still 50 pixels in a widescreen resolution. So to fix the huds I bascially just had to add a constant amount to all the X coords of hud elements on the right side of the screen. Very easy and I could do all the edits in one shot without worrying that things wouldn't line up right.
KOTOR 2 uses relative positioning. All resolutions use the 800x600 hud and resize it accordingly. This means you need to work with a meager 800x600 coordinate space for all resolutions; worse, it also means that widths are relative are well - hence the stretching. In order to compensate for the stretching, I basically have to make everything thinner than it would normally be. So that when the hud is stretched they end up look correct. How much thinner depends on the aspect. For 16:9 I need to the make the elements 25% thinner or in other words 75% of their original width.
So let's say the normal width of something is set to 50; 50 * .75 = 37.5 Therein lies the problem; KOTOR's GUI system only accepts integers (whole numbers) for hud cooridinates. So I'd need to go with 37 or 38.
That slight inaccuracy doesn't sound like a big deal, but the problem is that each little hud piece is several elements. The action buttons on the bottom left for example are 4 parts each - the button itself, the up and down arrows, and the border. Because the adjusted widths are inaccurate - matched parts don't line up correctly. E.g. say the widths of two parts of the same hud element have a width of 50 and 53. That's 37.5 and 39.75 when adjusted accurately. However I'd have to make them 38 and 40. That means there's a .5 offset for one element and a .25 offset for another - hence they don't match up.
The end result of these mismatches are ugly little gaps or overlaps between parts. I did try fixing a couple and in my opinion, the stretching was vastly preferable to hud elements that are close to correct width, but don't line up correctly.
The one screenshot from my post above shows the problem. You can see I tried adjusting the width of both the map and the border, but there's a little gap between the two. This is why, in the fixed huds I posted, the map
window on the hud is still stretched (only the map itself is not). What I changed was the coordinate space used in the background to draw the map into - this is separate from the visible hud itself.
Knights of the Old Republic II
Posted: 07 Sep 2008, 00:32
by blunden
[quote]Truly awesome work. I think we can live with the rest of the HUD stretched for now. The map is the important part.
Thanks.
---------
Unfortunately I have bad news. Doesn't look like I can fix the rest of the hud. Technical explanation below:
[...] I just tried out your work. Works perfectly. I always found the map to be quite helpful so being able to have it in widescreen too is great.
Btw. what tools do you use to extract these gui files and what elements would need to be changed for Kotor 1 (if it uses the same file structure) to perfect the GUI in there? Now it's slightly off, not that it really matters, but if I have time I wouldn't mind optimizing it for 1680x1050 and upload it here. :) And if that works I might try doing it for other WS resolutions. :)
Knights of the Old Republic II
Posted: 09 Sep 2008, 00:40
by Sweetz
Kotor 1 is already fully fixed for all major widescreen resolutions. Downloads and install instructions here:
http://www.widescreengamingforum.com/wiki/index.php/WSGF_Hacks_for_SW:KOTOR
Knights of the Old Republic II
Posted: 09 Sep 2008, 14:01
by blunden
Kotor 1 is already fully fixed for all major widescreen resolutions. Downloads and install instructions here:
http://www.widescreengamingforum.com/wiki/index.php/WSGF_Hacks_for_SW:KOTOR
Ok. Great. Must have missed it. Will have to try it when I replay it next time. :)
Knights of the Old Republic II
Posted: 10 Sep 2008, 10:09
by Lunarion
I'm having some issues getting KotOR II to register certain resolutions.
I can get the game to run perfectly on my desktop with a 1680x1050 resolution, however my laptop is proving to be stubborn trying to run a 1920x1200.
My issue is that I cannot select the 1280x960 game resolution at all, which means I cannot select my custom resolution.
I don't know why I'm having issues. I've reinstalled, tried not patching, but I cannot even get that resolution choice to show.
Any help?
Knights of the Old Republic II
Posted: 13 Sep 2008, 06:04
by Tanuki
Any help?
Do the full manual method listed in the report or try adding a 1280x960 custom resolution in your display options in Windows.
Knights of the Old Republic II
Posted: 13 Sep 2008, 22:28
by Lunarion
Any help?
Do the full manual method listed in the report or try adding a 1280x960 custom resolution in your display options in Windows.
I've done th full manual method, doesn't work.
How do I add a custom resolution like that in Windows?
I'm pretty sure my issue is just that my monitor doesn't have that listed as a selectable resolution, thus I can't change it in game.
Knights of the Old Republic II
Posted: 14 Sep 2008, 00:31
by Tanuki
If you have NVIDIA.
[url]http://www.widescreengamingforum.com/node/6998]
If you have ATI someone else needs to chime in.
Knights of the Old Republic II
Posted: 14 Sep 2008, 10:55
by Lunarion
Still no luck. I can now select the required resolution, but apparently the changes in the .EXE aren't taking effect. Tried using UniWS, then tried the manual editing of the .EXE when UniWS didn't work.
Still nothing.
Would it be because that since I'm forcing my monitor to take that resolution that it is also forcing out the changes made to the .EXE, and thus cancelling out the editing?
Knights of the Old Republic II
Posted: 14 Sep 2008, 21:27
by Tanuki
Would it be because that since I'm forcing my monitor to take that resolution that it is also forcing out the changes made to the .EXE, and thus cancelling out the editing?
No.
You can try using another resolution value that is native to your laptop instead of 1280x960 just to check.
Assuming you have the unprotected executable and the hex values are correct...did you make the ini file changes after selecting 1280x960?
Knights of the Old Republic II
Posted: 14 Sep 2008, 23:23
by Lunarion
I've followed everything to the letter. It all works fine on my desktop, so really I'm thinking it's just an issue with my monitor not having native support for 1280x960, and even adding that as a custom resolution doesn't seem to be helping.
I think I'm just going to say screw it and accept that if I want to play KotOR II it'll be on my desktop.
Knights of the Old Republic II
Posted: 10 Oct 2008, 04:17
by Noboka
Didn't work for me, either. I get the same results as I do with UniWS. No 1680x1050, it just deletes anything above 1280x1024. Good detail, though.
Knights of the Old Republic II
Posted: 18 Oct 2008, 10:23
by FieryLoki
UniWS doesn't work with KOTOR2, at least for me that is; I've tried people, I'm not a beginner. However there is something that I don't understand: How did you come up with those numbers in hex?
How about someone tells everyone else for each resolution what these numbers are, please.
P.S.: I'm interested mostly in 1280x800 and 1680x1050.