Team Spartan Cookies & Milk Forums
Ownership Bug - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html)
+--- Thread: Ownership Bug (/thread-931.html)



Ownership Bug - SuperPlayer - 23-05-2015

Well today i had i very strange problem. I spawned my ship but it seemed that i didnt own it. I couldn't use toolgun physgun or anything on it. I asked the server and it told me that i own it but when i tried to find the ship via starfall it said i have no props spawned. I have no idea how to fix that. Yes i tried to reconnect.

Does anyone has an idea how to fix that?
(I also tried other dupes and it doesnt work either)


SuperPlayer


RE: Ownership Bug - Person8880 - 23-05-2015

You're sure you couldn't toolgun? The logs show you using the Starfall tool on parts of the ship successfully. Physgun would probably be blocked from the Q > TSCM > Misc > "Pickup welded objects" option being off.

As for Starfall, sounds like you're doing something wrong in the code. Probably filtering the results incorrectly. Post the code you're using to try and find them.


RE: Ownership Bug - SuperPlayer - 23-05-2015

Yes thats right. I was able to use the toolgun just on the starfall processor. But not on the rest of the ship. I even couldnt open the editor using right-click. The physgun wasnt like "Pickup welded objects" it was like if you try to pick up the world what you cant do. The code i am using was:


local Props = { }
local Cores = find.byClass("ship_core",function( Ent ) return Ent:owner() == ents.owner() end )
if IsValid( Cores[1] ) then
Props = Cores[1]:getConstrained()
end
print(#Props)
That always worked perfect.


RE: Ownership Bug - Person8880 - 23-05-2015

The ship core must have been removed somehow would be my guess. The logs show you using the toolgun on props of the ship with the Starfall tool, and if the server says you own it then the ownership is fine.

If it happens again I'd need to be on the server to see exactly what's wrong. I know for sure I've not touched anything to do with ownership or permissions in a long time.


RE: Ownership Bug - SuperPlayer - 23-05-2015

Ok. Thank you for trying to help me.