• ParticleEmitter BadCoder( CUtlLinkedList overflow! ( exhausted index range ) ) Fix!
    12 replies, posted
Hey all, I released some code here and there for this fix. The old one didn't support use3D which someone told me about and the new version supports it. I finally got around to testing the new version and found it was broken. IsValid doesn't work on Emitters. Anyway, here's the code, it needs to be run CLIENTSIDE. It should fix the bug with improper management of ParticleEmitter which will cause your game to crash. This is seen as a native bug in some game-modes. If you had an old version of this, remove IsValid, IsValid doens't work for Emitters. Other than that, this is a drop-in solution to fix the linked list issue which is caused by bad coding. [lua]// // Safe ParticleEmitter Josh 'Acecool' Moser // // This should be placed in a CLIENT run directory - such as addons/acecool_particleemitter_override/lua/autorun/client/_particleemitter.lua // -- [url]http://facepunch.com/showthread.php?t=1309609&p=42275212#post42275212[/url] // if ( !PARTICLE_EMITTER ) then PARTICLE_EMITTER = ParticleEmitter; end function ParticleEmitter( _pos, _use3D ) if ( !_GLOBAL_PARTICLE_EMITTER ) then _GLOBAL_PARTICLE_EMITTER = { }; end if ( _use3D ) then if ( !_GLOBAL_PARTICLE_EMITTER.use3D ) then _GLOBAL_PARTICLE_EMITTER.use3D = PARTICLE_EMITTER( _pos, true ); else _GLOBAL_PARTICLE_EMITTER.use3D:SetPos( _pos ); end return _GLOBAL_PARTICLE_EMITTER.use3D; else if ( !_GLOBAL_PARTICLE_EMITTER.use2D ) then _GLOBAL_PARTICLE_EMITTER.use2D = PARTICLE_EMITTER( _pos, false ); else _GLOBAL_PARTICLE_EMITTER.use2D:SetPos( _pos ); end return _GLOBAL_PARTICLE_EMITTER.use2D; end end[/lua] The original thread was locked due to too many people arguing. Here's the original fix, available for anyone that wants to use it in their code; keep it as is, if you edit it you may add your name as an editor. Please do not discuss off-topic matters in this thread; it is reserved for the fix and discussions on improving, modifying or using the fix: questions and answers. Original thread is here to prove timestamp: [url]http://facepunch.com/showthread.php?t=1309609&p=43591399#post43591399[/url] [highlight](User was banned for this post ("Do not remake closed threads" - verynicelady))[/highlight]
Please keep the thread on topic; I didn't send a DMCA to everyone who used it; only to the kid who changed a few minor things, and said he wrote it. When asked about it; and I tried talking to him, he called me a liar. I won't tolerate plagiarism or code theft. Now, please keep this on topic; it was locked because too many people condoned theft and posted photos that had nothing to do with the thread itself.
Wait so you did a code, posted it without a license and then complained that people used it?. Shit, you are really dumb.
[QUOTE=eirexe;43594687]Wait so you did a code, posted it without a license and then complained that people used it?. Shit, you are really dumb.[/QUOTE] Please keep it on topic; and you're wrong. The story is getting mixed up. I released it to be used, redistributed, whatever as a fix for an error in Garry's Mod as long as my copyright stayed in place. Many users have used this and still use this with much success. Then along came JetBoom. He decided to modify the code to look like this: [lua]cl_fix_emitters.lua AddCSLuaFile() if _FIXEDEMITTERS_ or not CLIENT then return end _FIXEDEMITTERS_ = true local _GLOBAL_PARTICLE_EMITTER_use3D local _GLOBAL_PARTICLE_EMITTER_use2D local PARTICLE_EMITTER = ParticleEmitter function ParticleEmitter( _pos, _use3D ) if ( _use3D ) then if ( !_GLOBAL_PARTICLE_EMITTER_use3D ) then _GLOBAL_PARTICLE_EMITTER_use3D = PARTICLE_EMITTER( _pos, true ); else _GLOBAL_PARTICLE_EMITTER_use3D:SetPos( _pos ); end return _GLOBAL_PARTICLE_EMITTER_use3D; else if ( !_GLOBAL_PARTICLE_EMITTER_use2D ) then _GLOBAL_PARTICLE_EMITTER_use2D = PARTICLE_EMITTER( _pos, false ); else _GLOBAL_PARTICLE_EMITTER_use2D:SetPos( _pos ); end return _GLOBAL_PARTICLE_EMITTER_use2D; end end[/lua] Which is pretty blatantly obvious where it came from. He removed the credits and claimed he wrote it. I found out about it, and I asked JetBoom about it. He called me a liar in a public forum and said he had nothing to do with it and that it was his code. He had everyone drink his kool-aid and attack me. Because talking wouldn't work, I won't allow any piece of my work, no matter how small, to be plagiarized and released with someone elses name. I filed successful DMCAs against him after VALVe employees contacted me via e-mail asking me about the DMCA. I explained in full clarity what went on and they performed their own investigation concluding that I am, in fact, the copyright holder and that my work was plagiarized by JetBoom. Then came RobotBoy655 who used his priviledged access to the Steam Workshop to unban the addons which were banned by VALVe employees in accordance with the Digital Millennium Copyright Act. This is a direct violation of the DMCA. I tried playing nice, I tried speaking with JetBoom but he threw the wet-rag on the ground. He's having people send me death-threats. He's telling his story, which is fiction. The fact is that he used my code, which would've been perfectly fine had he left my name on it, and/or at least spoken to me about what his intentions were and we could've come to some arrangement. I'm a reasonable guy. But, he decided to dig his hole even deeper; and now he's brought Robotboy655 into it who has brought Garry into it. If I don't protect my work, then what's going to stop your work from being taken advantage of? Also, code_gs and all these people making threats to me when they can't even secure their own resources is disgusting. You all need to get jobs, right now, as teenagers while you know everything in the world because as you get older you seem to lose all of that information and then you don't know everything. Please stop discussing that subject in this thread, this thread is for discussion of the Particle Emitter fix; I don't want this getting locked because then I'll have to re-post it again, until people listen. If you have questions for me regarding this matter, PM me. Keep it off the forum.
Hey kiddo, Hover Gear Legacy [i]does not[/i] use your fix at all, neither anyone's emitter fix. Next time unpack the gma's before [i]irrationally[/i] send out DMCA claims over a certain [i]someone[/i].
okay, I'll bite. But this is the last post you'll weasel out of me over this. [QUOTE=Acecool;43594848] He removed the credits and claimed he wrote it.[/quote] I copied a code snipplet and changed some things I didn't like. I didn't claim anything one way or the other. [quote]I found out about it, and I asked JetBoom about it. He called me a liar in a public forum and said he had nothing to do with it and that it was his code.[/quote] You're twisting things. Here is your post: [url]http://facepunch.com/showthread.php?t=1260809&p=43265512&viewfull=1#post43265512[/url] "[i]Says the guy that stole some of my code, changed a few characters and called it his own. Right. And, you sold code to a few communities that I had to fix because it did nothing but lag everyone. You were calling render.RedownloadAllLightmaps every time the day/night changed 1 char worth of color on your day/night system ( even on maps that didn't need render.RedownloadAllLightmaps to even be called causing undue .5 second lag each time the sky changed a byte/char worth of color.). Don't talk crap about someone elses code that you steal when you can't even make a simple day/night system. Edit: All of the code I release is Quality Assured and require no out-of-the-box fixes.[/i]" You just attacked me and didn't identify what I "stole". You never did. I never knew what the dmca notices were, you didn't tell me and neither did valve until the email they sent when it was taken down. I figured they were just troll reports (which they still are). [quote]He had everyone drink his kool-aid and attack me. Because talking wouldn't work, I won't allow any piece of my work, no matter how small, to be plagiarized and released with someone elses name.[/quote] You wrote 15 lines of code for a fix that was already known to an already known problem. [quote]Then came RobotBoy655 who used his priviledged access to the Steam Workshop to unban the addons which were banned by VALVe employees in accordance with the Digital Millennium Copyright Act. This is a direct violation of the DMCA.[/quote] And he was right to do so since valve will literally ban any addon that has received a takedown notice, regardless of who sent it. Just like when you, under penalty of perjury, decided to falsely file claims on ptown2 and zc0m's workshop addons just because you knew I was the original author or had my name on the developer list. [quote]I tried playing nice[/quote] No you didn't. [quote]I tried speaking with JetBoom[/quote] No you didn't. [quote]He's having people send me death-threats.[/quote] I'm not so feeble minded. [quote]spoken to me about what his intentions were and we could've come to some arrangement.[/quote] What arrangement? You posted a code snipplet for people to use to fix a bug. I didn't know you were selling it? [quote]I'm a reasonable guy.[/quote] No you're not. [quote]and now he's brought Robotboy655 into it who has brought Garry into it.[/quote] Maybe he'll get rid of you this time. [quote]If I don't protect my work, then what's going to stop your work from being taken advantage of?[/quote] It gets taken advantage of all the time. People constantly sell their sooper vip for ZS and some people even make [url=http://www.darkergaming.com]blatant ripoffs[/url] of noxiousnet. Your "work" is 15 lines of code for a bug fix. My work is a couple hundred thousand or maybe a million lines of code and years of updates. [quote]Also, code_gs and all these people making threats to me when they can't even secure their own resources is disgusting. You all need to get jobs, right now, as teenagers while you know everything in the world because as you get older you seem to lose all of that information and then you don't know everything.[/quote] wtf [quote]Please stop discussing that subject in this thread, this thread is for discussion of the Particle Emitter fix; I don't want this getting locked because then I'll have to re-post it again, until people listen. If you have questions for me regarding this matter, PM me. Keep it off the forum.[/QUOTE] We already had a replacement fix that's more efficient and not written by a dmca troll.
If you had any sense of credibility in your claims, Acecooly, you wouldn't fabricate information about other people's actions against you. It's obvious you don't understand the details of the DMCA and what it entails, so you make your own assumptions as to what they've done wrong to justify your misuse of the workshop report functions. (Also your usage of semicolons is highly confusing to me in your responses?)
I'm just baffled that anyone would bother to file a DMCA over a gmod lua script. It's not protecting your work, you're just being an annoying nuisance to anyone that tries to use your "fix" There's other alternatives to fix this problem anyway without the worry of being attacked by a mad man.
[QUOTE=Acecool;43594848]:words:[/QUOTE] You are everything that is wrong with content creators in today's modding community embodied into one person. That is an achievement well beyond any code you have written.
[QUOTE=layla;43595909]I'm just baffled that anyone would bother to file a DMCA over a gmod lua script. It's not protecting your work, you're just being an annoying nuisance to anyone that tries to use your "fix" There's other alternatives to fix this problem anyway without the worry of being attacked by a mad man.[/QUOTE] Tell that to Killslick(who acecool has/still does work for)... I bet you can see where he gets it from.
Every time someone gets into an argument with Acecool he always seems to say they have made death threats towards him, i'm no doctor but I think this guy has serious mental issues.
Sorry, you need to Log In to post a reply to this thread.