Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Resources and Tools => Topic started by: stoneharry on September 08, 2013, 04:10:46 pm
-
I made a spell editor GUI. I made it for private use and rushed it, so the code is very bad and it does not support everything. But it is a base and a tool that people can use if they want to. :-)
You can download from here: https://dl.dropboxusercontent.com/u/110 ... torGUI.zip (https://dl.dropboxusercontent.com/u/1102355/SpellEditorGUI.zip" onclick="window.open(this.href);return false;)
GitHub: https://github.com/stoneharry/Spell-Editor-GUI (https://github.com/stoneharry/Spell-Editor-GUI" onclick="window.open(this.href);return false;)
It only supports 3.3.5a (12340) version of Spell DBC, localisation is supported.
(http://i.imgur.com/ZS8nre4.jpg)
-
Awesome! Thanks.
-
ehhhhrrrrggg
-
omfg!!! amazing
edit: When editing spells it changes the duration when you press save spell.
Appears only to be a problem with certain spells with certain durations, 6000 glitched for me.
-
omfg!!! amazing
edit: When editing spells it changes the duration when you press save spell.
Appears only to be a problem with certain spells with certain durations, 6000 glitched for me.
Can you give me a specific spell ID this happens with?
edit: Durp, just saw you said 6000. Will look into this.
edit2:
6000 loaded up with a duration of 10 seconds for me (seems to be the default value and not always used).
When I press save spell, it does not change.
When I change it to another value and press save value, it saves correctly.
I cannot reproduce this issue with ID 6000.
-
Woaw, it's really a nice tool :o
But it doesn't accept special characters like à, é, è, ê, etc... So it's impossible to open french spell_dbc with it. It gives an error saying that the entry chain format is incorrect.
-
Woaw, it's really a nice tool :o
But it doesn't accept special characters like à, é, è, ê, etc... So it's impossible to open french spell_dbc with it. It gives an error saying that the entry chain format is incorrect.
It should accept those characters fine since it literally reads it character by character until a null terminator is found and then saves that string into a dictionary. I would need a copy of your DBC to be able to debug it.
It is more likely an issue with the fact I didn't program localised strings - I ignore the 15 other fields for each string and only read the first one. More details on this issue can be found here: https://github.com/stoneharry/Spell-Editor-GUI/issues/1 (https://github.com/stoneharry/Spell-Editor-GUI/issues/1" onclick="window.open(this.href);return false;)
-
http://rapidshare.com/files/837003876/Spell.dbc (http://rapidshare.com/files/837003876/Spell.dbc" onclick="window.open(this.href);return false;)
Here you have.
-
http://rapidshare.com/files/837003876/Spell.dbc
Here you have.
Just tested with this.
When you start it up no strings are loaded (because it does not load localised strings).
If you add strings to it (E.g: ááé test ííú) it saves it and writes it fine. However it writes it to the non-local field.
You can change which local it loads and writes to in the source code. You can find where the code is you need to change on the GitHub issue: https://github.com/stoneharry/Spell-Editor-GUI/issues/1 (https://github.com/stoneharry/Spell-Editor-GUI/issues/1" onclick="window.open(this.href);return false;)
-
omfg!!! amazing
edit: When editing spells it changes the duration when you press save spell.
Appears only to be a problem with certain spells with certain durations, 6000 glitched for me.
It seems the cooldowns are being handled wrong - it sets the duration to 10 seconds if it has no duration. I will look into this further.
-
Very useful tool, it's gonna be really handy if I get it to read locales.
-
omfg!!! amazing
edit: When editing spells it changes the duration when you press save spell.
Appears only to be a problem with certain spells with certain durations, 6000 glitched for me.
Can you give me a specific spell ID this happens with?
edit: Durp, just saw you said 6000. Will look into this.
edit2:
6000 loaded up with a duration of 10 seconds for me (seems to be the default value and not always used).
When I press save spell, it does not change.
When I change it to another value and press save value, it saves correctly.
I cannot reproduce this issue with ID 6000.
I was talking about duration time. 6000ms, when i press save it changes the duration. Tried with the DK spell: Hungering cold.
enUS
-
omfg!!! amazing
edit: When editing spells it changes the duration when you press save spell.
Appears only to be a problem with certain spells with certain durations, 6000 glitched for me.
Can you give me a specific spell ID this happens with?
edit: Durp, just saw you said 6000. Will look into this.
edit2:
6000 loaded up with a duration of 10 seconds for me (seems to be the default value and not always used).
When I press save spell, it does not change.
When I change it to another value and press save value, it saves correctly.
I cannot reproduce this issue with ID 6000.
I was talking about duration time. 6000ms, when i press save it changes the duration. Tried with the DK spell: Hungering cold.
enUS
I think I have fixed this issue and another issue with the flags editors:
https://github.com/stoneharry/Spell-Edi ... e41b4bb88a (https://github.com/stoneharry/Spell-Editor-GUI/commit/f5a78c4d8eaf5b09d4915bc4b3f190e41b4bb88a" onclick="window.open(this.href);return false;)
I have updated the dropbox link also. Please test the new build. :)
-
Just implemented localisation hopefully:
https://github.com/stoneharry/Spell-Edi ... ba8e2dffea (https://github.com/stoneharry/Spell-Editor-GUI/commit/7fa04b7195d03d0562f2ddd19aba85ba8e2dffea" onclick="window.open(this.href);return false;)
Unable to test because I don't have a localised DBC file and the one linked earlier in the thread is not working since Rapidshare is down at the time of this post.
I have not updated the dropbox link because this build is untested.
-
Fixed a few bugs with localisation:
https://github.com/stoneharry/Spell-Edi ... 635ac06d82 (https://github.com/stoneharry/Spell-Editor-GUI/commit/440c4db04de4d91929b080b9ac7e09635ac06d82" onclick="window.open(this.href);return false;)
Pretty confident this works now so updated the dropbox link with the new build.
-
Here is my french DBC, if it can help you...
http://forum.shadow-storm.fr/Spell.dbc (http://forum.shadow-storm.fr/Spell.dbc" onclick="window.open(this.href);return false;)
-
Here is my french DBC, if it can help you...
http://forum.shadow-storm.fr/Spell.dbc (http://forum.shadow-storm.fr/Spell.dbc" onclick="window.open(this.href);return false;)
Just tested it:
(http://i.imgur.com/XpG4eLr.jpg)
Appears to be working, though I am not 100% sure how the character set works. If I am correct in how I think, then the bad characters in my screenshot is because I am using a English computer, and if you were using a French computer it would display fine (?).
If not, I need to find a way to change to a different character set dependant on locale loaded.
-
I have tested on my computer and it's the same problem, characters are not supported... Where is UTF-8 when we need him :lol:
-
It would not. The use encoding is utf8, while you seem to be using some 8859 or alike.
-
I have tested on my computer and it's the same problem, characters are not supported... Where is UTF-8 when we need him :lol:
Can you test this version for me? https://dl.dropboxusercontent.com/u/110 ... chTest.exe (https://dl.dropboxusercontent.com/u/1102355/FrenchTest.exe" onclick="window.open(this.href);return false;)
I tried converting the string to UTF8 but it just displays as '???' for those characters on my computer.
If this doesn't work for me, I will have to give up without help. I have no idea what I am doing. ^^
Calling:
SpellDBC.Local2D_String = Encoding.UTF8.GetString(UTF8Encoding.Convert(System.Text.Encoding.ASCII, System.Text.Encoding.UTF8, System.Text.Encoding.Default.GetBytes(dict.Item(SpellDBC.Local2D))))
-
Same problem, my characters are changed into "???"
-
Well then, I guess it's term to hail the glorious English master-language.
Jokes aside, I don't know how to fix this. I understand it should be UTF8 but I do not know how to convert it to this format.
According to google my strings should be using UTF-16 (UNICODE).
When I convert from UNICODE to UTF8 it outputs:
畔湩瑳湡慴썮涩湥⁴慬挠扩敬㼿獥썰犨畱潶獵瘠畯敳瑮穥戠敩慤獮瘠瑯敲瀠慥⁵慭湩整慮瑮⸮.
This doesn't seem right either.
So I am giving up for now until someone can give me more information on where I could be going wrong. :)
-
I'm not sure but I think you can try with UTF8 or latin1 :)
-
and to Win-1252?
-
Encoding.UTF8.GetString
(UTF8Encoding.Convert
( System.Text.Encoding.ASCII
, System.Text.Encoding.UTF8
, System.Text.Encoding.Default.GetBytes (offset)
)
)
The problem is the "convert".
System.Text.Encoding.Default is some ANSI encoding of your system, thus a not really well defined value.
Then, you're converting from ANSI (?), hard-reinterpreting it as ASCII, to UTF8. That's just non-sense. All it may do is filtering non-ASCII-characters, which is why you're seeing question marks.
You should do
System.Text.Encoding.UTF8.GetString (System.Text.Encoding.UTF8.GetBytes (offset))
and everything should be fine.
-
Encoding.UTF8.GetString
(UTF8Encoding.Convert
( System.Text.Encoding.ASCII
, System.Text.Encoding.UTF8
, System.Text.Encoding.Default.GetBytes (offset)
)
)
The problem is the "convert".
System.Text.Encoding.Default is some ANSI encoding of your system, thus a not really well defined value.
Then, you're converting from ANSI (?), hard-reinterpreting it as ASCII, to UTF8. That's just non-sense. All it may do is filtering non-ASCII-characters, which is why you're seeing question marks.
You should do
System.Text.Encoding.UTF8.GetString (System.Text.Encoding.UTF8.GetBytes (offset))
and everything should be fine.
Thank you, the changes suggested appear to work.
Committed to GitHub, updated the dropbox link. The new version should work. :)