VC:MP 0.4 Release Candidate 2 released

Started by Stormeus, Apr 11, 2015, 11:41 AM

Previous topic - Next topic

Stormeus

In other news: Phasing out 0.3 and its masterlist



This update largely serves as a rollup of fixes and feature implementations aimed at getting closer to a release we can mark as "final." Please note that some issues may still pop up, and though these changes were tested locally on a development environment, these changes may introduce new issues that will be fixed incrementally.



Client RC2 Update Released
  • Sprites and textdraws can now be relatively positioned
    • Relatively positioned sprites and textdraws use a 1024x768 display as the baseline. Their position is scaled up or down according to each player's resolution.
  • Ghost vehicles now using collision filtering instead of broken game flags
  • Tank turrets, firetruck hoses, and Predator cannons are now synced
  • Fixed the Cuban Cafe using LOD models
  • Shifted some skins to fix a previously available ped being unusable
  • The "Using all keyboards" functionality from the END key has been rebound to the PAUSE key

The update will automatically download and install upon launching the browser or joining an up-to-date 0.4 server.

If you don't have a browser, go to the downloads section of http://www.vc-mp.org to get one.



Server RC2 Update Released
  • Linux servers now handle Ctrl+C (SIGINT) and other signals gracefully, allowing it to exit properly
  • Fixed a potential exploit that would allow sync packets from unjoined players
  • Added a new plugin calls:
    • ShutdownServer for shutting down the server with plugins
    • GetPlayerWantedLevel for getting a player's wanted level. (previously write-only)
    • SetTextdrawRelativity and SetSpriteRelativity for setting if either is relative
    • GetVehicleTurretRotation for tanks
    • ToggleOnlyShowTeamMarkers for emulating ShowOnRadar 2 from the 0.3 Squirrel server. If this is enabled and ToggleShowMarkers is also enabled, players will only be able to see markers of teammates.
  • Modified CreateSprite and CreateTextdraw to require a bIsRelative parameter
  • OnEntityPoolChange is now called for blips, radio stations, sprites, and textdraws
  • Significantly updated the plugin API to reflect new features; old plugins may not run as expected

Windows Server (x86)
Windows Server (x64)
Linux Server (x86)
Linux Server (x64)



Plugins for RC2 Released
All official plugins for 0.4 have been updated due to major, potentially breaking SDK changes. Any third-party plugins for 0.4 should also be updated to use the new SDK to avoid crashes or unexpected behavior.

The updated SDK can be found here:
https://bitbucket.org/stormeus/0.4-squirrel/src/348a85ace1b4062f4f93ae9b5838ab9214e12ae8/VCMP.h?at=master

On top of the SDK update, the following plugins have received additional updates:

Squirrel
  • Player.WantedLevel is now available and can be used for getting and setting wanted levels.
  • Sprite.SetRelativeForAll/Player and Textdraw.SetRelativeForAll/Player have been added
  • Vehicle.TurretRotation is available and acts as a Vector with a constantly-zero Z element.
  • ShutdownServer(), SetShowOnlyTeamMarkers(bool) and GetShowOnlyTeamMarkers() are now available.
  • Various incremental fixes from the community. (Special thanks to @Gudio, @Thijn and @S.L.C)
    • Added Player.PutInVehicleSlot
    • Fixed issues with onPlayerCrouchChange
    • Fixed GetVehicleModelFromName not including the Taxi and not returning correct values for some vehicles
    • Fixed GetWeaponDataValue returning bools
    • Fixed Vehicle.Rotation returning malformed quaternions
    • Fixed GetPickupCount returning vehicle counts instead of pickup counts
    • Added GetObjectCount
    • Added constants for keys and missing functions from some objects
    • Added GetSkinID

server.conf Loader
  • <ShowOnRadar>2</ShowOnRadar>, like 0.3 Squirrel, is a valid setting now. This will show markers for teammates, but no one else.

Updated binaries are available on each plugin's respective download page.

