Author Topic: Targetting problem  (Read 1385 times)

0 Members and 1 Guest are viewing this topic.

Offline BugBait

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Targetting problem
« on: April 03, 2016, 10:32:18 AM »
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.

My ULib/ULX versions (run "ulx version" in console):
ULib v2.60d (02/18/16)
ULX v3.70d (03/20/16)

Game mode(s) I am having this problem on: trial mod's moderator's operator's admin's head admins and head of staff can pick up and execute commands on superadmin (I force resetted ulx yesterday then it worked after a restart it did not work at all!.

Lua errors shown in console, if any:
Code: [Select]
None given

data file of groups;

"headadmin"
{
"can_target" "!%headofstaff"
"allow"
{
"ulx physgunplayer"
"ulx reservedslots"
"ulx seeanonymousechoes"
"ulx seeasay"
"ulx spawnecho"
}
"inherit_from" "admin"
}
"VIP"
{
"allow"
{
}
"inherit_from" "user"
}
"moderator"
{
"can_target" "!%admin"
"allow"
{
"awarn_view"
"awarn_warn"
"ulx ban"
"ulx banid"
"ulx cloak"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx jailtp"
"ulx kick"
"ulx maul"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx seeasay"
"ulx slap"
"ulx slay"
"ulx strip"
"ulx tsay"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
}
"inherit_from" "operator"
}
"trialmod"
{
"can_target" "!%admin"
"allow"
{
"awarn_view"
"awarn_warn"
"ulx kick"
"ulx noclip"
"ulx return" "!%admin"
"ulx goto" "!%admin"
"ulx bring" "!%admin"
}
"inherit_from" "operator"
}
"user"
{
"allow"
{
"ulx asay"
"ulx cac"
"ulx help"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx version"
"ulx who"
}
}
"admin"
{
"can_target" "!%headadmin"
"allow"
{
"awarn_remove"
"awarn_view"
"awarn_warn"
"fpp_cleanup"
"ulx armor"
"ulx ban"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx jailtp"
"ulx kick"
"ulx kickafternamechanges"
"ulx kickafternamechangescooldown"
"ulx kickafternamechangeswarning"
"ulx map"
"ulx mechatenabled"
"ulx motdfile"
"ulx motdurl"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx return"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx seeanonymousechoes"
"ulx seeasay"
"ulx send"
"ulx showmotd"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx votekick"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap2"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx welcomemessage"
"ulx whip"
}
"inherit_from" "operator"
}
"operator"
{
"can_target" "!%admin"
"allow"
{
"awarn_view"
"awarn_warn"
"ulx hp"
"ulx jail"
"ulx jailtp"
"ulx kick"
"ulx physgunplayer"
"ulx seeasay"
"ulx slap"
"ulx slay"
"ulx unjail"
}
"inherit_from" "user"
}
"superadmin"
{
"allow"
{
"atags adminpanel"
"awarn_delete"
"awarn_options"
"fpp_settings"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx banid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logechocolorconsole"
"ulx logechocolordefault"
"ulx logechocoloreveryone"
"ulx logechocolormisc"
"ulx logechocolorplayer"
"ulx logechocolorplayerasgroup"
"ulx logechocolors"
"ulx logechocolorself"
"ulx logevents"
"ulx logfile"
"ulx logjoinleaveecho"
"ulx logspawns"
"ulx logspawnsecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx setgroupcantarget"
"ulx stopvote"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"ulx voteecho"
"xgui_gmsettings"
"xgui_managebans"
"xgui_managegroups"
"xgui_svsettings"
}
"inherit_from" "admin"
}
"headofstaff"
{
"can_target" "!%superadmin"
"allow"
{
"awarn_delete"
"awarn_remove"
"awarn_view"
"awarn_warn"
"ulx adduser"
"ulx adduserid"
"ulx armor"
"ulx asay"
"ulx ban"
"ulx banid"
"ulx blind"
"ulx bring"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx goto"
"ulx help"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx jailtp"
"ulx kick"
"ulx map"
"ulx maul"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx psay"
"ulx ragdoll"
"ulx removeuser"
"ulx removeuserid"
"ulx reservedslots"
"ulx return"
"ulx seeanonymousechoes"
"ulx seeasay"
"ulx send"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx thetime"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx version"
"ulx whip"
"ulx who"
"xgui_managebans"
"xgui_managegroups"
}
"inherit_from" "headadmin"
}


Plis i nied y0er help <3

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Targetting problem
« Reply #1 on: April 03, 2016, 05:05:17 PM »
You have a fairly complicated, branching group inheritance. For such cases, it's usually better to specify "can_target" in the positive. E.G., what groups CAN they target? Example, for admins, I'm assuming you want can_target set to "#admin,#trialmod,#moderator,#operator,#VIP,#user". The '#' ignores inheritance on group targeting ('%' includes inheritance).
Experiencing God's grace one day at a time.