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

#16
@umar4911 #2 No detailed information. I guess that plugin is deprecated.
#17
Where's that plugin? I can't find that on this forum.
#18
Support / Re: Banned from vc-mp forum
Mar 22, 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.
#19
Support / Re: Banned from vc-mp forum
Mar 21, 2019, 07:07 AM
Can you post a screenshot?
#20
Script Showroom / [GAMEMODE] Python Demo
Mar 15, 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.
#21
Community Plugins / Re: Python plugin
Mar 13, 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.
#22
Community Plugins / Re: Python plugin
Mar 13, 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
#23
@rww #1
https://bugs.vc-mp.org/browse/VCMP-50
Add floating arrow markers for entities like players, vehicles and objects
#24
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
#25
You can compile the plugin on your server since the plugin is open-source. This should fix that issue.
#26
Community Plugins / Re: Python plugin
Mar 04, 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.
#28
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.
#30
Support / Re: Vcruntim140.dll
Sep 20, 2018, 09:45 AM
Download and install this https://aka.ms/vs/15/release/vc_redist.x86.exe . Don't use a dll from Internet, that may cause problem.