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.

Messages - DarkRaZoR^
16
Server & Plugin Updates / Re: Server Update Released (2018-06-28)
« on December 5th, 2019, 05:12 AM »
Quote from est93 on December 5th, 2019, 01:18 AM
hey guys the website is down. i would like to setup a server is there an updated link available?
https://web.archive.org/web/20191028155636/http://wiki.vc-mp.org/
17
Scripting and Server Management / Re: Spawnscreen texture issue
« on October 10th, 2019, 03:24 AM »
If you set your camera position really far from the player, the game won't load the textures fully.
18
Support / Re: What happened to http://wiki.vc-mp.org??
« on October 10th, 2019, 03:22 AM »
Quote from Alecu Madalin on October 9th, 2019, 06:28 PM
Quote from DarkRaZoR^ on October 9th, 2019, 03:20 AM
I guess we have to use this...
sry too hard for everyone
Hard? Lol.
19
I mean, that would require lots of function calls to achieve the smoothness, thus it wouldn't be ideal.
20
Support / Re: What happened to http://wiki.vc-mp.org??
« on October 9th, 2019, 03:20 AM »
I guess we have to use this...
21
General Discussion / [0.4rel006] Re: VC:MP API Extended
« on October 4th, 2019, 05:31 PM »
C++'s my language! (y)
22
VC:MP Announcements / Re: Postponing the 0.4.7 public beta
« on August 17th, 2019, 10:49 PM »
Take your time. :)
23
VC:MP Announcements / Re: 0.4.7 Public Beta starting 2019-08-17
« on August 14th, 2019, 08:20 AM »
Based from the whole thread, you never seem to disappoint me. Looking forward seeing the new improvements.

BTW, when you're refering to HTTP downloads, does that mean a big improvement in terms of downloading server files efficiently?
24
General Discussion / Re: VC:MP Splashes
« on August 10th, 2019, 07:17 PM »
Great job, Radon! :)
25
Support / Re: Immediately disconnected from server
« on July 12th, 2019, 07:40 AM »
Show us a screenshot.
26
Client Scripting / [Release] Re: DecUI: A declarative approach to UI development
« on July 8th, 2019, 11:02 PM »
Quote from NewK on June 28th, 2019, 01:08 AM
I made a visual studio code extension for the DecUI library that  will assist you when using the library. It has autocompletions and snippets for all the GUIElements and components currently present in the library. Here's a demo of it in action:



If you're not using visual studio code, I highly recommend it. Download it and make sure to install the squirrel extension first before installing the DecUI extension or else it won't work. After installing the squirrel extension, you can get the DecUI extension here. Click the "clone or download" button and click on "Download ZIP". After downloading, extract the folder inside the .zip file to your visual studio code extensions folder ( %USERPROFILE%\.vscode\extensions ). After extracting the folder, restart visual studio code (if you have it open) and that's it.
Now that's rad. Awesome work, dude.
27
Bugs and Crashes / Re: Bug comes with boat's spawn
« on May 6th, 2019, 07:41 PM »
Quote from Athanatos on May 6th, 2019, 03:33 PM
It also worked when teleporting vehicles from a larger distance. Normal VCs behiavour (happends in sp too, i teleported a vehicle in scm from the Police HQ in Washington to Downtown and it floated too).
I witnessed this behavior too when I spawned a Sea Sparrow in middle of the air while driving the Hydra.
28
This bug in the PlayerShoot callback has been like that for a while now. You may refer to this website for more information (https://forum.vc-mp.org/?topic=4363.msg32306#msg32306).
29
Scripting and Server Management / Re: Custom Radar Map
« on April 20th, 2019, 03:47 PM »
Quote from GangstaRas on March 31st, 2018, 06:49 PM
The entirety of the map with all 64 PNGs (00 to 63) equates to a resolution of 1024x1024, that means the map is divided into 8 rows and 8 columns (at 128x128 resolution). So from the top of the map to the bottom:

1st row -  00 to 07
2nd row - 08 to 15
3rd row -  16 to 23
4th row -  24 to 31
5th row -  32 to 39
6th row -  40 to 47
7th row -  48 to 55
8th row -  56 to 63


Now with your image editor of choice (I use GIMP), if you grid the image with rulers into 8 equal parts on the x and the y axis, the full map is now setup to have each of these individual sections. A result like this:



That would give you a general idea of the positioning of where you want to be. Now for the accuracy to get things exact (involves some maths):

The landscape of Vice City is 3900 m x 3900 m (in game units), with the coordinate range setup a specific way for the x and y axis:

X axis = -2350 to 1550
Y axis = -1950 to 1950

Whatever object you look at in Moo Mapper or MEd or KEd, the coordinates of the object will always fall within those X and Y boundaries. Anything that exceeds those boundaries is not on the map, it will be shown in-game but it cannot be accessed by the player. How you would translate this onto the map you're drawing is as follows:

1. Get the coordinate of whatever object you're referencing
- for example sake, let's say the ingame object has a coordinate of 540, 260

2. Calculate the position of the object in percentage
- This is the make or break step that determines whether things will work out moving forward

To calculate the percentage properly, you need to regard the layout of the boundaries. The X axis starts at coordinate -2350, NOT 0. Therefore, you have to calculate that 540 coordinate in relation to -2350, the starting point, and the total range, which is 3900. Forget the ending point of the X axis (1550) for now, it only proves that the total range is 3900.

So, position in percentage (X axis):

[ object coordinate - starting point ] / 3900 x 100%
[ 540 - (-2350) ] / 3900 x 100%
2890 / 3900 x 100%
= 74.10%

You do the same with the Y axis and its respective range and coordinates, so you should get:

[ 260 - (-1950) ] / 3900 x 100%
2210 / 3900 x 100%
= 56.66%


3. Apply these percentages to the pixel coordinates of your image in your image editor
- This is the final step to draw the position accurately onto your radar map

You take the respective X and Y axis percentage value and multiply it against the respective X and Y axis full image resolution, which is 1024 x 1024, NOT the little radar squares from the grid which is 128x128. Don't care about them as yet.

So the position to draw the point is:

74.10% / 100% x 1024 (X axis) = 758.784 = 759   (rounded to the nearest whole number)
56.66% / 100% x 1024 (Y axis) = 580.1984 = 580 (rounded to the nearest whole number)

Remember to round the numbers as there is no decimal pixel

So in your image editor, looking at the status bar to check where your cursor is currently located across the image, you draw your point or representation you'd like of the object on the map at 759 ,580 of the image.

From this coordinate you can also deduce which of the 64 images would likely be the one to edit and replace. This is done by dividing the respective X and Y coordinate by 128 pixels. So with this example you would get:

759 / 128 = 5.93 (X axis = column)
580 / 128 = 4.53 (Y axis = row)

Now with these numbers you need to count correctly. Count the image spaces not the grid lines. You should therefore get that this image lies in the 4th row and is the 5th image.

So, using the table I gave at the start, the 4th row means images 24 to 31 are the options, the 5th image in that row, is image 28, so you would be editing and replacing radar28 from this example.

Hope this helps, and any further questions on the matter, feel free to ask
30
Bugs and Crashes / [BUG] FPS Uncapped
« on April 19th, 2019, 07:01 PM »
Description:
The FPS is going over 60FPS hence it looks like 10-20FPS.

Reproducible:
Always

What you were doing when the bug happened:
I spawned and seemed to notice the players in the server arguing about it.

What you think caused the bug:

The latest client update so far what I know.