- Joined
- May 26, 2007
- Messages
- 5,545
- Reaction score
- 1,315
Guide to Displaying the Client in Widescreen
Contents
Contents
You must be registered to see links
You must be registered to see links
You must be registered to see links
You must be registered to see links
You must be registered to see links
Introduction
Welcome back. Nice to see you all. I hope you all have a good "code head" on and are eager to make your PT client even more funky and cool. :
In this guide I'm going to go into some detail about how my Butchered client supports Wide Screen monitors and windows without the classic black bars either side or "stretched pixels", restricting the actual play view to 4:3 no matter what the screen or windows' dimensions are.
So basically, we are going from this:-
to this:-
Most of you probably know that my client has done this for years. But a friend recently pointed out that I never clearly documented (as a guide, or tutorial) how this is achieved.
There are a number of flaws in my implementation which I will highlight. However, from the point of view of a user, these are mostly invisible and no bugs are created. So when I say "flaws" what I really mean is that there are effects produced which could be improved upon, if you have the time and the inclination.
I think this is a good patch for any PT client to have, because I'm guessing that by now most of us don't have a perfect 4:3 display, and any such resolutions will either produce black borders or stretch all our PT characters into Munchkins. (short squat people) This guide will ignore offsets in my Butchered client, and should apply to any client you want to modify. There is a connected issue regarding using non-standard resolutions and window sizes which you should probably resolve first, but I'm not going to cover that in this guide. (It has been documented via a couple of techniques before... but I'm not sure it's listed as a guide... I'll re-check) I shall assume, for the sake of argument, that you have already resolved that.
It would also be nice to resolve the outstanding flaws. So I'd love to get feedback from someone who has the time to look into them and report back their findings. For my self, this method has proved "sufficient" despite not being perfect, and I can't seem to warrant the extra time to clean up those little mistakes. (in truth, I only really have time to look, see, and offer advise to other devs most of the time these days)
In this guide I'm going to go into some detail about how my Butchered client supports Wide Screen monitors and windows without the classic black bars either side or "stretched pixels", restricting the actual play view to 4:3 no matter what the screen or windows' dimensions are.
So basically, we are going from this:-
to this:-
Most of you probably know that my client has done this for years. But a friend recently pointed out that I never clearly documented (as a guide, or tutorial) how this is achieved.
There are a number of flaws in my implementation which I will highlight. However, from the point of view of a user, these are mostly invisible and no bugs are created. So when I say "flaws" what I really mean is that there are effects produced which could be improved upon, if you have the time and the inclination.
I think this is a good patch for any PT client to have, because I'm guessing that by now most of us don't have a perfect 4:3 display, and any such resolutions will either produce black borders or stretch all our PT characters into Munchkins. (short squat people) This guide will ignore offsets in my Butchered client, and should apply to any client you want to modify. There is a connected issue regarding using non-standard resolutions and window sizes which you should probably resolve first, but I'm not going to cover that in this guide. (It has been documented via a couple of techniques before... but I'm not sure it's listed as a guide... I'll re-check) I shall assume, for the sake of argument, that you have already resolved that.
It would also be nice to resolve the outstanding flaws. So I'd love to get feedback from someone who has the time to look into them and report back their findings. For my self, this method has proved "sufficient" despite not being perfect, and I can't seem to warrant the extra time to clean up those little mistakes. (in truth, I only really have time to look, see, and offer advise to other devs most of the time these days)
Applies to: ANY official client
AFAIK. So far, any official client I tried, this works as illustrated.
Level: Intermediaterequires intermediate maths, some basic machine code and Olly Debug understanding and the ability to adapt where your target (the client you want to modify) may differ from the example one. I've done this to several clients, so I know the basics are the same.
Required:Official PT client without XTrap, and perhapse some means of achieving non-standard (for PT) resolutions
A working Private server to attach your NoXTrap client to? (You can't use this patch on official servers ... please don't ask)
preferably kPT, jPT or cPT. ePT and bPT will work, but we know there are other issues with them. lPT is still an unknown quantity for me. Old tPT and PTvn clients (now discontinued) are also known to work.
You must be registered to see links
(preferably a 2.x version)A working Private server to attach your NoXTrap client to? (You can't use this patch on official servers ... please don't ask)
Attachments
You must be registered for see attachments list
Last edited: