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 - ysc3839
16
Scripting and Server Management / Re: how to use Livemap plugin
« on April 9th, 2019, 03:24 AM »
@umar4911 #2 No detailed information. I guess that plugin is deprecated.
17
Scripting and Server Management / Re: how to use Livemap plugin
« on April 8th, 2019, 10:02 PM »
Where's that plugin? I can't find that on this forum.
18
Support / Re: The masterlist was in an unexpected format
« on March 27th, 2019, 05:56 PM »
@[SK]Kelvin #2 Seems nothing wrong.
19
Support / Re: The masterlist was in an unexpected format
« on March 25th, 2019, 08:25 PM »
Open http://master.vc-mp.org/servers/ in your browser and take a screenshot.
20
Support / Re: Banned from vc-mp forum
« on March 22nd, 2019, 02:37 AM »
Maybe the IP address you using is banned. Unfortunately It seems that I can't unban that IP. So wait @Stormeus or try using proxy.
21
Support / Re: Banned from vc-mp forum
« on March 21st, 2019, 07:07 AM »
Can you post a screenshot?
22
Script Showroom / [GAMEMODE] Python Demo
« on March 15th, 2019, 12:57 PM »
Introduction
This is a demo gamemode for my Python plugin. Working in progress.
https://github.com/ysc3839/vcmp-python-demo

Version 1.0 have settings system (settings.yaml) and a teleport system. Vehicles position are from vl8-pb400 and teleports position are by myself.
This script works with 04rel004-04rel006 (server version v23-v30). Tested with Python 3.6 x64 on both Windows 10 and Ubuntu 18.04.

Deploy instruction
Clone or download the source code first.

Download required binaries
Install required Python package
This project uses pipenv to manage packages.
Install pipenv and run pipenv install inside project folder to install packages.
After installing packages. Run pipenv shell and then start the server.
If you are using Windows, you need to use run_server.bat to start the server. This script sets PYTHONHOME environment variable because Python can not locate virtualenv location. This issue does not exist on Linux so you can start the server directly.
23
Community Plugins / Re: Python plugin
« on March 13th, 2019, 04:44 PM »
@DarkRaZoR^ #11 Yes it's possible.
VCMP has built-in functions for plugin communication. However the squirrel plugin doesn't implement such function.
So available options are:
  • Modify squirrel plugin to implement this function.
  • Make another plugin as squirrel extension to implement this function.
  • Use another communication mechanism. For example: network.
I think the last one is easiest. There's a socket plugin for squirrel.
24
Community Plugins / Re: Python plugin
« on March 13th, 2019, 03:23 PM »
Version 1.0.5:
  • Fix error message being truncated.
Download: https://github.com/ysc3839/vcmp-python-plugin/releases/tag/v1.0.5
25
General Discussion / [Suggestion] Re: "Arrow target"
« on March 11th, 2019, 07:18 PM »
@rww #1
https://bugs.vc-mp.org/browse/VCMP-50
Add floating arrow markers for entities like players, vehicles and objects
26
Scripting and Server Management / Re: Hashing plugin in Linux
« on March 8th, 2019, 07:27 PM »
I merged two topics.

And here is a Squirrel implemention of sha256.
https://gist.github.com/ysc3839/fae61e880be9368b5154b42ce4d2d879
I don't know if there is any bug. Still need more tests.

Credit to B-Con for original code.

Edit: And sha1. https://gist.github.com/ysc3839/187c3bf6f27bcfc1fccd783bc9b717fc
27
Scripting and Server Management / Re: Hashing plugin in Linux
« on March 8th, 2019, 10:34 AM »
You can compile the plugin on your server since the plugin is open-source. This should fix that issue.
28
Community Plugins / Re: Python plugin
« on March 4th, 2019, 06:57 PM »
Add python type hints stub files (.pyi).
https://github.com/ysc3839/vcmp-python-plugin/commit/4ae6ea2c5e6c9e29621f1de0927b9ff7bf820047

IDEs or editors can read type informations from these files and will not show an "unable to import" error.
If you are using vscode, you need to disable "python.jediEnabled" because jedi ignores .pyi files, or rename .pyi to .py.
29
@Sebastian #6
I'm always there. :D
30
That's why I made python plugin. Because python has lots of useful libraries. For example discord library: https://github.com/Rapptz/discord.py

If you are using squirrel, it's better to make a external app to forward message to discord.