Raised This Month: $28 Target: $400
 7% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: kadet.89
Forum: General 07-26-2021, 13:29
Replies: 11
Views: 1,103
Posted By kadet.89
Re: MySQL connection loss leads to crashes

I tested the hibernation state, here it is not the reason. The crash happens independently on whether the server is in hibernation state or not.



That's a matter of opinion. Mine is that...
Forum: General 07-26-2021, 10:18
Replies: 11
Views: 1,103
Posted By kadet.89
Re: MySQL connection loss leads to crashes

I doubt hibernattion has something to do with this problem, crash happens indepandently on player count. If I run the 2 plugins while beeing on the server, there is no hibernation and the crash still...
Forum: General 07-25-2021, 08:50
Replies: 11
Views: 1,103
Posted By kadet.89
Re: MySQL connection loss leads to crashes

I run the test with only testDB.smx. On my local server it is enough to use only one MySQL-using plugin to cause this crash.
To make sure only testDB uses MySQL, I remove all plugins but testDB.smx...
Forum: General 07-25-2021, 08:12
Replies: 11
Views: 1,103
Posted By kadet.89
Re: MySQL connection loss leads to crashes

I investigated the problem and found out that, the crashes happen after any of the plugins using MySQL are reloaded. Looks like after a plugin is reloaded, it can't any longer exectue SQL queries in...
Forum: Scripting 07-17-2021, 12:23
Replies: 1
Views: 434
Posted By kadet.89
[CS:GO] Change ping place name

There is a ping entity in CS:GO info_player_ping. It is created by pressing mouse wheel.
This entity has a netprop string m_szPlaceName. Which contains the name of the place where the entity is...
Forum: Coding MM:S Plugins & SM Extensions 07-15-2021, 18:01
Replies: 0
Views: 204
Posted By kadet.89
[CS:GO] Invalid arguments in hooked function

I'm trying to hook this function:
INetChannel::ProcessPacket( struct netpacket_s* packet, bool bHasHeader )

Here is my code:
INetChannel* pNetChan =...
Forum: General 07-08-2021, 10:16
Replies: 11
Views: 1,103
Posted By kadet.89
Re: MySQL connection loss leads to crashes

Metamod:Source version 1.12.0-dev+1147
Plugin interface version: 16:14
SourceHook version: 5:5
Loaded As: Valve Server Plugin
Compiled on: Dec 27 2020 18:13:59
Built from:...
Forum: General 07-08-2021, 09:06
Replies: 11
Views: 1,103
Posted By kadet.89
MySQL connection loss leads to crashes

I have a plugin which connects to a remote MySQL server and makes queries.
It works fine as long as there is no connection problem. When something happens on the MySQL server or between the server...
Forum: Scripting 07-04-2021, 09:57
Replies: 4
Views: 607
Posted By kadet.89
Re: [CS:GO] Detect if a player can't move because of freeze time

Thanks for your advice, round_freeze_end should work. I will use it if I don't find something more reliable.
I need to implement the same algorithm in an extension and getting m_bFreezePeriod would...
Forum: Scripting 07-04-2021, 09:25
Replies: 4
Views: 607
Posted By kadet.89
[CS:GO] Detect if a player can't move because of freeze time

I'm trying to identify if a player can't move because of freeze time. For some reasons I can't use round state, so instead I want to get a "flag" or a variable wich blocks player movement during...
Forum: Scripting 06-20-2021, 13:19
Replies: 11
Views: 613
Posted By kadet.89
Re: [CS:GO] Crash after giving weapon_healthshot

Thanks for your version, I checked it and the server still randomly crashes.

I created a plugin which sets all m_hMyWeapons slots with weapons which are about to be deleted to null. It doesn't...
Forum: Scripting 06-17-2021, 09:29
Replies: 11
Views: 613
Posted By kadet.89
Re: [CS:GO] Crash after giving weapon_healthshot

I'm away now, can't share the code. But it's as simple as possible.
There is a player spawn hook with a 5sec timer. In the timer callback function the player (if still exists) is given 1 such item....
Forum: Scripting 06-17-2021, 06:13
Replies: 11
Views: 613
Posted By kadet.89
Re: [CS:GO] Crash after giving weapon_healthshot

I got new logs:

