• ErrorCleanse - Dynamic Error Models
    42 replies, posted
  • Avatar of LinkTwilight
  • [img]http://i.imgur.com/G362E.png[/img] [release][img]http://i.imgur.com/TlbRX.png[/img][/release] [media]http://www.youtube.com/watch?v=H0Fw4yVOmXE&hd=1[/media] I apologize for the following page-strecher. [release][t]http://i.imgur.com/cHLfb.jpg[/t][t]http://i.imgur.com/M5p0f.jpg[/t][t]http://i.imgur.com/mdLaZ.jpg[/t] [t]http://i.imgur.com/JGUJJ.jpg[/t][t]http://i.imgur.com/2ODet.jpg[/t][t]http://i.imgur.com/avLgD.jpg[/t] [t]http://i.imgur.com/hJaZu.jpg[/t][t]http://i.imgur.com/BFR8v.jpg[/t][t]http://i.imgur.com/Amyzd.jpg[/t] [t]http://i.imgur.com/QGcLx.jpg[/t][t]http://i.imgur.com/f13dm.jpg[/t][/release] [release][h2]More Pictures[/h2][URL="http://imgur.com/a/9rchm"]Album #1[/URL] [URL="http://imgur.com/a/IWDlL"]Album #2 (Older, has less features)[/URL][/release] [release][h2]Console Commands[/h2]• [B]ErrorCleanse_KeepColor[/B] [0/1] | Should the replacement retain applied colors? • [B]ErrorCleanse_KeepTexture[/B] [0/1] | Should the replacement retain applied materials? • [B]ErrorCleanse_DrawNoBounds[/B] [0/1] | If the entity has no bounds, should it draw at all? • [B]ErrorCleanse_ReplaceMissingMat[/B] | A test for replacing purple & black material ([b]Experimental![/b])[/release] [url="http://steamcommunity.com/sharedfiles/filedetails/?id=104530717"][img]http://i.imgur.com/WOGHf.png[/img][/url] [url="http://bit.ly/ErrorCleanse"]Mirror [dropbox][/url] This started as a proof-of-concept a few months ago, but I hope it's suitable for a formal release now. :dance:
  • Avatar of Darkquer
  • That's very useful. You would become a god of lua if you make an addon that downloads the missing model.
  • Avatar of _nonSENSE
  • [QUOTE=Darkquer;33810298]That's very useful. You would become a god of lua if you make an addon that downloads the missing model.[/QUOTE] [url]http://www.facepunch.com/threads/1049616[/url]
  • Avatar of Grocel
  • What is [lua]timer.Create( 'ErrorCleanse.AddErrors', 0.25, 0, ents.GetAll )[/lua] 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?
  • Avatar of LinkTwilight
  • [QUOTE=Grocel;33811021]What is [lua]timer.Create( 'ErrorCleanse.AddErrors', 0.25, 0, ents.GetAll )[/lua] 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?[/QUOTE] 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 [i]near[/i] 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: [url]http://i.imgur.com/scjHO.jpg[/url] After calling ents.GetAll: [url]http://i.imgur.com/oJTm9.jpg[/url] 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.
  • Avatar of Grocel
  • Did you post a bug report or something to Garry about this bug in OnEntityCreated?
  • Avatar of LinkTwilight
  • [QUOTE=Grocel;33820134]Did you post a bug report or something to Garry about this bug in OnEntityCreated?[/QUOTE] No I haven't, it didn't seem very important. [editline]a[/editline] Oh lord I noticed a huge problem (related to lua effects not drawing) [b][i]Please[/i] update if you downloaded[/b]
  • Avatar of bassie12
  • Atleast this would make things look like something rather than a pile of flashing crap.
  • Avatar of LinkTwilight
  • [QUOTE=Python1320;33827757]By the way, try css weapons without CSS. Quite...irrritating I'd say.[/QUOTE] Oh not again. :suicide: 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.
  • Avatar of Phoenixf129
  • Would this be able to be packaged into a server addon? (Not looked at the code) Just AddCSLuaFile it? :o
  • Avatar of LinkTwilight
  • [QUOTE=Phoenixf129;33858698]Would this be able to be packaged into a server addon? (Not looked at the code) Just AddCSLuaFile it? :o[/QUOTE] That should work just fine -- but you'll also want to send [i]models/props/smallcubetrt.mdl[/i] and [I]materials/turtle/errorcleanse_opaque.vtf/vmt[/I] (Which is kind of silly to send a model to fix missing models)
  • Avatar of KatNotDinner
  • Awesome work! Much easier on the eyes than the flashing crap Valve created. I think this should come shipped with gmod, along with resourcex.
  • [QUOTE=LinkTwilight;33859557]That should work just fine -- but you'll also want to send [i]models/props/smallcubetrt.mdl[/i] and [I]materials/turtle/errorcleanse_opaque.vtf/vmt[/I] (Which is kind of silly to send a model to fix missing models)[/QUOTE] Can't you just construct a mesh with Lua instead?
  • Avatar of DarkMonkey
  • [QUOTE=DarKSunrise;33861472]Can't you just construct a mesh with Lua instead?[/QUOTE] Or steal one from a rectangular object included by default.
  • Avatar of LinkTwilight
  • [QUOTE=DarKSunrise;33861472]Can't you just construct a mesh with Lua instead?[/QUOTE] I was doing that originally, but it was much slower to render and had some lighting problems. [QUOTE=DarkMonkey;33865541]Or steal one from a rectangular object included by default.[/QUOTE] That's true, the closest I could find to a 1x1x1 cube was in PHX, but it was slighty off-center.
  • Avatar of Nafrayu
  • [QUOTE=LinkTwilight;33868969]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.[/QUOTE] I always wonder how that happens? Why are so much models so badly aligned? Like the cargo containers in hl2
  • This is awesome, thanks. I'm always too lazy to download someones anime construction model yugioh pack.
  • Avatar of Python1320
  • [img]http://img849.imageshack.us/img849/5384/gmwireconstructex20016.jpg[/img] That thing surely knows how to stretch :v:
  • Avatar of frog
  • Isn't Gmod in beta for a major update or something? Garry should really make this official.