Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 14 15 16 17 18 Next »
PhysObj error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
PhysObj error
26-04-2015, 01:06 PM,
#1
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
PhysObj error
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)
Always when im trying to get something from PhysObj as example:

Code:
PhysObj=Entity:getPhysicsObject() print(PhysObj:getMass()
and that is an error. Same goes with getAngleVelocity etc.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
26-04-2015, 01:18 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: PhysObj error
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.
Find
Reply
26-04-2015, 01:34 PM,
#3
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: PhysObj error
(26-04-2015, 01:18 PM)Person8880 Wrote: 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.

Im on #2 and got this
Code:
addons/starfall/lua/starfall/libs_sh/physobj.lua:64: attempt to index a nil value

Some stuff seem to work but sometimes I get this error.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
26-04-2015, 01:48 PM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: PhysObj error
You're doing this:
SomePhysObj.someMethod()
instead of
SomePhysObjConfusedomeMethod()

The error will be more clearly stated after yet another restart, but it is a problem you still need to fix in your code.
Find
Reply
26-04-2015, 01:54 PM,
#5
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: PhysObj error
(26-04-2015, 01:48 PM)Person8880 Wrote: You're doing this:
SomePhysObj.someMethod()
instead of
SomePhysObjConfusedomeMethod()

The error will be more clearly stated after yet another restart, but it is a problem you still need to fix in your code.

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)

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
26-04-2015, 01:55 PM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: PhysObj error
Seems the physics object is being garbage collected at random. Garry pls.
Find
Reply
26-04-2015, 02:07 PM,
#7
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: PhysObj error
Ok, I've forced it to hold onto the physics objects instead of letting them get GCed. Seems to be fixed.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.