#21  
Old 07-09-2015, 02:05 AM
Stormcaller's Avatar
Stormcaller Stormcaller is offline
Emissary
 
Join Date: Jan 2011
Location: :-|
Posts: 965
Default

Quote:
Originally Posted by Raiyaz View Post
Shalie, Stormcaller, and Mamba,

How do y'all mofos have the picture icons? I'm willing to bet you didn't screen cap everything, but instead figured out how to extract .tex files. Would you mind sharing that information (or the icons) with me, a person learning how to program, so I can use them to make a fancy webpage?
they are dds files and nvidia has a plugin for photoshop that works nice with it. note that dds editors are more like viewers so forget about editing you will basically have to convert them to png at some point. remember to remove the alpha 1 channel, or the black parts of it.

I explained what I do here: http://www.grimdawn.com/forums/showp...9&postcount=15
and I think shalie just uses imagemagick instead, that program is something ridiculous(both in good and bad sense) so I bet it supports all this, if you learn it/already know it.

also on grimcalc stylesheet, some stuff(skills, itemskills, some other stuff, no items tho) alredy exist, so if you steal the css off of grimcalc, you can just write <div class="class01-skillicon_shieldhammer1up"></div> and that would work...

icons exist as seperate images like so, if you know the filename:
http://grimcalc.com/i/sprite/class01...lefury2_up.png
http://grimcalc.com/i/sprite/class04...etrap2down.png

then all these also exist as spritesheets:
http://grimcalc.com/i/sprite/class01.png
http://grimcalc.com/i/sprite/class04.png

http://grimcalc.com/i/sprite/gamebutton.png
http://grimcalc.com/i/sprite/skillallocation.png
http://grimcalc.com/i/sprite/itemskills.png
http://grimcalc.com/i/sprite/itemslot.png

and thats about it.
__________________
To those that ask, yes I still fuck with grim dawn, I enjoy it, especially with grimmalion/diablo 3 mods. and no, grimcalc is obsolote. Use grimtools. Its better. I can update grimcalc right now, but I am not sure if I should, or if I should keep it at v1009 since there is not much reason to create new builds in gc.
The remainder of this page is intentionally left blank ╮(︶︿︶)╭
Reply With Quote
  #22  
Old 07-09-2015, 02:10 AM
Raiyaz Raiyaz is offline
Emissary
 
Join Date: May 2015
Location: South Florida
Posts: 907
Default

Quote:
Originally Posted by Stormcaller View Post
they are dds files and nvidia has a plugin for photoshop that works nice with it. note that dds editors are more like viewers so forget about editing you will basically have to convert them to png at some point. remember to remove the alpha 1 channel, or the black parts of it.

I explained what I do here: http://www.grimdawn.com/forums/showp...9&postcount=15
and I think shalie just uses imagemagick instead, that program is something ridiculous(both in good and bad sense) so I bet it supports all this, if you learn it/already know it.

also on grimcalc stylesheet, some stuff(skills, itemskills, some other stuff, no items tho) alredy exist, so if you steal the css off of grimcalc, you can just write <div class="class01-skillicon_shieldhammer1up"></div> and that would work...

icons exist as seperate images like so, if you know the filename:
http://grimcalc.com/i/sprite/class01...lefury2_up.png
http://grimcalc.com/i/sprite/class04...etrap2down.png

then all these also exist as spritesheets:
http://grimcalc.com/i/sprite/class01.png
http://grimcalc.com/i/sprite/class04.png

http://grimcalc.com/i/sprite/gamebutton.png
http://grimcalc.com/i/sprite/skillallocation.png
http://grimcalc.com/i/sprite/itemskills.png
http://grimcalc.com/i/sprite/itemslot.png

and thats about it.
Thank you, this is what I was looking for
__________________
This is a signature. You can post stuff here!
Reply With Quote
  #23  
Old 07-09-2015, 02:43 AM
mamba's Avatar
mamba mamba is offline
Praetorian
 
Join Date: Mar 2010
Posts: 9,453
Default

Quote:
Originally Posted by Raiyaz View Post
Shalie, Stormcaller, and Mamba,

How do y'all mofos have the picture icons? I'm willing to bet you didn't screen cap everything, but instead figured out how to extract .tex files. Would you mind sharing that information (or the icons) with me, a person learning how to program, so I can use them to make a fancy webpage?
Sure, the .tex are essentially slightly screwed up .dds files.

The first thing I do is read its header

Spoiler!


Then I throw away the .tex header (ie the first 12 bytes of the file) and use the header.size to determine how big the actual .dds is, i.e. is is the next 'size' bytes following after the 12. Generally speaking, that also should be identical to the remainder of the .tex file...

After that I extract the .dds header (that is a known format) and then fix the flags (found the logic for that in some TQ tools)
Spoiler!


Finally, the constants used, they are from the .dds format, so also public knowledge

Spoiler!


After that, it is a regular .dds file, so any code that can read one will be able to read this too.

My only problem is the alpha channel, still have issues with that, so the background is black rather than transparent.


All the numbers are offsets within the byte array, e.g.

DDSLoader.writeBytes(bytes, 92, DDSPixelFormat.R_BITMASK);

writes DDSPixelFormat.R_BITMASK into the byte-array bytes at position 92.

Last edited by mamba; 07-09-2015 at 02:47 AM.
Reply With Quote
  #24  
