![]() |
|
PhysObj error - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: PhysObj error (/thread-886.html) |
PhysObj error - LocInt - 26-04-2015 Well since last update I keep getting this error Code: addons/starfall/lua/starfall/libs_sh/physobj.lua:35: attempt to index upvalue 'Index' (a function value)Code: PhysObj=Entity:getPhysicsObject()
print(PhysObj:getMass()RE: PhysObj error - Person8880 - 26-04-2015 Yeh it'll do it for everything. Old code lying around that I forgot to replace. I would go on server #2 as I've just restarted it with the fix. #1 will have to wait for a restart. RE: PhysObj error - LocInt - 26-04-2015 (26-04-2015, 01:18 PM)Person8880 Wrote: Yeh it'll do it for everything. Old code lying around that I forgot to replace. Im on #2 and got this Code: addons/starfall/lua/starfall/libs_sh/physobj.lua:64: attempt to index a nil valueSome stuff seem to work but sometimes I get this error. RE: PhysObj error - Person8880 - 26-04-2015 You're doing this:
instead of
The error will be more clearly stated after yet another restart, but it is a problem you still need to fix in your code. RE: PhysObj error - LocInt - 26-04-2015 (26-04-2015, 01:48 PM)Person8880 Wrote: You're doing this: Just checked my code and I dont have such mistake. Also got new error: Code: sv: addons/starfall/lua/starfall/libs_sv/physobj.lua:55: attempt to index local 'Phys' (a nil value)RE: PhysObj error - Person8880 - 26-04-2015 Seems the physics object is being garbage collected at random. Garry pls. RE: PhysObj error - Person8880 - 26-04-2015 Ok, I've forced it to hold onto the physics objects instead of letting them get GCed. Seems to be fixed. |