https://bitbucket.org/stormeus/0.4-announce/downloads
https://bitbucket.org/stormeus/0.4-confloader/downloads
https://bitbucket.org/stormeus/0.4-hashing-algorithms/downloads
https://bitbucket.org/stormeus/0.4-iniparser/downloads
https://bitbucket.org/stormeus/0.4-mysql/downloads
https://bitbucket.org/stormeus/0.4-sockets/downloads
https://bitbucket.org/stormeus/0.4-sqlite/downloads
https://bitbucket.org/stormeus/0.4-squirrel/downloads

Plugin packages are also available for compact downloading and updating.

Windows (x86) Package
Windows (x64) Package
Linux (x86) Package
Linux (x64) Package

DizzasTeR

#1
Never expected this much amazing & huge helpful updates, alot of things can now be done and implemented, specially i was surprised to see relative positioning is here.

Downloading the updates right now.

[After updating]: I have noticed that after updating the plugins, when i started the server, the plugin couldn't recognize the .RotateTo parameter for objects and it also crashed.

Trying to find out why is it crashing or maybe that error is crashing the server.

Edit: I would like to know the updated format for relative position of CreateSprite and CreateTextdraw cuz i can't understand on the source.

Okay, no matter what do i do, when i removed all my objects.RotateTo for testing purposes it now gives an error "ConnectSQL" does not exist, even tho i loaded all the necessary plugins + updated them.


Fixed, as stormeus said there was no updated server.exe :D

Stormeus

Quote from: Doom_Killer on Apr 11, 2015, 12:14 PMEdit: I would like to know the updated format for relative position of CreateSprite and CreateTextdraw cuz i can't understand on the source.

There isn't really an updated format for relative positioning. Create a sprite and use Sprite.SetRelativeForAll/Player to make it relative. There's a maximum resolution of 1024x768 which is then scaled for different displays, so just accommodate that resolution.

Stormeus

Post has been updated to include the download links for the new server. Sorry about that.

Gudio

Linux binaries compiled with asan again. :P

Gulk

All (unsure) original SkinID's are now +1 digit (example skin id 124 is now 125)

Stormeus

Quote from: Gudio on Apr 11, 2015, 12:49 PMLinux binaries compiled with asan again. :P

Damn it. I'm not home right now, fixed builds may have to wait.

soulshaker

Oops, you've found a dead link.
Use the links at the top to get back.
While downloading sqlite04rel32.so

Honey

Quote from: soulshaker on Apr 11, 2015, 05:19 PMOops, you've found a dead link.
Use the links at the top to get back.
While downloading sqlite04rel32.so

Try downloading the module pack, It includes all of the updated modules :)

jayant

And a problem with Linux server (x86) file..When I use ./mpsvrrel32 it gives this - "error while loading shared libraries: libasan.so.0: cannot open shared object file: No such file or directory"

soulshaker

Same with me. I guess This is the reason?
Quote from: stormeus on Apr 11, 2015, 03:47 PM
Quote from: Gudio on Apr 11, 2015, 12:49 PMLinux binaries compiled with asan again. :P

Damn it. I'm not home right now, fixed builds may have to wait.

Gudio

Yes, wait for stormeus. He will compile the server without Address Sanitizer.

Gudio

Quote from: Gulk on Apr 11, 2015, 01:09 PMAll (unsure) original SkinID's are now +1 digit (example skin id 124 is now 125)
107 skin ID is Diaz now. Other skins with ID >107 needs to be increased by 1. :P

Gulk

Quote from: Gudio on Apr 12, 2015, 07:46 AM
Quote from: Gulk on Apr 11, 2015, 01:09 PMAll (unsure) original SkinID's are now +1 digit (example skin id 124 is now 125)
107 skin ID is Diaz now. Other skins with ID >107 needs to be increased by 1. :P
I later figured it would have been like so, but didnt test it. Gj! What skin was added?

Stormeus

The Linux downloads have been updated to use an asan-less build.

Linux Server (x86)
Linux Server (x64)