# Titan Quest Fans Forum

## Titan Quest - Anniversary Edition/Ragnarök => Modifications => Other Modifications => Topic started by: koderkrazy on 29 May 2018, 15:35:35

Title: [Tool] TQ Blacksmith
Post by: koderkrazy on 29 May 2018, 15:35:35
I have created a small tool which could craft items which are not dropped in the game but they are there in data base.
For example.
(https://preview.ibb.co/m6WhvT/Weapon_Smith_Track.jpg)
If you guys want to try it out then I'll upload it here.
I have tested it on TQ AE version 1.54, 1.56 and 1.57

Here is the download link for the tool..
http://bit.ly/2uoV5hl (http://bit.ly/2uoV5hl)
File: TQ_Blacksmith_v0.1.3.7z
Size: 2.2 MB

[Changes]
11-6-2018:
- Added option not to select affixes. Items could be created without affixes now.

Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 29 May 2018, 16:15:02
The tool looks like this:
(https://preview.ibb.co/h7eKqy/smithy.png)

Title: Re: [Tool] TQ Blacksmith
Post by: tholuneve on 30 May 2018, 05:32:56
Is it capable of generate items that could drop in game? Or only for those that couldn't?
Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 30 May 2018, 06:06:08
both
Title: Re: [Tool] TQ Blacksmith
Post by: nargil66 on 30 May 2018, 20:41:53
Very nice mod  8). If you add common items for future updates, it will be golden. I suggested it to Fonzy before, but probably he forgot...
There are also some items in the database that were never used by the developers, but look very cool. Most of them have everything except uibitmaps for inventory. Is it possible to include them somehow? I'm asking mainly for modding purposes.
Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 31 May 2018, 06:39:03
Very nice mod  8). If you add common items for future updates, it will be golden. I suggested it to Fonzy before, but probably he forgot...
There are also some items in the database that were never used by the developers, but look very cool. Most of them have everything except uibitmaps for inventory. Is it possible to include them somehow? I'm asking mainly for modding purposes.

Thx Nargil, for trying it out!
To keep it user friendly, I've included items of type rare, epic and legendary only.

About your requests:
1) Adding common items: Initially I thought of including all the items but there were ~10k items to include. There are too many common and broken items. e.g. common suffixes are alone ~1400 in number. So if you try to create a shield and open suffix selection box, there would be 80 suffixes to select. Users will go for mostly rare suffixes.
Other problem with common items is that they are variations of same types.  e.g. if you take items with nameTag tagItemCoil there are 20. Hard to make them distinguishable on the application UI.

2) items that were never used by the developers: If you could give me some examples(dbr paths) of such items that would be great. We could attach bitmaps of similar classes to them...

If you tell me what info you need of these items for your modding, I will make tailormade solution for you.
Title: Re: [Tool] TQ Blacksmith
Post by: nargil66 on 31 May 2018, 12:35:44
If you tell me what info you need of these items for your modding, I will make tailormade solution for you.

I would really appreciate it!

Ima make you a list of the unincluded items. They are many, so it might take some time. Most of them are common btw, but have unique looks. The problem is, im not sure they have .dbr paths. Need to check.

About normal common items - i need them just for the looks and the base names for skinning, translation and such. Affixes are not important to me. Some time ago i tried to just run through the whole game and collect all type of basic common items and store them in Vault, but it was very time consuming and i eventually gave up...
Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 01 June 2018, 11:23:02
About normal common items - i need them just for the looks and the base names for skinning, translation and such.

Let me know if this helps:
https://titanquestfans.net/index.php?topic=472.0 (https://titanquestfans.net/index.php?topic=472.0)
Title: Re: [Tool] TQ Blacksmith
Post by: nargil66 on 01 June 2018, 17:52:12
It helps alot! Im very grateful for what you did :D
I checked and most of the items i told you about doesn't  have bitmaps nor .dbr files, only mesh, texture and bump. I'll try to include all in a mod, i think it will help you, have to make alot bitmaps tho.
Title: Re: [Tool] TQ Blacksmith
Post by: nargil66 on 01 June 2018, 18:56:51
Here are some examples of unincluded shields:

