AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] tEntDev v0.1.1 (2010-12-04) (https://forums.alliedmods.net/showthread.php?t=143081)

Thrawn2 11-14-2010 06:44

[ANY] tEntDev v0.1.1 (2010-12-04)
 
3 Attachment(s)
About
This plugin helps developers fiddle with those netprops of entities. It is not meant for usage beyond developing...
The plugin allows you to watch how the netprops of an entity changed.
It requires an extension that is provided with this plugin.

Commands
  • sm_ted_select - selects an entity for further processing
  • sm_ted_selectself - selects yourself for further processing
  • sm_ted_spawnhook <classname> - uses sdkhooks to select the next spawning entity with that classname
  • sm_ted_menuselect - opens a menu with all entities, categorized by NetClass and ClassName.
  • sm_ted_listselect - lists all entities
  • sm_ted_selectid <entityid> - select one of them for further inspection.
  • sm_ted_show - shows all netprops and their values.
  • sm_ted_set <netprop> <value> - set a netprop to a specified value (doesn't work on vectors yet)
  • sm_ted_watch - shows changed netprops of the selected entity every second. (auto)
  • sm_ted_stopwatch - stops watching an entity. (auto)
  • sm_ted_save - saves an entities netprops for later comparison. (manual)
  • sm_ted_compare - compares the current netprops with the saved ones. (manual)
  • sm_ted_ignore <netprop> - don't show changes to this netprop.
  • sm_ted_unignore <netprop> - show changes to this netprop.
  • sm_ted_ignorefile <filename> - don't show changes to the netprops listed in the given file.
  • sm_ted_unignorefile <filename> - show changes to the netprops listed in the given file.
  • sm_ted_log <filename> - logs everything to a file

Cvars
  • sm_tentdev_watchinterval - Interval between watch steps in seconds (default: 1.0)
  • sm_tentdev_separator - Separator between watch steps (default: "------")
  • sm_tentdev_ignorefiles_path - Path where the netprop ignore files reside (default: "configs/tEntDevIgnoreLists/"), only available with the IgnoreCommon sub-plugin.

Natives (these are pretty much the same as the commands)
  • TED_SetNetprop(client, const String:sNetprop[], const String:sValue[]);
  • TED_SelectEntity(client, entity);
  • TED_IgnoreNetprop(client, const String:sNetprop[]);
  • TED_UnignoreNetprop(client, const String:sNetprop[]);
  • TED_ShowNetprops(client);
  • TED_WatchNetprops(client);
  • TED_StopWatchNetprops(client);
  • TED_SaveNetprops(client);
  • TED_CompareNetprops(client);

How To
Manual:
1. Select an entity by aiming at it and saying /ted_select
2. Save its netprops by saying /ted_save
3. Do sth with it, e.g. upgrade a teleporter
4. Get changed netprops by saying /ted_compare
Auto
1. Select an entity by aiming at it and saying /ted_select
2. Start watching the entity by saying /ted_watch
3. Do sth with it.
4. Every second all changed netprops will be listed
5. Stop watching by saying /ted_stopwatch or selecting another entity.

Example Output of sm_watch (just finished building a teleporter)
m_flPercentageConstructed changed from 0.8550 to 0.9000
m_iHealth changed from 129 to 136
---
m_flPercentageConstructed changed from 0.9000 to 0.9500
m_iHealth changed from 136 to 143
---
m_flPercentageConstructed changed from 0.9500 to 0.9950
m_iHealth changed from 143 to 150
---
m_bBuilding changed from 1 to 0
m_bClientSideFrameReset changed from 1 to 0
m_flPercentageConstructed changed from 0.9950 to 1.0000
m_flPlaybackRate changed from 0.5000 to 0.0000
m_iState changed from 0 to 1
m_nModelIndex changed from 535 to 540
m_nNewSequenceParity changed from 1 to 2
m_nResetEventsParity changed from 1 to 2


Extension Binaries
  • Left 4 Dead (Win) (Linux)
  • Left 4 Dead 2 (Win) (Linux)
  • Orangebox Valve (CSS / TF2 / DODS / HL2DM / GMOD) (Win) (Linux)
  • Orangebox (OB Mods-ONLY [ZPS, AOC, PVKII, etc.]) (Win) (Linux)
  • Episode 1 (EP1 [Insurgency, Eternal Silence, other EP1 mods.]) (Win)
  • Alien Swarm (Win)
  • Dark Messiah (Win)
  • Bloody Good Time (Win)

Source
Changelog
can be found here. tEntDev_02.zip is the old version, which didnt require an extension but those ugly keyvalues cfg files containing a list of all entities. if someone for some reason still wants to use that... its still here.

Note: If you want to compile this yourself you will need the colors, sdkhooks and netprops includes.

Matheus28 11-14-2010 11:23

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
This is very useful! Thank you!

By the way, did you write something to generate that config file?

Thrawn2 11-14-2010 12:17

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
yepp, a perl script. i'm going to polish it a bit, then release it here.

McFlurry 11-14-2010 21:31

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
Might be what I need so I can find the pesky ent prop that controls whether a weapon has a laser sight or not in L4D2.
SetFailState("Need that perl script or = cfg generator to continue(l4d2)");

AtomicStryker 11-15-2010 05:54

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
1 Attachment(s)
Very cool.


EDIT:

You asked for l4d2 netprop dumps in another thread, here you go:

Peace-Maker 11-15-2010 17:15

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
3 Attachment(s)
Here are the ones for CS:S and L4D2 generated with that little php script in nprops.zip

FlaminSarge 11-15-2010 21:12

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
Can somebody use this to see what netprops change for a spy pulling out the dead ringer (not cloaking, just pulling it out/readying it), and post it here? I am unable to try until this weekend :C

Peace-Maker 11-16-2010 11:10

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
I'd love to have a native i could use in my other plugins so i can turn debugging on/off on a specific entity i'm not able to point at. E.g. myself, or my secondary weapon etc.

Thrawn2 11-16-2010 11:41

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
Quote:

Originally Posted by Peace-Maker (Post 1350590)
I'd love to have a native i could use in my other plugins so i can turn debugging on/off on a specific entity i'm not able to point at. E.g. myself, or my secondary weapon etc.

japp, i will start implementing that as soon as i am back from a business trip - aka this weekend or sth like that.

Peace-Maker 11-16-2010 11:52

Re: [ANY] tEntDev v0.0.1 (2010-11-14)
 
Great. You could use the hudhint entity to show the differences in realtime.
PHP Code:

new Handle:hBuffer StartMessageOne("KeyHintText"client);
BfWriteByte(hBuffer1);
BfWriteString(hBuffersOutput);
EndMessage(); 



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

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