logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) [HP1] Unofficial Widescreen Patch (Read 841 times)
djbff
New Member
*
Offline


Oldunreal member

Posts: 5
Joined: Jan 17th, 2017
[HP1] Unofficial Widescreen Patch
Apr 26th, 2018 at 10:49pm
Print Post  
Hi everyone,

So I had a bit of free time on my hands this past week, and wanted to take a crack at putting together a widescreen patch for this game since han has been kind enough to put together all the tools needed to export the source code and resources from the game's .u files.

It's a bit rough at the moment, because the menu layout code is written in an odd way that draws everything at 640x480 and then scales up, and running at higher resolutions exposes a lot of poor text layout coding (i.e. text being significantly mis-aligned) that wasn't as apparent at low resolutions, but it does work and let you enjoy the game properly on modern computers.

Screenshots:

Options Menu:



In-game wizard card menu:



In-game (this looks the same without the patch, but menu cropping more-or-less forced you to play in 4:3):




Known Bugs:
  • On screens with a 16:9 resolution, if you move the cursor all the way to the right of the screen, you'll get a flickering ghost of the cursor in the farthest-right column of pixels. I have tried various different things to fix this, but it seems that the only thing that could actually fix it would be to rewrite a large chunk of the menu layout code, which I don't think is worth the time investment.
  • If you switch aspect ratios in-game (e.g switch from 1280x800 to 1024x768), you'll need to restart the game for menus to not be mis-aligned.
  • Widescreen resolutions are not yet shown in the in-game options menu, so you'll need to set your resolution manually in your HP.ini file as described here: https://pcgamingwiki.com/wiki/Harry_Potter_and_the_Philosopher%27s_Stone. You'll also probably want to change your FOV to fit your new resolution in the game's User.ini file, under Engine.PlayerPawn (about 100 for 16:10, about 106 for 16:9).
  • Lots of text is mis-aligned at higher resolutions. This is a bug in the original game and not the patch itself, but it's something I hope to eventually fix the worst of.


How To Install:

First, install han's update HP.exe from the topmost "Precompiled Binaries" download in this thread: http://www.oldunreal.com/cgi-bin/yabb2/YaBB.pl?num=1445541914. It fixes a lot of the weird glitches that the game has on newer systems, like the drawing the shapes of spells to learn them being horrendously broken, and dialogue getting cut off because the game is running too fast.

Next, download the widescreen fix here: http://www.mediafire.com/file/xa5b5pkib5koc91/HP1%20Widescreen%20Fix.zip, and copy the two .u files in the System folder to the game's System folder. On a default install of the game, this should be at C:\Program Files\EA Games\Harry Potter\System\. You should probably also make a backup of the original HPMenu.u and HPBase.u files first, in case my fix accidentally breaks some part of the game I haven't tested yet.

Finally, edit the game's HP.ini and User.ini files in your user's Documents\Harry Potter folder to indicate your chosen resolution and FOV, and launch the game. Yay, it (hopefully) works!


I haven't tested this extensively so there are probably several things that still need fixing, so let me know and I'll try to fix them as best I can (if anyone has a copy of the Unreal Engine 1 unrealscript documentation please let me know, that would help my efforts massively). Also, I've tracked all the changes I made to the source files with Git, so I can send that to anyone who wants to see what I actually changed (I'd put it up on GitHub, but I'm not sure how EA would feel about that).

Anyway, enjoy, and let me know how it works!  Smiley
  
Back to top
 
IP Logged
 
Timofey_Rusanov
New Member
*
Offline


Oldunreal member

Posts: 1
Joined: Apr 28th, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #1 - May 14th, 2019 at 7:41pm
Print Post  
Regardless of the dampness of the patch, he was completely satisfied with me, that I even decided to go through the game this year, only I had to play with the English text, because all Russian-language characters are erased in the Russian version. For this need, you just have to deal with the version from 1C-SoftClub or give me your source code to add support for the Cyrillic alphabet.

