Natural Selection 2

Natural Selection 2

Not enough ratings
Player Badge Mod Assignment
By Huze
How Player Badge Mod assignment works. This is getting a bit complicated so I'm making a guide as a companion to the mod.
   
Award
Favorite
Favorited
Unfavorite
Badge Assignment
There are 3 different layers to badge assignment.

1. Global Badges
Global Badges are maintained on my Badge Server[www.ns2c.com] They work on all servers running badge mod. Historically this served forums badges, but since official implementation, the badge server only serves ENSL badges.

2. Server Badge A: Badges Assigned to Server Group
In ServerAdmin.json file you can now assign badges to whole groups.
The example code below shows how to give all moderators the unicorn badge.
{ "groups": { "admin_group": { "commands": [ ], "type": "disallowed", "badge": "admin" }, "moderator_group": { "commands": [ ], "type": "disallowed", "badge": "unicorn" } }, "users": { "Huze": { "id": 9116870, "groups": [ "admin_group" ] } } }

3. Server Badge B: Name of Server Group
This is the old way to assign badges. In ServerAdmin.json assign a player to a group with the same name as a badge. The group name must match the badge name exactly for it to show up.
The example code below shows how to assign the unicorn badge to a player.
{ "groups": { "admin_group": { "commands": [ ], "type": "disallowed", } }, "users": { "Huze": { "id": 9116870, "groups": [ "unicorn", "admin_group" ] } } }

Note: Each player's badge is loaded from his groups in order. The first group assigned will be the badge that shows up. If the group doesn't have a badge assigned (#2) or its name doesn't match a badge (#3) then the next group be tried until a valid one is found.
List of Badges
Server Badges
unicorn
nyancat
troll
star
heart
clover
ghost
pumpkin
skull
crown
admin
mod
Badge Packs
How to Make a Badge Pack
  • Create a new mod using the launch pad
  • In the source directory, create "ui/badges" folders
  • Create badges - 32x32 px, psd format.
  • Fill the "ui/badges" folder with badges. Files must be named "${NAME}.psd"
  • Run Builder.exe, build your mod
  • The output directory should contain .dds conversions of your .psd files.
  • Publish your mod using launch pad
  • Add Player Badges and badge pack mods to the server.
Any custom badges can be assigned with NAME.
15 Comments
Piccolas 14 Oct, 2014 @ 4:00am 
gostei
LAMOUCHE 15 Nov, 2013 @ 12:29pm 
ok it s work !
Huze  [author] 12 Nov, 2013 @ 7:21pm 
You can use custom badges by following the youtube guide above. You have to use a badge pack. You can not serve badges from an ftp.
Ghoul  [developer] 11 Nov, 2013 @ 11:19pm 
@X X X

Nope thats not posible as also the clients need to somehow get your badge to display it therefor you need a badge pack.
LAMOUCHE 11 Nov, 2013 @ 6:03am 
from BADGES PACK FLAGS MOD :
"This is only a pack with flags (icons). You need Huze Badge mod and a file that tells Huze server that you wish to use flags on your server. Players will have to register on ns2c.com"

I don't understand :
if i want to use my owners customs badges for my players servers i need to see Huze ?
Can i add my owners customs badges in my ftp files server folder like this path /mods/m5f42a0c1383881280/ui/badges ?
LAMOUCHE 11 Nov, 2013 @ 3:46am 
This is only a pack with flags (icons). You need Huze Badge mod and a file that tells Huze server that you wish to use flags on your server. Players will have to register on ns2c.com

i don t understand ...

if i want to use my owners customs badges for my players servers i need to see Huze ???
Can i ad my owners customs badges in my ftp files server ?
Huze  [author] 7 Nov, 2013 @ 6:53pm 
I made a quick video tutorial. If that doesn't work for you let me know.
Gibbles 7 Nov, 2013 @ 8:21am 
I cannot create a badge pack for some reason. Whenever I run the builder, it skips the .psd files, and the output folder remains empty. Yet, I am following your instructions step by step.
ZTrain 6 Oct, 2013 @ 7:25am 
Is this mod up to date? Just curious. Thinking about adding it to my server.
Huze  [author] 13 Aug, 2013 @ 7:51pm 
Chill. You don't have to contact me 4 different ways. Try posting in the shine thread on the ns2 forums. Give more information - post a sample of your User config

http://forums.unknownworlds.com/discussion/130093/shine-admin-mod/p2