ObjectMerger Error

Executor

I see you
Reaction score
57
I want to create a new unit via ObjectMerger:

JASS:
//! external ObjectMerger w3u hpea MFKD abilList "Apiv,dmts" spd -50 turnRate 1.00 upgrades "" bldtm 1 type tree fused 0 bountyplus 0 bountysides 0 bountydice 0 goldcost 0 goldRep 0 isbldg 1 canFlee 0 HP 1000000000 hideOnMinimap 1 points 0 reptm 1 nsight 0 sight 0 regenHP 9999 stockRegen 0 stockMax 0 collision -5 inEditor 0 dropItems 0 unitSound "" scale -50 selZ -50 file "None.mdl" unitShadow "" shadowW 0 shadowH 0 shadowX 0 shadowY 0 modelScale 0 weapsOn 0 acquire 99999 Name "" EditorSuffix "Force Key Dummy" Tip "" Ubertip ""


But JASSHelper says that:
"abilList ; goldcost ; HP ; stockRegen ; stockMax ; scale ; file"
would be "Invalid object field"s

What am I doing wrong?
 

Azlier

Old World Ghost
Reaction score
461
Each field has a four letter code, much like a rawcode. You use that, not the actual name of the field.

attachment.php
 

_whelp

New Member
Reaction score
54
Press Ctrl+D in the object editor and use the raw codes, normal text won't work.

EDIT: Azlier beat me to it...
 

Executor

I see you
Reaction score
57
JASS:
    //! textmacro CreateForceKeyDummy takes ID SPELL
        //! external ObjectMerger w3u hpea $ID$ uabi "Apiv,$SPELL$" umvs -50 umvr 1.00 upgr "" ubld 1 utyp tree ufoo 0 ubba 0 ubsi 0 ubdi 0 ugol 0 ugor 0 ubdg 1 ufle 0 uhpm 1000000000 uhom 1 upoi 0 urtm 1 usin 0 usid 0 uhpr 9999 usrg 0 usma 0 ucol -5 uine 0 udro 0 usnd "" ussc -50 uslz -50 umdl "None.mdl" ushu "" ushw 0 ushh 0 ushx 0 ushy 0 usca 0 uaen 0 uacq 99999 unam "" unsf "Force Key Dummy" utip "" utub ""
    //! endtextmacro
    //! textmacro CreateForceKeyDummyAbility takes ID, HOTKEY
        //! external ObjectMerger w3a ACbf $ID$ alev 1 Ucs4 0 Ucs3 0 Ucs2 0 Ucs1 0 Nbf5 0 acdn 0 ahdu 0.01 adur 0.01 amcs 0 aare 0 aran 9999999 atar tree,ground,bridge,decoration,enemies,friend,structure,item,terrain,hero,alive,air,mechanical,neutral,notself,nonhero,nonsapper,nonancient,none,organic,self,sapper,player,dead,debris,invulnerable,ancient,allies,vulnerable,wall,ward amat "" amsp 0 aart "ReplaceableTextures\CommandButtons\BTNLoad.blp" anam "ForceKeyAbility" ahky $HOTKEY$ atp1 "" aub1 ""
    //! endtextmacro

    //! runtextmacro CreateForceKeyDummyAbility("MFKA","T")
    //! runtextmacro CreateForceKeyDummy("MFKD","MFKA")


Hm dunno what to do.. the object merger has problems with the dummy ability. There must be some nooby mistake by me :p

Error:

The level/variation value 0 must not be zero or negative
The value Ucs3 is not a valid real
Invalid object field 0
Invalid object field 0
Invalid object field 0
Invalid object field 0
Invalid object field 0
Invalid object field 0.01
Invalid object field 0.01
Invalid object field 0
Invalid object field 0
Invalid object field 99999
...

It seems like he interprets the values as key words, but why?
I used the normal syntax: //! external ObjectMerger TYPE BASE RAWCODE ..configuration..
 

Azlier

Old World Ghost
Reaction score
461
Odds are that you're trying to modify some parameters that can have a different value for each level. Like mana cost. You need to do amcs 1 0 to set level 1's mana cost to 0. I think.
 

Executor

I see you
Reaction score
57
True, ty.


EDIT:

Hm it seems like I don't get it. The creation of the spell works fine now but:

JASS:
    //! textmacro CreateForceKeyDummy takes ID SPELL
        //! external ObjectMerger w3u hpea $ID$ uabi Apiv,$SPELL$ umvs -50 upgr "" ubui "" utyp tree ufoo 0 ubba 0 ubsi 0 ubdi 0 ugol 0 uhpm 1000000000 uhom 1 usin 0 usid 0 uhpr 9999 ucol -5 uine 0 usnd "" ussc -50 uslz -50 umdl "None.mdl" ushu "" usca 0 uaen 0 uacq 99999 unam "   " unsf "Force Key Dummy" utip "  " utub "  "
    //! endtextmacro


creates a hero and not a peasant based normal unit?!
I created a new peasant manually modified all this values and it is still a normal unit, why does the objectmerger create a hero?
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
If the $ID$ you use starts with a capital letter, it'll be a hero.

For normal units, use non-capital letters

H000 -> Hero
h000 -> Unit

, I think...
 

Azlier

Old World Ghost
Reaction score
461
GetTriggerUnit- is most certainly correct.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top