Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Squiddy

[REL] Vice City Widescreen Fix

Recommended Posts

Squiddy

Hey all,

 

a friend noted on gtareactor that Vice City has problems with 16:10 resolutions (like widescreen monitors have). This showed in a difference between the crosshair and the actual hit point. See the screenshots below if you don't know what I'm talking about. smile.gif

From that on I worked on improving the display and fixed some minor stuff.

 

Fixes

- HUD not stretched anymore

- Crosshair match hit point

- perspective adjusted

 

Download

http://squiddy.marway.org/gta/files/vcwidescreen.zip

(http://squiddy.marway.org/gta)

 

Install

Extract into vice city directory. Enable the widescreen option in the display menu. Be sure to keep the file in the directory only if you're playing in widescreen. Otherwise it will affect 4:3 displays.

 

Before/After comparison

screenshot

Edited by Squiddy
  • Like 1

Share this post


Link to post
Share on other sites
ESMazter

Great thing for laptop users like me! icon14.gif

Share this post


Link to post
Share on other sites
[CTD]LaBan

Great! Now i can play correctly on my laptop, too smile.gif

 

5*

Share this post


Link to post
Share on other sites
Rbn 3d

Nice!! But.... any release for SA??

Share this post


Link to post
Share on other sites
Alexander Blade

N1ce fix !

may be if Squiddy will tell me how he did it for VC i'll do this 4 SA

Share this post


Link to post
Share on other sites
Squiddy

Thank you all.

 

Does SA really have the same problems? I am surprised, I expected them to handle this better. Of course I do my best to help you Alexander, you might want to check the source, it really is not much I did, research lasted longer than everything else:

http://squiddy.marway.org/gta/source/vcwidescreen.txt

 

But if you don't work with VC it probably doesn't help you much, maybe I can explain it better.

 

First priority was to fix the crosshair position, which is drawn in CHud::Draw. The calculation used some floats for scaling. As I changed them, the bullet hit position was changed too, so I had to change the code and manually adjusted them to fit.

 

float shoot_scale_x = 0.5362989902f;float shoot_scale_y = 0.3810000122f;DWORD p = vcversion::AdjustOffset(0x5575FA);VirtualProtect((void*)p, 4, PAGE_EXECUTE_READWRITE, &dwProt);*(DWORD*)p = (DWORD)&shoot_scale_x;VirtualProtect((void*)p, 4, dwProt, &dwProt);	p = vcversion::AdjustOffset(0x55760A);VirtualProtect((void*)p, 4, PAGE_EXECUTE_READWRITE, &dwProt);*(DWORD*)p = (DWORD)&shoot_scale_y;VirtualProtect((void*)p, 4, dwProt, &dwProt);	

 

 

Second was the vertical scale of the whole display. Strechnutter had that option in VC Camhack, called 'Height stretch'. Maybe it's present in SA too. This value is changed when activating cutscenes for example.

 

p = vcversion::AdjustOffset(0x54A29E);VirtualProtect((void*)p, 4, PAGE_EXECUTE_READWRITE, &dwProt);*(float*)p = 1.56f;VirtualProtect((void*)p, 4, dwProt, &dwProt);

 

 

The horizontal scaling of the HUD was corrected. Everything was affected, excepts the radar map sprites. They had to be adjusted seperatly.

 

*(float*)vcversion::AdjustOffset(0x697A70) = hud_scale_x;*(float*)vcversion::AdjustOffset(0x68FD14) = radar_scale_x;

 

 

When I corrected the huds horizontal scale, the sniper mode had a bug. The black rectangles left and right to the sniper texture had to be made wider, otherwise a small coloumn was not black. This is how it looked in the end:

See here: http://gtareactor.planet-multiplayer.de/gt...achmentid=32712

 

 

Well, I hope this helps you somehow. smile.gif

If there is any question, feel free to ask.

Share this post


Link to post
Share on other sites
-/TNT\-
San Andreas on my PC always looks all stretched upwards. I've resorted to the CamHack, it fixes the problem. I haven't noticed any aiming difficulties though, but I'll be glad if you can fix this. It just eliminates another app I keep open when gaming. smile.gif

Share this post


Link to post
Share on other sites
Alexander Blade

2Squiddy : thx a lot )

Share this post


Link to post
Share on other sites
simkas

I f*cking love you.

Share this post


Link to post
Share on other sites
simkas

I'm having a problem with this. When I put the .asi in my game foler, the screen looks more stretched in widescreen mode.

Share this post


Link to post
Share on other sites
Squiddy

Did you enable the widescreen option in the display settings? It is needed, as the mod is correcting the settings done by VC. If this doesn't help, could you post a screenshot?

Share this post


Link to post
Share on other sites
simkas

Here's how it looks without this fix:

user posted image

And here's what it is with the fix:

user posted image

 

With the fix, the hud doesn't look so stretched, but the view is stretched down verticaly.

Share this post


