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 - NewK

#31
During this time of the year VCMP development is usually not very active, but I wouldn't really call VCMP "dead" as a whole, seeing as there's new servers being created by the community, support for new programming languages being added by non-vcmp developers, questions being asked on this forum, etc...

This happens every year. And every year people say "VCMP is dead". I've been hearing this same thing ever since I started playing VCMP. And at one point that was mostly true, but it's no longer the case in my opinion. We get yearly updates, usually released during the summer (august/july), which is probably the best we can ask for, for a free mod that's being  developed by (mostly) 2 developers at the moment. It's just a bit sad because we can all see alot of potential and when we look at samp and mta, we see everything that vcmp could be, and seeing all that they've achieved, we can't help but think why is it that we can't achieve a similar set of features or popularity.

This has been discussed before, but the conclusion we always come to is that there needs to be more people involved with vcmp development, otherwise it's always going to be this way unfortunately.
#32
Community Plugins / Re: Javascript plugin
Jan 02, 2019, 09:43 PM
New update released: Download here and put javascript-plugin.jar on the server root directory ( replace the old one ) and integration-javascript.jar on the lib folder (replace the old one) or just download everything from the home page
  • CoordBlipInfo properties are now writable
  • Added a new .pos property to CoordBlipInfo (both .pos and .position can be used)
  • Fixed server.getCoordBlipInfo(index) creating a new CoorBlipInfo when passed an index of a non existent CoordBlip
#33
Community Plugins / Re: Javascript plugin
Dec 26, 2018, 04:35 AM
Module release: Discord
Documentation

A discord module to interact with a discord bot from your vcmp server. Can be used to send messages to a specific discord channel or private messages to a specific discord user inside the servers that the bot is in. At the moment the module implements 3 events:
  • onReady ( when the connection to the bot is opened)
  • onMessage (when someone sends a message to a channel )
  • onPrivateMsg (when someone sends the bot a private message )
You can check the documentation for more information on how to implement those events. More events will be added in the future.
#34
Community Plugins / Re: Javascript plugin
Dec 20, 2018, 05:26 AM
A new version of the plugin has been released. The plugin has gone through a major refactor and now uses a module loader to load each module individually. What this means is that all modules have been removed from the plugin, as in, the plugin no longer contains module specific code in it. Each module is now an individual .jar file that you just have to download and drop into the /modules/ folder. As a result, the plugin is now "thinner" and lighter which means faster startups and no unnecessary resource usage.

Make sure you download the new version from the website. After downloading the plugin, check the sidebar for "modules" and download the modules that you need and extract the content of the each module zip file to the "modules" folder (some modules come with a lib folder, this should go inside the "modules" folder too).


Module release: Websockets
Documentation

With the release of this new plugin version, a new websockets module has also been released. This module allows you to create websocket clients and servers from your script. Giving you the ability to interact with any other websocket server or client running elsewhere. All of this is done in an asynchronous lagg-free manner using the event loop model. A few use cases for this module would be having a 2-way communication with the browser, or for example connecting multiple VCMP servers to eachother, as in, you could type in chat while you are inside server #1 and make your messages appear on your 2nd and 3rd server as if you were inside those servers too.

Here's a demo I created that showcases a 2-way browser-->server, server-->browser communication where I send messages both ways in real time.

The code for that example is as follows:
index.html
<html>
<body>

    <input id="userInput" type="text">
    <button onclick="ws.send(document.getElementById('userInput').value)">Send</button>

    <div id="message">Connecting..</div>

    <script>
        function showMessage(text) {
            document.querySelector('#message').innerHTML = text;
        }

        var ws = new WebSocket('ws://localhost:3030/general');

        ws.onopen = function () { showMessage('Connected!'); };
        ws.onclose = function () { showMessage('Lost connection'); };
       
        ws.onmessage = function (msg) {
            document.querySelector('body').innerHTML += "<p> " + msg.data + " </p>"
        };
    </script>
</body>
</html>

VCMP Server main.js:
"use strict"

var ws = require("websockets");
var socketServer = null;

