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 - EK.IceFlake
1
Support / Re: Banned from vc-mp forum
« on March 22nd, 2019, 09:27 AM »
Quote from umar4911 on March 22nd, 2019, 09:15 AM
Quote from ysc3839 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.
According to flake, this happened because I used mobile data. Someone shared hacks on the forum using mobile data and I also accessed from using mobile data. Due to the old one banned, my account was also IP banned + my device banned (MAC address).
You can't be banned as a result of your MAC address on an Internet site.
2
It's not a bug. IO functions are removed for security purposes.
3
Support / Re: Camlook back
« on December 31st, 2018, 11:54 AM »
Change CamLook to
Code: [Select]
<CamLook x="-1075.53" y="-87.1977" z="11.3938"/>
4
General Discussion / Re: Windows 10 VC:MP Problems, please help
« on November 11th, 2018, 02:06 PM »
Try toggling windowed mode.
5
Support / Re: Connection problem
« on November 10th, 2018, 05:46 PM »
Quote from Athanatos on November 10th, 2018, 05:32 PM
`Connection success. Loading server info... `

Lmao that is not an error, are you sure you posted the correct image? What is your ping to the server?
The OP likely means that this screen persists.
6
Off-Topic General / Re: Download Vcmp Scripts On Blog
« on October 21st, 2018, 04:21 PM »
The first two aren't scripts you're permitted to use. They're stolen pieces of hard work.
7
Support / Re: Windows 10 issues
« on October 14th, 2018, 12:37 PM »
Quote from Athanatos on October 14th, 2018, 09:21 AM
Anyway many servers don't allow the framerate limiter to be turned off.
Only LW's that I'm aware of. VKs, EC and VCCnR all allow disabling frame limiter.
8
Support / Re: Windows 10 issues
« on October 13th, 2018, 04:25 PM »
Quote from Milko on October 13th, 2018, 02:53 PM
Didn't work. Anything else?

/edit: I ran fraps to check the FPS and it showed 59-60 even when there was noticable FPS jitter.
Try updating your graphics drivers.
9
Support / Re: Windows 10 issues
« on October 13th, 2018, 01:34 PM »
Try /setconfig game_streammem 200.
10
Snippet Showroom / Re: Flakes Menu System [rel004]
« on October 6th, 2018, 08:08 AM »
Quote from D.VICTOR on October 6th, 2018, 01:28 AM
esta quebrada el link!!!
Fixed.

I don't recommend using this menu.
11
Server & Plugin Updates / Re: Server Update Released (2018-06-28)
« on September 18th, 2018, 03:40 PM »
Quote from Athanatos on September 18th, 2018, 03:13 PM
Stormeus you are the big idiot of the world  -_- cochs socher
12
Support / Re: Why am I a statue?
« on September 9th, 2018, 12:48 PM »
You probably have an invisible GUITextbox that has the player's focus.
13
Community Plugins / Re: .NET Core plugin for VCMP
« on August 29th, 2018, 10:42 AM »
Quote from Athanatos on August 29th, 2018, 10:02 AM
Is there any documentation  on the functions, or I have to look into the source code?
Right now, the project contains no documentation since it just exposes VCMP's SDK to .NET without any modifications. So for the time being, all functions behave exactly as they do with the plugin SDK. The plugin SDK contains documentation on which errors can occur from a function, but that's all. So for the time being, you'll have to look into the source code; either in C# (this project) or C++ (VCMP's SDK). You should also take a look at how marshaling is handled in .NET.

Bear in mind that this is just for the interoperability layer. The wrapper (which is currently in development) is extensively documented and exposes its own set of functions which are designed to make scripting easier and safer.

