Login


All times are UTC - 5 hours


It is currently Mon Jan 22, 2018 3:07 pm




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Creating your own User Interface + Stat Screen
PostPosted: Wed Jul 20, 2011 10:50 am 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4286
This covers adjusting your inventory/stat screen backgrounds and adding new stats display to your char screen

See THIS topic for the basics of what it does and the additional files required.

Before you start, open data/global/excel and look for d2newstats.bin and delete it. every time you want to check your changes in game, just delete this file and join a game with a sp char.

You will need:
an excel program
GIMP/Photoshop/an image editing program
a .tbl editor (link is provided below)
DC6Creator (link provided below)
The Mods text files (extract from patch_d2.mpq using an mpq editor)

first thing you want to do is open the D2NewStats.txt with excel or something similar.

Columns explinations:
StrOnly: boolean (1=yes 0 = no) asking if its showing text
Stat only: same as above but asks if its showing the value of a stat.
TblIDx: the name of the string in the .tbl files (what text you want displayed on the screen)
Font: long story short, 12 is the small text I used in the screenie 1 is the large text I used in the old version
color: 1= white, 2=red 3=blue, etc etc.
xleft/xright: the horizontal co-ordinates of the stat/text (these must be the same). smaller numbers = further left, larger numbers = further right (in pixels)
Y: the height of the stat/text. (lower numbers = higher up on the screen, higher numbers = further down)
stat: the name of the stat from itemstatcost.txt you want to display the value of (used in conjunction with a 1 in the "stat only" column)
font/color: same as above
Rin: "red if negative", 1 for yes, 0 for no
xright/xleft: same as above
Y: same as above

so to move a stat around, you just change the Y column and the leftx/rightx
------------------------------------------

Adding a new stat:
to add a new stat, first open itemstatocst.txt and look for the stat you want to add. Lets use FCR as an example. The stat name for FCR is item_fastercastrate

so, create a new line in D2NewStats.txt and put the name as FCR (or whatever, its not used by the game, just for reference)

StrOnly = 1 (we will start with the name display for the stat)
TblIDx = fcrstatdesc (this can be whatever you like, we will create a string in the .tbl file for the stat and use this name there)

Font = 12 (keeps it small)
Color = your choice, i used 8 (orange) but you can go through them and pick the one you want.

xleft/xright = depends whare you want it, if you adjust it a little then enter a game, you can see how much you are moving it, you may need to join a game a few times till you get it whare you want it.

Once its in position, we need to add the string.
here is a string editor that you will use to add the strings so the stats dont show up as "an evil force"

Start the tbl editor and click open, navigate to your HU folder and go to data/local/lng/eng

open string.tbl.

click add and type the name you entered in the tblIDx column. now in the box on the right, type what you want displayed on the char screen (in this case FCR).
click save and go into a game to make sure it worked.
-----------------------------------------------------

Now the stat:
create a new line in d2newstats.txt and set statonly to 1
in the stat column add item_fastercastrate

Font = 12 (keeps it small)
color = up to you
xleft/xright = the same as your discriptions xleft/right (if you want the stat below the name)
Y: 10ish higher than the Y used in the description (means it'll be 10 pixels lower than the name of the stat).

save and check in game to make sure its whare you want it.
---------------------------------------------------

repeat those steps for any stats you want displayed and adjust the entries for the current stats to suit.
----------------------------------------------------


The background:
here is DC6Creator. you will need this to extract the stat screen backgrounds.

Start it up and set the pallete to units (this is very important when saving to avoid messy graphics)
click open and go to data/global/ui/panel/
open invchar6.dc6

This will open the dc6 and you will see the char inventory and stats screen split up into parts.

Click export all and select whare you want to export the images too.

Once exported, open up GIMP or Photoshop (whatever you prefer) and select the stat screen images. Now its just a matter of copying parts of boxes and moving them around the screen till you are happy with how it is layed out. You can copy the whole thing over an image you like and erase the marble effect parts to reveal the image below, then select the box you pasted over the image and copy it back over the original image. (to get a funky background)
Once you are happy, save it.

If you exported them all and edited them all, you can simply click INI->DC6 and select the INI in the same folder you extracted the images too. That will import them all. (remember to set the pallete to units). then click save.
---------------------------------------------------

You can create new health and mana bubbles the same way, the file you want for those is hlthmana.dc6. Located in data.mpq under data/global/ui/panel
all done, just move your stats a little to make sure they are in the right places for your boxes and save.

Good luck and enjoy. :)

Example:
Image

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


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Jul 21, 2011 7:47 pm 

