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.

Topics - Thijn
1
Applications / Host is closed
« on February 2nd, 2017, 09:58 PM »
More info: http://forum.vc-mp.org/?topic=4096.0

New requests will be removed without warning.
2
Bugs and Crashes / [BUG/Announcer] Announce does not use bindip
« on August 25th, 2016, 06:53 AM »
Description
When you run your server on a secondary IP using the bindip command line option, the announce plugin does not bind on that same IP and will happily announce your server on the first IP of your box.

Reproducible
Always

What you were doing when the bug happened
Starting the server

What you think caused the bugWhat needs changing
First of all the plugin SDK needs adjusting since you can't get the IP it's listening on. Then the announce plugin needs to use that information and bind on that interface.

Workaround, place the following on a cronjob or something:
curl --interface YOURIP -A "VCMP/0.4" -H "VCMP-Version: 04rel004" --data "port=YOURPORT" http://master.vc-mp.org/announce.php
3
Script Showroom / Free file upload for script-releases
« on September 18th, 2015, 07:45 PM »

This is a free file upload service mainly for uploading script releases, snippets, or plugins.
File upload size will be max 10MB, and only files of type 7z, zip, rar or nut are allowed.

You're asked for an Nickname, which can theoretically be anything, but preferable use your forum nickname if you actually want to release something.
All files will automagically be sent to VirusTotal and be scanned for viruses.
Uploaded files get a fancy download image that you can use on the forum, which looks like this:


After a file upload you can copy paste a ready-to-use BBC, which will contain the clickable image.

Suggestions and bug reports are, as always, very much appreciated.

I'm not sure how this will turn out, but I'm willing to try. If things go wrong and it gets abused I will pull the plug, remove the files, and I wont be trying it again.
4
Closed Bug Reports / [Squirrel] Textdraw within an array within a class within an array.
« on August 3rd, 2015, 04:25 PM »
I've noticed text draws aren't liking arrays within classes. The following snippet will demonstrate this:
Code: [Select]
class drawClass {
textDraws = array(1,null);
textDraw = null;
}

drawInfo <- array(2, null);

function onScriptLoad()
{
drawInfo[ 0 ] = drawClass();
drawInfo[ 1 ] = drawClass();

drawInfo[ 0 ].textDraws[0] = CreateTextdraw("Test text", 50, 50, 0xFFFFFFFF);
print( drawInfo[ 0 ].textDraws[0] );
print( drawInfo[ 1 ].textDraws[0] );

drawInfo[ 1 ].textDraws[0] = CreateTextdraw("Test text 2", 50, 50, 0xFFFFFFFF);
print( drawInfo[ 0 ].textDraws[0] );
print( drawInfo[ 1 ].textDraws[0] );

print(" ---- ");

drawInfo[ 0 ].textDraw = CreateTextdraw("Test text", 50, 50, 0xFFFFFFFF);
print( drawInfo[ 0 ].textDraw );
print( drawInfo[ 1 ].textDraw );

drawInfo[ 1 ].textDraw = CreateTextdraw("Test text 2", 50, 50, 0xFFFFFFFF);
print( drawInfo[ 0 ].textDraw );
print( drawInfo[ 1 ].textDraw );
}

This will produce the follow output:
Quote
[SCRIPT]  (instance : 0x000000ABB94F38F0)
[SCRIPT]  (instance : 0x000000ABB94F38F0)
[SCRIPT]  (instance : 0x000000ABB94F12E0)
[SCRIPT]  (instance : 0x000000ABB94F12E0)
[SCRIPT]   ----
[SCRIPT]  (instance : 0x000000ABB94F38F0)
[SCRIPT]  (null : 0x0000000000000000)
[SCRIPT]  (instance : 0x000000ABB94F38F0)
[SCRIPT]  (instance : 0x000000ABB94F0EF0)
As you can see, the textdraw stored in the array on the first slot, will somehow duplicate itself on the second slot.
In my current script I'm deleting the stored textdraw for a player (e.g. slot 2), and recreate it with another text only showing it for player 2. This will remove the textdraw for anyone else, until someone else gets a redraw. That person gets the textdraw, the rest does not.

Since I want to draw around 3 textdraws for each player, I need to add 3 different members to the player class to get this to work. Instead of a simple array, which I can simply iterate over.

Any suggestions are appreciated :)
5
General Discussion / VC:MP Activity Monitor
« on February 20th, 2015, 08:09 PM »


This little website will allow you to view people's activity ingame.
It currently tracks LW, XE, EA and Sky-City. Information is accurate to the minute.
Front page is due to the massive amount of queries needed to calculate all data cached for 30 minutes.
Clan info per server is due to the same reason cached for 5 minutes.

I originally made this mainly for Vice Underdogs to view information about players that applied to our clan, but I figured I might as well make it open to the rest of the community :).

Please let me know if you have any suggestions or found any bugs.

Click me if you missed the big gray link at the top.