L 06/17/2021 - 09:33:08: [TRIPMINES] Weapon classname: flashbang_projectile handlindex (reference): 471007374 index: 142 serial number: 7187 entry index 142 player: Derby
L...
Forum: Scripting 06-16-2021, 14:27
Replies: 11
Views: 613
Posted By kadet.89
Re: [CS:GO] Crash after giving weapon_healthshot

"game_type" = "0"
"game_mode" = "0"
Iteration code is written in c++:

void CPlayer::OnPlayerRunCmd(CUserCmd* /*cmd*/, void* /*moveHelper*/)
{
for(int i = 0; i != MAX_WEAPONS_CSGO; ++i)
...
Forum: Scripting 06-16-2021, 13:32
Replies: 11
Views: 613
Posted By kadet.89
Re: [CS:GO] Crash after giving weapon_healthshot

They are given in 5 seconds after spawn.
Forum: Scripting 06-16-2021, 13:04
Replies: 11
Views: 613
Posted By kadet.89
Re: [CS:GO] Crash after giving weapon_healthshot

Here is the place where it crashes:
void CBasePlayer::UpdateClientData( void )
{
....
for ( int i = 0; i < WeaponCount(); i++ )
{
if ( GetWeapon(i) )
GetWeapon(i)->UpdateClientData(...
Forum: Scripting 06-16-2021, 04:41
Replies: 11
Views: 613
Posted By kadet.89
[CS:GO] Crash after giving weapon_healthshot

I have a plugin which sometimes gives a weapon_healthshot item to a random player :
int item = GivePlayerItem(client, "weapon_healthshot");
A few seconds after using this item my server crashes in...
Forum: Coding MM:S Plugins & SM Extensions 06-09-2021, 15:14
Replies: 2
Views: 2,982
Posted By kadet.89
Re: CSGO correct usage of manual hooks

I keep experiencing this crash in 5 of my extensions. I tried to dig deeper into this problem and found out that the crash only happens if an extension with either OnPlayerRunCmd or OnPostThink hooks...
Forum: Metamod:Source Plugins 06-09-2021, 07:40
Replies: 1,779
Views: 969,421
Posted By kadet.89
Re: Stripper:Source (Updated 2011-04-15)

I have a suggestion to add 1 more command - stripper_reload to reload map configuration files. With this command it would be possible to apply fixes without reloading maps. The results would be...
Forum: Coding MM:S Plugins & SM Extensions 05-30-2021, 11:55
Replies: 1
Views: 635
Posted By kadet.89
[CS:GO] Call a function with variable argument

I need to call this function:
void CBaseServer::SetReservationCookie( uint64 uiCookie, char const *pchReasonFormat, ... )

I have this working detour:...
Forum: Coding MM:S Plugins & SM Extensions 05-27-2021, 16:41
Replies: 0
Views: 496
Posted By kadet.89
Declare one hook in multiple cpp files

I need to hook IServerEntity::SetModelIndex founction in multiple cpp files.
I do it this way in the first file:
SH_DECL_HOOK1_void(IServerEntity, SetModelIndex, SH_NOATTRIB, 0, int)
and in the...
Forum: Coding MM:S Plugins & SM Extensions 05-27-2021, 16:28
Replies: 1
Views: 826
Posted By kadet.89
Re: Get player info from CTFPlayer *

In case somebody needs it. The pointer can be cast to IServerEntity. This interface has a method to get the entity index:
(IServerEntity -> IServerUnknown -> IHandleEntity -> GetRefEHandle)
const...
Forum: General 05-21-2021, 16:41
Replies: 3
Views: 635
Posted By kadet.89
Re: [CS:GO] SQL_TQuery, script execution timed out

Rohanlogs, Thank you, your advice was helpful. The server doesn't crash anymore.
Forum: General 05-13-2021, 13:15
Replies: 3
Views: 635
Posted By kadet.89
[CS:GO] SQL_TQuery, script execution timed out

I experience "Script execution timed out" on my server every day. Most often it ends up in a sequence of server crashes with "SIGABRT" reason (usually about 3-5 crashes in a row).

Here is an...
Forum: Extensions 05-12-2021, 04:52
Replies: 842
Views: 498,793
Posted By kadet.89
Re: DHooks (Dynamic Hooks - Dev Preview)

After updating to the latest version of dhooks I have regular random crashes. According to accelerator stacks the crashes are related to dhooks:


Thread 0 (crashed)
0 dhooks.ext.so + 0x70e9
...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 19:14.


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