P.S; Sorry for my bad translating in english language.
  
Back to top
 
IP Logged
 
Raf
New Member
*
Offline


Oldunreal member

Posts: 13
Joined: Nov 23rd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #2 - Nov 23rd, 2019 at 11:23am
Print Post  
This is awesome, thanks. Now it remains only to fix the mouse.

Here is a fix for the Russian version of 1C SoftClub. There was been a problem with the encodings.
« Last Edit: Nov 24th, 2019 at 10:11am by Raf »  
Back to top
 
IP Logged
 
XMadManJazzaX
New Member
*
Offline


Oldunreal member

Posts: 2
Joined: Dec 22nd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #3 - Dec 22nd, 2019 at 6:16pm
Print Post  
https://imgur.com/7LvMrui

Hi, I'm receiving this critical error after launching the game with your provided files, just wondering what it is exactly and if it can be fixed??
  
Back to top
 
IP Logged
 
han
Global Moderator
Unreal Rendering Guru
Developer Team
*****
Offline


Oldunreal member

Posts: 594
Location: Germany
Joined: Dec 10th, 2014
Gender: Male
Re: [HP1] Unofficial Widescreen Patch
Reply #4 - Dec 23rd, 2019 at 8:26am
Print Post  
This unknown opcode error looks more like sth. such as hp2 files in hp1 or vice versa to me?
  

HX on Mod DB. Revision on Steam. Löffels on Patreon.
Back to top
 
IP Logged
 
George
New Member
*
Offline


Oldunreal member

Posts: 2
Joined: Dec 30th, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #5 - Dec 30th, 2019 at 4:40am
Print Post  
Is there any chance you'd be willing to share the sources for this? I'm applying this on the US version, and there are too many differences, up to references to completely different files. It would really help if you would share only the .uc files you edited, or at least your original HPBase.u and HPMenu.u.
  
Back to top
 
IP Logged
 
Raf
New Member
*
Offline


Oldunreal member

Posts: 13
Joined: Nov 23rd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #6 - Jan 14th, 2020 at 8:26pm
Print Post  
XMadManJazzaX, Try replacing only HPMenu.u.

George, Links are not extracted correctly, they had to be fix manually. Here are all the differences:
HPBase - https://pastebin.com/raw/EvxET3Ux
HPMenu - https://pastebin.com/raw/mtTG0E2T
Sources can be extracted with using UCC (HarryPotterPubSrc11_Binaries_20170323.zip) and HTK. Command for extract "ucc fullbatchexport HPMenu.u ..\HPMenu".

I checked the mod in the English and Russian versions, everything works great.

Also, appeared a strafing and fix mouse mod, it can be downloaded here and widescren mod fix for using with this mod (unpack after unpacking both mods).
« Last Edit: Jan 15th, 2020 at 11:12am by Raf »  
Back to top
 
IP Logged
 
XMadManJazzaX
New Member
*
Offline


Oldunreal member

Posts: 2
Joined: Dec 22nd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #7 - Jan 20th, 2020 at 5:20pm
Print Post  
Hey Raf, thanks for the response. I've got a new error message though when only replacing the HPMenu.u file:

https://imgur.com/a/QjKCsRH
  
Back to top
 
IP Logged
 
Raf
New Member
*
Offline


Oldunreal member

Posts: 13
Joined: Nov 23rd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #8 - Jan 21st, 2020 at 5:12pm
Print Post  
XMadManJazzaX, I have no errors. It seems you have a DPI scaling? Try disabling it for the game (replace hpbase & hpmenu again). Also put a low resolution, try other cd images of Harry Potter.

mod edit (han):
Please don't post download links there.
« Last Edit: Jan 23rd, 2020 at 12:55am by han »  
Back to top
 
IP Logged
 
George
New Member
*
Offline


Oldunreal member

