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.
« on February 12th, 2015, 08:17 AM »
Squirrel plugin. If I remove it, this error will not show.
Pressing ctrl-c on a clean server works fine. What plugins did you load?
If you want you can send me a zip in a PM that will reproduce this crash.
« on February 11th, 2015, 04:00 PM »
I used VS2013 to debug the server, it shows:
Then I click Continue, it shows:
First-chance exception at 0x765722CB (KernelBase.dll) in server.exe: 0x40010005: Control-C.
If there is a handler for this exception, the program may be safely continued.
Please fix this bug!
Unhandled exception at 0x0046420D in server.exe: 0xC0000005: Access violation reading location 0x000000EC.
« on February 11th, 2015, 02:45 PM »
The same issue. :(
There is no point to pass an angle in degrees since 0.4 supports radians.
function GetForwardPoint( pos, angle )
local x = pos.x + 1.0 * cos(angle) - 25.0 * sin(angle)
local y = pos.y + 1.0 * sin(angle) + 25.0 * cos(angle);
return Vector( x, y, pos.z );
Don't pass player's angle to GetForwardPoint function while driving the vehicle, because only vehicle's angle is changed!
GetForwardPoint( vehicle.Pos, vehicle.EulerAngle.z );
I haven't tested it.
« on February 10th, 2015, 08:29 AM »
But there's also something wrong...
Might give a bit more information: clicky
// [Ka]Juppi's func from http://forum.liberty-unleashed.co.uk/index.php/topic,398.0.html
// ported to fit your needs
function GetForwardPoint( pos, angle ) // you must pass an angle in degrees
local rad = angle * PI / 180; // we convert to radians
local x = pos.x, y = pos.y;
local x2 = x + 1.0 * cos(rad) - 25.0 * sin(rad); // we calculate
local y2 = y + 1.0 * sin(rad) + 25.0 * cos(rad);
return Vector( x2, y2, pos.z ); // return a vector
player.Pos = GetForwardPoint( FindVehicle(0) /* example */, FindVehicle(0).EulerAngle.z );
« on February 9th, 2015, 04:06 PM »
I want to spawn a ramp in front of player's vehicle. Can somebody tell me how to calculate the pos? Thanks! :)
C# can't compile a standard dll.
I wanted to make a plugin for vc-mp but I am (whatever you call it) in C++. I wondered if I can make plugins in c#, and if so, how can I port the headers from c++ to c#?
Help will be appreciated
I just want to shot the content of game window.
But what do you expect? To capture your whole desktop instead? LOLz ;D There's the Print Screen (Print Scr) keyboard button for that. Or a specialized software instead (there are plenty of them on google).
I wrote a plugin for my server, but it is private. I won't release it.
Someone should release an basic admin system, with few commands, logging with a password specified by owner. (like in 0.3, but redesigned for 0.4) :)