Changes in 1.5.9

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

MTA:SA Releases Changelog Pages
1.0 1.0.0 • 1.0.1 • 1.0.2 • 1.0.3 • 1.0.4
1.1 1.1.0 • 1.1.1
1.2 1.2.0
1.3 1.3.01.3.11.3.21.3.31.3.41.3.5
1.4 1.4.01.4.1
1.5 1.5.01.5.11.5.21.5.31.5.41.5.51.5.61.5.71.5.81.5.9
1.6 1.6.0

1.5.9 was released on October 1, 2021.


Notable Changes

Click to collapse [-]
  • You can now use the new onPlayerResourceStart server-side event to trigger when client is ready! Thanks to Lpsd.
  • You can now detect element interior or dimension change through two new client and server-side events onElementInteriorChange and onElementDimensionChange – should reduce some of your code! Thanks to Patrick and Strix.
  • You can now edit element bone behavior through 7 new bone manipulation functions! Great for some dynamic animations. Get started at setElementBonePosition and setElementBoneRotation. Thanks to Saml1er.
  • More vehicle customisation options! You can now edit vehicle dummy positions per vehicle. See setVehicleDummyPosition. Thanks to botder.
  • More audio customisation with sound effect parameters! See setSoundEffectParameter. Thanks to Strix and Sarrum.
  • More client download transfer box customisation options! See for example onClientTransferBoxProgressChange. Thanks to botder and CrosRoad95.
  • You can now allocate custom objects and vehicles through engineRequestModel. One of the most sought after features in a long time. Thanks to TheNormalnij.
  • You can now use scalable vector graphics (SVG) in MTA! See svgCreate for more info. Thanks to Lpsd.
  • You can now use peds and vehicles as the camera target. Thanks to TheNormalnij.
  • A lot more features for scripters to build even more immersive experiences with!
  • Many synchronization improvements!
  • Many varying size fixes, quality of life improvements, updates and security enhancements!
  • Many default resource fixes, refactors and upgrades, including webmap working once again! We have also improved the detection of world objects in map editor (editor_main resource), so you can select many more objects that you couldn't before - such as bushes, fences and many more! You can now also remove world objects inside interiors. This should help mappers a lot.


Backwards Compatibility

Click to collapse [-]

5 Backwards Incompatible Changes

These changes will take effect in 1.6.0:

  • callRemote callbacks currently set the error code to nil when there is no error. In 1.6.0, to be consistent with fetchRemote, the error code reported will be 0. See GitHub #294.
  • Since July 2016 if you provide an invalid string like "randomstring" when a function expects a number, the string will be treated as 0 and raise a script warning. In 1.6.0 this will be an error. You will still be able to provide strings containing numbers (e.g. "100" and "12.34"), this change only affects invalid strings. See GitHub #1043.
  • When providing a width and height of (0, 0) to createBrowser or guiCreateBrowser you will encounter a script error instead of a warning. The warning was introduced Feb 2019. See GitHub #1069.
  • Some functions expect only unsigned integers (positive numbers), and since Jan 2016 providing negative numbers would be a warning. This will now be an error. See GitHub #1070.
  • Since Aug 2015, we replaced the custom mtalocal:// URL scheme with http://mta/resourceName/blah.html. This mtalocal:// URL scheme will now be removed. See GitHub #1071.

This list is incomplete and we may introduce more changes later.


Statistics

Click to collapse [-]

These are some statistics since the previous release.

  • This is the 26th 1.x.x release
  • 355 days
  • 49 new functions
  • 16 new events
  • 0 deprecations
  • 77+ bug fixes and changes
  • 334 commits (see comparison)
  • 189 new open GitHub issues (see list)
  • 81 resolved GitHub issues (see list)
  • 135 closed GitHub issues (see list)
  • 71 new open GitHub pull requests (see list)
  • 207 merged GitHub pull requests (see list)
  • 53 closed GitHub pull requests (see list)
  • 38 contributors of which 11 are new (see list)
  • 94+ total contributors (see list)
  • 13 vendor updates

Note: Last update to these statistics was made 21 days ago.


Client

Click to collapse [-]

44 New Functions


10 New Events


8 New Arguments & Parameters


