General > Developers Corner

Sourcebans admin integration?

<< < (3/5) > >>

JamminR:
Perhaps you could PM the author of this post.
He's mentioned interest in our UCL and SQL.
http://forums.ulyssesmod.net/index.php/topic,4442.msg17765.html
Somewhere around here is the code Megiddo once used to pull admin steamids from SMF database when we had a gmod server too, but I've long lost where the post was.

EDIT - Ah HA! I knew if I used search from the right forum area I'd find it.
http://forums.ulyssesmod.net/index.php/topic,3241.msg9622.html#msg9622
Now, again, that's only example Lua code, pulling from the SMF database.
However, with the links given above, experience with SQL combined with the example, shouldn't be impossible to find the proper Sourcebans admin tables and pull from those/promote the player using Megiddo's ideas.

Snowden42:
Whatever help you guys can give me is fine. Right now I'm looking through our community for a lua coder to help, and I don't think it's going to materialize.

JamminR:
See my edit. :)

Snowden42:
I took a look, it's definitely a helpful start. I've also got MySql workbench running properly, so I can take a good look at the sourcebans tables.

Snowden42:
Well, I've taken this in a new direction. Since I'm much better at PHP, and, at least in my opinion, it's much easier to use, I'm in the process of writing a script that will be run through cron. It's gonna query the Sourcebans database and dump it in the proper format as a .txt file in garrysmod/data/ulib/users.txt

Comments or suggestions? I'm not 100% sure how Ulx works, but I do know this will override any changes made in game, which I'm fine with, as we can just use the database to continue making changes.

This isn't a perfect strategy, but for me it should work. If anyone is interested in the code when I'm finished, I'll gladly share it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version