1. Post #1
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts



    [release][/release]
    I apologize for the following page-strecher.
    [release]


    [/release]

    [release][h2]More Pictures[/h2]Album #1
    Album #2 (Older, has less features)[/release]

    [release][h2]Console Commands[/h2] ErrorCleanse_KeepColor [0/1] | Should the replacement retain applied colors?
    ErrorCleanse_KeepTexture [0/1] | Should the replacement retain applied materials?
    ErrorCleanse_DrawNoBounds [0/1] | If the entity has no bounds, should it draw at all?
    ErrorCleanse_ReplaceMissingMat | A test for replacing purple & black material (Experimental!)[/release]


    Mirror [dropbox]

    This started as a proof-of-concept a few months ago, but I hope it's suitable for a formal release now.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Lua King x 90Winner x 11Useful x 7Agree x 1Zing x 1 (list)

  2. Post #2
    CapsAdmin's Avatar
    August 2005
    3,925 Posts
    excellent
    Reply With Quote Edit / Delete Reply Windows 7 Norway Show Events Agree Agree x 30Friendly Friendly x 2Optimistic Optimistic x 1 (list)

  3. Post #3
    rnate's Avatar
    April 2010
    4,945 Posts
    Awesome, should totally be in GMod by default.
    Reply With Quote Edit / Delete Reply Windows Vista Germany Show Events Agree Agree x 63Friendly Friendly x 1 (list)

  4. Post #4
    Darkquer's Avatar
    June 2011
    12 Posts
    That's very useful. You would become a god of lua if you make an addon that downloads the missing model.
    Reply With Quote Edit / Delete Reply Windows Vista Russian Federation Show Events Funny Funny x 9Optimistic Optimistic x 2Agree Agree x 1 (list)

  5. Post #5
    MoronYard
    _nonSENSE's Avatar
    May 2010
    1,264 Posts
    That's very useful. You would become a god of lua if you make an addon that downloads the missing model.
    http://www.facepunch.com/threads/1049616
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Agree Agree x 2Disagree Disagree x 1 (list)

  6. Post #6
    Grocel's Avatar
    October 2008
    1,208 Posts
    What is
    timer.Create( 'ErrorCleanse.AddErrors', 0.25, 0, ents.GetAll )
    at line 96 supposed to do? How it's "fixing entities sometimes not getting OnEntityCreated spawned for them"?
    Does OnEntityCreated called again for all entities if you call ents.GetAll?
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Agree Agree x 1 (list)

  7. Post #7
    Noi
    Purrr ~
    Noi's Avatar
    February 2010
    1,150 Posts
    nice work, mom
    Reply With Quote Edit / Delete Reply Windows 7 Russian Federation Show Events Informative Informative x 12Dumb Dumb x 1 (list)

  8. Post #8
    Gold Member
    Commander11's Avatar
    February 2007
    293 Posts
    This is awesome, good job!

  9. Post #9
    Pycские Идиот
    LauScript's Avatar
    June 2010
    2,447 Posts
    This needs to be implemented into the game, would really be nice.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 15 (list)

  10. Post #10
    Gold Member
    DrogenViech's Avatar
    December 2006
    816 Posts
    Enabling LOD on the missing model box texture would be awesome though
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Optimistic Optimistic x 3 (list)

  11. Post #11
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    What is
    timer.Create( 'ErrorCleanse.AddErrors', 0.25, 0, ents.GetAll )
    at line 96 supposed to do? How it's "fixing entities sometimes not getting OnEntityCreated spawned for them"?
    Does OnEntityCreated called again for all entities if you call ents.GetAll?
    Yeah it's pretty weird - here's why I'm doing that.
    Sometimes props (usually small ones?) don't get OnEntityCreated called for them at first. Instead, they get called when you go near them.

    I found that calling ents.GetAll will call OnEntityCreated for all the entities that it didn't get it called earlier.

    Before calling ents.GetAll: http://i.imgur.com/scjHO.jpg
    After calling ents.GetAll: http://i.imgur.com/oJTm9.jpg

    I didn't like putting a repeating timer in the script - but I did some tests and ents.GetAll runs so fast that I don't think it's a problem.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Informative Informative x 6 (list)

  12. Post #12
    Grocel's Avatar
    October 2008
    1,208 Posts
    Did you post a bug report or something to Garry about this bug in OnEntityCreated?

  13. Post #13
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    Did you post a bug report or something to Garry about this bug in OnEntityCreated?
    No I haven't, it didn't seem very important.

    Edited:

    Oh lord I noticed a huge problem (related to lua effects not drawing)
    Please update if you downloaded
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Zing Zing x 2Funny Funny x 2Useful Useful x 1 (list)

  14. Post #14
    likes men
    Python1320's Avatar
    May 2007
    1,711 Posts
    By the way, try css weapons without CSS. Quite...irrritating I'd say.
    Reply With Quote Edit / Delete Reply Finland Show Events Funny Funny x 10 (list)

  15. Post #15
    Gold Member
    bassie12's Avatar
    July 2005
    1,732 Posts
    Atleast this would make things look like something rather than a pile of flashing crap.
    Reply With Quote Edit / Delete Reply Windows 7 Netherlands Show Events Agree Agree x 9 (list)

  16. Post #16
    pennerlord's Avatar
    February 2011
    501 Posts
    Valve should imply this in all source games.
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Agree Agree x 8Funny Funny x 1Artistic Artistic x 1 (list)

  17. Post #17
    Dennab
    March 2010
    102 Posts
    Awesome.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 1 (list)

  18. Post #18
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    By the way, try css weapons without CSS. Quite...irrritating I'd say.
    Oh not again.

    I added a (lame) fix for that, I will hopefully find a cleaner fix later.

    Updating the garrysmod.org download is such a pain, I wish I could just link it to my dropbox file.

  19. Post #19
    Gold Member
    DrogenViech's Avatar
    December 2006
    816 Posts
    Use SVN!!!11

    [SUP][SUP][SUP]Just kidding obviously[/SUP][/SUP][/SUP]
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Agree Agree x 4 (list)

  20. Post #20
    CyberGmod Founder PropHuntv2 Home
    Phoenixf129's Avatar
    May 2009
    910 Posts
    Would this be able to be packaged into a server addon?

    (Not looked at the code)

    Just AddCSLuaFile it? :o
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Agree Agree x 3 (list)

  21. Post #21
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    Would this be able to be packaged into a server addon?

    (Not looked at the code)

    Just AddCSLuaFile it? :o
    That should work just fine -- but you'll also want to send models/props/smallcubetrt.mdl and materials/turtle/errorcleanse_opaque.vtf/vmt
    (Which is kind of silly to send a model to fix missing models)
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Funny Funny x 10 (list)

  22. Post #22
    Grocel's Avatar
    October 2008
    1,208 Posts
    And if you don't send the model you will get an errorception.
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Funny Funny x 12Artistic Artistic x 1 (list)

  23. Post #23
    KatNotDinner's Avatar
    June 2011
    792 Posts
    Awesome work! Much easier on the eyes than the flashing crap Valve created. I think this should come shipped with gmod, along with resourcex.
    Reply With Quote Edit / Delete Reply Windows 7 Greece Show Events Agree Agree x 4 (list)

  24. Post #24
    Gold Member

    July 2006
    1,951 Posts
    That should work just fine -- but you'll also want to send models/props/smallcubetrt.mdl and materials/turtle/errorcleanse_opaque.vtf/vmt
    (Which is kind of silly to send a model to fix missing models)
    Can't you just construct a mesh with Lua instead?
    Reply With Quote Edit / Delete Reply Windows Vista Finland Show Events Agree Agree x 5Dumb Dumb x 1 (list)

  25. Post #25
    DarkMonkey's Avatar
    January 2009
    3,859 Posts
    Can't you just construct a mesh with Lua instead?
    Or steal one from a rectangular object included by default.
    Reply With Quote Edit / Delete Reply Windows Vista United States Show Events Agree Agree x 3 (list)

  26. Post #26
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    Can't you just construct a mesh with Lua instead?
    I was doing that originally, but it was much slower to render and had some lighting problems.

    Or steal one from a rectangular object included by default.
    That's true, the closest I could find to a 1x1x1 cube was in PHX, but it was slighty off-center.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Informative Informative x 1 (list)

  27. Post #27
    Gold Member
    DrogenViech's Avatar
    December 2006
    816 Posts
    I was doing that originally, but it was much slower to render and had some lighting problems.



    That's true, the closest I could find to a 1x1x1 cube was in PHX, but it was slighty off-center.
    I always wonder how that happens? Why are so much models so badly aligned? Like the cargo containers in hl2
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Agree Agree x 3 (list)

  28. Post #28
    Gold Member
    Looter's Avatar
    July 2005
    537 Posts
    This is awesome, thanks. I'm always too lazy to download someones anime construction model yugioh pack.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Funny Funny x 3 (list)

  29. Post #29
    likes men
    Python1320's Avatar
    May 2007
    1,711 Posts

    That thing surely knows how to stretch
    Reply With Quote Edit / Delete Reply Finland Show Events Funny Funny x 9Agree Agree x 1Artistic Artistic x 1 (list)

  30. Post #30
    Frog Member
    C0linSSX's Avatar
    February 2008
    2,523 Posts
    Isn't Gmod in beta for a major update or something?

    Garry should really make this official.
    Reply With Quote Edit / Delete Reply Windows Vista United States Show Events Agree Agree x 13 (list)

  31. Post #31
    Gold Member
    DrogenViech's Avatar
    December 2006
    816 Posts
    It would be even more awesome to approximate props by using tons of tracelines on the server, and then send the data to the clients (And just fall back to the box method if the server part isn't running)

    No exact replica or anything, just enough for wheels to appear as hexagons or something

    Edited:

    Oops, we need the bad reading rating back:

    Can't you just construct a mesh with Lua instead?
    I was doing that originally, but it was much slower to render and had some lighting problems.
    :(

  32. Post #32
    buggy715's Avatar
    September 2009
    57 Posts
    This is a great addon. Much better than seeing blinking red 'ERROR's everywhere.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 4Late Late x 2 (list)

  33. Post #33
    KatNotDinner's Avatar
    June 2011
    792 Posts
    Does the mod it descrease fps? Cause I haven't looked in the code but checking and rendering stuff every frame might cause some fps drops.

  34. Post #34
    Gold Member
    mil0001's Avatar
    January 2010
    485 Posts
    Better save up your frames then...
    Reply With Quote Edit / Delete Reply Windows 7 Australia Show Events Funny Funny x 1 (list)

  35. Post #35
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    Does the mod it descrease fps? Cause I haven't looked in the code but checking and rendering stuff every frame might cause some fps drops.
    The box model has a lot less polygons than the error model, it should increase FPS if anything.
    You'd probably need a lot of errors for any substantial changes to be visible, though.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Friendly Friendly x 1 (list)

  36. Post #36
    MadDog986's Avatar
    March 2008
    304 Posts
    Would this be able to be packaged into a server addon?
    x2

    Please :)
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Optimistic Optimistic x 1 (list)

  37. Post #37

    April 2012
    1 Posts
    Could you make this a server addon?.. i'd love to use this for my servr.
    Reply With Quote Edit / Delete Reply Windows 7 Netherlands Show Events Late Late x 2Dumb Dumb x 1 (list)

  38. Post #38
    K9blaze's Avatar
    October 2011
    95 Posts
    you know i actually like the missing model house in the vid. With this it will be alot easier to continue doing things without having to worry about something crucial that would be missing, at least not until later.

  39. Post #39
    Gold Member
    LinkTwilight's Avatar
    April 2009
    126 Posts
    I updated ErrorCleanse to work in GMod 13, but it seems that sv_allowcslua defaults to 0. The new workshop download is in the OP, but you won't see any difference unless the server explicitly allows clientside scripts.
    You can use Workshop for servers to send it to connecting clients, but that defeats the point of this script. If you're a server owner you should just be sending the actual models to clients.

    Unless sv_allowcslua eventually defaults to 1, I'm afraid this addon is almost useless.

    However, for those who want it anyway, here's the new download:
    http://steamcommunity.com/sharedfile.../?id=104530717
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Friendly Friendly x 1Agree Agree x 1 (list)

  40. Post #40
    Grocel's Avatar
    October 2008
    1,208 Posts
    I updated ErrorCleanse to work in GMod 13, but it seems that sv_allowcslua defaults to 0. The new workshop download is in the OP, but you won't see any difference unless the server explicitly allows clientside scripts.
    You can use Workshop for servers to send it to connecting clients, but that defeats the point of this script. If you're a server owner you should just be sending the actual models to clients.

    Unless sv_allowcslua eventually defaults to 1, I'm afraid this addon is almost useless.

    However, for those who want it anyway, here's the new download:
    http://steamcommunity.com/sharedfile.../?id=104530717
    Persuade Garry to put it in his game. I think that would be a good idea.
    Reply With Quote Edit / Delete Reply Windows 7 Germany Show Events Agree Agree x 4 (list)