[CLOSED] Color names in 0.53x

Fixed bugs, solved problems, and old reports.
Locked
gingernut84
Offline
Posts: 11
Joined: August 4th, 2011, 2:21 pm

[CLOSED] Color names in 0.53x

Post 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

gingernut84
Offline
Posts: 11
Joined: August 4th, 2011, 2:21 pm

Re: Help

Post 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

gingernut84
Offline
Posts: 11
Joined: August 4th, 2011, 2:21 pm

Re: Help

Post by gingernut84 »

and another thing
where can i get fcraft 0.6000

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Help

Post by fragmer »

Proper release of 0.600 is coming later this week. I don't recommend messing with dev versions until that's out.

gingernut84
Offline
Posts: 11
Joined: August 4th, 2011, 2:21 pm

Re: Help

Post 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

Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

Re: Help

Post 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?
You cannot use certain BBCodes: [img].

gingernut84
Offline
Posts: 11
Joined: August 4th, 2011, 2:21 pm

Re: Help

Post by gingernut84 »

okay thanks. Is there a exact time of when 0.600 brnachwill be released or is that yet to be decided

Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

Re: Help

Post 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.
You cannot use certain BBCodes: [img].

User avatar
DreamingInsane
Owner
Offline
Posts: 1303
Joined: May 24th, 2011, 12:05 am
Location: California, US

Re: Help

Post by DreamingInsane »

Can't guarantee a release some time soon.

Hopefully, He'll get around it.
"Words have no power to impress the mind without the exquisite horror of their reality.."
~ Edgar Allan Poe

Locked