Page 1 of 1

[CLOSED] Color names in 0.53x

Posted: October 10th, 2011, 5:56 pm
by gingernut84
I know this isnt the right place for this topic but i couldnt find any where else.
I have fcraft 0.537 (the latest one available on the website) and i wanted to get color names on it.
I used to have a server using 0.535 but that is outdated, but it had the thing which u could edit with visual c. But there isnt on this version.
Can someone help me, mainly fragmer and other hosts, how to get coloured names on this version.
Thanks

Re: Help

Posted: October 10th, 2011, 5:59 pm
by gingernut84
and another thing after comparing the two versions ive noticed the new version only gives me what looks like the bin folder for 0.535.
Does this have anything to do with my problem

Re: Help

Posted: October 10th, 2011, 7:27 pm
by gingernut84
and another thing
where can i get fcraft 0.6000

Re: Help

Posted: October 10th, 2011, 10:27 pm
by fragmer
Proper release of 0.600 is coming later this week. I don't recommend messing with dev versions until that's out.

Re: Help

Posted: October 11th, 2011, 2:28 pm
by gingernut84
Not to be annyoing fragmer, but could u ask my first question. How can i get the change color names thing for windows c cos it seems i only have what look like the bin folder from 0.535

Re: Help

Posted: October 11th, 2011, 4:04 pm
by Jonty800
To change name colors (on the released branch of fCraft) you need to open up playerinfo.cs (its in the player folder)

in playerinfo, look for a section annotated with "IClassy"
it should look like this:

Code: Select all

// implements IClassy interface
        public string ClassyName {
            get {
                StringBuilder sb = new StringBuilder();
                if( ConfigKey.RankColorsInChat.Enabled() ) {
you can then add your own name after this section using color code '&'

for example

Code: Select all

public string ClassyName {
            get {
                StringBuilder sb = new StringBuilder();
                if( ConfigKey.RankColorsInChat.Enabled() ) {
                    if (Name == "Jonty800") return "&1Jonty&4800";
                    sb.Append( Rank.Color );
                  }
                if( ConfigKey.RankPrefixesInChat.Enabled() ) {
                    sb.Append( Rank.Prefix );
                }
when Fragmer releases branch 0.60x later this week, you will be able to change name colors with command /setinfo playername displayedname %1Name%2With%3Colors

you can get the source code from using svn with url http://svn.fcraft.net:8080/svn/fcraft

if you don't know how to do this... WAIT FOR BRANCH-0.60 TO BE RELEASED.

If you do modify the source code, remember to untick the "send all my bugs to fragmer" section in the advanced tab of the configtool.


k?

Re: Help

Posted: October 12th, 2011, 2:39 pm
by gingernut84
okay thanks. Is there a exact time of when 0.600 brnachwill be released or is that yet to be decided

Re: Help

Posted: October 12th, 2011, 5:53 pm
by Jonty800
I guess it will be ready when Fragmer has tested all of it and finished off the important things on his to do list.
He said it would be released sometime this week, but there's always the change of unexpected delays.

Re: Help

Posted: October 12th, 2011, 10:40 pm
by DreamingInsane
Can't guarantee a release some time soon.

Hopefully, He'll get around it.