Raised This Month: $319 Target: $400
 79%   Almost there!

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: kadet.89
Forum: Extensions 10-24-2021, 11:22
Replies: 854
Views: 520,962
Posted By kadet.89
Re: DHooks (Dynamic Hooks - Dev Preview)

Dragokas, thanks, it works.

I have another question.
I read and then change int argument #5:

PrintToServer("Old value: %i", index, DHookGetParam(hParams, 5)); //"Old value: 38"...
Forum: Extensions 10-24-2021, 10:49
Replies: 854
Views: 520,962
Posted By kadet.89
Re: DHooks (Dynamic Hooks - Dev Preview)

Can somebody help me with extracting ip address from a detoured function?
int __usercall [email protected]<eax>(long double [email protected]<st0>, int a2, int a3, void *src, int a5, int a6) // The function from IDA...
Forum: Scripting 09-24-2021, 05:59
Replies: 9
Views: 1,865
Posted By kadet.89
Re: CreateEntityByName

"round_start" event has a problem in CS: S, CS:GO and probably in other Source games. Sometimes it is fired before entities are clean-up, thus all entities created in the post hook may be deleted...
Forum: Extensions 09-04-2021, 16:27
Replies: 23
Views: 11,787
Posted By kadet.89
Re: [EXTENSION] NPCs in CS:S (extended)

Here are windows signatures for the functions:
SetEnemy
CAI_ScriptedSchedule::StartSchedule -> "Scripted schedule %s specified an invalid enemy %s\n" -> CAI_BaseNPC::SetEnemy

.text:1004EC70 55 ...
Forum: General 08-11-2021, 17:07
Replies: 4
Views: 761
Posted By kadet.89
Re: How to change server version?

To let players with any version join the server this function can be hooked:
INetChannel::ProcessPacket and client version in C2S_CONNECT should be changed to the server's version. That will work if...
Forum: Extensions 08-09-2021, 16:32
Replies: 23
Views: 11,787
Posted By kadet.89
Re: [EXTENSION] NPCs in CS:S (extended)

Bearfade, I can try to find the signatures, PM me the latest versions of server.so, server.dll, engine.so and engine.dll
Forum: Scripting 08-06-2021, 04:20
Replies: 12
Views: 2,008
Posted By kadet.89
Re: How to replace the entire map entity text?

On My CS:GO server I use stripper to craet weapon_hegrenade. At the moment it works. The problem on your side might be caused by a weapon cleaning plugin or, as it was mentioned, the engine might not...
Forum: General 07-26-2021, 13:29
Replies: 11
Views: 1,632
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,632
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,632
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,632
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: 560
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: 1
Views: 828
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,632
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,632
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: 779
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: 779
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: 726
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: 726
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: 726
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: 726
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: 726
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: 726
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: 726
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: 3,535
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...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 07:20.


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