Raised This Month: $32 Target: $400
 8% 

Solved Warning: Entity reported ENTITY_CHANGE_NONE but property changed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-15-2022 , 14:22   Warning: Entity reported ENTITY_CHANGE_NONE but property changed
Reply With Quote #1

Hi,
do you know what could causing this and how to reproduce, under what circumstances?

Code:
Entity 315 (class 'infected') reported ENTITY_CHANGE_NONE but 'm_nWaterLevel' changed.
Entity 262 (class 'infected') reported ENTITY_CHANGE_NONE but 'm_clientLookatTarget' changed.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 05-16-2022 at 10:12.
Dragokas is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-15-2022 , 18:53   Re: Warning: Entity reported ENTITY_CHANGE_NONE but property changed
Reply With Quote #2

Quote:
Originally Posted by Dragokas View Post
Code:
Entity 315 (class 'infected') reported ENTITY_CHANGE_NONE but 'm_nWaterLevel' changed.
Entity 262 (class 'infected') reported ENTITY_CHANGE_NONE but 'm_clientLookatTarget' changed.
Usually you see this warning when you use SetEntData for netprops and forgot to call ChangeEdictState
__________________
cry

Last edited by BHaType; 05-15-2022 at 20:23.
BHaType is offline
Send a message via AIM to BHaType
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-16-2022 , 06:24   Re: Warning: Entity reported ENTITY_CHANGE_NONE but property changed
Reply With Quote #3

Ok, I know, but under which circumstances entities require a call to ChangeEdictState?
Usually, you just call SetEntProp and forget.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-16-2022 , 06:49   Re: Warning: Entity reported ENTITY_CHANGE_NONE but property changed
Reply With Quote #4

ChangeEdictState need to be used only with SetEntData or anything else that can change prop value like StoreToAddress. ChangeEdictState marks entire edict or some prop to be replicated to clients so it should be only used for networked props.

The reason why no one calls it along with SetEntProp is because SetEntProp marks prop as changed for you
click

Prop_Send - networked props that are replicated to client
Prop_Data - server sided props that client have no idea about
__________________
cry

Last edited by BHaType; 05-16-2022 at 07:08.
BHaType is offline
Send a message via AIM to BHaType
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-16-2022 , 10:11   Re: Warning: Entity reported ENTITY_CHANGE_NONE but property changed
Reply With Quote #5

Understand. Thank you.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
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 04:43.


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