(https://i.imgur.com/4kPWaeb.png)

(https://i.imgur.com/QZchuWv.png)

Vanilla to compare:

(https://i.imgur.com/QdVLd32.png)

Title: Re: [Tool] TQ Blacksmith
Post by: efko on 01 June 2018, 22:27:02
I like that model of pregnant girl :D
Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 02 June 2018, 17:23:03
Here are some examples of unincluded shields:

See if you could  render these in MeshView.
I've fixed the null pointer exception. Now I can open shields there...
https://titanquestfans.net/index.php?topic=475.0 (https://titanquestfans.net/index.php?topic=475.0)
Title: Re: [Tool] TQ Blacksmith
Post by: Hector on 17 June 2018, 19:25:31
I'm sooo soooooo grateful for this wondeful utility, thank you very much koderkrazy  ^-^

If its possible, could you make a little update so that we can choose not to put any prefix or suffix to epic and legendary items? or choose to put only a prefix or a suffix and create the item that way?

And another thing.. I know that you mentioned common affixes are to many to integrate into the program but some of the suffixes such as "momentum" are very crucial IMO and I would have preferred them over any other godly and rare affixes if I could.. so I'd like to know if you can accept a request about a specific prefix/suffix list to add into your program..
Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 17 June 2018, 22:42:49
I enjoyed creating the utility more than using it  :P

If its possible, could you make a little update so that we can choose not to put any prefix or suffix to epic and legendary items? or choose to put only a prefix or a suffix and create the item that way?
Ahhh, good catch. It should allow to create plain version of items as well. I'll change it.

And another thing.. I know that you mentioned common affixes are to many to integrate into the program but some of the suffixes such as "momentum" are very crucial IMO and I would have preferred them over any other godly and rare affixes if I could.. so I'd like to know if you can accept a request about a specific prefix/suffix list to add into your program..
If you are concerned about only common(yellow) prefix and suffixes then I'll add yellow affixes to the data files.
Also there is a quick fix:
Add following lines to I:\TQ_Blacksmith_v0.1.2\Data\items\ItemwiseSuffix.txt
These affixes are only for armor.
Code: [Select]
ARM=Rare=15=RECORDS\XPACK\ITEM\LOOTMAGICALAFFIXES\SUFFIX\DEFAULT\DEFENSIVE_RESISTSLOW_02.DBR=xtagSuffix030=of MomentumLEG=Rare=15=RECORDS\XPACK\ITEM\LOOTMAGICALAFFIXES\SUFFIX\DEFAULT\DEFENSIVE_RESISTSLOW_02.DBR=xtagSuffix030=of MomentumHEAD=Rare=15=RECORDS\XPACK\ITEM\LOOTMAGICALAFFIXES\SUFFIX\DEFAULT\DEFENSIVE_RESISTSLOW_02.DBR=xtagSuffix030=of MomentumTORSO=Rare=15=RECORDS\XPACK\ITEM\LOOTMAGICALAFFIXES\SUFFIX\DEFAULT\DEFENSIVE_RESISTSLOW_02.DBR=xtagSuffix030=of Momentum

If you are concerned about all other item types as well then, I'll see if I can add extensive items mode to the utility. But it'll take some time. It's not the implementation, it's compiling data of 8-10K items that takes time.
Title: Re: [Tool] TQ Blacksmith
Post by: Hector on 17 June 2018, 23:51:51
That's perfect, thanks again :)

So let me get this straight.. just putting these lines in the text is all that needed? for instance, if I want another prefix/suffix on any part of equipment, I just have to find the related lines for that and put them in the text as well, right?.. if that's the case, maybe you can direct me to a place where I can find all the values so that I can put the ones that I need into the text and be done with it.. I don't want you to bear extra workload just for one person asked it, that's why I'm making this post..

For instance, if I want "impetus" instead , that's tire 3 quality of slow resistance so I have to change 02.dbr to 03.dbr and keep the remaining parts untouched, right?

https://www.tq-db.net/affix/prefixes

There are some prefixes in the list with a note attached as "multiple possibilities". I've never seen a "hardened" prefix offer bleeding resistance instead of pierce resistance for example.. Do you know what the deal with that is? Is it something manually editable like the completion bonuses on charms and relics?
Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 18 June 2018, 08:52:36
So let me get this straight.. just putting these lines in the text is all that needed? for instance, if I want another prefix/suffix on any part of equipment, I just have to find the related lines for that and put them in the text as well, right?..
Yes you are right. But adding item lines to those data txt files will only work for prefixes and suffixes. For other items you can add only rare, eipc and legendary items' lines, common/broken items will be ignored.

Quote
if that's the case, maybe you can direct me to a place where I can find all the values so that I can put the ones that I need into the text and be done with it.. I don't want you to bear extra workload just for one person asked it, that's why I'm making this post..
There is only one place all the values could be found, <installDir>\Database\database.arz. But compiling data from it not that easy.
tq-db.net is not complete, it doesn't have common and broken items as well.

I've extracted such data by writing specific code.
Here are all the available suffixes and prefixes which are in use(referred by at least one loot table):
https://mega.nz/#F!eOh3mawA!NJBoyOrEvCOvztxijQH3aw (https://mega.nz/#F!eOh3mawA!NJBoyOrEvCOvztxijQH3aw)
AllPrefixes 928.txt
AllSuffixes 774.txt
You could pick your lines from here to put in TQ_Blacksmith data files.
If you don't find your affix in above files:
Get it from TQValut. It doesn't let you copy text. But just select the path and drag it to notepad or any editor.
(https://preview.ibb.co/c3S6QJ/item_Properties.jpg)

Quote
For instance, if I want "impetus" instead , that's tire 3 quality of slow resistance so I have to change 02.dbr to 03.dbr and keep the remaining parts untouched, right?
I would suggest just add a new line for Impetus.

Quote
https://www.tq-db.net/affix/prefixes
There are some prefixes in the list with a note attached as "multiple possibilities". I've never seen a "hardened" prefix offer bleeding resistance instead of pierce resistance for example.. Do you know what the deal with that is? Is it something manually editable like the completion bonuses on charms and relics?
On tq-db.net there is only one page for prefix. And listed prefix doesn't say it belongs to what item type e.g sword, ring, helm, or shield.
So if there are two prefixes:
1) prefix for helm - offers 8% bleeding resist - has name 'Hardened'
2) prefix for shield - offers 8% pierce resist - also has name 'Hardened'
So if these have same name. Then tq-db says "multiple possibilities" and list them in one entry.

These are three prefixes which have same name 'Hardened'
\records\item\lootmagicalaffixes\prefix\default\defensive_resistbleed_01.dbr
\records\item\lootmagicalaffixes\prefix\default\defensive_resistpierce_01.dbr
\records\xpack2\item\lootmagicalaffixes\prefix\default\defensive_resistbleed_01.dbr
I don't know to which item type they get applied, but definitely they are different.
Title: Re: [Tool] TQ Blacksmith
Post by: Hector on 18 June 2018, 18:56:49
Wow, I would've never guessed the stats of a prefix could change in different parts of armors.. momentum never changes for example..  But for hardened (and god knows how many others), this is not the case, eh? Good to know, what can I say else :)

Thank you so much for your time and support koderkrazy..

Title: Re: [Tool] TQ Blacksmith
Post by: koderkrazy on 11 July 2018, 17:48:47
Added option not to select affixes. Items could be created without prefix or suffix now!
Title: Re: [Tool] TQ Blacksmith
Post by: Tasim on 11 July 2018, 18:05:01
This is beautiful!!!

Thank you so much, farming for items is part of the game charm, but sometimes it can just get very frustrating, plus this way trying out new builds is much easier.

Once again, great work, you ser, deserve a beer.  :D
Title: Re: [Tool] TQ Blacksmith
Post by: nargil66 on 11 July 2018, 18:31:50
Downloaded! Nice addition.
Title: Re: [Tool] TQ Blacksmith
Post by: Hector on 11 July 2018, 18:53:45
You're the man  8)
Title: Re: [Tool] TQ Blacksmith
Post by: hggeren on 19 September 2018, 20:49:31
I've noticed that when creating a ring or amulet with this tool you are only allowed to specify one suffix, as opposed to two suffixes for armor and weapons. Is this intentional? Tqdb lists both affixes and prefixes for rings and amulets. Thank you so much for making this tool, it has made my solo playthroughs so much more enjoyable!
Title: Hoping for Normal/Yellow items
Post by: andyblast on 07 October 2018, 04:38:46
Nevermind, disabled antivirus & firewall & i was able to open the file & smithy works.

I would love to see common items & their affixes/suffixes, while i do realize it may be a huge task :)

small bug: The Cancel button is not enabled on char selection screen (relevant if i don't have a dummy char & wanna go make one before i start smithy). Only ctrl+Alt+Del

Amazing tool.
Title: Re: [Tool] TQ Blacksmith
Post by: andyblast on 16 October 2018, 00:27:24
Giving a bump in hope that OP can see, is it possible to get common items with their affixes please?
Title: Re: [Tool] TQ Blacksmith
Post by: Particle on 21 October 2018, 15:43:51
Hi just a quick question: is there a reason that suffixes can't be added to rings and amulets?
Title: Re: [Tool] TQ Blacksmith
Post by: kmaawn on 25 October 2018, 15:40:50
Great tool, thanks!
Title: Re: [Tool] TQ Blacksmith
Post by: madzkull on 05 December 2018, 13:20:33
I got problem on the tool it keeps me getting error I'm using the steam version of titan quest

2018/12/05 20:19:32.89 :==================================================
2018/12/05 20:19:32.89 :Starting the application...
2018/12/05 20:19:32.89 :Game save path: C:\Users\YoYz\Documents\My Games\Titan Quest - Immortal Throne
2018/12/05 20:19:34.42 :Found 89 items in 10_club.txt
2018/12/05 20:19:34.50 :Found 86 items in 11_spear.txt
2018/12/05 20:19:51.45 :Error loading resources System.IO.InvalidDataException: TEX magic is invalid.
at TQ_weaponsmith.BitmapCode.LoadFromTexMemory(Byte[] data, Int32 offset, Int32 count)
at TQ_weaponsmith.Database.LoadBitmap(String resourceId)
at TQ_weaponsmith.Database.LoadAllItems()
at TQ_weaponsmith.LoadDataForm.loadResources()
2018/12/05 20:19:51.45 :Application closed

This one is the log file
Title: Re: [Tool] TQ Blacksmith
Post by: efko on 06 December 2018, 03:38:07
Welcome to the forum  ^-^
Anyone know how he can fix this?
Title: Re: [Tool] TQ Blacksmith
Post by: madzkull on 07 December 2018, 00:42:27
Welcome to the forum  ^-^
Anyone know how he can fix this?

Thanks admin all good now I manage to contact the developer and it seems I got corrupted files so had to verify integrity the client from steam and now it works smoothly
Title: Re: [Tool] TQ Blacksmith
Post by: efko on 07 December 2018, 17:33:03
Nice to hear that you found solution  :)