1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How do I merge different object files

Discussion in 'World Editor Help Zone' started by ArchfiendXYZVT, Feb 28, 2018.

  1. ArchfiendXYZVT

    ArchfiendXYZVT

    Joined:
    Feb 14, 2018
    Messages:
    17
    Resources:
    0
    Resources:
    0
    So I have decided to make my own custom campaign where the are various types of races and I have make like 3 races on each seperate maps but I cant seem to merge them as I can only load 1 and remove the current one so I can only have 1 of the race.Is there a way I can merge object files or any special warcraft III editor extension tools that can help ?
     
  2. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,429
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Moving to WEHZ.
     
  3. Newgen world editor had a way to do this, but I don't think it's supported by Sharpcraft Editor yet. So I don't think you can right now.

    Even if you could, it would mix up all the triggers using those units, unit abilities, etc. Object data was never meant to be merged, since they are assigned a rawcode that must be unique. If you just merged it as is, there would be repeated rawcodes, so one of them has to be changed, but this then changes anything that referenced it. This is why Blizzard never will give the functionality for it.
     
  4. Watcher

    Watcher

    Joined:
    Aug 31, 2011
    Messages:
    87
    Resources:
    0
    Resources:
    0
    Can you not export object editor data and then import everything into one map?
    Shouldn't that work if you created races separated from 4 main races?
     
  5. When you use the Import Object Data option, it replaces all current data.
    I think the only way around it is individually copying each unit and then fixing everything that used to reference it.
     
  6. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    392
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    You can use GRIMEX Object Merger on WEX, but you need to use an external vJASS call. Just read the Grixmex manual that comes with WEX.

    SharpCraft World Editor Extended Bundle\profiles\Warcraft III - World Editor (WEX)\plugins\Grimex\GrimexManual.html

    Apperently we can't upload .html files here =/

    This is what the external call would look like:

    Code (vJASS):

    //! external YourMap.w3x ObjectMerger i war3map1.w3u war3map2.w3u
     
     
  7. Daffa

    Daffa

    Joined:
    Jan 30, 2013
    Messages:
    8,206
    Resources:
    31
    Packs:
    1
    Maps:
    9
    Spells:
    18
    Tutorials:
    3
    Resources:
    31
    I kind of disagree with Grimex usage, as it might cause ID collision and let to unforeseen crashes.
     
  8. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    392
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    Well, I have never used GRIMEX with the i option, so I can't attest to it's safety. Other than that, there is GMSI. But that is considerable more complicated.