Link to post
Share on other sites
Squiddy

Well... that's going to be difficult. Thing is, I asked a friend what vertical scale he prefers, that's the one I chose for the fix. It's really a matter of personal taste I assume, but imo on the second screenshot Tommy does look more natural than on the other one.

If you prefer a different setting, I need to make it configurable.

Share this post


Link to post
Share on other sites
simkas
Well... that's going to be difficult. Thing is, I asked a friend what vertical scale he prefers, that's the one I chose for the fix. It's really a matter of personal taste I assume, but imo on the second screenshot Tommy does look more natural than on the other one.

If you prefer a different setting, I need to make it configurable.

He looks too short in the second picture.

Share this post


Link to post
Share on other sites
Squiddy

Well, yeah. I guess I can find 10 people claiming he is too tall in the first picture. tounge.gif

 

Okay, I make it configurable then, maybe today, maybe tomorrow.

Share this post


Link to post
Share on other sites
Squiddy

Oh, never checked that. biggrin.gif

 

Makes sense, because that map is rendered in the same function as the HUD I think. When I corrected the scale factor for the hud, the icons position stayed the same. Two possibilities.. stretching the map in that display or correcting the icons position. I think the first is easier. I'll check that out.

 

Edit

Okay, figured out where the problem is, just need to find a good way to fix it. Maybe I do it the lazy way, at least the bug will be fixed then. tounge.gif

Edited by Squiddy

Share this post


Link to post
Share on other sites
The Kirbster

Thanks man, I really needed this. icon14.gif Good job. Correct me if I'm wrong, but I think you just made the aiming circle at the location of where the Widescreen mode fires, instead of changing the line of fire location to where the aiming circle is. Yes?

Share this post


Link to post
Share on other sites
Squiddy

Yes, I found this to be the easiest solution and I think it doesn't really makes a difference in playing, does it?

Share this post


Link to post
Share on other sites
The Kirbster

No, I find it easier to use sometimes tounge.gif . Great job on the mod, and good luck with fixing the map glitch. smile.gif

Share this post


Link to post
Share on other sites
Squiddy

Thank you. I think I fixed the problem with the map, could someone try it out please? I do not have a widescreen here, which makes it harder to decide if it really was fixed.

 

I uploaded the new .asi temporarly for testing. Thanks to anyone who tries. If it works, it will be updated on my webpage.

http://squiddy.marway.org/gta/files/vcwidescreenfix.asi

Share this post


Link to post
Share on other sites
The Kirbster

OK, I'll go test it out after I finish re-installing (my game can't load for some reason cryani.gif)

 

Edit: Alright, I tested it, and the map is good. All the icons are good. BUT, the new version has the problem that is displayed in the "Before" of the Before/After pic. (Like I aim at a cop's head with the targeting thing, and it completely misses) Strange... confused.gif

Edited by The Kirbster

Share this post


Link to post
Share on other sites
BruTaLysT

If you still use a 4:3 CRT, it's quite easy to simulate a 16:10 widescreen resolution. Just set the display to 1920x1080 for instance (or 1680x1050, 1440x900 etc.) and scale the image with your monitor's OSD settings to get the correct aspectratio. This will result in black bars on top and bottom, but it will represent a 16:10 display correctly. It could be very practical for you to test the changes you make.

 

But lot's of tnx for making the fix anywayz. Although I hope u will fine-tune it a bit further

 

Oh and i you can't get these resolutions to work, there should be ways to add custom resolutions within nVidia or ATi control panel. If this does not work either, Powerstrip will be able to biggrin.gif

Edited by BruTaLysT

Share this post


Link to post
Share on other sites
Diabhal

I tried it on the Steam version of VC, and the game crashes on loading a savegame. Anybody got it to work on the Steam version?

 

Using Geforce 8800 GT 512, Forceware 169.12, 1440x900 resolution

 

 

Share this post


Link to post
Share on other sites
dinamit04

Can someone please upload it somewhere else? For some reason, the website is blocked for me. Thanks in advance.

Share this post


Link to post
Share on other sites
dinamit04

Works Great! Thanks alot, this was bugging me alot lately...Great Work biggrin.gif

Share this post


Link to post
Share on other sites
wildstoo
I tried it on the Steam version of VC, and the game crashes on loading a savegame. Anybody got it to work on the Steam version?

 

Using Geforce 8800 GT 512, Forceware 169.12, 1440x900 resolution

Nope, crashes for me too in the Steam version.

 

GeForce 9800 GX2

Forceware 175.16

1680x1050

 

Any ideas? confused.gif

Share this post


Link to post
Share on other sites
spaceeinstein

You need to replace gta-vc.exe with an older version.

Share this post


Link to post
Share on other sites
g30dud3

Sorry for bumping this topic, but I have a question thats been bugging me for a while - Why on earth should this be an issue in the first place? If you are using a 16:10 resolution you don't need to enable the "Widescreen" option confused.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.