This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TOOL] Spell Editor GUI  (Read 7697 times)

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
[TOOL] Spell Editor GUI
« 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

GitHub: https://github.com/stoneharry/Spell-Editor-GUI

It only supports 3.3.5a (12340) version of Spell DBC, localisation is supported.

« Last Edit: September 13, 2013, 04:25:30 pm by Admin »

fearless_wind

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 349
    • View Profile
    • http://modcraft-rus.ucoz.ru
Re: [TOOL] Spell Editor GUI
« Reply #1 on: September 08, 2013, 06:46:52 pm »
Awesome! Thanks.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Crumpet

  • Contributors
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #2 on: September 08, 2013, 07:44:01 pm »
ehhhhrrrrggg
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

strawie

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #3 on: September 10, 2013, 09:37:54 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #4 on: September 11, 2013, 12:40:20 pm »
Quote from: "strawie"
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.
« Last Edit: September 11, 2013, 02:44:35 pm by Admin »

Allifeur

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #5 on: September 11, 2013, 01:34:02 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #6 on: September 11, 2013, 02:05:45 pm »
Quote from: "Allifeur"
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Allifeur

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #7 on: September 11, 2013, 04:42:12 pm »
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #8 on: September 11, 2013, 05:37:59 pm »
Quote from: "Allifeur"
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #9 on: September 11, 2013, 08:33:33 pm »
Quote from: "strawie"
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

sakuranobushi

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 16
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #10 on: September 12, 2013, 04:58:32 pm »
Very useful tool, it's gonna be really handy if I get it to read locales.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

strawie

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #11 on: September 13, 2013, 12:48:32 am »
Quote from: "stoneharry"
Quote from: "strawie"
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #12 on: September 13, 2013, 01:38:35 pm »
Quote from: "strawie"
Quote from: "stoneharry"
Quote from: "strawie"
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

I have updated the dropbox link also. Please test the new build. :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #13 on: September 13, 2013, 03:24:54 pm »
Just implemented localisation hopefully:

https://github.com/stoneharry/Spell-Edi ... ba8e2dffea

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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [TOOL] Spell Editor GUI
« Reply #14 on: September 13, 2013, 04:25:07 pm »
Fixed a few bugs with localisation:

https://github.com/stoneharry/Spell-Edi ... 635ac06d82

Pretty confident this works now so updated the dropbox link with the new build.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »