Author Topic: UPS not remembering settings  (Read 2813 times)

0 Members and 1 Guest are viewing this topic.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
UPS not remembering settings
« on: December 15, 2009, 06:12:40 AM »
I'm using UPS 0.95 with ULX v3.40 and the latest version of ULib from the download page.
It seems every map refresh/server reboot I need to set my UPS settings again: Don't delete admin props, cleanup time 5s.
Any ideas?  :-\

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UPS not remembering settings
« Reply #1 on: December 15, 2009, 04:38:28 PM »
The reason is because I stupidly trusted garry's method of saving these variables. Garry's method only saves when the server is successfully shut down (I don't think a map change even does it, only shut down). And... how often does a gmod server shut down of it's own accord?

I actually forgot about this issue, thanks for bringing it up.
Experiencing God's grace one day at a time.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: UPS not remembering settings
« Reply #2 on: December 16, 2009, 12:45:26 AM »
Working fine now, I put this in autorun/server/  ;D

Code: [Select]
hook.Add("InitPostEntity" , "WAITWATDELAY?" , function()
game.ConsoleCommand("ups_deletetime 5 \n")
game.ConsoleCommand("ups_deleteadmin 0\n")
game.ConsoleCommand("ups_cleartime -1\n") end )

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: UPS not remembering settings
« Reply #3 on: December 16, 2009, 02:22:41 AM »
lol.. that still doesn't fix the problem... that only is a cheap workaround for you.. haha.. what if you decide you want to change something? Then you have to change your little auto-run script to match. Also not everyone running UPS will know even THAT much lua... Hopefully Meg will fix the root of the problem.