ULX

Author Topic: TTT/GMod Beta - ULX hang  (Read 10230 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: TTT/GMod Beta - ULX hang
« Reply #15 on: October 27, 2012, 10:44:37 PM »
Though ULX does have a few hooks that watches PlayerDeath, we don't modify the AddFrags function or variable, ever, to my knowledge.
It would seem my original belief it's a conflict of TTT code.
Looks like somewhere in TTT, PlayerDeath is returning something that breaks other addons (including ULX in this case), and causes the game to hang because that's how a game usually ends, when a last player dies.
No Gmod function should return anything unless the author REALLY knows what they are doing.

I'm not saying for 100% sure it's not our fault.
I'm just 98% sure it's not our fault.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline faceguydb

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: TTT/GMod Beta - ULX hang
« Reply #16 on: October 28, 2012, 03:48:37 PM »
Found the cause of the issue.

This is why the server hangs at the end of the round?

ERROR: Hook 'ULXCheckFireDeath' Failed: .../terrortown/entities/weapons/weapon_ttt_jihad/shared.lua:102: attempt to call method 'AddFrags' (a nil value)
Removing Hook 'ULXCheckFireDeath'


I tried with out the jihad on the server, same issue. Jihad is not causing the hang up.

Offline pa1n

  • Newbie
  • *
  • Posts: 19
  • Karma: -1
Re: TTT/GMod Beta - ULX hang
« Reply #17 on: October 28, 2012, 03:59:37 PM »
Well for me it works with out jihad.. Maybe check your server log and see which plugin is causing ulx to crash/hang and remove the plugin like I have.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: TTT/GMod Beta - ULX hang
« Reply #18 on: October 28, 2012, 04:10:18 PM »
Though jihad is specifically mentioned in that hook error, the actual error would be with any hook that returns true or false (or some other value Gmod isn't expecting) from PlayerDeath.
This could be any addon.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ZachPL

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: TTT/GMod Beta - ULX hang
« Reply #19 on: October 31, 2012, 02:23:37 PM »
I would like to confirm this does happen only with ulx installed. Our TTT server would freeze at the end of rounds randomly and the only way to fix this would be to change maps. Ever since I disabled ulx about a week ago this has not occurred once.

Offline pa1n

  • Newbie
  • *
  • Posts: 19
  • Karma: -1
Re: TTT/GMod Beta - ULX hang
« Reply #20 on: October 31, 2012, 06:51:13 PM »
One thing I have noticed is adding custom timers ulx does not like at all.... So its something with ulx that needs to be re-worked. No other admin mod I use causes the hang at all but I like ulx because of the features it has over other admin mods.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: TTT/GMod Beta - ULX hang
« Reply #21 on: November 03, 2012, 09:20:46 AM »
Can someone please test to see if this issue still exists in the latest gmod and ULX/ULib code bases?
Experiencing God's grace one day at a time.

Offline ZachPL

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: TTT/GMod Beta - ULX hang
« Reply #22 on: November 04, 2012, 10:30:52 AM »
Latest version seems to have fixed this, thanks.