function onServerInitialise() {

// starts up the websocket server
    var serverEvents = {
        onMessage: function (conn, msg, uri, address) {
            server.sendClientMsg(null, new Colour(93, 193, 89), "(WEB): " +msg)
        }
    };
    socketServer = ws.startServer("/general", 3030, { events: serverEvents });
}

function onPlayerMessage(player, message) { //when a player types in chat
    socketServer.broadcast("/general", player.name + ": " + message);
    return true;
}
#35
Community Plugins / Re: Javascript plugin
Dec 03, 2018, 12:39 AM
Documentation is now hosted at https://newk5.github.io/jsdocs/
#36
Sorry your replies are just funny, it would seem you don't understand what stealing is, or even the difference between "getting" and "making" so I don't think you'll understand anything else I say. Good luck with your server.
#37
Quote from: MEGAMIND on Sep 23, 2018, 03:19 PMe.g i have a heal cmd someone makes it same as mine now there u go its called stealing
grow up please
But you didn't make it the same as mine, you said it yourself, you got it directly from my server ;D

Quote from: MEGAMIND on Sep 23, 2018, 02:30 PMalready told u that got it from CTF
You didn't "make" anything lol
#38
lol I don't care about you making a CTF, I'm just making fun of you because you can't make your own flags and mapicons so you had to steal ;D
#39
"It's not stealing because it's easy to steal" nice logic.

Just because it's easy to steal, that doesn't mean it's not stealing lol
#40
Quote from: MEGAMIND on Sep 23, 2018, 07:08 AM
Quote from: NewK on Sep 22, 2018, 08:26 PMOh nice looking flags man, those look familiar to me, where did you get those ? ::)
Got From CTF Server But Modified Them ( colors )
Ah so you stole them from my server, stole the mapicons aswell, changed the colors and decided to use them on your server. Nice of you to atleast admit to stealing it publicly.
#41
Oh nice looking flags man, those look familiar to me, where did you get those ? ::)
#42
Quote from: Thunder_Bird on Sep 17, 2018, 03:11 AM
Quote from: Thunder_Bird on Sep 16, 2018, 05:58 PMwhy you so gay? why so ugly brain?why delete me video? im post any hack link? advertisement not aloowed? youtube not aloooowed? answer me instead of deleting this too.
man you are a fuck, ppl will download the hack anyways whenever it will release , I just wanted to advertise it :(
#poorcrueladmen
The next reply I see of you trying to flame anyone or starting pointless arguments, I'm going to ban you of this forum. Consider this your only warning.
#43
Why would think that advertising your hacks on the official VCMP forum would be allowed? This forum is not meant to help you promote your hacks in any way. Regardless of whether you post a direct download link or not. You just want people to contact you to get the download link and we're not going to help you do that here.
#44
Well I don't think there's anything wrong with the plugin since it works on my netbeans project.

If you compiled the netbeans project and you're absolutely sure that RCNRRemastered.jar is on :C:\Users\NicusorN5\Desktop\RomaniaCopsNRobbersRemastered\RCNRRemastered\dist\And that jvm.dll is on:
C:\Program Files\Java\jre1.8.0_151\bin\server\Then make sure that:
  • You are using the correct plugin for your OS architecture. Is your OS 32bit or 64bit?. Make sure to use the correct plugin for each
  • You are using windows EOL's on the server.cfg and javaplugin.properties files. Since you're on windows you should make sure it's using \r\n EOL. You can use notepad++ to do the conversion:
#45
Now that I think about it, I don't think you can use quotes on the classPath. Try to remove the quotes and if that doesn't work, change the folder name of "Romania Cops N Robbers Remastered" and remove all the spaces, and then change it on the properties file like:

classPath=C:\Users\NicusorN5\Desktop\RomaniaCopsNRobbersRemastered\RCNRRemastered\dist\RCNRRemastered.jar
Also check if the jvm.dll file exists on the "C:\Program Files\Java\jre1.8.0_151\bin\server\jvm.dll" directory and if the RCNRRemastered.jar actually exists on the directory you specifed on classPath.