A Plea To All Server Operators

WitherWither A Bugged Life Join Date: 2002-12-24 Member: 11513Members, NS1 Playtester, Contributor, Constellation
<div class="IPBDescription">Concerning icons</div> With the coming of Beta 5, the NSGuides finally have a new icon. Custom icon support is also in and this will allow server operators to make and use their own icons on their servers. I would like to ask all server operators please not to touch the new Guide icon, since all it will achieve is confusion for new players. The old Guide icon will remain, however, and since it is unused at this time it is free for anyone to use.

Thanks,
Wither

Comments

  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited September 2004
    Yes, custom icons should be working flawlessly. When I get some time I'll release an example plugin that will show how to use them.

    But if you people would like to try to figure it out, heres some info:

    Icon names can be as long as 32 characters.
    To issue an icon to a player:

    1. Change thier auth mask to 512 (PLAYERAUTH_CUSTOM).
    2. Hook the WRITE_STRING from ns which sends down a string of "0", and change it to the icon name + RGB (000 thru 999).

    Here's a quick code snippet to convert a 0-255 RGB color to some number between 000 -> 999:

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->void GetIconColor(int *pOutColor)
    {
     if(pOutColor)
     {
      pOutColor[0] = (int) min(this->Red/255 * 9, 9);
      pOutColor[1] = (int) min(this->Green/255 * 9, 9);
      pOutColor[2] = (int) min(this->Blue/255 * 9, 9);
     }
    }<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    The client will then display the icon with your specified color, to use a colored icon I recomend that you send down the color white (999).

    Icons must be placed into the "gfx/vgui" folder, in order to send them down to the clients you'll need to do a PRECACHE_GENERIC on them.

    To make an icon, make a 16x16 TGA image and put it in the gfx/vgui folder.

    The icon names must look something like this:

    640_voogru_donator.tga

    When you send down a WRITE_STRING, it would look something like this:

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->WRITE_STRING("voogru_donator999");<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
  • WyzcrakWyzcrak Pot Pie Aficionado Join Date: 2002-12-04 Member: 10447Forum Moderators, Constellation, NS2 Playtester, Squad Five Blue
    To preserve the value of the unique Guide icon, the TacticalGamer.com server used a custom icon the day they became usable in b4 and will continue to use them in b5.
  • WitherWither A Bugged Life Join Date: 2002-12-24 Member: 11513Members, NS1 Playtester, Contributor, Constellation
    <!--QuoteBegin-Wyzcrak+Sep 4 2004, 06:59 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Wyzcrak @ Sep 4 2004, 06:59 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> To preserve the value of the unique Guide icon, the TacticalGamer.com server used a custom icon the day they became usable in b4 and will continue to use them in b5. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Thank you <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
  • EmanonEmanon Join Date: 2003-05-13 Member: 16254Members, Constellation
    <!--QuoteBegin-Wither+Sep 3 2004, 11:39 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Wither @ Sep 3 2004, 11:39 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> With the coming of Beta 5, the NSGuides finally have a new icon. Custom icon support is also in and this will allow server operators to make and use their own icons on their servers. I would like to ask all server operators please not to touch the new Guide icon, since all it will achieve is confusion for new players. The old Guide icon will remain, however, and since it is unused at this time it is free for anyone to use.

    Thanks,
    Wither <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Sounds like your like your icon. lol

    Selfish!

    hah
  • sawcesawce Join Date: 2002-12-14 Member: 10787Members
    Just for the record:

    I've updated my version of the <a href='http://www.modns.org/forums/index.php?showtopic=168' target='_blank'>AMX Icon plugin</a>, and I've removed support for giving players all standard icons (with the exception of server operator). There are ways around it, but I'm hoping nobody will do it.

    As an attempt to offshoot people from reverting to going around my "block" on these icons, I've provided a few icons converted from these forum's emotes. The skulk, gorge, onos, lerk, turret and hive were provided.


    <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
  • WitherWither A Bugged Life Join Date: 2002-12-24 Member: 11513Members, NS1 Playtester, Contributor, Constellation
    edited September 2004
    All this is about is not confusing new players. It can be frustrating to get PM's from new players because "they saw a purple icon guy flaming a new player". All this is about is preventing that.

    sawce, thanks a lot <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
  • FromThisSoilFromThisSoil Join Date: 2004-08-24 Member: 30859Members, Constellation
    As much as you plea...someone is going to take advantage of this feature.

    It's horrible, but some people have no decency.

    PS: Hopesfall is the win.
  • XenoXeno Join Date: 2002-11-01 Member: 2343Members
    well, i really dont want to use them, i really dont. but some of the icons look like..........cack. i mean, the gorge one is ok, but not the best.

    if somebody actually TOLD me how to make one, im sure people using these icons would be cut down dramatically.
  • sawcesawce Join Date: 2002-12-14 Member: 10787Members
    Make a TGA image 16x16 (can be a tad bigger, up to 32x32 iirc, but its not recommended).

    If you don't know how to do this, then read a tutorial from photochop or something.
  • devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
    I find it funny, in the metamod thread, you said plugins are 3rd party, and unsupported.. yet you added a feature that can only be accessed with a plugin? Where's the logic there?
  • SVisionsSVisions Join Date: 2003-08-10 Member: 19375Members
    edited September 2004
    <!--QuoteBegin-[mahn+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([mahn)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->sawce,Sep 5 2004, 02:35 PM] Make a TGA image 16x16 (can be a tad bigger, up to 32x32 iirc, but its not recommended).

    If you don't know how to do this, then read a tutorial from photochop or something. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    I thought it was that easy, but when I make them they just don't show up at all. How do we do transparency, fill the background with white - or black? Compressed or non compressed, what resolution (bits/pixel), and I'm guessing something needs to be done about the alpha channel, what do I do there? A guide for this all would be nice if anyone wants to put one together.


    edit: I believe I got it working but if you don't make a pixel perfect alpha channel it looks ugly, this is pretty tedious doing it the way I am (magic wand).
  • EmanonEmanon Join Date: 2003-05-13 Member: 16254Members, Constellation
    edited September 2004
    The only way you can get people not to use the icons is to give them an easy alternative.


    The current system isn't easy, alot of serverops will not know how to do it correctly. The only way to preserve your icons is to make it easy for a serverop to make/import these icons. This maybe through a special program or a clear, simple and easy to follow guide.


    You cant tell people to not to do something when they have no idea how to do it any other way.
  • ProfLiebstromProfLiebstrom Join Date: 2004-09-04 Member: 31292Members, Constellation
    cant NS do something and reserve some icons? like the constallation members icon and the guide icon so no one can use them other than them and what not?
  • devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
    <!--QuoteBegin-ProfLiebstrom+Sep 5 2004, 09:21 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ProfLiebstrom @ Sep 5 2004, 09:21 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> cant NS do something and reserve some icons? like the constallation members icon and the guide icon so no one can use them other than them and what not? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Not easily. The old icon plugins worked by intercepting a message telling the clients who had what icon. Short of adding some type of checksum, it wont happen.

    Then I know another way around it, if that happened.. but I'll wait until later to post that <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    Hi, here's the guidelines for making your icons work..

    Here we go. (This is for photoshop)

    Ok, make a new image 16x16 rgb color with a black background

    Draw your icon in white with varying degrees of opacity if you wish..

    Select only the artwork you just made , Go to your Layers windows and click channels

    Click Save channel as selection. This will make an alpha channel. Whatever is white in this channel will show up in game and whatever is black in this channel will be transparent.

    Now comes saving the file.. go to file > save as, and save it as a tga file with alpha transparency checked off.

    A box will pop up, this is the important part.

    Save it as 32bit and check off compress RLE
  • TheGuyTheGuy Join Date: 2003-08-09 Member: 19295Members, Constellation
    Btw mods, if I were to repost this where more people could read it, where would the appropriate place be? General server, Customize help, or Artwork forum?
  • pGc-ProdigypGc-Prodigy Join Date: 2003-12-05 Member: 23970Members
    That's great and all, but I don't think that answers the question that was asked, which was HOW do server operators enable custom icons on their server? Where do they store them? What do they have to be named? How do they get their own server op icon (the one that hasn't worked in ANY 3.0 beta) to work without a metamod plugin?
  • sawcesawce Join Date: 2002-12-14 Member: 10787Members
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    That's great and all, but I don't think that answers the question that was asked, which was HOW do server operators enable custom icons on their server?  Where do they store them?  What do they have to be named?
    <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    It's explained in the amx plugin's config file. If a metamod version is created also i'm sure it will also be explained there.

    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->How do they get their own server op icon (the one that hasn't worked in ANY 3.0 beta) to work without a metamod plugin?<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    They don't.
  • pGc-ProdigypGc-Prodigy Join Date: 2003-12-05 Member: 23970Members
    <!--QuoteBegin-Wither+Sep 3 2004, 11:39 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Wither @ Sep 3 2004, 11:39 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->With the coming of Beta 5, the NSGuides finally have a new icon. Custom icon support is also in and this will allow server operators to make and use their own icons on their servers. I would like to ask all server operators please not to touch the new Guide icon, since all it will achieve is confusion for new players. The old Guide icon will remain, however, and since it is unused at this time it is free for anyone to use.

    Thanks,
    Wither<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    I'm sorry, but the post above makes it look like they fixed the icon. If it's only available from a plugin, then why the "NOTE TO <b>ALL</b> server operators"?
  • ProfLiebstromProfLiebstrom Join Date: 2004-09-04 Member: 31292Members, Constellation
    because all server operaters can quite easily download the plugin?
  • pGc-ProdigypGc-Prodigy Join Date: 2003-12-05 Member: 23970Members
    <!--QuoteBegin-ProfLiebstrom+Sep 6 2004, 02:58 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ProfLiebstrom @ Sep 6 2004, 02:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> because all server operaters can quite easily download the plugin? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Perhaps, but this particular plugin was causing my server to crash regularly.

    PF_WriteString_I
    Called with no active message
  • sawcesawce Join Date: 2002-12-14 Member: 10787Members
    The metamod one is not updated yet. Don't use it, it will crash until it is updated. The amx one will work, however.
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    <!--QuoteBegin-TheGuy+Sep 5 2004, 10:32 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TheGuy @ Sep 5 2004, 10:32 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Now comes saving the file.. go to file > save as, and save it as a tga file with alpha transparency checked off.

    <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    When I attempt to save as a tga file, all Save Options are greyed out.
    Consequently I cannot select alpha transparency (it's not even a greyed out option) and my black areas are not transparent in the finish product. What is causing this?
  • JHunzJHunz Join Date: 2002-11-15 Member: 8815Members, Constellation
    <!--QuoteBegin-kwikloader+Oct 1 2004, 09:18 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (kwikloader @ Oct 1 2004, 09:18 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin-TheGuy+Sep 5 2004, 10:32 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (TheGuy @ Sep 5 2004, 10:32 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Now comes saving the file.. go to file > save as, and save it as a tga file with alpha transparency checked off.

    <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    When I attempt to save as a tga file, all Save Options are greyed out.
    Consequently I cannot select alpha transparency (it's not even a greyed out option) and my black areas are not transparent in the finish product. What is causing this?<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    I was actually playing around with icons last night, trying to follow his instructions. What works better than his instructions is this: Create a new image, transparent. Paint your image in greyscale (this assumes you're not doing a fancy colored icon. I assume you would just paint in different shades of the color you want, but I haven't tried it). The darker areas will be a darker version of the color you assign in icons.conf, the lighter areas will be lighter, and the transparent areas will be transparent.

    When you save, save it as a copy. It'll automatically uncheck the layers box, but that's okay.

    <img src='http://www.ews.uiuc.edu/~hunsley/img/bolt.jpg' border='0' alt='user posted image' />
    <img src='http://www.ews.uiuc.edu/~hunsley/img/bolt-ingame.gif' border='0' alt='user posted image' />
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    <!--QuoteBegin-JHunz+Oct 1 2004, 12:51 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (JHunz @ Oct 1 2004, 12:51 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I was actually playing around with icons last night, trying to follow his instructions. What works better than his instructions is this: Create a new image, transparent. Paint your image in greyscale (this assumes you're not doing a fancy colored icon. I assume you would just paint in different shades of the color you want, but I haven't tried it). The darker areas will be a darker version of the color you assign in icons.conf, the lighter areas will be lighter, and the transparent areas will be transparent.

    When you save, save it as a copy. It'll automatically uncheck the layers box, but that's okay.
    <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    I'll give this a shot later. My next question was how to create these in color.
  • XenoXeno Join Date: 2002-11-01 Member: 2343Members
    i am having great success with icons. however, i never learned how to use photoshop. i have, however, mastered paint, and created some. they look pretty damn good on the servers. very cartoony, but good.
  • sawcesawce Join Date: 2002-12-14 Member: 10787Members
    Oh,

    There's now a metamod version of the plugin available. I wasn't planning on doing a MM version, but it doesn't seem like the original metamod icons plugin author had the time to update his, so I decided to give it a shot.

    It's configuration is very similar to the AMX version's, and it supports giving admin mod admins access-based icons, similar to how ServerOps did. But note it's not an updated Server Ops, it's configuration is entirely different than that of ServerOps.

    The metamod version is available here: <a href='http://www.modns.org/forums/index.php?showtopic=901' target='_blank'>http://www.modns.org/forums/index.php?showtopic=901</a>

    Any and all bugs related to these admin icons plugins please report in their appropriate forums (The metamod version listed above, AMX and AMXx 0.16 version <a href='http://www.modns.org/forums/index.php?showtopic=168' target='_blank'>here</a> and AMXx 0.20 version <a href='http://www.amxmodx.org/forums/viewtopic.php?t=6010' target='_blank'>here</a>) and I'll try my best to help.


    If anybody would like to create any icons available for inclusion with the standard packages, email them to me (stevedude@gmail.com) and I'll include them, with proper credit, of course.



    Lastly, while I did add certain blocks for assigning standard icons, some server operators felt the need to get around it to assign themselves and others developer, guide, etc icons. To you, I say **** you.

    I guess that is the downside of having open source software.
  • JHunzJHunz Join Date: 2002-11-15 Member: 8815Members, Constellation
    The metamod version seems to work excellently so far. Thanks for that, by the way <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
Sign In or Register to comment.