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

[ANY] HL2 items (1.5.2)


Post New Thread Reply   
 
Thread Tools Display Modes
blacklagoon
Senior Member
Join Date: Jun 2012
Old 09-20-2016 , 16:15   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #11

Thanks man i found
Code:
12	CServerTools::SetKeyValue(void *,char  const*,char  const*)
13	CServerTools::SetKeyValue(void *,char  const*,float)
14	CServerTools::SetKeyValue(void *,char  const*,Vector  const&)
I have CPhysExplosion::GetRadius(void) but i can't seem to get his offset off IDA since he has no xrefs.
Is there a kind person willing to find it or explain how i could get that?

Also DeflectPlayer is unfound in the server.so god valve... Any idea for replacement? Unless i'm doing something wrong !

And the fix for the EyeAngle give me this :
Code:
Program received signal SIGSEGV, Segmentation fault.
0xde0292bb in UTIL_FindDataMapInfo(datamap_t*, char const*, SourceMod::sm_datatable_info_t*) () from /home/users/dayz/csgo-dayz-1/csgo/addons/sourcemod/bin/sourcemod.2.csgo.so
(gdb) exit

Last edited by blacklagoon; 09-20-2016 at 18:24.
blacklagoon is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-21-2016 , 06:12   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #12

I, d recommed to avoid using offsets/signatures where it's not necessary. If a functin has no xref from a vtable than it's not a virtual function and you should use it's signature.
Are you sure these signatures are used in the extension, I don't remember them. There is nothing related to explosion in this extension. player deflection... m.b. it's a rudiment part of tf2db.
Finddatamapinfo is provided by sm API, you dont have to use util

Last edited by kadet.89; 09-21-2016 at 07:10.
kadet.89 is offline
Send a message via Skype™ to kadet.89
blacklagoon
Senior Member
Join Date: Jun 2012
Old 09-21-2016 , 06:28   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #13

NVM found why these had bad values :
Code:
			"DispatchKeyValue"
			{
				"windows"	"31"
				"linux"	"30"
			}
			"DispatchKeyValueVector"
			{
				"windows"	"29"
				"linux"	"32"
			}
			"DispatchKeyValueFloat"
			{
				"windows"	"30"
				"linux"	"31"
			}
I can see DispatchKey* are sets on :
Code:
CBaseEntity::KeyValue(char const*, char const*)
CBaseEntity::KeyValue(char const*, float)
CBaseEntity::KeyValue(char const*, Vector const&)
and the same is available on csgo but now i get a :
Code:
Program received signal SIGSEGV, Segmentation fault.
0xe49bf16c in CBaseEdict::GetNetworkable (this=0x0)
    at /home/blacklagoon/extension/hl2sdk-csgo/public/edict.h:366
Also i double checked everything for today's csgo update and signature are still unique and good, offsets seems all good expect for the Dispatchkey* bullshit, so do i still need to rewrite for SetKeyValue?
And what does this error mean?

Last edited by blacklagoon; 09-22-2016 at 03:19.
blacklagoon is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-22-2016 , 11:46   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #14

You can't replace Dispatchkey* with SetKeyValue as the extension hooks this functions. Have you checked the functions by these offsets?. The pseudocode for windows and linux versions must have similar points.

Last edited by kadet.89; 09-22-2016 at 11:52.
kadet.89 is offline
Send a message via Skype™ to kadet.89
blacklagoon
Senior Member
Join Date: Jun 2012
Old 09-23-2016 , 04:16   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #15

sdktools use the same in latest sourcemod for csgo, i'm pretty sure all my sigs and offsets are good now,
also when i get an offset/sig error it doesnt point to the edict.h but to the server.so.

I'm pretty sure this isn't an offset error anymore unless i'm wrong but some compatibility issue between css and csgo.
Cause after uncommenting the log there in that function, it does spam a lot and then crash.

