Comments (12)
Thanks for the report, I added all languages supported by Diablo but Chinese is difficult to test for me.
The text used for comparison with FuzzierSharp looks fine for Intelligence.
"IdSno": 1829566, "IdName": "S04_CoreStat_Intelligence", "Description": "# 点智力", "DescriptionClean": "点智力",
The DescriptionClean entry is used when finding a match for OCR results.
Looks like the problem is with the FuzzierSharp implementation. It's created for the English language and the default preprocessor removes all non alphanumeric characters. So instead of +79 点智力 [76-90]
only 79 76 90
remains. Causing it to match with a complete different affix.
With some changes I have got it working for
- S04_CoreStats_All
- S04_CoreStat_Intelligence
- Tempered_Generic_LuckyHit_Freeze_Tier3
I'll try to create a beta/test version for you later today.
from diablo4companion.
Ready for testing, you can download it here: https://upload.disroot.org/r/UV2ZB6bx#GAg6EQjxY33SSfOPm7PoZ4rV+Ts2eEYUOo4I+5ThDHw=
Thanks a lot. I have tested this version, FuzzierSharp works very well, but I still have some problems.
First, most of equipment can be identified well, but some equipment (about 20%) can't be identified. In debug result, the affixes areas are all correct, but OCR results are empty.
Like this, my helm can't be identified, meanwhile my chest can.
Strangely, if I'm testing the chest, and I move my mouse to helm quickly (when the red and green circles not disappear), the helm can be identified now.
There's no error in logs, so I don't know what happen.
Secondly, when the affixes language setting is chinese, I can't import preset from Maxroll, and there are a lot of warnings.
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829560) S04_CD_Reduction
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829566) S04_CoreStat_Intelligence
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829592) S04_Life
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown tempered affix: (1934897) Tempered_CDR_Skill_Sorc_FrostNova_Tier3
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown tempered affix: (1862312) Tempered_Generic_LuckyHit_Freeze_Tier3
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829566) S04_CoreStat_Intelligence
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1924662) S04_Resource_Per_Second_Mana
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1834296) S04_Resistance_All
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown tempered affix: (1934903) Tempered_Generic_LuckyHit_HealLife_Tier3
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown tempered affix: (1862307) Tempered_Generic_LuckyHit_Immobilize_Tier3
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829556) S04_AttackSpeed
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829566) S04_CoreStat_Intelligence
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1924627) S04_LifePerHit
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown tempered affix: (1935001) Tempered_Damage_Sorc_DoT_Burn_Tier3
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829556) S04_AttackSpeed
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1829566) S04_CoreStat_Intelligence
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown affix: (1926983) S04_SkillRankBonus_Sorc_Core_5
2024-05-19 02:56:24.9324|WARN|D4Companion.Services.BuildsManagerMaxroll|CreatePresetFromMaxrollBuild: Unknown tempered affix: (1935001) Tempered_Damage_Sorc_DoT_Burn_Tier3
I must change the affixes language setting to English and change back after import complete.
Thank you again. Now this tool is usable for me, it helps me a lot.
from diablo4companion.
Like this, my helm can't be identified, meanwhile my chest can.
Strangely, if I'm testing the chest, and I move my mouse to helm quickly (when the red and green circles not disappear), the helm can be identified now
I have tested v3.4.2.0, and this problem still exists. Looks like nothing changes, its performance is the same as before.
Secondly, when the affixes language setting is chinese, I can't import preset from Maxroll, and there are a lot of warnings.
Thank you, this problem has been fixed.
I'm glad to share my preset, it looks working good in debug result.
1440p_SMF_zh-CN.zip
from diablo4companion.
Ready for testing, you can download it here:
https://upload.disroot.org/r/UV2ZB6bx#GAg6EQjxY33SSfOPm7PoZ4rV+Ts2eEYUOo4I+5ThDHw=
from diablo4companion.
Like this, my helm can't be identified, meanwhile my chest can.
Strangely, if I'm testing the chest, and I move my mouse to helm quickly (when the red and green circles not disappear), the helm can be identified now.
When you quickly move from chest to helm the app still thinks it's a chest. So it only looks like it's working but it uses the wrong affixes (chest instead of helm).
Noticed this problem with some items yesterday for the first time with English. Sometimes the OCR seems to have problems to read the item type.
Doesn't happen very often for me so I haven't been able to debug this yet.
Secondly, when the affixes language setting is chinese, I can't import preset from Maxroll, and there are a lot of warnings.
Will look into that tomorrow.
Thank you again. Now this tool is usable for me, it helps me a lot.
That's great to hear, have fun with season 4.
With my own system presets...
You mentioned you created your own preset. Do you want to share that so I can add it to the app? Will make it easier for others that want to use Chinese as well.
from diablo4companion.
Like this, my helm can't be identified, meanwhile my chest can.
Strangely, if I'm testing the chest, and I move my mouse to helm quickly (when the red and green circles not disappear), the helm can be identified now
Probably fixed with the v3.4.2.0 release.
Secondly, when the affixes language setting is chinese, I can't import preset from Maxroll, and there are a lot of warnings.
Fixed in v3.4.2.0
from diablo4companion.
I have tested v3.4.2.0, and this problem still exists. Looks like nothing changes, its performance is the same as before.
That's too bad, maybe the problem is slightly different than the one I fixed for English.
Could you send me an ingame screenshot (with the overlay turned off) with one item that is working and one item that is not working? Then I can use those screenshots for debugging.
Thank you, this problem has been fixed.
You're welcome
I'm glad to share my preset, it looks working good in debug result.
Thanks, will add it later this week so it's available in the app.
from diablo4companion.
Ok, these screenshots are created from 1440pSMF
This helm can't be identified. Its affixes as follows:
+99 点智力 +[99 - 117]
+99 Intelligence
+8 资源上限 [7- 17]
+8 Maximum Resource
18.4% 冷却时间缩减
18.4% Cooldown Reduction
+15.6% 火盾的持续时间 [13.6 - 19.5]%(仅限巫师)
+15.6 Flame Shield Duration
幸运一击:最多有 +19.5% 几率击昏,持续 2 秒 [13.6 - 19.5]%
Lucky Hit: Up to a +19.5% Chance to Stun for 2 Seconds
This chest can be identified, to compare.
from diablo4companion.
I'm glad to share my preset, it looks working good in debug result.
1440p_SMF_zh-CN.zip
The 1440p_SMF_zh-CN.zip
preset is now available in the app.
from diablo4companion.
It's working now.
Problem was with the type localisation in ItemTypes.zhCN.json
I used spaces in each variant, e.g, 神圣 普通 头盔
instead of 神圣普通头盔
Also OCR is having problems with the helm, it works, but just barely. Only a 83% match.
from diablo4companion.
Fixed in v3.4.5.0
To play it safe you might want to change the following setting from 80 --> 75.
from diablo4companion.
Related Issues (20)
- Request: inidicate good affixes that should be on another item HOT 1
- Custom dots colors HOT 2
- Request: color resistance affixes differently HOT 1
- The +#Armor affix doesn't seem to be working HOT 2
- Aspect, Affixes and Sigils in German not working HOT 3
- D4Builds import failed :( HOT 11
- Mobalytics.gg integration proposal HOT 2
- Aspects Not Flagging HOT 6
- The red rectangle does not appear HOT 18
- "critical strike chance" is filtering the other types HOT 5
- Imported Maxroll Build Contains Unknown Affix HOT 2
- It is possible to integrate HOT 2
- Dots in wrong position using 4k monitor downscaled to 2k HOT 6
- green/red dots are no longer shown for affixes HOT 4
- Game have micro stutters with D4Companion overlay HOT 19
- Not importing stat priorities from Maxroll HOT 6
- + Armor not showing on pants
- Affix put in red but it's the good one HOT 11
- Unable to use HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diablo4companion.