• Print

Author Topic: Fixing a LUA Error  (Read 6833 times)

0 Members and 1 Guest are viewing this topic.

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Fixing a LUA Error
« on: January 11, 2014, 06:18:58 pm »
I would like to make commands silent, such as crashing a player and banning a player. I have more, and I was wondering if I could change anything to do this.
« Last Edit: January 16, 2014, 06:32:26 pm by ryanlaw4 »

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Making certain commands silent
« Reply #1 on: January 11, 2014, 06:49:14 pm »
Are these cobalt's commands?
Out of the Garry's Mod business.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Making certain commands silent
« Reply #2 on: January 12, 2014, 07:06:42 am »
If you add "true" as an argument before the format info to ulx.fancyLog*, it will be silent.
Code: Lua
  1. ulx.fancyLogAdmin( calling_ply, true, ... )
Experiencing God's grace one day at a time.

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Making certain commands silent
« Reply #3 on: January 13, 2014, 07:44:44 am »
Thank you for your help, the commands I silenced worked. I want to backup all my ulib/ULX groups, commands, etc, how would I do that? Should I make a new thread?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Making certain commands silent
« Reply #4 on: January 13, 2014, 02:12:19 pm »
You could have asked in help/general support, but here's fine.
gmod/data/ulx
gmod/data/ulib
Those store our default files.
Other projects we didn't code may store elsewhere in the data folders.
Should be obvious.
sv.db stores Utime info, among many other bits/pieces of info for many different addons not made by us here in the community.

We really need to make a FAQ for this, we've seen it a few times.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Making certain commands silent
« Reply #5 on: January 13, 2014, 03:58:05 pm »
I have backed that up, along with various commands. The server that I am a developer for (at least trying) has a lot of commands. Im trying to sort them out before implementing them again. The various commands are in /sh/... I have those. I also have a bug to report. Recently, when I go to edit permissions in the GUI, there isn't anything when I hit manage permissions. Will upload a screenshot if you don't know what I mean.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Making certain commands silent
« Reply #6 on: January 13, 2014, 04:20:40 pm »
I've don't remember why your groups would be blank. Rarely see that. Search the forum, I forget the fix.
As for putting your commands in our ULX /sh/ folders, as a developer, you should learn not to edit the original folders, but instead, make your own addons folder.
/addons/my_ulx_addon_stuff_name/lua/ulx/modules/<sh|cl>/<your_lua_files> would load in ULX just like they do within the ulx folder, as long as you had an addon.txt within my_ulx-addon_stuff_name folder.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: Making certain commands silent
« Reply #7 on: January 13, 2014, 04:41:28 pm »
I have backed that up, along with various commands. The server that I am a developer for (at least trying) has a lot of commands. Im trying to sort them out before implementing them again. The various commands are in /sh/... I have those. I also have a bug to report. Recently, when I go to edit permissions in the GUI, there isn't anything when I hit manage permissions. Will upload a screenshot if you don't know what I mean.
Settings > Client > XGUI Settings > Refresh Server Data

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Making certain commands silent
« Reply #8 on: January 14, 2014, 05:13:05 pm »
To be more specific, I can't edit permissions through XGUI, It think it may have been deleted. I tried refreshing and it did nothing. I can upload pics, files, etc... I just want this out of the way

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Making certain commands silent
« Reply #9 on: January 14, 2014, 06:29:30 pm »
Upload a screenshot if you can, It'll help us diagnose your problem.

If you want to try something immediately, make sure your ULX installation is up to date, and try making sure you have access to all of the following accesses (enter these in your server console)
Code: [Select]
ulx groupallow superadmin xgui_gmsettings
ulx groupallow superadmin xgui_managebans
ulx groupallow superadmin xgui_managegroups
ulx groupallow superadmin xgui_svsettings
ulx groupallow superadmin "ulx groupallow"
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Making certain commands silent
« Reply #10 on: January 16, 2014, 03:16:34 pm »
Alright, I have screenshots. Here they are:
http://steamcommunity.com/sharedfiles/filedetails/?id=217305522

I've tried all of the before posted suggestions. Is this lua error a part of what is going wrong? How would I fix this?
local UsersKV = util.KeyValuesToTable( file.Read( "settings/users.txt", true ) )

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Making certain commands silent
« Reply #11 on: January 16, 2014, 05:05:20 pm »
I think you're looking for a different thread, ryanlaw4.
Experiencing God's grace one day at a time.

Offline ryanlaw4

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Making certain commands silent
« Reply #12 on: January 16, 2014, 06:00:20 pm »
Well the thread kind of evolved into a new one, I'll change the name.

  • Print