• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to force a pink (edited) data field?

Status
Not open for further replies.
I fucking hate that localized hotkey thing in the object editor. Whenever I define a hotkey that just so happens to match with the original hotkey of the ability it is based off, I constantly have to deal with "broken" hotkeys in other language versions.


Is there a way to force-overwrite a black data field in the editor with a pink (= edited) entry, even if the value is the same as the default value?
 
I found a workaround for this.
It seems that when I use LUA to set the hotkey, the field gets marked as pink even if it's the same value as the default. I guess this is because LUA writes directly into the AbilityData.slk.

Again, LUA saves the day. Damn, I wish I had learned LUA back in the days when I started mapping; could have solved SO MANY problems.
 
With localized hotkey you mean customkeys.txt, right?

Lets say I make a new ability (A000) based on Bladestorm (AOww).
If I do not alter the hotkey of A000 in any way, are you saying that A000 will use the localized hotkey defined in customkeys.txt for AOww?

If not please explain the problem so I can understand it.
 
Lets say I make a new ability (A000) based on Bladestorm (AOww).
If I do not alter the hotkey of A000 in any way, are you saying that A000 will use the localized hotkey defined in customkeys.txt for AOww?
Correct.
And if I try to alter the hotkey, but set it to the same as before, the editor will still use the one defined in customkeys.txt.
 
And if I try to alter the hotkey, but set it to the same as before, the editor will still use the one defined in customkeys.txt.
Which makes sense because the object files only note down changes from the base object.

But does this mean that using localized hotkeys for newly created abilities (as in the upper example where the game uses the customkeys.txt hotkey of AOww for A000) is only possible via the object files?

Or asking the same question in another way: what would I have to write in the .slk file's hotkey field of A000 that the game uses a (to the map maker unknown) predefined localized hotkey of AOww for my new bladestorm ability A000?
 
I found a workaround for this.
It seems that when I use LUA to set the hotkey, the field gets marked as pink even if it's the same value as the default. I guess this is because LUA writes directly into the AbilityData.slk.

Again, LUA saves the day. Damn, I wish I had learned LUA back in the days when I started mapping; could have solved SO MANY problems.
I don't get it, what did you to make them appear as pink? (I know the user is inactive, but maybe someone else can answer).
 
Status
Not open for further replies.
Back
Top