+ Reply to Thread
Results 1 to 9 of 9

Thread: Variable lister and retriever from non wire entities

  1. #1
    Wirererer Fliecheese is on a distinguished road Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    145

    Default Variable lister and retriever from non wire entities

    I would like to see some kind of device that gets every variable written in the code of a wire or non wire object and be able to override it with a value of your choice. I have no idea if this would work but I would love if it did as the applications are enormous. If this is possible or if you think it is a good idea please tell me.

  2. #2
    Wire Sofaking singilli is on a distinguished road singilli's Avatar
    Join Date
    Jun 2007
    Location
    Garðabær, Iceland
    Posts
    466

    Default Re: Variable lister and retriever from non wire entities

    If you mean change the value like a chip is outputting it is not possible, using E2's it's simple to use override functions.

    if (This==That) {A=B, C=D...}

  3. #3
    Bug Buster

    TomyLobo has a spectacular aura about TomyLobo has a spectacular aura about TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,772

    Default Re: Variable lister and retriever from non wire entities

    he said non-wire entities.

    there is no useful application for what you proposed, fliecheese.
    those variables are internal and change from version to version.
    if you want to "hax" into an entity, use Lua.
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  4. #4
    Wirererer Fliecheese is on a distinguished road Fliecheese's Avatar
    Join Date
    Jul 2008
    Posts
    145

    Default Re: Variable lister and retriever from non wire entities

    Yeah but you cannot do that in game or multiplayer. I thought that it would not work but I thought it would be interesting to see what could be done with it.

  5. #5
    Wire Sofaking Nikita is on a distinguished road Nikita's Avatar
    Join Date
    May 2009
    Posts
    421

    Default Re: Variable lister and retriever from non wire entities

    That used to have a purpose before wire, maybe even before Gmod 10, and people used to wish for that, but now the source entities are rather dull compared to what we can have with existing tools and sents.

    A few fancy things can be done when you know what variables an entity has, but I'm afraid today noone of the able scripters would bother to work on it.

  6. #6
    Bug Buster

    TomyLobo has a spectacular aura about TomyLobo has a spectacular aura about TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,772

    Default Re: Variable lister and retriever from non wire entities

    use the "lua_run" console command to execute lua code in-game.
    use "lua_openscript" for longer stuff
    append "_cl" to those commands for the client-side version. those should also work in multiplayer.
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  7. #7
    Patcherer... er
    Jeremydeath will become famous soon enough Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    356

    Default Re: Variable lister and retriever from non wire entities

    I coded up a quick entity table printer for my own use a long time ago, but I suppose it might be useful. It just prints the entity table to the console. I find it useful for debugging. It's in addon format.
    Attached Files
    Jeremydeath's Wire Addons - Try Them... NOW!

  8. #8
    Bug Buster

    TomyLobo has a spectacular aura about TomyLobo has a spectacular aura about TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,772

    Default Re: Variable lister and retriever from non wire entities

    PrintTable(ent:GetTable())?

    oh, as a tool. neat
    needs a restriction to (super)admins
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  9. #9
    Patcherer... er
    Jeremydeath will become famous soon enough Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    356

    Default Re: Variable lister and retriever from non wire entities

    Yeah, pretty much. I just use it to do things like check what kind of information entities had about other entities (like who spawned it). I never really meant to release it, but some might find it useful.
    Jeremydeath's Wire Addons - Try Them... NOW!

+ Reply to Thread

Similar Threads

  1. E2 wirelink; add wirelinks to ANY entity, not just wire entities.
    By DataSchmuck in forum Ideas & Suggestions
    Replies: 14
    Last Post: 06-12-2009, 09:28 AM
  2. Variable:variable type woes.
    By iamsam9895 in forum Expression Help
    Replies: 2
    Last Post: 06-10-2009, 10:36 PM
  3. Cannot Spawn Sweps and Wire entities
    By ToNz in forum Help & Support
    Replies: 1
    Last Post: 04-10-2009, 11:27 AM
  4. Wire duplicators, able to duplicate entities
    By Stud Muffin in forum Ideas & Suggestions
    Replies: 1
    Last Post: 01-16-2009, 11:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts