Red City

Red City => Servers => TTT => Topic started by: Anawnymous on September 11, 2013, 04:29:26 PM

Title: My hats are all gone
Post by: Anawnymous on September 11, 2013, 04:29:26 PM
I went online yesterday and found I had no hats, player models or accessories. I figured it was a glitch and kept on playing, but after I got on today I still had nothing. I had no use for my leftover points so I gave them all away. Is that why I got my things taken away?
Title: My hats are all gone
Post by: Rainbow Bash on September 11, 2013, 06:25:49 PM
No, i took them from you in the night while you slept. (but seriously, that really sucks)
Title: My hats are all gone
Post by: TweedleDeeDum on September 11, 2013, 08:53:12 PM
It's a common glitch.
I'd talk to Scarlette.
Title: My hats are all gone
Post by: BabyGirlLKS on September 12, 2013, 08:14:07 AM
Scar said the point system is all messed up, the glitch has happened to me too :( friends had to give me points so i can re-buy all my things it really sucks ass tho
Title: My hats are all gone
Post by: Rainbow Bash on September 12, 2013, 12:28:02 PM
i have like 500000 points ill give you guys some to buy ur hats back
Title: My hats are all gone
Post by: FaTCaT on September 12, 2013, 02:02:02 PM
nah dont try to give away your points away just ask an admin to give you some points.
Title: My hats are all gone
Post by: Scarlette on September 12, 2013, 03:51:16 PM
nah dont try to give away your points away just ask an admin to give you some points.

I agree with this, it's the best option overall.


Scar said the point system is all messed up...

Sadly, it's the truth. While it may not occur often, points can reset on occasion. At first, wait a few rounds. Afterwords, should the problem persist (as with this case here), ask an administrator for assistance.
Title: My hats are all gone
Post by: Taiga on September 12, 2013, 05:25:06 PM
In sv_player_extension.lua, replace the functions Player:PS_Save & Player:PS_LoadData() with:

Code: [Select]
  function Player:PS_Save() if (self.PS_Loaded) then PS:SetPlayerData(self, self.PS_Points, self.PS_Items) end end function Player:PS_LoadData() self.PS_Points = 0 self.PS_Items = {} PS:GetPlayerData(self, function(points, items) self.PS_Points = points self.PS_Items = items self:PS_SendPoints() self:PS_SendItems() end) self.PS_Loaded = true; end

 Add this to the end of the file:

Code: [Select]
  function PS_ServerChangeMap() for k, v in pairs( g_Player.GetAll() ) do -- Save the player's data so that it doesn't reset next map. v:PS_Save() end; end hook.Add( "ShutDown", "PS_ServerChangeMap", PS_ServerChangeMap )

Problem fixed