After putting some debug logs, i found the macro where it segfaults in macros.h from DECLARE_PROP_SEND :
Code:
found = GetSendPropOffset(pEnt->edict()->GetNetworkable()->GetServerClass()->GetName(), #name, offset); \
Once this is launched with
Code:
L 09/23/2016 - 11:06:10: [SAMPLE] [CENTITY] Test m_ArmorValue
L 09/23/2016 - 11:06:10: [SAMPLE] [CENTITY] Test1 m_ArmorValue
I commented for now and it loaded had to comment the m_iOBserveMode too.
Now i'm getting segfault at player_connect, change map or preserver down.
+ When i connect it crashes after having some more log from entities hence the segfault wich i guess should be player or from the hook.
Does this extension hook player_connect and others? also where?

Last edited by blacklagoon; 09-23-2016 at 12:41.
blacklagoon is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-23-2016 , 14:14   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #16

blacklagoon, When you need to check whether the extension use something or not you can use this trick:
Total-Commander -> Commands -> Find Files:
http://www.pc-freak.net/images/total...screenshot.png

Then write the extension directory to the "Search in" field
Set the "Find Text" checkbox and type the text that you would like to check.
If I write here "connect", I see at once that there is no related stuff in the extension, but there is a hook to the entity factory which fires each time a new player is connected and a new CCSplayer entity is created. There is a class CPlayer which overrides the default player class. There are some things in it that may not be compatible with cs:go, you should check it manually. /file CPlayer.cpp
First of all just cut this class off.

Last edited by kadet.89; 09-23-2016 at 14:19.
kadet.89 is offline
Send a message via Skype™ to kadet.89
blacklagoon
Senior Member
Join Date: Jun 2012
Old 09-24-2016 , 05:55   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #17

Thanks that's an amazing tool, always wondered if there was a lightweight app like this.
So i've commented every functions with CPlayer and includes to it, commented CPlayer from AMBuilder. And more information about the previous and actual segfaults.

And i still segfault at connection with this error (without CPlayer) :
Code:
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
What i have with bt in gdb :
Code:
#1  0xd8f2c5fa in CEntity::entindex_non_network (this=0xdd52e88)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:1108
#2  0xd8f29acc in CEntity::InternalGetServerClass (this=0xdd52e88)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:422
#3  0xd8f382c8 in fastdelegate::FastDelegate0<ServerClass*>::operator() (
    this=0xdd54214)
    at /home/blacklagoon/extension/mmsource-1.10/core/sourcehook/FastDelegate.h:909
#4  0xd8f33d91 in __SourceHook_MFHCls_GetServerClass::CMyDelegateImpl::Call (
    this=0xdd54210)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:58
#5  0xd8f33e5d in __SourceHook_MFHCls_GetServerClass::Func (this=0xee24cf8)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:58
#6  0xdf870d35 in CServerNetworkProperty::CacheServerClass() ()
   from .../csgo/bin/server.so
#7  0xdf5cbe6a in CBaseEntity::PostConstructor(char const*) ()
   from .../csgo/bin/server.so
#8  0xd8f3b8ce in PostConstructorClass::PostConstructor (this=0xee24cf8,
---Type <return> to continue, or q <return> to quit---(gdb) bt
#0  0x00000000 in ?? ()
#1  0xd8f2c5fa in CEntity::entindex_non_network (this=0xdd52e88)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:1108
#2  0xd8f29acc in CEntity::InternalGetServerClass (this=0xdd52e88)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:422
#3  0xd8f382c8 in fastdelegate::FastDelegate0<ServerClass*>::operator() (
    this=0xdd54214)
    at /home/blacklagoon/extension/mmsource-1.10/core/sourcehook/FastDelegate.h:909
#4  0xd8f33d91 in __SourceHook_MFHCls_GetServerClass::CMyDelegateImpl::Call (
    this=0xdd54210)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:58
#5  0xd8f33e5d in __SourceHook_MFHCls_GetServerClass::Func (this=0xee24cf8)
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:58
#6  0xdf870d35 in CServerNetworkProperty::CacheServerClass() ()
   from .../csgo/bin/server.so
#7  0xdf5cbe6a in CBaseEntity::PostConstructor(char const*) ()
   from .../csgo/bin/server.so
#8  0xd8f3b8ce in PostConstructorClass::PostConstructor (this=0xee24cf8,
---Type <return> to continue, or q <return> to quit---
    szClassname=0xfb334974 "worldspawn")
    at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntityManager.cpp:71
#9  0xdf8e889c in CEntityFactory<CWorld>::Create(char const*) ()
   from .../csgo/bin/server.so
#10 0xdf777859 in CreateEntityByName(char const*, int, bool) ()
   from .../csgo/bin/server.so
#11 0xdf74ee82 in CMapLoadEntityFilter::CreateNextEntity(char const*) ()
   from .../csgo/bin/server.so
#12 0xdf778988 in MapEntity_ParseEntity(CBaseEntity*&, char const*, IMapEntityFilter*) () from .../csgo/bin/server.so
#13 0xdf778f5f in MapEntity_ParseAllEntities(char const*, IMapEntityFilter*, bool) () from ../csgo/bin/server.so
#14 0xdf74dc83 in CServerGameDLL::LevelInit(char const*, char const*, char const*, char const*, bool, bool) ()
   from /home/users/dayz/csgo-dayz-1/csgo/bin/server.so
