• 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.

How to Customise Lightning Effects

Level 19
Joined
Jan 22, 2011
Messages
3,980
If you use GUI, you will have to modify the TriggerData.txt. In jass you can just input the id you have added to the slk into the AddLightning/AddLightningEx function.

Yes, but I searched the whole TriggerData like 3 times now and can't seem to find the place for this...
Custom script could do the same effect, right?, using the same create lightning, but in JASS. The problem is I suck at JASS.
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
Level 48
Joined
Jul 29, 2008
Messages
9,833
This was a very simple & helpful tutorial that succinctly described the editing method with lots of great pictures & a good example (and at just the right time; I was just looking for this!).

However, despite all this I have failed to get it to work. I have included the .slk I was working off of (created a bunch of different custom ones to test several textures out; none of the ones I tested (SEWR, STR0, STR4) worked. (I would attach the map but it's my Contest map so that's kinda un-kosher : P).

Basically, upon attacking the game would freeze & give some kind of error like "the code at 00x0000CC could not be 'read'." I did not have 0 duration nor (AFAIK) were any of my chosen textures not dimensioned in multiples of 2.

Thoughts?
 

Attachments

  • LightningData.zip
    1.5 KB · Views: 67
Level 26
Joined
Aug 18, 2009
Messages
4,099
It depends on the editor you use obviously. The slk format is not a Blizzard-invention and features a couple of options like cell formating but for the data representation Wc3 reads, few is needed. I am not too versed with the general format myself but thought it could at least stand a max column/row declaration like all the other wc3 slks have.
 
Level 48
Joined
Jul 29, 2008
Messages
9,833
It depends on the editor you use obviously. The slk format is not a Blizzard-invention and features a couple of options like cell formating but for the data representation Wc3 reads, few is needed. I am not too versed with the general format myself but thought it could at least stand a max column/row declaration like all the other wc3 slks have.
Hm. Well you guessed right, either way; it works.

... Sorta. Attached is a set of screenshots I made in-game showing how they all appear stark white; I can't imagine it has to do with the color settings (RGB

One final round of testing determined the tiniest of errors can set these babies off... I had included the "\" next to "Textures" in the "Dir" line of my Lightning.slk, and lo & behold, it couldn't read that. Apparently that's assumed. Having fixed that, everything works great! Thanks again for your help.

By the way, to actually contribute to this thread, I leave with you a comment that, if possible describes the fields in better detail than Softmints did (or at least, mostly, and with bullets): Importing Custom Lightning
 
Top