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. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  3. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  4. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  5. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  6. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  7. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  8. 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. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    30
    Resources:
    0
    Resources:
    0
    What about hotkey loses for upgrades beyond first levels (for example like Iron Forged Swords upgrade)? Will be this fixed?
     
  2. pyf

    pyf

    Joined:
    Mar 21, 2016
    Messages:
    2,685
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    Could a version downgrader such as ReplayKit suit your needs?
     
  3. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    I will check it tomorrow.
     
  4. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    140
    Resources:
    0
    Resources:
    0
    thanks you <3
     
  5. IGrobin

    IGrobin

    Joined:
    Apr 16, 2017
    Messages:
    7
    Resources:
    0
    Resources:
    0
    看看这是不是缺陷
     

    Attached Files:

  6. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    This has been fixed.
    You could manual update the scripts from Github.
     
  7. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    如果你用的YDWE,你需要把 `config.ini` 里的 `[global] -> data_ui` 设置为 `${YDWE}` 。
    我推荐你去 【SLK优化器】W3x2Lni 发布贴_魔兽地图编辑器吧_百度贴吧 这里下载,从这里下载的 w3x2lni 默认使用 YDWE 相关的配置。
    如果你用的是其他修改过UI的编辑器(包括其他以YDWE为基础进行二次修改导致无法识别为YDWE的编辑器),你需要手动将编辑器中的UI文件放置到 `data\zhCN-1.24.4\ui` 目录中。
     
  8. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    30
    Resources:
    0
    Resources:
    0
    Yeah, I saw changes on github, and tried to copy these changes, but i have messed up with the changes in metadata ini of game datasets and placed in wrong place (wrong line of code) a variable cant_cut = true, and then I thought it was an unsucessfull attempt to fix hotkeys xD.
    Thanks for telling, so I've now finally noticed my mistake and changed to the right thing and now can feel the might of hotkeys for upgrades once again in SLK optimization :D.

    But I've noticed a minor issue that SLK optimization removes (nullifies) imported UnitSkin.txt, which is kinda supposed to be a way to make a sd/hd compability (at least in the bright future, for now it doesn't work with custom units, only with the original ones :peasant-bowing:). Any ways/plans to deal with such an issue?
     
    Last edited: Sep 23, 2020
  9. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    91
    Resources:
    0
    Resources:
    0
    Please give me a demon map, thank you.
     
  10. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    30
    Resources:
    0
    Resources:
    0
    There. If I remember correctly I've changed the Sorceress model to... Jailor Kassan :ogre_love: model in Reforged via imported UnitSkins.txt

    Also I've noticed another issue. Lets say I've some unit which is a flying (which can't move itself) building, which can train units and attack nearby enemies. It doesn't have buttons of Attack or Stop. But if I SLK-optimize map, it will start to have these buttons, which disrupts button orders on this unit (building). How to fix it?

    Update 12.10.2020: I've found out another(!) issue. SLK optimization somehow transforms abilities descriptions, and it kinda tricky works, descriptions starts to lose float numbers and only integers remain like lets say I've some ability, its duration on 1st level is like 1.5 seconds, so description (in the Editor) will be "Bla bla bla <A000,Dur1,.> seconds" which will transform in game to "Bla bla bla 1.5 seconds", but SLK Optimization will transform it into "Bla bla bla 1 seconds" which is kinda misleading, and I think its a bug/issue which needs to be fixed

    Update #2: I've found out the reason behind this was a checked option in config for SLK optimization "Computed_text = true" which turned abilities description to text and managed to lie about it (like mentioned turning 1.5 seconds to 1 seconds in text). Very confusing that it was a hidden from usual user eyes.
     

    Attached Files:

    Last edited: Oct 12, 2020