ents.Create (nil value)

Hey,

Ever since the other day, my addons just. . broke. No idea how. This is the error:


[ERROR] addons/baddog's pokeballs/lua/entities/pb_base/shared.lua:58: attempt to call field 'Create' (a nil value)
  1. Release - addons/baddog's pokeballs/lua/entities/pb_base/shared.lua:58
   2. unknown - addons/baddog's pokeballs/lua/entities/pb_base/shared.lua:38

If you need the lua file, here is the link:

https://dl.dropboxusercontent.com/u/97639347/shared.lua

ents.Create doesn’t exist clientside

Weird. It was working properly. Since when was it not clientside?

I believe ents.Create was removed in the GMod 13 Beta

[editline]22nd June 2013[/editline]

A simple, untested solution might be to replace the ENT:Replace() function with this

[lua]function ENT:Think()
if self.timer < CurTime() and SERVER then
self:Release()
self:DoEffects()
self:Remove()
end
end[/lua]

Strange. This entire time it’s been working perfectly fine. Well, time to fix my addon. Thanks alot Banana!