Login


All times are UTC - 5 hours


It is currently Mon Jun 18, 2018 2:24 pm




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how do I change the color on the names of items?
PostPosted: Wed Dec 05, 2012 7:14 am 

Joined: Mon Feb 21, 2011 11:47 am
Posts: 615
Location: Stockholm, Sweden
like the topic says, how/where do I change which color the item has on its name?

_________________
Its always in the last place you look....


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: how do I change the color on the names of items?
PostPosted: Fri Dec 07, 2012 4:33 am 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4286
First you'll need the .tbl files that store all the text displayed in the game.
Download a .tbl file editor:
http://phrozenkeep.hugelaser.com/filece ... le_id=1056

and winMPQ
http://www.gamefront.com/files/files/4684765/winmpq.zip

Run winMPQ and open your HU patch_d2.mpq.
Look for the files in data\local\lng\eng\
The archive is arranged alphabetically to make finding them a bit easier.
The files you want to highlight are "string.tbl" "expansionstring.tbl" and "patchstring.tbl". (All preceeded by data\local\lng\eng\)
Extract those to desktop (or wharever you like) and it'll create a data folder with the files inside.
=============================================
Before the next step, it'll help to know the way the game reads those files.
It first checks patchstring.tbl to see if the string exists (string is just another name for the text to be displayed).
If it can't find the string there, it then searches expansionstring.tbl, and finally string.tbl. If it finds the string in expansionstring.tbl, and it also exists in string.tbl, it will always use the expansionstring.tbl entry etc.

When searching for the name/text you want, you should do the same. Always search patchstring.tbl first, then expansionstring.tbl then string.tbl if you cant find it in the first 2.

============================================

Next you wanna run your .tbl editor and click the open button.
Using Jah as an example, first open patchstring.tbl and click the search button. Type Jah into the bar and click OK and it'll find the first instance.

All going well, you'll find it, but if you search for the next instance, notice theres another entry below it that contains the Jah text.

What one is the right one to change?
The short answer is, its the one with the ÿc8 infront of it. The ÿc8 is a color code that changes the color of the text. Any text you put after ÿc8 shows up as gold ingame.

The codes are:
ÿc1 = Red
ÿc2 = Green
ÿc3 = Blue
ÿc4 = Gold
ÿc8 = Orange
ÿc- = White
ÿc: = Dark Green
ÿc0 = white
ÿc5 = grey
ÿc6 = black
ÿc7 = gold
ÿc9 = Yellow
ÿc; = Purple

Once you have recolored your text, click the save button and move the data folder into your HU folder. Make sure you run with -direct -txt



Slightly longer explination incoming explaining how you know its the right string and how to find out. Can ignore this if you can find what you are looking for just by searching the .tbl.

In the .tbl editor, along the left side is a list of names/number and letter codes etc. These are the codes the text files use to determine what string the item should display. Staying with the jah example, open misc.txt (runes and gems are misc items) (extract it if you need to, its under data\global\excel\misc.txt in winmpq) with an excel editor.
I use this one: http://phrozenkeep.hugelaser.com/filece ... ile_id=145

Once its open, ctrl+f and enter Jah into the bar and hit enter. F3 will search for the next one if you don't find the right thing. Once you find the jah rune row, scroll along a little till you find the column named "namestr". The code in that column on that row is the same code you see listed on the left of the .tbl editor for the Jah Rune text (r31).
There is a "namestr" column in weapons.txt and armor.txt too.
For uniques, the string code (like r31) is the name as it appears in the index column.
For runewords, the string code is the entry in the name column.
Ie. Delirium in runes.txt has the name "Runeword22". The game searches the .tbls for the code "Runeword22" then displays the text attatched to that code.

_________________
Bron wrote:
There's no cure for being a cunt.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: how do I change the color on the names of items?
PostPosted: Fri Dec 07, 2012 4:58 am 

Joined: Mon Feb 21, 2011 11:47 am
Posts: 615
Location: Stockholm, Sweden
awesome man, thanks a lot. you're the best

_________________
Its always in the last place you look....


Top
 Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: