• Print

Author Topic: GM10 updates  (Read 7 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
GM10 updates
« on: December 06, 2006, 02:48:34 pm »
I'll use this thread so we can keep in touch with GM10 going-ons and problems concerning ULib/ULX.

I thought it would be kind of fun to use autocomplete in ULX to assist with finding player names and offering help on command syntax... but there's a big problem with that. You can only use autocomplete in client lua, but we need the commands to be on the server to do anything useful. I've only come up with one workaround: using the "normal" commands like "ulx kick", "ulx ban", etc on the client and have a reroute command to send the information to the server. This seems like a rather large hack to base everything off of, however.

Let me expand on what autocomplete would be used for... You'd type in "ulx kick", then hit space, then it would offer a list of players to kick from. You can enter a few characters of a name to narrow down the options, and use up/down to choose one. Then, if you hit another space, it would bring up a help line where it offered the choices before ("HELP: ulx kick <player> [<reason>]"). Obviously, this might be problematic if they use the arrow keys with the help showing, because then the help line will be in their console...

Also, a minor issue: You can't use PrintSay from a client. Don't know if this is intentional or garry just forgot to implement it.
Experiencing God's grace one day at a time.

  • Print