Old 07-09-2015, 02:55 AM
mamba's Avatar
mamba mamba is offline
Praetorian
 
Join Date: Mar 2010
Posts: 9,453
Default

Quote:
Originally Posted by Ceno View Post
HOLY SHIT YOU'RE DOING THIS IN JAVA?!?!
why not ?

There is very little difference between C++, Java and C# etc., you can do it in any of them. I am no fan of C++, so that is out, C# is not something I ever really used, so that also is a slight hurdle (mostly to familiarize myself with the UI classes).

Quote:
Edit: Eww, Card Layout. I don't know why people like it so much other than convenience...never did like it relative to other alternatives. Yes, I can nitpick all day.
seemed to make the most sense as there is no real order as to what page you should be on.

The alternative would be internal windows to me, but that seems overkill
Reply With Quote
  #25  
Old 07-09-2015, 06:55 AM
Shalie's Avatar
Shalie Shalie is offline
Praetorian
 
Join Date: Jul 2012
Posts: 1,177
Default

Quote:
Originally Posted by Raiyaz View Post
Shalie, Stormcaller, and Mamba,

How do y'all mofos have the picture icons? I'm willing to bet you didn't screen cap everything, but instead figured out how to extract .tex files. Would you mind sharing that information (or the icons) with me, a person learning how to program, so I can use them to make a fancy webpage?
mamba's info on the file format looks good.

There are some existing tools from Titan Quest that still work with Grim Dawn , like TQ Texture Tools. Mostly work anyway, that one crashes on some .tex files

Quote:
Originally Posted by mamba View Post
There is very little difference between C++, Java and C# etc., you can do it in any of them.
That's right! I was only joking about using Java
__________________
There may be no 'I' in team, but there's a 'ME' if you look hard enough.
¡uʍop ǝpısdn sı sn ɟo ǝuo 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı

Item Database: http://gracefuldusk.appspot.com/items
Reply With Quote
  #26  
Old 07-09-2015, 09:18 AM
WayToDie WayToDie is offline
Speaker
 
Join Date: Mar 2015
Posts: 60
Default

Looks really good. Cant wait for it to get released. Half the fun is in collecting the items

Quick question: Will we be able to trade items between SC and HC chars too?
Reply With Quote
  #27  
Old 07-09-2015, 10:54 AM
mamba's Avatar
mamba mamba is offline
Praetorian
 
Join Date: Mar 2010
Posts: 9,453
Default

Quote:
Originally Posted by WayToDie View Post
Looks really good. Cant wait for it to get released. Half the fun is in collecting the items

Quick question: Will we be able to trade items between SC and HC chars too?
right now you still can, but I am probably considering that a bug (a small one, how much of an issue is that when you can simply create the item one tab away... I mostly want to have the option so people who want to play legit can easily do so)

Either that or have the user decide whether he wants to, after all it is trivial now too, just change the extension of the transfer file from .gst to .gsh

Last edited by mamba; 07-09-2015 at 10:56 AM.
Reply With Quote
  #28  
Old 07-09-2015, 11:08 AM
Cavar's Avatar
Cavar Cavar is offline
Praetorian
 
Join Date: Feb 2010
Location: Atlanta, GA
Posts: 3,397
Default

Looks good. Unfortunately, I doubt I'd ever use it since I try to keep Java off my machines.

Also, for database stuff, C# WinForms can use LocalDB, which is basically a single file SQL Server Express database without the need to install SQL Server Express. The only thing you'd need is the .NET Framework v4.0.2.
__________________
Cavar
Legendary Key Holder since February 2010

Kickstarter Contributor - Hoarder's Edition - 5/2/2012
Reply With Quote
  #29  
Old 07-09-2015, 11:10 AM
FOE FOE is offline
Herald
 
Join Date: Oct 2013
Location: Austria, Vösendorf
Posts: 1,038
Default

Hello mamba,

Sounds great!

Have you any plans for a localisation?
__________________
Servus, Erwin
--
I'am from Austria!

Overview of the German translation // Übersicht zur Deutsch-Übersetzung
» http://www.grimdawn.com/forums/showpost.php?p=128756&postcount=4 «
Titan Quest Source - German Forum Grim Dawn
» http://titanquest.4fansites.de/forum/index.php?c=8 «

Last edited by FOE; 07-09-2015 at 11:19 AM.
Reply With Quote
  #30  
Old 07-09-2015, 11:26 AM
doublebuck doublebuck is offline
Counsel
 
Join Date: Oct 2010
Posts: 244
Default

Quote:
Originally Posted by mamba View Post
There is very little difference between C++, Java and C# etc., you can do it in any of them.
The difference is that Java is the greatest, most vicious malware of our time. Please reconsider doing this in C#, it seems I'm not the only one who won't install Java for anything.

Quote:
Originally Posted by mamba View Post
C# is not something I ever really used, so that also is a slight hurdle (mostly to familiarize myself with the UI classes).
Visual Studio + C# = success. It is by far the easiest and fastest solution for creating UIs I've ever seen. People at my work with zero background in programming are creating decent UIs with a few button clicks. The basic examples will teach you everything you need to know in a few hours. You won't believe how easy it is until you try it.

Once again, please bury Java. Otherwise, looks great!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Grim Dawn ©2017 Crate Entertainment, LLC.
vBulletin® 3.8.4 ©2000-2014, Jelsoft Enterprises Ltd.