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
1
Support / Re: Vcruntim140.dll
« on September 20th, 10: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.
2
Community Plugins / Re: Python plugin
« on August 16th, 10:41 PM »
Version 1.0.4:
  • Python error message will log to server_log.txt.
  • The plugin will read "pymodule" from both "server.cfg" and "server32/64.cfg".
Download: Linux Windows
3
Community Plugins / Re: Python plugin
« on August 15th, 09:13 PM »
Added automated builds.
Linux Windows
No 32 bit builds for Linux.
4
Community Plugins / Re: Python plugin
« on August 14th, 05:19 PM »
1.0.2 released: download

This version compatible with 04rel004.
If you call new functions it will raise "NotImplementedError: server does not implement this function".
And new callbacks do not exist.

Changed output name to vcmp-python-plugin-cpyxx-(rel/dbg)(32/64).
5
ysc3839's VC:MP Launcher / Re: Preview 5
« on August 14th, 10:19 AM »
6
ysc3839's VC:MP Launcher / Re: Preview 5
« on August 12th, 04:34 PM »
Added automated builds for my browser. You can download automated builds here.
Automated builds do NOT have multi-language support.
7
Community Plugins / Re: Python plugin
« on August 9th, 07:13 PM »
Note: You may need to rename this plugin because the server can't take long filename.

31 characters length.
Code: [Select]
Plugin error >> dlopen() 'plugins/vcmp-python-plugin-cpy36-linux6.so' failed: plugins/vcmp-python-plugin-cpy36-linux6.so: cannot open shared object file: No such file or directory
Failed to load plugin: vcmp-python-plugin-cpy36-linux6
8
Community Plugins / Re: Python plugin
« on August 8th, 10:48 PM »
9
General Discussion / Re: Javascript plugin
« on August 8th, 09:57 PM »
That's not what I want. I made Python plugin because Python have much libraries. We can use them instead of write another one.
10
Off-Topic General / Re: what do these mean?
« on August 8th, 03:42 PM »
http://www.squirrel-lang.org/squirreldoc/reference/language/execution_context.html#variables
Quote
Global variables are stored in a table called the root table. Usually in the global scope the environment object is the root table, but to explicitly access the closure root of the function from another scope, the slot name must be prefixed with '::' (::foo).
If this code is in a class, '::' is necessary to access the global function.

Edit: It seems that I'm wrong?
Code: [Select]
class test_class
{
function print1()
{
::print("print1");
}

function print2()
{
print("print2");
}
}

function global_print1()
{
::print("global_print1");
}

function global_print2()
{
print("global_print2");
}

global_print1();
global_print2();

local test = test_class();
test.print1();
test.print2();
This code outputs:
Code: [Select]
[SCRIPT]  global_print1
[SCRIPT]  global_print2
[SCRIPT]  print1
[SCRIPT]  print2

This code shows differences:
Code: [Select]
class test_class
{
function print1()
{
::print("print1");
}

function print2()
{
print("print2");
}

function print(text)
{
::print("!!!" + text + "!!!");
}
}

function global_print1()
{
::print("global_print1");
}

function global_print2()
{
print("global_print2");
}

global_print1();
global_print2();

local test = test_class();
test.print1();
test.print2();
Code: [Select]
[SCRIPT]  global_print1
[SCRIPT]  global_print2
[SCRIPT]  print1
[SCRIPT]  !!!print2!!!
11
General Discussion / Re: Javascript plugin
« on August 7th, 10:18 AM »
I wonder how you deal with asynchronous event loop?
As for Python, it requires a blocking event loop to run async code.So I have to run it on another thread.
Another problem is if it's safe to call server function on another thread?
12
Scripting and Server Management / Re: Plugins now loading!
« on August 3rd, 09:28 PM »
Error 126 means file not found. I guess you lost some dependent DLL. Upload plugins with error and let me see.
13
ysc3839's VC:MP Launcher / Re: Preview 5
« on July 30th, 09:53 AM »
Some languages are need to be update. See https://www.transifex.com/ysc3839/vcmpbrowser/
14
@umar4911 #8 It's possible.
15
Scripting and Server Management / Re: Host for gta radios
« on July 23rd, 07:40 PM »
Github Pages or other free hosting? Be careful, you may receive DMCA notice and your account may be banned.