Jump to content

Untested [6.2] Display character level and class (Configurable + Language/Colour support)


Cheshire

Recommended Posts

[6.2] Display character level and class (Configurable + Language/Colour support)

 

Description:

This patch adds some new configuration options to do the following:

 

0. Not change the way player names are displayed.

1. Show the player's level next to the character name.

2. Show the player's class and level above the character name.

 

These options are configured through the server options.

There's full language support for both changed use cases, so you can tweak what it should say exactly as well as the layout of it.

There's also custom colour support for the newly added class display line, so you can tweak that too if you'd like.

 

Note, this isn't the prettiest method of doing it. The nice way would be to make a new method that renders the additional label.

But I just sort of abused the draw name method. It works, but it won't win any beauty contests.

 

Media:

8d923730aab6ded539786123326b4d5a.png

 

Git Patch:

 

[Download]

Supported Build: 0.6.2.421

 

Updates:

  1. [Download] - Displays NPC levels as well when displaying Player classes and levels. It would only do this when displaying only levels before.

 

Setup:

 

The following steps are REQUIRED before this will work properly!

 

  1. Download and install the main patch file for the branch you are using.
  2. Download and install any update patches IN THE ORDER THEY ARE LISTED for the branch you are using.
  3. Compile and run the server and client, it should automatically generate the new configuration/language entries.
  4. Log in and see your class and level displayed!

 

Optionally, you could set the server config setting to the following switches:

0. Not change the way player names are displayed.

1. Show the player's level next to the character name.

2. Show the player's class and level above the character name.

 

As well as change the client's language file and some custom colours related to this if you'd like. 

But that's up to you.

 

Link to comment
Share on other sites

  • 1 month later...

Hey, when I checked this patch with build 6.2 429, I get this error: 

 

Quote

error: patch failed: Intersect (Core)/Intersect (Core).csproj:229
error: Intersect (Core)/Intersect (Core).csproj: patch does not apply

 

When trying to apply the patch anyway, I get this:
 

Quote

.git/rebase-apply/patch:45: trailing whitespace.

error: patch failed: Intersect (Core)/Intersect (Core).csproj:229
error: Intersect (Core)/Intersect (Core).csproj: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Applying: Add the ability to show level and classes
Patch failed at 0001 Add the ability to show level and classes
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

 

Is this fixable? I am really new to Intersect and all of this stuff so this my first time trying to do a patch. Thanks <3

Link to comment
Share on other sites

I was able to bypass this by doing "git apply -3 patchname.patch" and it seems to have compiled fine and it's working but I am a bit hesitant to if I should apply to my live server or not xD I will wait for you to check it and update me, much appreciated :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...