40 Bug Fixes & Changes

  • Fixed crash when deleting a chatbox bind too early (be57711 by sbx320)
  • Added minimum version check for resetBlurLevel (#1755 by StrixG)
  • Included skins added through engineRequestModel in getValidPedModels (#1437 by Pirulax)
  • Allow allocating new object models using engineRequestModel (#1684 by TheNormalnij)
  • Allow allocating new vehicle models using engineRequestModel (#1701 by TheNormalnij)
  • Events onClientVehicleStartEnter, onClientVehicleEnter, onClientVehicleStartExit and onClientVehicleExit now return peds as well (#1748 by Zangomangu)
  • Fixed hectic bike rotation by filling CBikeSAInterface class (#1884 by TheNormalnij)
  • Fixed Sound.setPanningEnabled OOP-method not working due to typo in definition (#1923 by StrixG)
  • Fixed ped task bug when special fighting near to a vehicle causing abnormal behavior (#1943 by Zangomangu)
  • Fixed getKeyState not working with gamepad buttons (#1944 by botder)
  • Disable gamepad controls if disabled by showCursor (c4b9a84 by botder)
  • Keep console position and size when changing locale (#1970 by xLuxy)
  • Fixed network trouble if falling into water while attempting to enter a vehicle (#1986 by Zangomangu)
  • Abort vehicle entering for incompatible vehicles if ped is in water (b3ba15b by botder)
  • Lowered shadows and lights more towards ground level (#2018 by patrikjuvonen and botder)
  • Fixed objects not returning world model position in processLineOfSight (#2083 by STR6)
  • Added keybind queue to improve performance (#2123 by patrikjuvonen)
  • Added ped camera mode return value to getCameraViewMode (#1418 by TheNormalnij)
  • Fixed setMarkerType resetting marker position (586d6d by botder)
  • Fixed testLineAgainstWater working incorrectly outside of game boundaries (#2192 by Allerek)
  • Fixed client vehicles blocking entry to server vehicle (#2188 by Zangomangu)
  • Removed obsolete entry from forbodenList (ff93fec by Dutchman101)
  • Reset vehicle explosion timer in CVehicleSA::SetHealth (8b30d7a and 546beab by botder)
  • Set game thread affinity to first CPU core (dbc792b by botder)
  • Added "TotalPhysicalMemory" to dxGetStatus (#2265 by Pirulax)
  • Added a UI button to delete servers from the "Recent" tab (#2253 by iDannz1)
  • Trim keybind whitespace to avoid duplicates (#2124 by patrikjuvonen)
  • Fixed a typo in the sa.dat file (eff97c8 by ccw808)
  • Resolved remaining collisionless objects (#2296 by Saml1er, TheNormalnij, ccw808, thisdp and botder)
  • Fixed attached players desync after reconnect (#2290 by theSarrum)
  • Check clothes type parameter in several cases (ce9d3de by Inder00 and botder)
  • Updated some images (f00c1a3 by patrikjuvonen)
  • Set CEF cache path (adff688 by patrikjuvonen)
  • Fixed some capital letters not working in CEF (6ed00b3 by patrikjuvonen and botder)
  • Fixed domain permission window labels overflowing in some languages (f7dcd6f by patrikjuvonen)
  • Updated client translations (6db5ba4 by patrikjuvonen)
  • Updated credits (#2125 by patrikjuvonen)


7 Vendor Updates

  • Updated and replaced CEGUI-integrated FreeType by adding it as its own dependency (def86d0 and 2b70f96 by Jusonex)
  • Updated libjpeg from 9b to 9d (#1963 by patrikjuvonen)
  • Updated Unifont from 5.1 to 13.0.06 (8eeac9a by patrikjuvonen)
  • Updated BASS libraries (#2377 by Dutchman101)
  • Updated CEF from 85.3.12+g3e94ebf (Chromium 85.0.4183.121) to 94.4.2+g6a963ca (Chromium 94.0.4606.61) (See commit ae6caa9 by patrikjuvonen)
  • Added lunasvg 2.3.0 (#2026 by Lpsd)
  • Updated unrar from 5.91 to 6.02 (#2384 by patrikjuvonen)

Server

Click to collapse [-]

6 New Events


New Arguments & Parameters


16 Bug Fixes & Changes

  • Fixed wrong SQLite column in getAccountsByIP (#1734 by emre1702)
  • Improved help command in server console (#1639 by Unde-R)
  • Improved checksum error messages for internal HTTP servers (#1778 by qaisjp)
  • Events onVehicleStartEnter, onVehicleEnter, onVehicleStartExit and onVehicleExit now return peds as well (#1748 by Zangomangu)
  • Fixed CLuaArgument not comparing tables recursively, causing unnecessary setElementData resyncs even if values match (76e52f8 by botder)
  • Enforce existing username length limit in account code (#1995 by patrikjuvonen)
  • Refactored vehicle blowup code to fix onVehicleExplode triggering twice server-side (#1997 by botder)
  • Added source map compatibility in CResourceHTMLItem (#2207 by PauloKim1246)
  • Added missing ColShape.elementsWithin (#2186 by Pirulax)
  • Fixed info command displaying two statuses of a running resource (#2292 by theSarrum)
  • Fixed respawning of blown vehicles (7963997 by botder)
  • Don't allow dead peds to enter vehicles (#2344 by Zangomangu)
  • Fixed missing new lines when outputting long messages in server console (6256bb0 by patrikjuvonen)


1 Vendor Update

  • Updated sqlite from 3.32.3 to 3.36.0 (#2284 by patrikjuvonen)


Shared (Client & Server)

Click to collapse [-]

5 New Functions


3 New Arguments & Parameters

  • Added bIncludeWorldSeaLevel and bIncludeOutsideWorldLevel to setWaterLevel (#1402 by TheNormalnij)
  • Added new optional inputBlocked argument for showChat (#2170 by Pieter-Dewachter)


9 Bug Fixes & Changes

  • Fixed vehicle driver desynchronization after carjacker dies (#1907 by Zangomangu)
  • Disabled train track functions (#1920 by qaisjp)
  • Added request body and method to HTTP scripts (#2053 by Disinterpreter)
  • Added aes128 encryption support to encodeString and decodeString (#2235 by drop-club)
  • Fixed empty files returning an invalid checksum (966de4e by botder)
  • Added extra checks in CXMLImpl::ParseString to avoid crash when invalid XML data supplied (#2282 by Lpsd)
  • Added ability to use peds and vehicles as a camera target using setCameraTarget (#1753 by TheNormalnij)


5 Vendor Updates

  • Updated detours from 1.2 to 4.0.1 (#2022 by botder)
  • Updated mbedtls from 2.4.2 to 2.27.0 (#2085 and 38e9207 by botder and patrikjuvonen)
  • Updated curl from 7.72.0 to 7.79.1 (#2373 by patrikjuvonen)
  • Updated pcre from 8.39 to 8.45 (7d51758 by patrikjuvonen)
  • Updated cryptopp from 8.2.0 to 8.6.0 (#2385 by patrikjuvonen)


Resources

37+ Bug Fixes & Changes

  • [admin] added an option to hide sensitive data. (works like streamer mode in some apps) (thanks to iDannz)
  • [admin] added an option make the camera collide while spectate. (thanks to iDannz)
  • [admin] added a command to send messages in admin chat (/a message). (thanks to rickchesterhd123)
  • [admin] added an option to teleport to the selected position on the map. (thanks to Patrick2562)
  • [admin] added save to some infos, so you don't have to reselect some options after reconnecting. (thanks to iDannz)
  • [admin] fixed error in output messages (case the player has a nickname with more than 1 hex color). (thanks to androksi)
  • [admin] fixed a bug that occurred when trying to restart a resource that wasn't running. (thanks to Dante386)
  • [admin] fixed an error that occurred when clicking on the "Maps" tab if the resource 'mapmanager' was not running. (thanks to cleoppa and iDannz)
  • [admin] improved the lists of 'give vehicle', 'give weapon' and 'slap'. (thanks to iDannz)
  • [admin] replace 'give admin' button with permissions selection widget. (thanks to iDannz)
  • [admin] tweaks to the interface. (thanks to iDannz)
  • [cdm] removed the cdm resource from the official resources package.
  • [editor] added an option to 'lock' elements. (thanks to xLive)
  • [editor] added an option to choose the output directory before saving new maps. (thanks to umithyo, xLive and iDannz)
  • [editor] added option to select some objects that do not have collisions. (thanks to Zangomangu and Tut)
  • [editor] fixed an issue that occurred when saving element's dimension. (thanks to FileEX)
  • [editor] fixed bug that made the camera be locked after clicking some buttons too fast. (thanks to androksi and iDannz)
  • [editor] interior world models are now removable. (thanks to Zangomango)
  • [freeroam] fixed an error in the command '/addclothes'. (thanks to xLive)
  • [freeroam] fixed error when using negative numbers in the command '/color'. (thanks to xLive)
  • [freeroam] improved the map image quality. (thanks to patrikjuvonen)
  • [hedit] resource added to the official resources package.
  • [ipb] fixed filter input-box that did not work. (thanks to iDannz)
  • [killmessages] rewritten resource. (now detects deaths caused by vehicles (eg hydra), and also detects deaths caused by vehicle explosions). (thanks to iDannz)
  • [mapcycler] added an option to pause cycling while the server is empty. (thanks to jlillis)
  • [race] added configuration of transparency level during the ghost mode. (thanks to AfuSensi)
  • [race] added fade car addon. (thanks to AfuSensi)
  • [race] fix bug in pickup respawn. (thanks to LosFaul)
  • [race] finish the map when there are only spectators. (thanks to xLive)
  • [race] added possibility to use rotation attributes. (thanks to xLive)
  • [resourcemanager] fixed problems on the dates of some information. (thanks to Dezash)
  • [runcode] fixed a problem that caused the 'srun' command show the results to everyone. (thanks to Yamsha75)
  • [speedometer] resource added to the official resources package.
  • [trainhorn] resource added to the official resources package.
  • [webmap] fixed and updated. (thanks to patrikjuvonen)
  • [webstats] updated. (thanks to patrikjuvonen)


Extra information

More detailed information available on our GitHub repositories: