Raised This Month: $51 Target: $400
 12% 

Accelerator - Take back control


Post New Thread Closed Thread   
 
Thread Tools Display Modes
stickz
Senior Member
Join Date: Oct 2012
Location: Ontario, Canada
Old 07-14-2015 , 19:30   Re: Accelerator - Take back control
#301

Quote:
Originally Posted by Lannister View Post
Well lets read your crash report. What do you think this means?
Code:
3	sdktools.ext.2.csgo.dll!TeleportEntity [vnatives.cpp:369 + 0xf]
Could it be that a plugin with the TeleportEntity() function is causing your server to crash?

What do you think the easiest way to find this plugin would be?
Answer: Backup sdktools.ext.2.csgo.dll, delete it, reboot your server. It will be one of the plugins which has an error.

What could an entity possibly be?
Answer: A physical object. That object may have some sort of shape, size, colour or any other property.

It could even be teleporting something a like player. (an entity) or a chair. (an entity) or a gun. (an entity) or a bullet. (an entity)

Last edited by stickz; 07-14-2015 at 19:54.
stickz is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 07-15-2015 , 20:39   Re: Accelerator - Take back control
#302

Hello, may be this? i use this to display a logo on players head, it's the only thing that comes to my mind when you said "teleporting something to a player" and, i'm really sorry if i look way to ignorant with this issue, i'm just trying to find help! thanks!

Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

#define OVERLAY "materials/sprites/admin.vmt"  //replace the name of file you going to use here
#define OVERLAY_2 "materials/sprites/admin.vtf" //replace the name of file you going to use here

new bool:g_bPrecached = false;
new g_Models[MAXPLAYERS + 1] = {-1, ...};

public OnPluginStart()
{
    HookEvent("player_spawn", Event_PlayerSpawn);
    HookEvent("player_death", Event_PlayerDeath);
}

public OnMapStart()
{
    g_bPrecached = false;
    
    AddFileToDownloadsTable(OVERLAY);
    AddFileToDownloadsTable(OVERLAY_2);
    
    if(!PrecacheModel(OVERLAY)) {
        LogMessage("Cannot precache %s", OVERLAY);
        return;
    }
    
    g_bPrecached = true;
}

public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontbroadcast)
{
    if(!g_bPrecached)    return Plugin_Continue;
    
    new client = GetClientOfUserId(GetEventInt(event, "userid"));

    if(GetUserFlagBits(client) & ADMFLAG_GENERIC) {
        if(IsClientInGame(client) && IsPlayerAlive(client)) {
            CreateTimer(0.1, Create_Model, client);
        }
    }
    
    return Plugin_Continue;
}

public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontbroadcast)
{
    if(!g_bPrecached)    return Plugin_Continue;
    
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    
    SafeDelete(g_Models[client]);
    g_Models[client] = -1;
    
    return Plugin_Continue;
}

public Action:Create_Model(Handle:iTimer, any:client)
{
    SafeDelete(g_Models[client]);
    g_Models[client] = CreateIcon();
    PlaceAndBindIcon(client, g_Models[client]);
}

CreateIcon()
{
    new sprite = CreateEntityByName("env_sprite_oriented");
    
    if(sprite == -1)    return -1;

    DispatchKeyValue(sprite, "classname", "env_sprite_oriented");
    DispatchKeyValue(sprite, "spawnflags", "1");
    DispatchKeyValue(sprite, "scale", "0.01");
    DispatchKeyValue(sprite, "rendermode", "1");
    DispatchKeyValue(sprite, "rendercolor", "255 255 255");
    DispatchKeyValue(sprite, "model", OVERLAY);
    if(DispatchSpawn(sprite))    return sprite;

    return -1;
}

PlaceAndBindIcon(client, entity)
{
    new Float:origin[3];

    if(IsValidEntity(entity)) {
        GetClientAbsOrigin(client, origin);
        origin[2] = origin[2] + 90.0;
        TeleportEntity(entity, origin, NULL_VECTOR, NULL_VECTOR);

        SetVariantString("!activator");
        AcceptEntityInput(entity, "SetParent", client);
    }
}

SafeDelete(entity)
{
    if(IsValidEntity(entity)) {
        AcceptEntityInput(entity, "Kill");
    }
}
Lannister is offline
stickz
Senior Member
Join Date: Oct 2012
Location: Ontario, Canada
Old 07-16-2015 , 14:31   Re: Accelerator - Take back control
#303

Quote:
Originally Posted by Lannister View Post
Hello, may be this? i use this to display a logo on players head, it's the only thing that comes to my mind when you said "teleporting something to a player"

Code:
PlaceAndBindIcon(client, entity)
{
    new Float:origin[3];

    if(IsValidEntity(entity)) {
        GetClientAbsOrigin(client, origin);
        origin[2] = origin[2] + 90.0;
        TeleportEntity(entity, origin, NULL_VECTOR, NULL_VECTOR);

        SetVariantString("!activator");
        AcceptEntityInput(entity, "SetParent", client);
    }
}
Well, did you try disabling that plugin to see if your server stops crashing? It definitely looks like that plugin has an TeleportEntity() function which matched the stack trace you posted.

I cannot say for sure that chunk of code is causing crashing, becuase I don't know. But there's reasonable evidence suggesting that's a very good guess.

Last edited by stickz; 07-16-2015 at 14:42.
stickz is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 07-17-2015 , 19:17   Re: Accelerator - Take back control
#304

Hello, sorry for the late reply, thanks alot for your help, i'll try disable this plugin and see if it crash, also i'll ask here if someone can fix this, if its possible to add the logo on players head after 1 second that the round started, because the crash always happend in the beggining and end of the round, so i think it will fix the issue.

Again, thanks alot for your help!
Lannister is offline
stickz
Senior Member
Join Date: Oct 2012
Location: Ontario, Canada
Old 07-18-2015 , 13:42   Re: Accelerator - Take back control
#305

Quote:
Originally Posted by Lannister View Post
also i'll ask here if someone can fix this, if its possible to add the logo on players head after 1 second that the round started, because the crash always happend in the beggining and end of the round, so i think it will fix the issue.
I don't think you'll get any replies in this off topic thread. Most people wouldn't even be willing to show you what I did. If this is causing crashing, the best thing you can do is disable it and be done with it.

The whole point of this was to show you how to debug and figure out what plugin is causing crashing. But it clearly didn't work as you're immediately jumping to the next thing. You just want someone to hand you a fix to all your problems, which isn't going to happen. If this plugin isn't causing crashing, at least you got all the required information above to figure out what is.

Last edited by stickz; 07-18-2015 at 14:06.
stickz is offline
341464
Senior Member
Join Date: Dec 2010
Location: GetClientEyePosition
Old 07-23-2015 , 02:42   Re: Accelerator - Take back control
#306

I've also been getting crazy TeleportEntity crashes and i can't figure out what's causing it. Getting real obnoxious.
__________________
341464 is offline
Send a message via Skype™ to 341464
Dropsu
Junior Member
Join Date: Jul 2015
Old 09-19-2015 , 07:51   Re: Accelerator - Take back control
#307

Hello, I have a problem with Accelerator (CSGO).

After crash generate only empty file
Code:
>>> UPLOADING /home/data/foldername/numbers.csgo128/csgo/addons/sourcemod/data/dumps/2b89f504-6e4a-4af9-3aadf530-6f064bf5.dmp
>>> UPLOAD FAILED
>>> UPLOADED 1 CRASH DUMPS
Spoiler


Please help :<.

Last edited by Dropsu; 09-19-2015 at 08:04.
Dropsu is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 09-23-2015 , 10:25   Re: Accelerator - Take back control
#308

https://crash.limetech.org/ef273bwtuc4p engine.so!Sys_Error_Internal(bool, char const*, char*) + 0x112
https://crash.limetech.org/7pxeiybx5mvq server.so!CGamePlayerEquip::EquipPlayer(CBase Entity*) + 0xc

What are causing this?

Last edited by iGANGNAM; 09-23-2015 at 10:30.
iGANGNAM is offline
Dropsu
Junior Member
Join Date: Jul 2015
Old 09-25-2015 , 13:19   Re: Accelerator - Take back control
#309

Today, finally accelerator began to work

I have 2 different errors:
1. https://crash.limetech.org/pjpb5abljh7x
https://crash.limetech.org/zyeqoftc6nfp
This occurred 2 times in the afternoon

2. https://crash.limetech.org/rukzov33cmmk
This occurred 1 times in the morning


Someone can point me to that function may cause these errors?

Last edited by Dropsu; 09-25-2015 at 13:23.
Dropsu is offline
utaker
Senior Member
Join Date: Dec 2013
Old 09-27-2015 , 02:59   Re: Accelerator - Take back control
#310

crash limetech website isnt generating the results

Quote:
This crash is pending processing, try again later.
Uploaded
September 26, 2015 22:28
utaker is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode