Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: pa1n on November 01, 2012, 03:40:46 PM
-
Moved timer module into engine. This breaks xgui but everything works command wise. I will start testing and see if timers still break TTT rounds
-
i really hope this does fix the round hang issue i had a weapon that i couldn't fix breaking the timers.
Also on the downside xgui wont open at all with the update like you said
-
For Megiddo:
It looks like the UCLAuthed and ULibLocalPlayerReady hooks either aren't working at all, or something changed such that my functions hooked to those no longer get called. I got similar results with a listen server. Oddly enough, it seems to get called fine in single player (ignoring the Player Not Authed errors shortly after). I was able to get XGUI to start up by manually calling the correct functions in order.
For everyone else:
I just barely pushed a build that changes a few things in how XGUI starts up, but it still doesn't fully fix the problem. However, you are now able to run this command in your client console after joining a server to get XGUI working:
lua_run_cl xgui.init()
Do note that this requires your server to have sv_allowcslua set to 1. Hopefully this holds while we try and figure out what the real problem is.
-
For Megiddo:
It looks like the UCLAuthed and ULibLocalPlayerReady hooks either aren't working at all, or something changed such that my functions hooked to those no longer get called. I got similar results with a listen server. Oddly enough, it seems to get called fine in single player (ignoring the Player Not Authed errors shortly after). I was able to get XGUI to start up by manually calling the correct functions in order.
For everyone else:
I just barely pushed a build that changes a few things in how XGUI starts up, but it still doesn't fully fix the problem. However, you are now able to run this command in your client console after joining a server to get XGUI working:
lua_run_cl xgui.init()
Do note that this requires your server to have sv_allowcslua set to 1. Hopefully this holds while we try and figure out what the real problem is.
A little bit hacky, but I just have
timer.Simple(5, function() if IsValid(ply) then ply:SendLua("xgui.init()") end end)
in my spawn function now.
By the way, with your new update if the server changes map with no players on it throws a hissy fit with a bunch of errors, but it doesn't seem to break anything.
-
Thanks spykr! I was planning on adding a timer to call it in xgui itself, but I didn't have adequate enough time to check for any issues. (XGUI does weird things when init'd twice. That and it might work fine on some machines and explode on slower machines.)
As for the mapchange errors-- we'll look into it.
-
hook.Add("PlayerInitialSpawn", "xguitemp", function(ply)
timer.Simple(5, function() if IsValid(ply) then ply:SendLua("xgui.init()") end end)
end)
Would that work?
-
According to reports, Garry has pushed a new update to Garry's Mod that fixes gamemode hooks not being called. So, it should be working now! Can anyone confirm for me?
-
Garry's update made it worse for me as a linux user.
-
XGUI works for me now.