Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - AdTec_224

#1
The main focus of this update has been improving foot/weapon sync however I've also ported some features over from the old 0.4.7 beta.

Quote
  • Added support for HTTP downloads.
    • A proxy can be used by setting the option net_dl_proxy to the proxy's URI, e.g. /setconfig net_dl_proxy http://192.0.0.7 or /setconfig net_dl_proxy socks4://192.0.0.8:1080. The proxy can be disabled by using /setconfig net_dl_proxy 0.
  • Added support for custom cull zones.[nb]To use custom cull zones, add a file named maps/cullzones.xml to the server store with the following format:
    <?xml version="1.0" encoding="ASCII" ?>
    <cullzones>
        <!-- Disable rain -->
        <cull min_x="-200.0" min_y="-200.0" min_z="-10.0" max_x="200.0" max_y="200.0" max_z="40.0" flags="8" />
    </cullzones>
    [/nb]
  • Added support for replacing the surface traction table by adding a maps/surface.dat file.
  • Added support for 3D arrow blips
  • Added support for turning the engine off
  • Added the ability to open automobiles' bonnets
  • Added the ability to pop open automobiles' boots
  • Fixed death anims when headshot in car
  • Allow weapons as usable objects in XML maps
  • Implemented fine-grained drunk visuals and handling
  • Rewritten module list code
  • Partially re-written foot sync to improve accuracy (more changes may be made over time)
  • Updated third-party components.

As usual, this update will take effect upon reloading the browser and joining a 0.4.7.0 server.
#2
  • Added support for http downloads using server config option 'storeurl' followed by the url to the root of the store
  • Add player option for toggling bleeding peds
  • Added plugin call to kill player
  • Server will now randomly pick car colours if either colour is set to -1
  • Added support for turning the engine off
  • Added plugin call to open automobiles' bonnets
  • Added plugin call to pop open automobiles' boots
  • Added plugin calls for player 3D arrow blips
  • Implemented fine-grained drunk visuals and handling
  • Changes to module list (now includes a file hash)

Server downloads:
Windows Server (x64)
Windows Server (x86)
Linux Server (x64)
Linux Server (x86)

Plugin SDK header
#3
All accounts that were previously banned are still banned, however if you would like to request an unban for a specific user, go head. I can then make a decision based on the reason they were originally banned and the time since the ban.
#4
As some of you may have been aware, the server running the web services for this community was hit by ransomware a few weeks ago, while we have been able to restore services fairly quickly it seems our forum was one of the casualties. Upon restoring the old forum (Wedge) it became obvious there we problems, some users being unable to post or even login. After several attempts to fix these problems and still no luck, I decided it was time to try a different approach...

Welcome back SMF!

Why the move? Simple! SMF is well maintained, unlike Wedge and offers a wide variety of mod and theme support should we be decide to utilise them. I have also managed to successfully convert most (if not all) user data and messages over from Wedge, however if anyone notices any issues feel free to report them.

Happy posting! :)
#5
A client update has been released for 04rel006.

This release was supposed to go live back in December but apparently I actually forgot to release it (sorry!)

  • Fixed OnPlayerShoot eventing not being called for shotguns or snipers.
  • Fixed checkbox crash on clicked in buildmode.
  • Fixed filepath sprite crashes in buildmode.
  • Updated Squirrel.
  • Fixed shotguns shooting through objects with wall glitch disabled.
  • 'PlayerShoot' now gets called when firing in first-person view.
  • Fixed 'onObjectShot' for explosions being called for everyone.
  • Hopefully fixed a few issues with the Steam version
  • New splash screen (credits to Spiller, thanks!)

