Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Talk:Pirates of the Caribbean: At World's End

About this board

Not editable

Better custom resolution method

7
SirYodaJedi (talkcontribs)

Something I'm not quite sure how to word on the page. I posted this in the PCGW discord in #articles, but I'll also crosspost it here in case it gets buried.

Click here to see a screenshot of the original posts, including images of the relevant hex locations

So I'm updating the page for PotC: At World's End (as I picked up the retail version from a used book store earlier today), and when trying out WSGF's method of hex editing the executable to get custom resolutions, I learned of a slightly better way of doing it, but I'm not sure how to word it on the wiki. (more posts, elaboration, and pictures follow)

There are three instances of 66 C7 40 02 in the executable; each one corresponds to a resolution (640x480, 800x600, and 1024x768 in vanilla).

The two bytes to the left of this value are a little-endian 16-bit integer representing the screen width.

Likewise, the two bytes to the right of 66 C7 40 02 represent the screen height.

The WSGF page (and the automated tool that it provides for download) say to modify the first resolution (640x480), which results in text and various iconography being too small at 1080p. Modifying the third and highest resolution instead (1024x768) results the same text and whatnot being a much more sane size at 1080p (and it would probably be as legible at 2160p as using modified 640x480 would at 1080p). I'm not sure quite how I should word this in wiki fixbox instruction format, though.

SirYodaJedi (talkcontribs)

Also, don't enable "Widescreen"; it's intended for Anamorphic widescreen, wherein an image is stretched from 4:3 (in this instance) to 16:9. It'll just make everything very skinny when using a natively widescreen resolution.

Kirusei (talkcontribs)

Could you post a step-by-step guide on how to make a custom resolution with HxD? I'm new to using Hex editor programs for games and I'm having difficulty following the original instructions posted in the WSGF where it tells me to replace the lines "80 02 66 C7 40 02 E0 01" which when using the search functionality in HxD(Ctrl+F) says it doesn't exist within the Exe.

I'm trying to play this in 1440p while keeping the 4:3 aspect ratio

SirYodaJedi (talkcontribs)

Make sure you are searching for hex values, and not a text string. https://cdn.discordapp.com/attachments/799734207165235209/1069796736303902831/2023-01-30.png

The WSGF guide should be mostly correct; the only thing that is inaccurate is which line you are looking for. Look for 00 04 66 C7 40 02 00 03 instead, so that you replace the 1024x768 in-game resolution, instead of 80 02 66 C7 40 02 E0 01, which would replace the 640x480 in-game resolution (HUD and text would be miniscule).

For editing the necessary bytes, you need to use the data viewer, to edit the Int16 fields. https://cdn.discordapp.com/attachments/799734207165235209/1069798807832895548/2023-01-30_1.png https://cdn.discordapp.com/attachments/799734207165235209/1069798808051011646/2023-01-30_2.png

I can help better on the PCGW discord, in the #game-troubleshooting channel. https://discord.gg/SU27ykMcsD

Jigen123 (talkcontribs)

Just tried it out and i can say that this is definitely the better solution. Thank you. Replacing 1024x768 instead of using the tool that picks 640x480 is perfect for 1080p and definitely an improvement even for 4K.
The Steam version requires a retail .exe, however, as it does not use the same values for the 3 supported resolutions.

SirYodaJedi (talkcontribs)

> The Steam version requires a retail .exe, however, as it does not use the same values for the 3 supported resolutions.

I was wondering about that; figured that was the case. Wonder what the best way to handle it for this page is.

Jigen123 (talkcontribs)

I tried using Steamless as suggested to me on Discord to unpack the Steam version's executable and it actually works. Turns out the Steam version uses the same values as retail for the 3 supported resolutions, it just needs to be unpacked with Steamless first.
I have added proper instructions to the article and put you as self ref since you are the one that found this better solution. Feel free to make any edit to what i wrote.

There are no older topics