Major Server Update Released (April 25)

Started by maxorator, Apr 25, 2016, 07:47 PM

Previous topic - Next topic

Stormeus



.

Quote from: leftspace on May 04, 2016, 02:48 AMWhy do not you let me develop

I'm gonna tell you something that most people won't, because they're too polite. However, I don't know the meaning of politeness. Which is why I'm able to tell you that you won't get any source of anything as long as you keep being genuine retard.
.

Thijn

Quote from: . on May 04, 2016, 03:03 AM
Quote from: leftspace on May 04, 2016, 02:48 AMWhy do not you let me develop

I'm gonna tell you something that most people won't, because they're too polite. However, I don't know the meaning of politeness. Which is why I'm able to tell you that you won't get any source of anything as long as you keep being genuine retard.
I don't think acting normal is getting you the source code either, to be fair.

rulk

Crashed with address 688D0124

Not sure if this is the right place to post this but i was doing some client side scripting.
Crash Log

What were you doing

I was adding a button using the following code
Client Side Script
We are all god's children.

KAKAN

#95
Quote from: rulk on May 04, 2016, 10:51 AMCrashed with address 688D0124

Not sure if this is the right place to post this but i was doing some client side scripting.
Crash Log

What were you doing

I was adding a button using the following code
Client Side Script
try this:
// Create the Start Button
StartButton <- GUIButton( VectorScreen( 235, 440 ), VectorScreen( 170, 20 ), Colour( 255, 255, 100 ), "Play" );
StartButton.AddFlags( GUI_FLAG_MOUSECTRL ); //This might fix the problem.
GUI.SetMouseEnabled( true );

function GUI::ElementClick( element, mouseX, mouseY )
{
if ( element == ::StartButton )
{
// Delete Logo
::Logo = null;

// Delete the Start Button
::StartButton = null;

// Disable mouse capture
this.SetMouseEnabled( false );
}
}
oh no

rulk

Thanks, I think the crash is caused by trying to delete the button instance within the ElementClick event, because if I comment that line out, I don't get the crash.

// Delete the Start Button
::StartButton = null;
We are all god's children.

rulk

I tried the sample you provided and getting different crashes now hehe

crash 68570124
We are all god's children.

Pun1sh3r

Quote from: ysc3839 on May 03, 2016, 09:47 AMTry this.
local veh = CreateVehicle
Stats[player.ID].Vehicle = veh.ID;
player.Vehicle = veh;

Thanks, atleast the Vehicle gets deleted now but somehow I cant enter the Vehicle?
Client Debug Message tells me "[VEHICLE] Denied enter: vehicle 1, dat 15, flag 1, obj 18, err 70"
cant enter the Vehicle with using button F or player.Vehicle function.

ysc3839

I saw the new plugin API. This coding style is good! I like it! :D

ysc3839

That's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)

Thijn

Quote from: ysc3839 on May 07, 2016, 03:47 PMThat's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)
Works fine here. What are you having issues with? Show some code.

ysc3839

Quote from: Thijn on May 07, 2016, 05:22 PM
Quote from: ysc3839 on May 07, 2016, 03:47 PMThat's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)
Works fine here. What are you having issues with? Show some code.
I decompile the sqlite plugin and found that GetPluginExports has two arguments. But in the plugin.h it's three.

maxorator

Quote from: ysc3839 on May 08, 2016, 03:09 AM
Quote from: Thijn on May 07, 2016, 05:22 PM
Quote from: ysc3839 on May 07, 2016, 03:47 PMThat's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)
Works fine here. What are you having issues with? Show some code.
I decompile the sqlite plugin and found that GetPluginExports has two arguments. But in the plugin.h it's three.
This is from the plugin.h in the repo which I linked in the first post:
/* GetLastError: vcmpErrorNoSuchEntity */
const void** (*GetPluginExports) (int32_t pluginId, size_t* exportCount);

ysc3839

Quote from: maxorator on May 08, 2016, 09:39 AM
Quote from: ysc3839 on May 08, 2016, 03:09 AM
Quote from: Thijn on May 07, 2016, 05:22 PM
Quote from: ysc3839 on May 07, 2016, 03:47 PMThat's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)
Works fine here. What are you having issues with? Show some code.
I decompile the sqlite plugin and found that GetPluginExports has two arguments. But in the plugin.h it's three.
This is from the plugin.h in the repo which I linked in the first post:
/* GetLastError: vcmpErrorNoSuchEntity */
const void** (*GetPluginExports) (int32_t pluginId, size_t* exportCount);
It's different from the VCMP.h in stormeus's 0.4 squirrel repo.