How to - Use the Object Merger

Azlier

Old World Ghost
Reaction score
461
Well then you didn't require the tutorial.

Tutorials exist for the less, erm, knowledgable.
 

SlayerII

New Member
Reaction score
0
WoW this is a really good feature.
Btw really good tutorial:thup: Now i can amke more than just 50 items at my map:)
 

cryowraith

New Member
Reaction score
7
Ah I was trying to make an item with 2 abilities but there wasnt any samples. I was almost going to ask here about it, until I found the solution in my 5th (or so) try.

JASS:
iabi "AIs1,AId1"


JASS:
//! textmacro MakeHolyShield takes ID, LEVEL, STR, ARMOR
  //! external ObjectMerger w3a AIs1 AS$STR$ Istr 1 $STR$ anam "Item STR Bonus" ansf "($STR$)"
  //! external ObjectMerger w3a AId1 AA$ARMOR$ Idef 1 $ARMOR$ anam "Item DEF Bonus" ansf "($ARMOR$)"
  //! external ObjectMerger w3t cnob IC$ID$ iabi "AS$STR$,AA$ARMOR$" unam "Holy Shield +$LEVEL$" iico "ReplaceableTextures\CommandButtons\BTNHumanArmorUpThree.blp" ides "The crusader protects his allies and himself with his Holy Shield.|n|n+$STR$ STR and +$ARMOR$ Armor." idro 0
//! endtextmacro
 

Azlier

Old World Ghost
Reaction score
461
I forgot to mention that, didn't I?

I shall remedy it!
 

Jesus4Lyf

Good Idea™
Reaction score
397
Hint: To do channel abilities:
JASS:
//! i makechange(current,"Ncl3",1,"\001")

That's for setting the options to visible. I found that using "0" put in the value "49". I was puzzled for a while, until I realised it was ascii. "\xxx" is an escape sequence in LUA for a 3 digit number to be converted to a char, treating xxx as an ascii code. Take the options you want checked, convert to binary, include "\num" and off you go. :)
 

Azlier

Old World Ghost
Reaction score
461
Update (could it be?!). Added some stuff about \xxx and Lua usage. If there are any errors, pleax report them.
 

SanKakU

Member
Reaction score
21
got a possibly silly question for you about the objectmerger...i figure i can test it myself, but i'm kindof in the middle of learning methods and structs and it's a question that can wait until later, or until someone answers it for me. when you do the //! and all the code that comes after //!... at some point you're typing in the rawcodes for the objects, right? well...what i want to know is... can you use variables for that? that way you can make a hero with a bunch of spells and make him have uber awesome JESP with the objectmerger...

i think it's a valid question because usually you have to type 'AIDS' (as an example) for the rawcode...but with the objectmerger example mentioned it's AIDS instead. without the ''. now usually you would use a constant integer abilityID = 'AIDS' and then you got the integer. but if we want to use the variable for objectmerger, won't the integer variable fail?

does that mean we use a string integer? will such a thing work?
edit: yeah, i don't think my idea works. haha. it sounds like we have to have objectmerger lines be without easily editable constant variables for the moment. at least i guess we have our inline comments to fall back on...
haha i know i said i didn't want to test it, then i realized i might as well...
hmm...i guess it's ALL code and no strings or integers...so you wouldn't be able to use a variable. but that's odd, because you can normally use variables in code, right? i mean for names of things. is there no work-around that i'm unaware of?
 

Azlier

Old World Ghost
Reaction score
461
You can't use Jass variables. Not even constants. You need to use an lua variable.
 

SanKakU

Member
Reaction score
21
i keep getting the error "warcraft mpqs cannot be opened" it was working ok on my other comp, i thought...
 

Sevion

The DIY Ninja
Reaction score
413
Just a little tip, when working with Channel, the Data - Options field, you have to use integers. These are all of the combinations:

0-Unique Cast
1-Visible, Unique Cast
2-Targeting Image, Unique Cast
3-Visible, Targeting Image, Unique Cast
4-Physical Spell, Unique Cast
5-Visible, Physical Spell, Unique Cast
6-Targeting Image, Physical Spell, Unique Cast
7-Visible, Targeting Image, Physical Spell, Unique Cast
8-Universal Spell
9-Visible, Universal Spell, Unique Cast0-Unique Cast

10-19 are the same as 1, 20-29 are the same as 2, etc.

I have only tested through 39. I don't know what happens after 99, but I imagine 100 is 1, 200 is 2, 300 is 3, etc.
 

Ashlebede

New Member
Reaction score
43
Gah, the whole thing won't work for me. I even tried stuff such as :

JASS:
library myLib
    //! external ObjectMerger w3u ewsp e000
endlibrary


Saved ; no compilation errors. Closed the map, reopened, no new unit in the object editor. Even tried re-opening WE, same result. Tried placing it inside or outside a function, scope, library...
 

tooltiperror

Super Moderator
Reaction score
231
Try changing the rawcode to something that isn't e###. Like, try 'SMTH'.
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
is there any "delete ability" command?

when I attempt to delete abilities in my map, I got this crash:

deleteabilitycrash.jpg


:banghead:
if there isn't any, anyone has another solution for me?
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
that's what I try to ask... because I got the crash when I physically press Delete button to delete ability, lol
 

Azlier

Old World Ghost
Reaction score
461
Well that's certainly strange. I never had that problem so I'm rather incapable of reproducing it. Can you delete a manually created ability?
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
yes, I can. (for now)

now I think about it, those abilities that cause the crash when deleted are created by the Object Merger (well, most of them)
most of my abilities are created by the Object Merger, I use it to merge ability data that my partner created.

here is my object abilities: http://www.mediafire.com/download.php?b7qffyjmkuj5hhp
import it to a new map and try delete some.

(if you don't encounter the crash, please delete abilities of Human and Neutral Hostile for me)
 

Azlier

Old World Ghost
Reaction score
461
I can't seem to import the data into my map. It reports everything as a success, but... no custom abilities show up.

Maybe you could just attach the map?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air

      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