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. Seek unity between the elements in the 22nd Terraining Contest Poll.
    Dismiss Notice
  3. Seize the moment! The 18th Mini Mapping Contest has commenced.
    Dismiss Notice
  4. Gather 'round - the 20th Icon Contest Poll is out.
    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. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    157
    Resources:
    0
    Resources:
    0
  2. psxlover

    psxlover

    Joined:
    Dec 30, 2010
    Messages:
    66
    Resources:
    0
    Resources:
    0
    Oh sorry, my bad. Didn't notice it was just tags on the commits, without any build attached to them :/
     
  3. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    157
    Resources:
    0
    Resources:
    0
    @actboy168 do u still have older version that's work for 1.26a?
     
  4. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    Each version supports WC3 1.26a. All you need to do is extract the data file of specific version of WC3.
     
  5. Sverkerman

    Sverkerman

    Joined:
    Feb 28, 2010
    Messages:
    1,314
    Resources:
    6
    Maps:
    6
    Resources:
    6
    @sumneko What's new in the new version? :)
     
  6. StrawberryJem

    StrawberryJem

    Joined:
    Dec 25, 2019
    Messages:
    3
    Resources:
    0
    Resources:
    0
    Best tool ever
     
  7. Unregret

    Unregret

    Joined:
    Jun 15, 2016
    Messages:
    803
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Oh mine. Bless the one @actboy168, who made this optimization. This is even surpass Vexorian's Optimization, Wc3SLKOpt and other optimization too. Very clean UI, easy to use, fast progress and most importantly, it allow to optimize the huge object data all at one without bugs. Not to mention, it supports different versions of WE. Seriously, you deserve more +rep than this.
     
  8. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    30
    Resources:
    0
    Resources:
    0
    Tried to test current version (2.7.2) in reforged (1.32.8) with one map, and with SLK optimization now can't launch the map. It gives message "Invalid shadow map file". Hm, I guess its because the map is protected, but still I've managed to recover its listfile fully and implanted back for optimization...

    Update: Yeah, my bad. Just poorly implanted restored listfile.

    Update #2: But still, why slk optimization messes up hotkeys? Like it removes hotkeys for upgrades beyond level 1. Minor example: have map with some upgrade with 4 levels, optimize map with SLK optimization - now you can only press upgrade via hotkey only on 1st level, the next levels doesn't have hotkeys (about other mess ups, like turning some icons to completely different icons, I suppose i will remain silent).
     
    Last edited: Sep 18, 2020
  9. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    Did you load data files of 1.32.8?
     
  10. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    30
    Resources:
    0
    Resources:
    0
    What do you mean? Can you ellaborate?
     
  11. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    393
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    Extract this file into the "data" folder in your w3x2lni folder. Then open config.ini with a text editor (such as Notepad) and find a line with:

    data = enUS-1.27.1


    Then change it to:

    data = enUS-1.32.8
     

    Attached Files:

  12. Dat-C3

    Dat-C3

    Joined:
    Mar 15, 2012
    Messages:
    2,550
    Resources:
    10
    Models:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    1
    Resources:
    10
    What does this do better then vex's and wc3slkopt?
     
  13. Unregret

    Unregret

    Joined:
    Jun 15, 2016
    Messages:
    803
    Resources:
    1
    Maps:
    1
    Resources:
    1
    There are few points coming from this new tool, compared to:
    1. Wc3slkopt
    - Similar to wc3slkopt, compress MDX but not completely remove all vertex, which may causes twisted models. For some unknown reasons, this tool generates much faster and optimizes effect exactly as it claims, resulting in-game boost.
    - Does not have more options to optimize each object data like it seems, this tool keeps all tooltips of WE intact, while wc3slkopt wipe out all of them. With this tool, we get also much smaller size map and huge loading boost similar to wc3slkopt
    2. Vex's (VXJWTSOPT)
    - This tool is very easy to use, and right now keep updating for latest versions. It optimizes trigger scripts faster and support 3 formats!!!, and does thing exactly what it claims. Vex's is problematic, it requires more knowledge to use it and the map can become unplayable and not even appear during map selection screen (if you use different kinds of scripts such as vJass, USWM, cJass, Lua at the same time). Using Vex's optimization actually increase map even bigger and produce more files.

    I feel like this tool is a combination of optimization tools, but not mess everything up and straight to the point.

    But still there are some flaws of this tools, it need to be updated to avoid:
    - Expose Icon position of some hidden-system abilities, (For example, Select Hero options, Sharing Shop), what you get is a missing tooltip icon (basically Select User icon) which over-laps other items while playing).--
    - It does something to hotkey system as people said, but i'm not too sure. Need more tests.
     
    Last edited: Sep 18, 2020
  14. Dat-C3

    Dat-C3

    Joined:
    Mar 15, 2012
    Messages:
    2,550
    Resources:
    10
    Models:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    1
    Resources:
    10
    It also breaks engineering upgrade and other stuff if one uses that option so its better not to use it, I have forgotten if that options useable in wc3slkopt. So I agree its better then wc3slkopt however I am unsure about it being better then vex's, would need a second opinion I suppose.
     
  15. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    393
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    The most awesome use of this tool by far is the ability to convert map data to a readable and easy to parse format, so you can edit object data programatically using whatever programming language you wish. This is something that Vex's optimizer could never do (and never set out to do).

    When it comes to optimizing, it was basically as good as Vex's optimizer before Reforged broke a few things related to SLK files (last time I tested it, anynow... might've been fixed with an update?). It doesn't have constant inlining though, which kinda sucks, and you can't opt out of SLK conversion.

    So I think optimization-wise, with both tools at their prime when it comes to wc3 not breaking them, I'd say there wasn't that big a difference. But when it comes to overall usefulness Vex's optimizer can't even compare to w3x2lni... it's closer to the level of vJASS/Jass Helper.
     
  16. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    157
    Resources:
    0
    Resources:
    0
    could you make one for 1.26a?
     
  17. _Guhun_

    _Guhun_

    Joined:
    Jun 12, 2010
    Messages:
    393
    Resources:
    7
    Spells:
    6
    Tutorials:
    1
    Resources:
    7
    Unfortunately I don't have any version earlier than 1.27 installed =/
     
  18. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    30
    Resources:
    0
    Resources:
    0
    Okay... I've made and slk optimized again map. Looks far better, weird icons has dissapeared along with bugs. But upgrade hotkeys are still gone beyond 1st level of upgrade.
    Also noticed some werid behaviour: on first try - I've set up all 4 basic checks and optimize doodad check - and Selecting button in shops (Select User Button) has lost its icon (became Sammy) and changed position from X3;Y2 to X0;Y0, huh weird. On second try - set up only optimizing doodad option and Select User button remained unaffected
     
  19. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    You could use `w2l.exe mpq <wc3path>` to load the specified version of the data.
    Dragging the WC3 folder directly onto the GUI will have the same effect.
     
  20. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    I'm glad many people like this tool.
    However, I am no longer engaged in WC3 related development, so I will not actively fix bugs. (in the past, 80% of bugs were found and fixed in my own use).
    But I will continue to maintain this tool. If you find any bugs, you can tell me on this post or GitHub. It's better to attach the specific reproduction process. The demo map is the best.