Posts: 2
Joined: Dec 30th, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #9 - Jan 29th, 2020 at 11:07am
Print Post  
Raf wrote on Jan 14th, 2020 at 8:26pm:
George, Links are not extracted correctly, they had to be fix manually. Here are all the differences:
HPBase - https://pastebin.com/raw/EvxET3Ux
HPMenu - https://pastebin.com/raw/mtTG0E2T
Sources can be extracted with using UCC (HarryPotterPubSrc11_Binaries_20170323.zip) and HTK. Command for extract "ucc fullbatchexport HPMenu.u ..\HPMenu".

I checked the mod in the English and Russian versions, everything works great.

Functionally, I didn't encounter any issues, everything SEEMS to work. However I extracted the .u files with WOTGreal, and found references to non-existent files in scripts, while the very same scripts from the vanilla HPBase/HPMenu (extracted with WOTGreal as well) refer to different files. If it's program extracting the links incorrectly, wouldn't you end up with the same links, if extracted by the same program? Anyway, thanks for the diffs, I'll mess around with those, I also try extracting with UCC.

Raf wrote on Jan 14th, 2020 at 8:26pm:
Also, appeared a strafing and fix mouse mod, it can be downloaded here and widescren mod fix for using with this mod (unpack after unpacking both mods).

Strafing everywhere? Yes! Thank you. I'll definitely check this out.

P.S. It seems like the forum does not notify you about replies, even though I checked the option.
  
Back to top
 
IP Logged
 
Jaxon
New Member
*
Offline


Oldunreal member

Posts: 1
Joined: Mar 4th, 2020
Re: [HP1] Unofficial Widescreen Patch
Reply #10 - Mar 4th, 2020 at 10:33pm
Print Post  
I'm getting the exact same error as XMadManJazzaX was, and this is on a clean install from disc. All I've done is extract the EXE from the link and the two files from the widescreen mod.
« Last Edit: Mar 5th, 2020 at 1:09am by Jaxon »  
Back to top
 
IP Logged
 
Raf
New Member
*
Offline


Oldunreal member

Posts: 13
Joined: Nov 23rd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #11 - Mar 17th, 2020 at 1:06pm
Print Post  
Jaxon wrote on Mar 4th, 2020 at 10:33pm:
I'm getting the exact same error as XMadManJazzaX was, and this is on a clean install from disc. All I've done is extract the EXE from the link and the two files from the widescreen mod.


There is also a mod that move menu buttons. Have you tried other versions? A clean english cd image from the internet? It definitely works with it, if you unpack everything correctly.
  
Back to top
 
IP Logged
 
Raf
New Member
*
Offline


Oldunreal member

Posts: 13
Joined: Nov 23rd, 2019
Re: [HP1] Unofficial Widescreen Patch
Reply #12 - Apr 16th, 2020 at 10:10pm
Print Post  
Widescreen fix by AdamJD for strafing mod "Mar 8th, 2020"
(Latest mod fix some problems in gameplay)
  
Back to top
 
IP Logged
 
Captain Teo
New Member
*
Offline


Oldunreal member

Posts: 1
Joined: Jun 2nd, 2020
Re: [HP1] Unofficial Widescreen Patch
Reply #13 - Jun 2nd, 2020 at 6:34am
Print Post  
Raf wrote on Mar 17th, 2020 at 1:06pm:
There is also a mod that move menu buttons. Have you tried other versions? A clean english cd image from the internet? It definitely works with it, if you unpack everything correctly.


Same problem for me, too, unfortunately. Completely clean English CD install and image. I've tried every combination of files (keeping a backup of the original copy to be sure that I cleaned it properly afterwards) - I can run the game with or without the precompiled binaries and any combination of files from the updated binaries zip, but, as soon as I put your HPBase.u and HPMenu.u into the System folder, I start getting that "HPMenu.FEOptionsPage.IsSupportedResolution" code 47 error, no matter whether the precompiled binaries are installed or not, even if I set the resolution to a default 4:3 resolution.

I'm sure that you did a fine job with the patch, and this is even the suggested fix on PCGamingWiki, so I can't fathom why this would be happening. I'm definitely following the installation instructions.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo