General > Developers Corner
Ulib/ULX function overriding (and now Hooks too) - MySQL
EraYaN:
i'm getting futher now
i was trying to get the logsystem working, but dont you guy have something like and OnLog hook?
JamminR:
Not in ULib directly, no.
http://ulyssesmod.net/docs/index/General.html - functions
http://ulyssesmod.net/docs/index/Hooks.html - hooks
Unfortunately, ULX isn't as well documented <externally> like ULib is.
I'm reasonably sure that it doesn't have a hook in it for logging only.
You may find ULib's ULibCommandCalled hook useful, but, its been so long since I've looked at ULX's logging, I don't remember if it calls any ULib functions, or just uses it's own.
EraYaN:
It uses it's own :(
ok I'm making progress. Next thing to do is design the UCL queries. Logging is working, User tracking is working (tracks deaths/frags).
I was thinking where does ulx save things like teams? ads? gimp messages? and all stuff like that.
-EraYaN-
Megiddo:
It saves it wherever it's most convenient. If it's something to do with groups, it's saved inside groups.txt. If you want to save user-specific data, you'd want to save it to users.txt (there's ULib functions to save the file). Otherwise, create your own file or use SQLite or MySQL.
JamminR:
--- Quote from: EraYaN on March 21, 2011, 12:05:57 PM ---I was thinking where does ulx save things like teams? ads? gimp messages? and all stuff like that.
--- End quote ---
gmod root/data/ulib for users/groups
gmod root/data/ulx/<various> for settings/permap settings/ads/etc
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version