• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[vJASS] Objectmerger error

Status
Not open for further replies.
Level 11
Joined
Apr 6, 2008
Messages
760
Hi there. Im currently having a problem using objectmerger in one of my map.

When i try to save the map, i get this wierd error.

2zssl1u.jpg


Im running JNGP as an adminitrator and i removed writing protection on my wc3 map.

JASS:
//! runtextmacro GenerateAbilities()

//! textmacro GenerateAbilities
//! externalblock extension=lua ObjectMerger $FILENAME$
//! i 
//! i function set(field, value)
//! i     makechange(current, field, value)
//! i end
//! i function setl(field, level, value)
//! i     makechange(current, field, level, value)
//! i end
//! i 
//! i setobjecttype("abilities")
//! i 
//! i createobject("AHtb", "stun"); set("anam", "Stun Ability")
//! i set ("aani", "")        ; set ("aart", "")    ; set ("amat", "")     ; set ("amsp", 0)           ; setl("Htb1", 1, 0.0); 
//! i setl("aran", 1, 99999.0); setl("acdn", 1, 0.0); setl("ahdu", 1, 0.0) ; setl("adur", 1, 0.0)      ; set ("arlv", 6)     ; 
//! i set ("alev", 1)         ; setl("amcs", 1, 0)  ; set ("arac", "other"); setl("atar", 1, "notself");
//! i 
//! i createobject("ANso", "&sil"); set("anam", "Silence Ability")
//! i set ("aart", "")       ; setl("Nso1", 1, 0.0); setl("Nso3", 1, 0.0) ; setl("Nso2", 1, 99999.0)  ; setl("aran", 1, 99999.0);
//! i setl("abuf", 1, "&SIL"); setl("acdn", 1, 0.0); setl("ahdu", 1, 0.0) ; setl("adur", 1, 0.0)      ; set ("arlv", 1);
//! i set ("alev", 1)        ; setl("amcs", 1, 0)  ; set ("arac", "other"); setl("atar", 1, "notself");
//! i 
//! i createobject("ANdh", "&arm"); set("anam", "Disarm Ability")
//! i set ("aart", "")     ; set ("amat", "")          ; set ("amac", 0.0)   ; set ("amsp", 0)         ; setl("Nsi1", 1, 3)     ; 
//! i setl("Nsi2", 1, 0.0) ; setl("Nsi3", 1, 0.0)      ; setl("aare", 1, 0.0); setl("aran", 1, 99999.0); setl("abuf", 1, "&ARM");
//! i setl("acdn", 1, 0.0) ; setl("ahdu", 1, 0.0)      ; setl("adur", 1, 0.0); set ("arlv", 6)         ; set ("alev", 1)        ;
//! i setl("amcs", 1, 0)   ; set ("arac", "other")     ; setl("atar", 1, "notself");
//! i 
//! i createobject("ACen", "&ens"); set("anam", "Ensnare Ability")
//! i set ("aart", "")          ; set ("amat", "")            ; set ("amsp", 0)     ; setl("Ens1", 1, -1.0); setl("Ens2", 1, -1.0);
//! i setl("aran", 1, 99999.0)  ; setl("abuf", 1, "&EN1,&EN2"); setl("acdn", 1, 0.0); setl("ahdu", 1, 0.0) ; set ("aher", 1)      ;
//! i setl("adur", 1, 0.0)      ; set ("arlv", 6)             ; set ("alev", 1)     ; setl("amcs", 1, 0)   ; set ("arac", "other");
//! i setl("atar", 1, "notself"); set ("areq", "")            ; set("ansf", "")     ;
//! i 
//! i createobject("ACtb", "&dis"); set("anam", "Disable Ability")
//! i set ("aani", "")          ; set ("aart", "")       ; set ("amat", "")    ; set ("amsp", 0)     ; setl("Ctb1", 1, 0.0) ;
//! i setl("aran", 1, 99999.0)  ; setl("abuf", 1, "&DIS"); setl("acdn", 1, 0.0); setl("ahdu", 1, 0.0); setl("adur", 1, 0.0) ;
//! i set ("aher", 1)           ; set ("arlv", 6)        ; set ("alev", 1)     ; setl("amcs", 1, 0)  ; set ("arac", "other");
//! i setl("atar", 1, "notself");
//! i 
//! i setobjecttype("buffs")
//! i 
//! i createobject("BNso", "&SIL"); set("fnam", "Disabled (Spells)")
//! i set("ftip", "Disabled (Spells)")                                 ; set("fube", "This unit cannot cast spells."); 
//! i set("fart", "ReplaceableTextures\\CommandButtons\\BTNCancel.blp"); set("ftat", "")                             ; set("fta0", "");
//! i 
//! i createobject("BNdh", "&ARM"); set("fnam", "Disabled (Attacks)")
//! i set("ftip", "Disabled (Attacks)")                                ; set("fube", "This unit cannot attack."); 
//! i set("fart", "ReplaceableTextures\\CommandButtons\\BTNCancel.blp"); set("ftat", "")                        ; set("fta0", "");
//! i 
//! i createobject("Beng", "&EN1"); set("fnam", "Disabled (Movement)")
//! i set("ftip", "Disabled (Movement)")                               ; set("fube", "This unit cannot move." );
//! i set("fart", "ReplaceableTextures\\CommandButtons\\BTNCancel.blp"); set("ftat", "")                       ; set("frac", "other");
//! i 
//! i createobject("Bena", "&EN2"); set("fnam", "Disabled (Movement)")
//! i set("ftip", "Disabled (Movement)")                               ; set("fube", "This unit cannot move."); 
//! i set("fart", "ReplaceableTextures\\CommandButtons\\BTNCancel.blp"); set("ftat", "")                      ; set("fta0", "");
//! i set("frac", "other");
//! i 
//! i createobject("BPSE", "&DIS"); set("fnam", "Disabled")
//! i set("ftip", "Disabled")                                          ; set("fube", "This unit cannot do anything."); 
//! i set("fart", "ReplaceableTextures\\CommandButtons\\BTNCancel.blp"); set("ftat", "")                             ; set("fta0", "")
//! i 
//! endexternalblock
//! endtextmacro GenerateAbilities

Ps. I have the latest version of jasshelper.

(And yes i know its a repost)
 
I recommend that you just ignore the Lua part (delete it) and instead copy the custom abilities from the original map into your own.

The error seems to be coming from jasshelper not being able to access your mpq. (afaik judging by the error message) I don't think it is a problem with the code, because then it would show a different error iirc.

What is the path of your Warcraft III files/mpqs? Also, what is the path of your map? (by path I mean where it is located on your computer, for example: "C:\Program Files\Warcraft III") I think sometimes if the map is on desktop or somewhere obscure it may not be able to find the appropriate files or it may have denied access.
 
Status
Not open for further replies.
Top