Ulysses

Ulysses Stuff => Suggestions => Topic started by: The Asian Aimbot on May 16, 2016, 07:11:25 PM

Title: Ability to copy teams
Post by: The Asian Aimbot 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?
Title: Re: Ability to copy teams
Post by: JamminR 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.
Title: Re: Ability to copy teams
Post by: iViscosity 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?
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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
Title: Re: Ability to copy teams
Post by: iViscosity on May 17, 2016, 04:44:04 PM
What I was asking was; what do you mean by "team"? Team for what?
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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
Title: Re: Ability to copy teams
Post by: iViscosity 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".
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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"
Title: Re: Ability to copy teams
Post by: iViscosity 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)
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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!
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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?
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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.
Title: Re: Ability to copy teams
Post by: iViscosity 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.
Title: Re: Ability to copy teams
Post by: The Asian Aimbot 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
Title: Re: Ability to copy teams
Post by: JamminR 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.
Title: Re: Ability to copy teams
Post by: The Asian Aimbot on May 18, 2016, 04:27:46 PM
I learned not to edit ULib generated files manually the hard way ;-;
Title: Re: Ability to copy teams
Post by: iViscosity on May 18, 2016, 04:28:42 PM
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.

Yeah I only ever play TTT, so I wasn't familiar with Teams :P