Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: vader0146 on December 15, 2009, 06:12:40 AM

Title: UPS not remembering settings
Post by: vader0146 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?  :-\
Title: Re: UPS not remembering settings
Post by: Megiddo 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.
Title: Re: UPS not remembering settings
Post by: vader0146 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 )
Title: Re: UPS not remembering settings
Post by: MrPresident 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.