• Print

Author Topic: _Uncategorized Cmds  (Read 4770 times)

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
_Uncategorized Cmds
« on: February 20, 2017, 08:39:09 pm »
So for one of my addons for ULX I'm making, the commands aren't showing under the proper category. In fact, they're not showing up under any category except for _Uncategorized Cmds (only found in the Groups tab). My question is, why is this happening?


An example of one of my commands:


Code: Lua
  1. function ulx.ChangePinID( calling_ply, sid, newPin, rank )
  2.    TFA_PinRefresh()
  3.  
  4.  
  5.    if ULib.isValidSteamID( sid ) then
  6.       if not GetPin[ sid ] then
  7.          ULib.tsayError( calling_ply, "This Steam ID does not have a PIN, please use \"ulx addpinid\" to add a PIN." )
  8.       else
  9.          local entry = { Pin = newPin, Rank = rank }
  10.  
  11.  
  12.          TFA_PinRefresh()
  13.          GetPin[ sid ] = entry
  14.          file.Write( dir .. settings, util.TableToJSON( GetPin ) )
  15.  
  16.  
  17.          local sFormat = sid
  18.          local Check = ULib.getPlyByID( sid )
  19.  
  20.  
  21.          if Check then
  22.             sFormat = Check:Nick() .. " (" .. sid .. ")"
  23.             ulx.fancyLog( { target_ply }, "Your PIN was changed by #P to #s", calling_ply, newPin, true )
  24.          end
  25.          ulx.fancyLog( { calling_ply }, "You changed the PIN of #s to #s with a rank of #s", sFormat, newPin, rank, true )
  26.       end
  27.    else
  28.       ULib.tsayError( calling_ply, "This is an invalid Steam ID." )
  29.    end
  30.    TFA_PinRefresh()
  31. end
  32. local changepinid = ulx.command( "TFA", "ulx changepinid", ulx.ChangePinID, "!changepinid", true )
  33. changepinid:addParam{ type=ULib.cmds.StringArg, hint="Steam ID to change." }
  34. changepinid:addParam{ type=ULib.cmds.StringArg, hint="New PIN." }
  35. changepinid:addParam{ type=ULib.cmds.StringArg, completes=ulx.group_names_no_user, hint="Rank", error="Invalid group\"%s\" specified", ULib.cmds.restrictToCompletes }
  36. changepinid:defaultAccess( ULib.ACCESS_SUPERADMIN )
  37. changepinid:help( "Changes the PIN of a Steam ID." )


As you can see, I have
Code: Lua
  1. local changepinid = ulx.command( "TFA", "ulx changepinid", ulx.ChangePinID, "!changepinid", true )
so it should show under the "TFA" category, correct? Why is this not happening?

I've tried removing misc_registered.txt and changing maps (then doing that and restarting the server) but they still show under _Uncategorized Cmds.

They even show up under the correct Category in 'ulx help'

Code: [Select]


Category: TFA
   o ulx addpin <player> <PIN to set> - Adds a user's authentication PIN. (say: !addpin)
   o ulx addpinid <Steam ID of player> <PIN> <Rank> - Adds a PIN to a Steam ID with a specified rank. (say: !addpinid)
   o ulx authenticate - Gives you the option to re-authenticate your PIN. (say: !auth)
   o ulx changepin <player> <New PIN.> - Changes the PIN of a targeted player. (say: !changepin)
   o ulx changepinid <Steam ID to change.> <New PIN.> <Rank> - Changes the PIN of a Steam ID. (say: !changepinid)
   o ulx removepin <player> - Removes someone's PIN. (say: !removepin)
   o ulx removepinid <Steam ID of player> - Removes the PIN of a Steam ID. (say: !removepinid)
« Last Edit: February 20, 2017, 08:40:48 pm by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline captain1342

  • Full Member
  • ***
  • Posts: 104
  • Karma: 6
  • Quality is our standard
    • Aperture Development - Quality is our standard
Re: _Uncategorized Cmds
« Reply #1 on: February 22, 2017, 05:51:44 am »
The same Problems is Happening here .. idk how others do it cause it doesen't matter if i modify the ULX files or add it with an external File it stays at "_Uncategorized"
Aperture Development
Quality is our standard

Website - GitHub  - Forum  - Steam  - Discord

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: _Uncategorized Cmds
« Reply #2 on: February 22, 2017, 08:08:58 am »
Thing is it usually works just this time it isn't. I do remember it saying ULX updates are available so maybe it's that I'll try updating when I get home.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

  • Print