Joined: Mon Aug 31, 2009 10:36 am
Posts: 317
Location: Phoenix
not sure if cursor counts, last patch kevin made me silver cursor, i really wanna make one custom for myself but cant find anything on where/how to do it

this will breaking my modding cherry so K.I.S.S or i will fuck it up

thanks in advance

_________________
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe." Einstein

Any man who can drive safely while kissing a pretty girl is simply not giving the kiss the attention it deserves. Einstein


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Jul 21, 2011 11:14 pm 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4286
for cursors, the files are in data.mpq under data/global/ui/CURSOR

simply extract them using winmpq, then open each one with dc6 creator and save all the images to desktop (like you do for health/mana bubbles or the stat screen background)
edit then with GIMP or whatever, then save them like in the tutorial above.

The saved files should go in data/global/ui/CURSOR.

You can also repack them into patch_d2.mpq if you like.

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


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Sat Jul 23, 2011 12:38 pm 
User avatar

Joined: Sun Feb 13, 2011 6:50 pm
Posts: 224
can we get a universal one that comes with the mod install? would add a nice customness to the mod. Everyone who sees the artwork would know, thats HU


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Sun Jul 24, 2011 1:02 pm 
User avatar

Joined: Sun Apr 25, 2010 9:26 am
Posts: 285
I am working on a custom UI atm:
Image

_________________
I need more Dropbox space, pls register using this referal link, so you and me get 500mb more space:
http://db.tt/sbpJWYD1


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Wed Aug 31, 2011 2:05 pm 
User avatar

Joined: Sun Apr 25, 2010 9:26 am
Posts: 285
Image

skill paths, as .psd download, for those of you who want to create a new UI for highres with new skilltrees

http://www.megaupload.com/?d=3TKDR4PF

_________________
I need more Dropbox space, pls register using this referal link, so you and me get 500mb more space:
http://db.tt/sbpJWYD1


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Wed Aug 31, 2011 8:16 pm 
User avatar

Joined: Mon Jan 24, 2011 9:24 am
Posts: 43
Location: KC, Missouri
ki4m wrote:
skill paths, as .psd download, for those of you who want to create a new UI for highres with new skilltrees

http://www.megaupload.com/?d=3TKDR4PF


You know i will, thanks ;)


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Sep 01, 2011 3:45 am 

Joined: Tue Aug 30, 2011 1:05 am
Posts: 92
Will this last patch include the arrows on the skill tree? since now they aren't on it, right? Highres skins aren't still completed? or did i mess up with something when installing the mod ? :P

edit:I forgot, for those like me who wont mess up with this affair, is there a place to download those custom skins that hardworker ppl like you all made?


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Sep 01, 2011 7:47 am 
User avatar

Joined: Sun Apr 25, 2010 9:26 am
Posts: 285
n0ga wrote:
Will this last patch include the arrows on the skill tree? since now they aren't on it, right? Highres skins aren't still completed? or did i mess up with something when installing the mod ? :P

edit:I forgot, for those like me who wont mess up with this affair, is there a place to download those custom skins that hardworker ppl like you all made?


viewtopic.php?f=25&t=4404&start=150

skilltrees are done, baerk only needs to addd them to the next patch

_________________
I need more Dropbox space, pls register using this referal link, so you and me get 500mb more space:
http://db.tt/sbpJWYD1


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Sep 01, 2011 10:15 am 

Joined: Tue Aug 30, 2011 1:05 am
Posts: 92
I appologize, didn't saw that thread then. :P
What about sharing custom "skins"? from the creative guys we have in here?


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Sep 01, 2011 12:42 pm 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4286
Custom skins would be awesome, but some may want to keep their skin so they have a unique UI specific to them. Would be neat if some custom ones were released in the future for folks to choose from. Too much image editing for me though. I might make 1.

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


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Sep 01, 2011 12:51 pm 
User avatar

Joined: Sun Apr 25, 2010 9:26 am
Posts: 285
I am planning to create a few custom UIs...
and with D2SE we would even have the possibility to use the language feature to switch between different UIs(and high/low res)....

_________________
I need more Dropbox space, pls register using this referal link, so you and me get 500mb more space:
http://db.tt/sbpJWYD1


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: Creating your own User Interface + Stat Screen
PostPosted: Thu Sep 01, 2011 2:27 pm 
Moderator
User avatar

Joined: Mon Nov 09, 2009 3:09 pm
Posts: 815
Well the Structure for the norm/high res switch is already in place. It would be a very simple matter to just add further UI's to D2SE for me.


Top
 Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 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: