• Print

Author Topic: Being "stripped" upon spawning after death  (Read 3644 times)

0 Members and 1 Guest are viewing this topic.

Offline Bitter

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Being "stripped" upon spawning after death
« on: August 20, 2013, 12:49:13 am »
Here's the problem:
When i'm on my server, and i die, there's a chance that i will spawn with nothing.

Here's what happens:
I restart my server, and suicide myself a few times. Sometimes it takes one death, other times it take 3 deaths, it's always the same number of deaths until i restart the server. But when i die that specific amount of times, the next time i respawn i will have nothing.

It's like i'm being "Stripped" (ULX command to remove players items) after every (set amount) of deaths. Where could i change this in my ULX/ULIB folders? I must have changed a file somewhere that is causing it. Also, there's no errors in server console or ingame console. Please help me, i really need it.

EDIT: Also, it could be compared to being arrested every time. The same effect but you're aren't actually arrested. There's no hint that says "NAME has been arrested" or anything like that. Also he is not recognized by the server as arrested because i cannot unarrrest him.

EDIT: I have eliminated the issue by removing ALL addons from my addons DIR. However, i added ULX and ULIB back and the issue is happening again. What kind of file could possess the power to cause players to be "stripped" when they spawn?

(You can fix the issue by switching classes, but it is really annoying. and frankly, it's just a work-around. i want to fix it.)
« Last Edit: August 20, 2013, 12:51:06 am by Bitter »

Offline Bitter

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Being "stripped" upon spawning after death
« Reply #1 on: August 20, 2013, 01:12:59 am »
Code: Lua
  1. Function: spawn
  2.  
  3.         Enhanced spawn player. Can spawn player and return health/armor to status before the spawn. (Only IF ULib.getSpawnInfo was used previously.)
  4.         Clears previously set values that were stored from ULib.getSpawnInfo.
  5.  
  6.         Parameters:
  7.  
  8.                 ply - The player to grab information for.
  9.                 bool - If true, spawn will set player information to values stored using ULib.SpawnInfo
  10.  
  11.         Returns:
  12.  
  13.                 Spawns player. Sets health/armor to stored defaults if ULib.getSpawnInfo was used previously. Clears SpawnInfo table afterwards.
  14. ]]
  15. function ULib.spawn( player, bool )
  16.         player:Spawn()
  17.  
  18.         if bool and player.ULibSpawnInfo then
  19.                 local t = player.ULibSpawnInfo
  20.                 player:SetHealth( t.health )
  21.                 player:SetArmor( t.armor )
  22.                 timer.Simple( 0.1, function() doWeapons( player, t ) end )
  23.                 player.ULibSpawnInfo = nil
  24.         end
  25. end
  26.  

I Found that, I'm not comfortable with changing anything unless i know for sure that is the problem. It isn't getting the weapons after i spawn. The health and armor is good though.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Being "stripped" upon spawning after death
« Reply #2 on: August 20, 2013, 12:40:52 pm »
We have no setting that would cause the issue you describe.
Yes, you found a similar function in ULib, but, unless you have a gamemode or other addon that uses it, we don't use it for standard server spawn.
We use it in rare other cases, usually when someone has been punished and tries to respawn to get past the punishment.
Anti-suicide when in jail.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Being "stripped" upon spawning after death
« Reply #3 on: August 20, 2013, 05:33:46 pm »
Agreed with JamminR, there is no logic in ULib/ULX that would do what you're describing.
Experiencing God's grace one day at a time.

  • Print