ULX

Author Topic: Ability to copy teams  (Read 6698 times)

0 Members and 1 Guest are viewing this topic.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Ability to copy teams
« on: May 16, 2016, 07:11:25 PM »
Is there anyway to copy teams? I'm trying to assign several groups with several teams; except these teams contain a lot of modifiers. It's a real hassle because I'm just renaming what is essentially the same team. If there is no way, can it possibly be added in the future?
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ability to copy teams
« Reply #1 on: May 16, 2016, 07:47:53 PM »
If you mean 'groups', no easy way. no.
By design, group hierarchy isn't meant to be the same.
You could make one group the way you want it, then have as many groups as you want inherit that one group.
Even that though can become problematic with branching later.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ability to copy teams
« Reply #2 on: May 17, 2016, 03:49:20 AM »
Well he said several teams assigned to several groups, what exactly are you trying to do here?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #3 on: May 17, 2016, 04:42:33 PM »
I'm trying to make several groups which just have different names, making a new group is no problem, however when I want to assign a team to a group, I need more than one because I need them to have different names. Making a new team to assign to these groups is hard because I added a lot of modifiers to them. I'm trying to copy over these teams and then rename them instead.  :P
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ability to copy teams
« Reply #4 on: May 17, 2016, 04:44:04 PM »
What I was asking was; what do you mean by "team"? Team for what?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #5 on: May 17, 2016, 04:54:05 PM »
What you use to tell what rank someone is on the SUI Scoreboard. I can't really think of any other good explanation. I'm having trouble uploading a screenshot of it.
I also tried right clicking it for more options, but none came up
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ability to copy teams
« Reply #6 on: May 17, 2016, 04:58:00 PM »
Oh so it's for a custom plugin. In that case, you'd probably have to go into the code for the addon or something and see how they are stored. I'm not familiar with the "SUI Scoreboard".
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #7 on: May 17, 2016, 05:03:58 PM »
No, it came standard with ULX. You know where you edit groups? That little tab marked "manage teams"
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ability to copy teams
« Reply #8 on: May 17, 2016, 05:06:17 PM »
There is no "team" section in vanilla ULX. You likely have UTeam which gives you that. Looking at the config for UTeam, I see the config
Code: [Select]
"Out"
{
"teams"
{
"1" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Name" //Name of the team.
"group" "usergroup" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "100" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "500" //(*Optional*) Player's initial health.
"armor" "500" //(*Optional*) Player's initial armor.
"model" "gman" //(*Optional*) Player's model. (None if undefined, Kleiner if invalid) Valid models listed below
"plytable" //(*Optional*) Set values on the Player's table.
{ //Format is key:value

"1" "SprintSpeed:1000" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:500" //Set the player's walk speed (Def. 250)
}
}
}
"gamemodes" //Gamemodes to load on
{
"1" "Sandbox" //To add additional increase number each time
}
}

I would presume you could go into this and add in your teams manually (copy and paste then change the values you need)
« Last Edit: May 17, 2016, 05:09:37 PM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #9 on: May 17, 2016, 05:12:15 PM »
I don't think I ever got UTeam, but I'll try what you gave me. Thanks!
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #10 on: May 17, 2016, 05:43:08 PM »
I attempted to create a new team from the groups text file in the ULib data. Do I need to restart the server before it takes effect?
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #11 on: May 17, 2016, 05:54:14 PM »
Alright, I got the screenshot to stop flipping out, these are the teams I'm talking about.
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ability to copy teams
« Reply #12 on: May 17, 2016, 06:01:13 PM »
I understand that. However, I don't know if these teams are default in sandbox or not, but unfortunately I'm not familiar with these teams.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Ability to copy teams
« Reply #13 on: May 17, 2016, 06:04:33 PM »
Oh. Well, I tried copying and pasting these teams after editing them into the groups file and then all the ranks got screwed up. Good thing there's a backup. I'll just lock this thread for now
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ability to copy teams
« Reply #14 on: May 18, 2016, 03:30:58 PM »
There is no "team" section in vanilla ULX.
Incorrect.
Sandbox mode, ULX allows associating teams with groups.
There is no way to copy them without editing the file, which of course, you must know what you are doing.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming