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

[ANY] tEntDev v0.1.1 (2010-12-04)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
2072
Plugin Version:
0.1.1
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    This plugin allows you to watch how the netprops of an entity change.
    Old 11-14-2010 , 06:44   [ANY] tEntDev v0.1.1 (2010-12-04)
    Reply With Quote #1

    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.
    Attached Files
    File Type: zip tEntDev_02.zip (144.8 KB, 639 views)
    File Type: zip tEntDev_05.zip (341.9 KB, 1606 views)
    File Type: sp Get Plugin or Get Source (tEntDev.sp - 1027 views - 12.9 KB)
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by psychonic; 11-18-2011 at 11:59. Reason: Added Bloody Good Time build.
    Thrawn2 is offline
    Matheus28
    Senior Member
    Join Date: Aug 2009
    Old 11-14-2010 , 11:23   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #2

    This is very useful! Thank you!

    By the way, did you write something to generate that config file?
    Matheus28 is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 11-14-2010 , 12:17   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #3

    yepp, a perl script. i'm going to polish it a bit, then release it here.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 11-14-2010 , 21:31   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #4

    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)");
    __________________

    Last edited by McFlurry; 11-14-2010 at 21:40.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 11-15-2010 , 05:54   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #5

    Very cool.


    EDIT:

    You asked for l4d2 netprop dumps in another thread, here you go:
    Attached Files
    File Type: zip netpropsleft4dead2.zip (480.3 KB, 494 views)

    Last edited by AtomicStryker; 11-15-2010 at 05:57.
    AtomicStryker is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 11-15-2010 , 17:15   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #6

    Here are the ones for CS:S and L4D2 generated with that little php script in nprops.zip
    Attached Files
    File Type: zip netprops.l4d2.zip (82.2 KB, 432 views)
    File Type: zip netprops.css.zip (21.7 KB, 474 views)
    File Type: zip nprops.zip (901 Bytes, 433 views)
    __________________
    Peace-Maker is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 11-15-2010 , 21:12   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #7

    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
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 11-16-2010 , 11:10   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #8

    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.
    __________________
    Peace-Maker is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 11-16-2010 , 11:41   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #9

    Quote:
    Originally Posted by Peace-Maker View Post
    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.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 11-16-2010 , 11:52   Re: [ANY] tEntDev v0.0.1 (2010-11-14)
    Reply With Quote #10

    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(); 
    __________________
    Peace-Maker is offline
    Reply


    Thread Tools
    Display Modes

    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 10:13.


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