A noobish question

This forum is dedicated to platform-specific issues, discussions and tools relating to D2 modding for the Mac.

Moderator: Contrail

Post Reply
User avatar
komrade
Posts: 5
Joined: Sat Nov 12, 2005 1:52 am

A noobish question

Post by komrade » Sat Nov 12, 2005 1:58 am

Hello there,

I want to make a mod for diablo 2 1.11 for mac os x wich does only one simple thing - highlighting the runes as one presses alt in purple/red/gold whatsoever color, so that they are easier to see among big drops, i.e. from a chest. Please help me, tell me wich tools i need and what/where needs to be changed...
Many thanks in advance,

komrade

User avatar
Ulmo
Forum Regular
Angel
Posts: 860
Joined: Fri Jun 04, 2004 5:04 pm

Post by Ulmo » Sat Nov 12, 2005 11:57 am

You have to add color codes in expansionstring.tbl and patchstring.tbl.

User avatar
komrade
Posts: 5
Joined: Sat Nov 12, 2005 1:52 am

Post by komrade » Sat Nov 12, 2005 12:38 pm

oh, thanks man...
i see Tuor talking to Ulmo at your avatar... another tolkien fan - nice..

but, since i am completely new to diablo 2 modding, i'm asking you:

- shall i extract this .tbl files from some mpq files? wich ones? will the mpq extractor for 1.11 do the job?

- how do i change this color code, how does it look like? what are the values? do i do this with a normal text editor?

-how do i put the files back to the mpq files (if they are to be extracted from some), how do i make the mod work? and if i want to share it with other ppl, how it will work for them...

please help me, or direct me to some topic or site where i can read about how to do these things. thanks once again.


EDIT:
i found these files in expansion data mpq, extracted and viewed them with the mpq editor... but i don't see any keys refering to color i can change?
Last edited by komrade on Sat Nov 12, 2005 1:14 pm, edited 1 time in total.

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: A noobish question

Post by Myhrginoc » Fri Nov 18, 2005 4:48 am

These codes should give you control over color. You may need to end each string with the light grey color code to switch back to the default on complex strings.

ÿc0 - Light Gray (Item Descriptions)
ÿc1 - Red
ÿc2 - Bright Green (Set Items)
ÿc3 - Blue (Magic Items)
ÿc4 - Gold (Unique Items)
ÿc5 - Dark Gray (Socketed/Ethereal Items)
ÿc6 - Transparent (Text Doesn't Show)
ÿc7 - Tan
ÿc8 - Orange (Crafted Items)
ÿc9 - Yellow (Rare Items)
ÿc: - Dark Green
ÿc; - Purple
ÿc/ - White (Brighter than Light Gray)

The first two symbols are ASCII-0195 followed by ASCII-0191. I don't know how those are typed in on Macs, on Windows keyboards you hold the ALT key down and type the four numbers.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

User avatar
komrade
Posts: 5
Joined: Sat Nov 12, 2005 1:52 am

Re: A noobish question

Post by komrade » Fri Nov 18, 2005 7:49 pm

thanks! :)

and how would the string for the colour of a particular rune would look?
should i add the same things in both tbl files? and how do i put the updated files back in the mpq file?

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: A noobish question

Post by Myhrginoc » Sat Nov 19, 2005 3:17 am

You would put the color code ahead of the rune name, e.g. for purple Shael you would have ÿc;Shael for the string content, but for a purple item identifier you would have ÿc;Shael Rune.

I don't know about the Mac mpq utility by Souricette, since I use Windows myself. But you probably can pack the tbl files just like you pack the txt files. Strings go to data\local\LNG\* (where * is the language of your tbl content, like FRE or ENG or GER). The mpq datafiles in our File Center will give you a complete list of files and where they go.
Last edited by Myhrginoc on Sat Nov 19, 2005 3:18 am, edited 1 time in total.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

User avatar
komrade
Posts: 5
Joined: Sat Nov 12, 2005 1:52 am

Post by komrade » Sun Nov 20, 2005 6:14 pm

first - thanks a lot for answering, man!

now, i'm not sure if i got right what you said:

- in expansionstring.tbl i shall add a string named ShaelColor wich has the content ÿc;Shael before the shael rune string in ordred to make it appear purple in the game.

- what is this item identifier string, and where does it go to? what about the patchstring.tbl file, what shall be added there?

excuse me for asking so much but it is the first ever time i attend to do something about diablo 2 modding...

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: A noobish question

Post by Myhrginoc » Tue Nov 22, 2005 2:23 am

You don't want to add strings, you want to change the existing strings. D2 won't know to look for a string key "ShaelColor" unless you change other files as well. Second, never insert a string in a tbl file or you'll clobber the game references that are by position (not all strings use the string keys, it's messy from a code standpoint). You would need to start over with clean tbl files.

In ExpansionString.tbl, look for the 66 rune strings, then edit the descriptions by inserting the color codes ahead of the existing text. Save when complete, and open PatchString.tbl. A few runes have changed in this file, so you need to edit their descriptions too. (You could start with PatchString and then do ExpansionString, if you note the ones in the later file and don't changed them in the earlier file. But you still need to do the rest of the names in the earlier file.)

For the full meal deal, you might download the Beginner's Guide, see links in my sig. The tools and screenshots are from the Windows version, but 99% of the information about modding the game is the same for macs.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

User avatar
komrade
Posts: 5
Joined: Sat Nov 12, 2005 1:52 am

Post by komrade » Tue Nov 22, 2005 11:46 pm

thank you very much! will do, when i'm ready will post here... thanks!

Post Reply

Return to “Mac Modding”