#15 0xdedb6d2b in __SourceHook_MFHCls_SGD_LevelInit::Func(char const*, char const*, char const*, char const*, bool, bool) ()
   from /home/users/something/srcds dir/csgo/../csgo/addons/metamod/bin/metamod.2.csgo.so
And here's more info about the player entity segfault at server loading with the m_iArmorValue (With CPlayer) :
Code:
Program received signal SIGSEGV, Segmentation fault.
0xdba23d08 in CBaseEdict::GetNetworkable (this=0x0) at /home/blacklagoon/extension/hl2sdk-csgo/public/edict.h:366
366     /home/blacklagoon/extension/hl2sdk-csgo/public/edict.h: No such file or directory.
(gdb) bt

#0  0xdba23d08 in CBaseEdict::GetNetworkable (this=0x0) at /home/blacklagoon/extension/hl2sdk-csgo/public/edict.h:366
#1  0xdba420b4 in CPlayer::m_ArmorValuePropTracker::InitProp (this=0xdba898a0 <CPlayer::m_ArmorValuePropTrackerObj>, pEnt=0xdbeab38) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CPlayer.h:139
#2  0xdba2bf12 in CEntity::InitProps (this=0xdbeab38) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:1180
#3  0xdba3b68d in CEntityManager::CBaseEntityPostConstructor (this=0xd7c67c8, pEntity=0xdcf2118, szClassname=0xe27f0418 "player") at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntityManager.cpp:277
#4  0xdba3ae65 in PostConstructorClass::PostConstructor (this=0xdcf2118, szClassname=0xe27f0418 "player") at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntityManager.cpp:72
#5  0xe212c6b9 in CBaseMultiplayerPlayer::PostConstructor(char const*) () from .../csgo/bin/server.so
#6  0xe21e137c in CEntityFactory<CCSPlayer>::Create(char const*) () from .../csgo/bin/server.so
#7  0xe22b0859 in CreateEntityByName(char const*, int, bool) () from .../csgo/bin/server.so
#8  0xe2404808 in UTIL_PrecacheOther(char const*, char const*) () from .../csgo/bin/server.so
#9  0xe21a8587 in playerPrecache::CResourcePrecacher::Cache(IPrecacheHandler*, bool, ResourceList_t__*, bool) () from .../csgo/bin/server.so
#10 0xe4cfe00f in CPrecacheSystem::Cache(IPrecacheHandler*, PrecacheSystem_t, char const*, bool, ResourceList_t__*, bool) () from .../srcds_run dir/bin/datacache.so
#11 0xe1f9a9f1 in CPrecacheRegister::LevelInitPreEntity() () from /home/users/dayz/csgo-dayz-1/csgo/bin/server.so
#12 0xe1f7caf0 in IGameSystem::LevelInitPreEntityAllSystems(char const*) () from .../csgo/bin/server.so
#13 0xe241f6cd in CWorld::Precache() () from ../csgo/bin/server.so
#14 0xdba33c8a in __SourceHook_MFHCls_Precache::Func (this=0xda6a380) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:63
#15 0xdba291dc in CEntity::Precache (this=0xda6a788) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:427
#16 0xdba44728 in CE_CWorld::Precache (this=0xda6a788) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CWorld.cpp:16
#17 0xdba2929c in CEntity::InternalPrecache (this=0xda6a788) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:427
#18 0xdba36fac in fastdelegate::FastDelegate0<void>::operator() (this=0xda6b794) at /home/blacklagoon/extension/mmsource-1.10/core/sourcehook/FastDelegate.h:909
#19 0xdba33b0d in __SourceHook_MFHCls_Precache::CMyDelegateImpl::Call (this=0xda6b790) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:63
#20 0xdba33bd5 in __SourceHook_MFHCls_Precache::Func (this=0xda6a380) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:63
#21 0xe241f1bc in CWorld::Spawn() () from .../csgo/bin/server.so
#22 0xdba307f0 in __SourceHook_MFHCls_Spawn::Func (this=0xda6a380) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:47
#23 0xdba28480 in CEntity::Spawn (this=0xda6a788) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:417
#24 0xdba28540 in CEntity::InternalSpawn (this=0xda6a788) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:417
#25 0xdba36fac in fastdelegate::FastDelegate0<void>::operator() (this=0xcd3c5dc) at /home/blacklagoon/extension/mmsource-1.10/core/sourcehook/FastDelegate.h:909
#26 0xdba30673 in __SourceHook_MFHCls_Spawn::CMyDelegateImpl::Call (this=0xcd3c5d8) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:47
#27 0xdba3073b in __SourceHook_MFHCls_Spawn::Func (this=0xda6a380) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:47
#28 0xe2404c48 in DispatchSpawn(CBaseEntity*, bool) () from ....csgo/bin/server.so
#29 0xe22b1b02 in CMapEntitySpawner::AddEntity(CBaseEntity*, char const*, int) () from ....csgo/bin/server.so
#30 0xe22b1f8e in MapEntity_ParseAllEntities(char const*, IMapEntityFilter*, bool) () from /csgo/bin/server.so
#31 0xe2286c83 in CServerGameDLL::LevelInit(char const*, char const*, char const*, char const*, bool, bool) () from .../csgo/bin/server.so
#32 0xe17b6d2b in __SourceHook_MFHCls_SGD_LevelInit::Func(char const*, char const*, char const*, char const*, bool, bool) () from .../csgo/../csgo/addons/metamod/bin/metamod.2.csgo.so
#33 0x00000000 in ?? ()

Last edited by blacklagoon; 09-25-2016 at 06:46.
blacklagoon is offline
blacklagoon
Senior Member
Join Date: Jun 2012
Old 09-25-2016 , 07:10   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #18

Sorry for the repost but the post above is kinda huge already.
And with CPlayer class uncutted but m_iHealth, m_iObserverMode, and m_ArmorValue commented i get only this :
Code:
#0  0x00000000 in ?? ()
#1  0xdde8890a in CEntity::entindex_non_network (this=0xe075200) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:1108
#2  0xdde85ddc in CEntity::InternalGetServerClass (this=0xe075200) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:422
#3  0xdde945d8 in fastdelegate::FastDelegate0<ServerClass*>::operator() (this=0xe07658c) at /home/blacklagoon/extension/mmsource-1.10/core/sourcehook/FastDelegate.h:909
#4  0xdde900a1 in __SourceHook_MFHCls_GetServerClass::CMyDelegateImpl::Call (this=0xe076588) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:58
#5  0xdde9016d in __SourceHook_MFHCls_GetServerClass::Func (this=0xecb74a0) at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntity.cpp:58
#6  0xe3f9bd35 in CServerNetworkProperty::CacheServerClass() () from /home/users/theuser/srcdsdir/csgo/bin/server.so
#7  0xe3cf6e6a in CBaseEntity::PostConstructor(char const*) () from /home/users/theuser/srcdsdir/csgo/bin/server.so
#8  0xdde97bde in PostConstructorClass::PostConstructor (this=0xecb74a0, szClassname=0xf2e95994 "worldspawn") at /home/blacklagoon/extension/sourcemod/extensions/hl2ents/Extension/CEntity/CEntityManager.cpp:71
#9  0xe401389c in CEntityFactory<CWorld>::Create(char const*) () from /home/users/dayz/theuser/srcdsdir/bin/server.so
#10 0xe3ea2859 in CreateEntityByName(char const*, int, bool) () from /home/users/dayz/theuser/srcdsdir/bin/server.so
#11 0xe3e79e82 in CMapLoadEntityFilter::CreateNextEntity(char const*) () from /home/users/theuser/srcdsdir/csgo/bin/server.so
#12 0xe3ea3988 in MapEntity_ParseEntity(CBaseEntity*&, char const*, IMapEntityFilter*) () from /home/users/theuser/srcdsdir/csgo/bin/server.so
#13 0xe3ea3f5f in MapEntity_ParseAllEntities(char const*, IMapEntityFilter*, bool) () from /home/users/theuser/srcdsdir/csgo/bin/server.so
#14 0xe3e78c83 in CServerGameDLL::LevelInit(char const*, char const*, char const*, char const*, bool, bool) () from /home/users/theuser/srcdsdir/csgo/bin/server.so
#15 0xe34d0d2b in __SourceHook_MFHCls_SGD_LevelInit::Func(char const*, char const*, char const*, char const*, bool, bool) () from /home/users/theuser/srcdsdir/csgo/../csgo/addons/metamod/bin/metamod.2.csgo.so
#16 0x00000000 in ?? ()

Last edited by blacklagoon; 09-25-2016 at 07:54.
blacklagoon is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-28-2016 , 12:04   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #19

blacklagoon, I'm afraid it out of my experience. only advice I can give - keep on cutting of the non-working stuff.
kadet.89 is offline
Send a message via Skype™ to kadet.89
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 01-03-2017 , 12:55   Re: [ANY] HL2 items (1.5.2)
Reply With Quote #20

Crash with item_healthcharger >Dump<
Crash with item_antidote >Dump<
Crash when unload the Ext >Dump<

Running Win 7 64, TF2, Sm 1.8.0.5967
Everything else works (cannot test the batterie and charger (no item_suit))
The Gamedata installed, maybe its outdated?
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 01-03-2017 at 13:00.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
Reply



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 20:55.


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