This update will take effect upon reloading the browser.
#6
First off I appreciate your enthusiasm for helping to keep VC:MP alive, however there are a few problems with example (bare in mind I've only had a quick look).

  • The first problem I see is you're never checking "Server" is a valid pointer anywhere. While yes, it should always be valid, never assume anything. Always check before using it.
  • for (int i = 1; i < 3000; i++) should be 1000 not 3000 as the vehicle limit is 1000 and you're just wasting CPU cycles.
  • fn_OnPlayerMessage and fn_OnPlayerConnect both have the same mistake, if for whatever reason GetPlayerName returns something other than 0, you're not freeing memory causing a memory leak.
  • fn_OnPlayerCommand allocates memory but doesn't free memory AT ALL, that'll cause a memory leak everytime a player issues a command, which is a big mistake.

For the above reasons I highly recommend avoiding using this, however I won't delete the topic as it gives yourself and other people the opportunity to learn.
It's also a really good demonstration as to why we as developers give server owners scripting languages such as Squirrel that offer garbage collection rather than expecting people to use languages like C.
#7
I think you're misunderstanding what the colour parameter is for. In this case, colour refers to the colour of the text (and by extension text alpha) and not the alpha value of the overall label.

So simply put:

label.Alpha
and:

label.Colour
set the alpha (and colour) value of the label itself, whereas the colour parameter in this code:

GUILabel(VectorScreen(0, 0), Colour(255, 255, 255, 0), "Colour!");
sets the colour and alpha of the text only, so it's effectively doing the same as:

label.TextColour 

Hope this helps.
#8
It's not really a bug per se, MGUIs intended behaviour is to continue with the defined colour until you close the colour tag using '[#d]'. So to conform to what MGUI is looking for, it should be:

Label.Text = "[#ff00ff]purple colored text[#d]";
then when you change the text, you can just do:

Label.Text = "non-purple colored text";
and the line will be the default colour.

Hope this helps.
#9
An update for VC:MP 0.4 (04rel006) servers has been released.

  • Fixed reference counting issue resulting in checkpoint bug located here.

Windows Server (x86)
Windows Server (x64)
Linux Server (x86)
Linux Server (x64)
#10
Hello everyone :)

Today I am pleased to announce the grand opening of our official Discord channel! This has been created in an attempt to unite the community in one place, in the hopes to help grow and improve the community as a whole. In this server users are free to chat with one another, seek help with client issues or scripting problems, share memories and funny moments in our pics and vids channel and so much more!

To join our discord server, use the link below:

https://discord.gg/mnTpR8pecJ

Please remember this discord server is a work in progress and certain channels/features are incomplete and/or subject to change.

Big thanks to PunkNoodle and everyone else who helped make this server possible!
#11
Bugs and Crashes / Re: [Bug] CreateMarker
Dec 30, 2020, 01:59 AM
As far as I'm aware it's not a bug, you're just not using the function correctly. It's RGBA not RGB, so the correct line of code for a red marker should be:

CreateMarker(player.UniqueWorld, Vector(496.481, -84.883, 10.0304), 4, RGBA(255, 0, 0, 255), 0);
#12
A client update has been released for 04rel006.

  • Fixed vehicles taking damage while upside down and in the air
  • Fixed buildmode crash when a function returns the local player

This update will take effect upon reloading the browser.
#13
An update for VC:MP 0.4 (04rel006) servers has been released.

  • Fixed GetAmmoAtSlot returning incorrect values
  • Fixed "Whenever you set the double of an ammo of a weapon you have, you get kicked."
  • Fixed "Equipping Brass Knuckles kicks you"

Windows Server (x86)
Windows Server (x64)
Linux Server (x86)
Linux Server (x64)
#14
libpng16.dll is included with the client update (as seen here) so either something/someone deleted it or it may require the Visual Studio redistributable to be installed, located here.
#15
An update for VC:MP 0.4 (04rel006) servers has been released.

  • Fixed typo in streaming code causing massive memory issues
  • Fixed potential crash relating to nicknames
  • Fixed server adding IP to the ban list if the IP is already there
  • Fixed crashes when changing/destroying entities while deleting a player
  • Fixed race condition when teleporting players in vehicles
  • Fixed small memory leak
  • Fixed GetWeaponSlotAmmo not updating if anticheat is disabled
  • Fixed OnPlayerAwayChange triggering when dying using the default death timer
  • Added 'logging' config option
  • Added '-nologging' command line parameter
  • Added 'w' option to MVL vehicle filename format for weapons, e.g. v6400_t0_p2_w_Hunter.7z (still requires xml info to be present)
  • Updated third-party components
  • Fixed players being able to launch missiles while frozen/unable to attack
  • Fixed projectile crash exploit

NOTE: This update is optional but recommended.

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