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. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  5. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  6. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. 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.5.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.5.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:
    70
    Resources:
    0
    Resources:
    0
    Dose not support 1.31 now.
     
  4. Ricola3D

    Ricola3D

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

    Raspberrys

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

    Yousef

    Joined:
    Jul 19, 2011
    Messages:
    514
    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:
    176
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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:
    176
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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:
    116
    Resources:
    0
    Resources:
    0
    Pls help :(
    upload_2019-8-18_9-29-30.png
     

    Attached Files:

  12. sonphamthe11H

    sonphamthe11H

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

    sumneko

    Joined:
    May 31, 2018
    Messages:
    70
    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:
    116
    Resources:
    0
    Resources:
    0
    Thanks