| 12-17-2009, 07:40 PM | #1 |
I just started reworking an old spellpack of mine and since it contained around 40 spells, most of them based on Channel, I decided to use the ObjectMerger as suggested in order to make the implementation easier. It seems that the ObjectMerger does its job fine - the spell is created in the Object Editor without any problems (except tiny inconsistencies in the Options/Target Type fields). However, when I try to see the spell in-game it does not appear. It's as if the spell does not exist - no icon, no tooltips no nothing. This bug doesn't occur when the spell is normally created based on Channel and has its fields manually filled. Any ideas how I can fix this thing? Another thing - I mentioned there are mistakes with the Options/Target Type fields. They both take integers as values and from what "Options" says the "Visible" option is 1. Using that value in the Object Merger line ticks "Visible" AND "Unique Cast", the second which I don't need. The same applies for Target Type - "Point Target" says 2 in the Object Editor but when used in an Object Merger line it puts something like "58" and makes that line totally useless. Solutions to this one as well? EDIT: If someone wants to try out the line I used, I'm gonna post it but it's a bit lengthy since it contains the tooltip and some other info to make it pretty...: JASS://! external ObjectMerger w3a ANcl A00M anam "Chaos Meteor" ansf "[EEW]" aart "ReplaceableTextures\CommandButtons\BTNFireRocks.blp" arar "ReplaceableTextures\CommandButtons\BTNFireRocks.blp" acat "" aeat "" atat "" abpx 1 abpy 1 arpx 1 arpy 1 Ncl6 1 "robogoblin" Ncl1 1 0.01 Ncl5 1 0 Ncl4 1 0.01 Ncl3 1 1 Ncl2 1 0 aran 1 600. acdn 1 35. alev 1 amcs 1 200 arac undead ahky "D" atp1 1 "Chaos Meteor [|CFFFF0303EE|r|cff93ffc9W|r] - [|cffffcc00D|r]" aub1 1 "Invoker pulls a flaming meteor from space onto the targeted location. Upon landing, the meteor rolls forward dealing up to 260 damage per second based on Exort for up to 1550 range based on Wex. Deals minor residual damage to units that get hit."
|
| 12-17-2009, 08:04 PM | #2 |
Afaik you cannot set the raw value of the Options field, where you need to enable visible to be able to see the spell (this is why autofill level fails in this case), maybe the object merger cannot handle that field, too, so you have to set the spell visible manually? Just a theory, though. |
| 12-17-2009, 08:20 PM | #3 |
Even when I set it only to Visible, the spell just does not appear in the Hero's bar, although it can be learned... |
| 12-17-2009, 10:02 PM | #4 |
I had the exactly same problem. As I know, field type is not defined correctly in metadata. ObjectMerger code needs to be fixed to force use of appropriate type. Note that the options field is a bit-flag integer field. However, you cannot put integers in there with ObjectMerger. If you do, it will interpret integers as ascii characters and put a wrong value instead. I tried to exploit ascii integer bit representation. That is, I tried to put a character only containing required bits in the first 5 bits or so. However, it didn't work (as I remember). |
| 12-18-2009, 06:26 PM | #5 |
I asked at another place and they gave me this: http://www.wc3c.net/showpost.php?p=1050064&postcount=7 It actually fixes all of Channel's bugs. I wish I had found this a bit earlier but w/e. ^^ |
