Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Tech Support → How to add font color in Battle.net news updates?

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 11

1

Topic: How to add font color in Battle.net news updates?

Title

2

Re: How to add font color in Battle.net news updates?

Would it be the same as using colour codes on your profile?

Owner of SlashDiablo - One of the oldest and most well known Diablo II servers
Admin of Resurgence - Vanilla++ mod
Co-Founder of Hellforged - Diablo 09 built on 1.13 engine (current work in progress)
Founder of Diablo2.org - Dedicated Discord server for PvPGN/D2GS questions

3

Re: How to add font color in Battle.net news updates?

If it's related to Warcraft 3
https://forums.pvpgn.pro/viewtopic.php?pid=6657#p6657

Do not ask for support in PM.

4

Re: How to add font color in Battle.net news updates?

I forgot to mention that It would be for D2

5

Re: How to add font color in Battle.net news updates?

Where did you see colored news for Diablo 2 (screenshot)?
Anyway I don't know how to do it. May be Meanski knows if it's possible.

Do not ask for support in PM.

6

Re: How to add font color in Battle.net news updates?

I have a couple of ideas, Harpy.

Pretty busy with work this week then I'm travelling this weekend but I may have a couple spare hours on Friday night to test my ideas.

@Topaz - I'll update this thread in the next couple of days with what I find.

Owner of SlashDiablo - One of the oldest and most well known Diablo II servers
Admin of Resurgence - Vanilla++ mod
Co-Founder of Hellforged - Diablo 09 built on 1.13 engine (current work in progress)
Founder of Diablo2.org - Dedicated Discord server for PvPGN/D2GS questions

7 (edited by Topaz 21.07.2017 04:39)

Re: How to add font color in Battle.net news updates?

Thanks Meanski

@Harpy I sent you a PM with the screenshot cause the server is not mine and I want to avoid any possible trouble

8

Re: How to add font color in Battle.net news updates?

I connected to that server and see in wireshark dump a hex color code before each colored text.

https://forums.pvpgn.pro/uploads/images/2017/07/21/hex.png


Programmatically I found the following color codes that are available in Diablo 2:
https://forums.pvpgn.pro/uploads/images/2017/07/21/diablo2_hex_colors.png

These colors are in attached txt file for better undestanding.

So, just edit news.txt or termsofservice.txt in any hex editor to add a predefined hex color code before a text that you want to be colored. Text is colored until a line break if not other color is defined between.

Do not ask for support in PM.

9

Re: How to add font color in Battle.net news updates?

You had the exact same thought as me Harpy, nice work!

Owner of SlashDiablo - One of the oldest and most well known Diablo II servers
Admin of Resurgence - Vanilla++ mod
Co-Founder of Hellforged - Diablo 09 built on 1.13 engine (current work in progress)
Founder of Diablo2.org - Dedicated Discord server for PvPGN/D2GS questions

10 (edited by Topaz 22.07.2017 04:56)

Re: How to add font color in Battle.net news updates?

Is not working for me. I'm using this pvpgn version: 1.99.7.1- PRO and color codes looks like this

imgur.com/z9EnFKQ

11

Re: How to add font color in Battle.net news updates?

Well, there are different hex codes for termsofservice.txt (where I tested above) and news.txt.
And colored text does not work in motd.

For news.txt ff must be replaced to c3bf.
For example, replace ff6332 -> c3bf6332

Also note about news caching:
- in bncache.dat on a client side; the file can be removed and game client must be restarted
- in pvpgn; can be updated with /rehash news


https://forums.pvpgn.pro/uploads/images/2017/07/22/diablo2_hex_colors_news.png

Do not ask for support in PM.

Posts: 11

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] Tech Support → How to add font color in Battle.net news updates?