samp.directory
← Scripts y librerías

sonochiwa/sa-aspect-ratio-fixes

GTA San Andreas plugin that corrects the HUD, crosshairs, text and SA-MP textdraws on wide screens

Plugin★ 4actualizado hace 8 díasMITC++
Abrir en GitHub

README.md

Aspect Ratio Fixes

AspectRatioFixes.asi is a GTA San Andreas plugin that corrects the HUD, crosshairs, text, SA-MP textdraws, FOV and world sprites for the display's aspect ratio.

The game lays its 2D elements out for 4:3. On a wider screen the radar turns into an oval, the crosshair and sniper scope stretch, text runs wide and SA-MP textdraws drift apart. Each fix is a separate switch and is applied to the display's actual aspect ratio.

Features

  • Round radar and radar blips.
  • Round weapon reticle, lock-on marker, sniper scope and camera ring.
  • HUD block (weapon, ammo, bars, money, clock, wanted level) laid out for a chosen aspect.
  • All game text at the proportions of a chosen aspect.
  • Horizontal-plus FOV.
  • Width correction for pickups, coronas, sun, moon, lights, birds, clouds, checkpoints and effects.
  • SA-MP textdraws laid out for 16:9 and centred on wider screens.
  • Black frame covering the multisampling edge line.
  • Optional camera crosshair removal and camera/sniper HUD suppression.
  • INI reload by typing ASPECTFIXES in game.
  • Verifies the bytes it replaces before writing and refuses to patch any other executable.

Requirements

  • GTA San Andreas 1.0 US (Compact or Hoodlum executable), or a SA-MP installation based on it.
  • An ASI loader, such as Silent's ASI Loader or Ultimate ASI Loader.
  • The SA-MP 0.3.7-R1 or 0.3.7-R3-1 client for the textdraw module.

Other executables and other samp.dll builds are left untouched. Do not run HudFix.asi beside AspectRatioFixes.asi; the latter supersedes it.

Installation

  1. Extract AspectRatioFixes.asi and AspectRatioFixes.ini into the GTA San Andreas directory or its scripts directory.
  2. Start the game.

extras\cameraCrosshair.png is an optional replacement camera viewfinder texture; extras\README.md explains how to install it.

Configuration

AspectRatioFixes.ini next to the plugin, created with these defaults when it is missing:

SettingDefaultMeaning
[general]
log0Writes AspectRatioFixes.log next to the plugin: the geometry it computed and the result of every patch group.
commandASPECTFIXESWord that reloads the INI when typed in game. Empty disables it.
[radar]
roundRadar1Gives the radar frame one scale on both axes, so the circle is round.
roundBlips1Draws blip icons as wide as they are tall.
diameter86Radar diameter in HUD units of screen height. Only while roundRadar=1.
marginLeft40Radar left margin in the same units. Only while roundRadar=1.
marginBottom28Radar bottom margin in the same units. Only while roundRadar=1.
[crosshair]
roundCrosshair1Corrects the weapon reticle and the rocket lock-on marker.
roundScope1Corrects the sniper scope and the camera viewfinder ring, and fills the sniper surround to the screen edges.
noCameraCrosshair0Hides the crosshair while the camera is in use.
hideCameraHud0Hides the HUD while the camera is in use.
hideSniperHud0Hides the HUD while the sniper scope is in use.
[hud]
fixPlayerInfo1Lays the weapon icon, ammo, bars, money, clock and wanted level out as one block.
playerInfoAspect16:9The display aspect the block is laid out for, as 16:9 or 1.7778. 0 keeps the screen's own.
playerInfoScale0Size of the block in percent, about its top right corner. 0 keeps the game's own.
playerInfoMarginRight0The money's right margin in HUD units of screen height. 0 keeps the game's 32.
[text]
fixText1Proportions every other piece of text the font draws for textAspect.
textAspect16:9The display aspect the text is proportioned for. 0 keeps the screen's own.
[widescreen]
useScreenAspect0Sets the game's aspect ratio to the screen's own instead of 4:3.
fixFov1Converts the FOV for that aspect. Does nothing while useScreenAspect=0.
[worldSprites]
pickups … cameraEffects1Corrects the width of that kind of world sprite. One switch per kind.
[aaEdgeFrame]
left, top, right, bottom1Thickness in pixels of the black frame covering the multisampling edge bug on that side. 0 leaves the edge alone; all four at 0 skip the pass.
[samp]
fitTextdraws1Lays SA-MP textdraws out in a centred area of textdrawAspect on wider screens.
textdrawAspect16:9The aspect the server laid its textdraws out for. Screens not wider than it are left alone.

Every key is a switch and takes effect on the next reload. Type the command word in game the way a single-player cheat is typed, with the chat box open or closed; a message confirms the reload. The radar layout applies only while roundRadar=1, and fixFov only while useScreenAspect=1. The aspect keys name the display an element was designed for: 16:9 keeps the familiar look on an ultrawide screen, 4:3 gives the original proportions, 0 uses the screen's own.

Release Integrity

Releases are built by GitHub Actions from the tagged commit and carry a SHA-256 file and a build-provenance attestation:

gh attestation verify AspectRatioFixes-vX.Y.Z.zip -R sonochiwa/sa-aspect-ratio-fixes

License

MIT. See LICENSE.

asi-plugingta-san-andreassamp

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha

sonochiwa/sa-aspect-ratio-fixes: Plugin de SA-MP | samp.directory