stoneharry / WoW-Spell-Editor

A Spell Editor for WoW versions WOTLK 3.3.5, TBC 2.4.3, or Vanilla 1.12.1.
269 stars 121 forks source link

TBC's DBC cannot be saved correctly #229

Open Greyisttot opened 9 months ago

Greyisttot commented 9 months ago

Spell Editor System.FormatException: 输入字符串的格式不正确在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&number, NumberFormatlnfo info, Boolean parseDecimal)在 System.Number.Parselnt32(String s, NumberStyles style, NumberFormatlnfo info)在 SpellEditor.MainWindow.

stoneharry commented 9 months ago

Can you upload your full DBC set for me, so that I can debug it? Thanks

jpmckown commented 8 months ago

Ran into this same issue. DBC files I used you can find here https://github.com/stoneharry/WoW-Spell-Editor/releases/download/v2.2.1/WoW_Spell_Editor_v2_2_1.exe

Crypticaz commented 5 months ago

Running into the same issue

Sparco6 commented 2 months ago

i found solution, before i using older version, in bindings_243_tbc you find lines in file Spell.txt

uint SpellIconID uint ActiveIconID uint Unknown1 uint SpellName0 string uint SpellName1 string

change that Unknown1 to uint SpellPriority

uint ActiveIconID uint SpellPriority uint SpellName0 string

and then extract works i fixed this extract in https://github.com/stoneharry/WoW-Spell-Editor/pull/187/commits/97480bc5407d6cb358c33389ec20ed85c1618625

but there is not needed to rename uint to int, just that unknown1 line only and you got extracted correct files image

Sparco6 commented 2 months ago

https://github.com/Sparco6/WoW-Spell-Editor/commit/aa953ebd5f329a0d404aad3856ada97e22ec4935 fix here