Plugin functions (implemented in C#)
Plugin callbacks (implemented in C#)
Plugin function signatures (implemented in C#)
Plugin callback signatures (implemented in C#)
VCMP SDK (implemented in C++)
.NET marshaling
14
Community Plugins / .NET Core plugin for VCMP
« on August 27th, 2018, 03:06 PM »
Intro
I've been wanting .NET support in VCMP since over two years now. Now that I have the skills to actually attempt something like this myself... well, I decided why not take a go at it. So put simply this is a collection composed of
  • a VCMP plugin that serves as a CoreCLR host;
  • a .NET interoperability library that basically serves as a VCMP .NET plugin SDK; and
  • hopefully, a wrapper that abstracts the SDK away and provides an experience that feels similar to using other .NET libraries, with OOP paradigms and stock .NET interfaces.
   

Repository
The main repository of this project can be found on GitLab. You can use this repository for
  • getting its source code;
  • getting pre-built versions of this project;
  • documentation about this project; and
  • reporting bugs and getting support about this project.

dotnet-vcmp repository

Additional support
You can get quick support about this plugin at Developers.cpp. However, if you want more complex or advanced support, you should create an issue on GitLab. This is so that I help not only you but any potential future users of this project as well.

Developers.cpp

Builds
Since I use Linux as my OS, it's not particularly easy for me to support Windows as well. All pre-built binaries you see here are tested on Linux 64 bit. The C# interoperability DLL will very likely work on Windows 64 bit as well. Do not try to use them on a 32 bit architecture - they will not work! I've made the source code platform-agnostic, so you can compile a 32 bit version yourself if you need to.

Note that you should add Fleka.DotnetVcmp.Interop as a Nuget dependency instead of using the DLL directly.


Compiling
The VCMP plugin uses the Meson build system. You need to have Meson installed in order to compile it. If you're on Windows, I recommend that you use Meson to generate a Visual Studio solution and compile it using Visual Studio.

Use dotnet build or dotnet publish to build a managed assembly.

Getting Meson
Meson compilation guide

Setting up a hello world application
  • Installing .NET Core
    .NET Core supports Windows and lots of Linux distributions. Since I can't comprehensively cover all of them here, you can find instructions at Microsoft's official website.
  • Creating a project
    Enter the directory where you want to create your project and execute one of the following commands depending on the language you want to use:
    • C#: dotnet new classlib --language C#
    • F#: dotnet new classlib --language F#
    • VB.Net: dotnet new classlib --language VB
  • Adding the interoperability project as a dependency
    If you open your .csproj file, you should find a root Project tag. You shouldn't have an ItemGroup tag inside it by default, so you should add it manually. If that tag already exists, you don't need to add it. Create a new tag inside ItemGroup with the following content:
    <PackageReference Include="Fleka.DotnetVcmp.Interop" Version="1.1.0" />
  • Creating your class
    You should find a .cs file in your project directory. Replace its contents with the specified test app class.
  • Compiling
    Execute dotnet publish in your project directory.
  • Setting up the server
    After placing the plugin in plugins/ and adding it to server.cfg, create a file called dotnet.json with the specified content. You might need to change clr.runtime-directory to point to your runtime's directory. If you're on Linux, you can execute locate libcoreclr.so to locate it. You can now create a directory called dotnet-assemblies/.
  • Installing your script
    To install your script, copy all DLL files from build/debug/netstandard2.0/publish/ to dotnet-assemblies/. Note that if you update your script, you'll have to execute dotnet publish and copy the generated DLLs again.

.NET core installation instructions
Hello world test app class
dotnet.json example configuration

Windows
If you have an adequate Windows software development installation (with Visual Studio, Meson and .NET Core) and you don't need lots of help with this, you can contact me to volunteer to test and compile this plugin on Windows.

Side note
I don't recommend using this right now for developing scripts. It just exposes VCMP's raw API with no error checking at all, and you can easily run into segmentation faults, crashes or silent failures and you won't even be able to figure out why. You should really only be using this with a wrapper. I'll hopefully release an official wrapper soon, and you can also create unofficial wrappers if you like.
15
Scripting and Server Management / Re: help with sell_exec
« on August 26th, 2018, 04:08 PM »
Quote from MEGAMIND on August 26th, 2018, 03:39 PM
Quote from EK.IceFlake on August 26th, 2018, 02:41 PM
Try running test.bat manually and seeing if it exits.
flake then y would i use shell_exec if i had to run it manually well what do u think if i try this will it work

Shell_exec("start test.bat"); 
?
Quote from Xmair on August 26th, 2018, 12:47 PM
Well if you want quick support, stackoverflow is the best place since VCMP has less people who can PHP good.
then y would i ask help from vcmp php guyss well few of em which ik better, so umm stachoverflow was useless too...
I mean try running test.bat and see if it exits at all. If it doesn't then there's the problem.