1. Are you planning to upload your awesome tool to Hive? Please review the rules here.
    July 9, 2018: The rules for the Tool Section have been revised. Please be sure to read the revisions.
    Dismiss Notice
  2. And she's bought a stairway to heaven. The 6th Special Effect Contest Results are here.
    Dismiss Notice
  3. Seek unity between the elements in the 22nd Terraining Contest Poll.
    Dismiss Notice
  4. Seize the moment! The 18th Mini Mapping Contest has commenced.
    Dismiss Notice
  5. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  6. 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.

W3x2Lni v2.7.2

Submitted by actboy168
This bundle is marked as approved. It works and satisfies the submission rules.
W3x2Lni is a wc3 map management tool. It helps you to manage your maps when developing or publishing.We defined 3 formats for a wc3 map, and w3x2Lni allows you to convert your maps amongst these 3 formats which are `Lni`, `Obj` and `Slk`.

> Lni
`Lni` is a VCS (like git, svn) friendly format. It looks like a directory. Most binary files in w3x will be converted into plain text files (yes! human-readable) by w3x2Lni which will also organize and categorize these text files.

> Obj
`Obj` is a wc3-readable and WE-readable format. If you want to open your map with WE, convert your map into this format.

> Slk
`Slk` is only readable by wc3 and should be used for final distribution. W3x2Lni enables multiple optimization for this format, including:

* Objects converted to slk
* Removed unreferenced objects
* Removed WE-only files
* Inlined WTS strings
* Compressed mdx
* Removed comments and unncessary white spaces in the script
* obfuscated variable and function name

W3x2Lni comes with war3 1.27.1 English data files. But it may not meet everyone's needs, you can use `w2l mpq <war3_path>` to extract data files.


For more information see the documentation.


W3x2Lni is a open source project.We welcome any pull request, e.g. improving the English text or writing English documents.
Contents

W3x2Lni v2.7.2 (Binary)

Reviews
eejin
The tool works as one would expect. The UI is nice and to the point. Only thing I am missing is a back button wen you have chosen a conversion mode. You also cannot scroll horizontally when viewing the log when converting to Lni. [ATTACH] I am...
  1. BIoodNinja

    BIoodNinja

    Joined:
    Dec 17, 2012
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Will the download be updated? I updated the data and config but still get error so i was wondering if the download could just be updated for use on current patch.
     
  2. BestZero

    BestZero

    Joined:
    May 14, 2007
    Messages:
    35
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Appreciate the update. The latest version 2.5.2 with 1.31.1 data files (or default ones) now doesn't give the error when processing the map but the game doesn't see the optimized map.

    Edit: The problem is the corruption of w3i file after using the tool. Importing from the original map doesn't work.
     
    Last edited: Jul 7, 2019
  3. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    Dose not support 1.31 now.
     
  4. Ricola3D

    Ricola3D

    Joined:
    Feb 27, 2019
    Messages:
    291
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Good to know thanks. I can't wait for it to work :) :)
     
  5. Raspberrys

    Raspberrys

    Joined:
    Feb 12, 2019
    Messages:
    10
    Resources:
    0
    Resources:
    0
    Hoping for one that does!
     
  6. Yousef

    Yousef

    Joined:
    Jul 19, 2011
    Messages:
    535
    Resources:
    0
    Resources:
    0
    How do you protect your map if this isn't working in 1.31 then?
     
  7. Ricola3D

    Ricola3D

    Joined:
    Feb 27, 2019
    Messages:
    291
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Well personally I sacrified protection for the moment, and released unprotected versions in 1.31.1. I have a few triggers to prevent simple cheats (count units, items and structures at game start), but that's all for the moment.
     
  8. BestZero

    BestZero

    Joined:
    May 14, 2007
    Messages:
    35
    Resources:
    3
    Maps:
    3
    Resources:
    3
    I was able to use this program with 1.31.1 patch, so I would like to share.

    First, download the latest version and extract 1.31.1 Data File. (refer to a few posts back for a way to extract yours.) Then, export war3map.w3i and war3map.wts from your original, unprotected map using MPQMaster or any similar program. Use this program to optimize your map. Lastly, import back those two files you exported earlier. Voila!
     
  9. Ricola3D

    Ricola3D

    Joined:
    Feb 27, 2019
    Messages:
    291
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Amazing ! Did you experience any issue with your protected map since then ? Or it seems to work without any countereffect ?
     
  10. BestZero

    BestZero

    Joined:
    May 14, 2007
    Messages:
    35
    Resources:
    3
    Maps:
    3
    Resources:
    3
    There is one minor downside with my map. I use custom gameplay constants and there are a lot of edited values. One of the values is Hide Enemy Inventory which is set to TRUE, meaning that players shouldn't be able to see other player's unit inventory. However, after using this method, unit inventory wasn't hidden as it was supposed to. All other edited constants so far worked fine though. Only this one didn't work but it was relatively minor so I let it pass. You might want to try importing war3mapMisc.txt back if you want to make sure everything works.
     
    Last edited: Aug 16, 2019
  11. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    158
    Resources:
    0
    Resources:
    0
    Pls help :(
    upload_2019-8-18_9-29-30.png
     

    Attached Files:

  12. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    158
    Resources:
    0
    Resources:
    0
  13. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    W3x2lni will build the full data of objects before converting a map, .
    This map has some objects with a level of 999999 (1M).
    To build the full data of them (expand data at each level), it takes up a lot of time and memory.
    At present, W3x2lni is compiled in arch x86, the upper limit of memory that can be used after testing is about 1.3G, so it crashed due to not enough memory.
    We will compile it in arch x64 in the next version, then this problem will be resolved.
     
  14. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    158
    Resources:
    0
    Resources:
    0
    Thanks
     
  15. Raspberrys

    Raspberrys

    Joined:
    Feb 12, 2019
    Messages:
    10
    Resources:
    0
    Resources:
    0
    any hope for this awesome tool to get updated?
     
  16. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,134
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Check the GitHub for changes.
     
  17. pyf

    pyf

    Joined:
    Mar 21, 2016
    Messages:
    2,689
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    @Raspberrys: It possibly depends on Blizzard's willingness to document their changes, and also on their willingness to collaborate with third-party independent developers.
     
  18. Unryze

    Unryze

    Joined:
    Apr 14, 2016
    Messages:
    113
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Reporting 2 bugs, one I found long time ago, but it was not so important, until I actually had to deal with maps that suffer from it.

    1) Using W3X2LNI to slk completely kills any data of unit level, thus making ChooseRandomCreep/ChooseRandomCreepBJ ignore inputted value of level.
    2) W3X2LNI fails to read GlobalExperience from war3mapMisc.txt, thus it does not put it back, thus breaking any map that you convert back from LNI to OBJ or SLK.

    Thanks.
     
    Last edited: Nov 5, 2019
  19. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    I did some tests, but I didn't find this problem. Could you please provide a demo map, maybe there is something changed in the latest version of WC3.
     
  20. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0