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. Music Contest #10 - Results are finally published! Drop by to check some retro songs and congratulate the winners!
    Dismiss Notice
  3. Join Terraining Contest #19 and witness the aftermath!
    Dismiss Notice
  4. The 3rd Melee Mapping Contest is ON! Join in on a ride of a 4v4 melee experience!
    Dismiss Notice
  5. The 30th edition of the Modeling Contest is finally up! The Portable Buildings need your attention, so come along and have a blast!
    Dismiss Notice

W3x2Lni v2.4.6

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.4.6 (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. actboy168

    actboy168

    Joined:
    May 1, 2012
    Messages:
    90
    Resources:
    1
    Tools:
    1
    Resources:
    1
    I don't know what you're talking about. At any time, slk should not be used for WE editing. It is a format that exists to optimize runtime speed.
     
  2. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    8
    Resources:
    0
    Resources:
    0
    I found a solution that just copy the old datas from the old one and paste to the new one,and it’s fixed
    Btw,thanks for the update
     
  3. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Is there a way to remove Tip/Ubertip/EditorSuffix/Tooltip things from created ini files when generating them with Lni, something like this?
    Before.png After.png
     
  4. actboy168

    actboy168

    Joined:
    May 1, 2012
    Messages:
    90
    Resources:
    1
    Tools:
    1
    Resources:
    1
    I don't quite understand what you mean, can you say more?
    Are you writing lni, and want to write lni more efficiently?
     
  5. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    14
    Resources:
    0
    Resources:
    0
    I just need to compare abilities stats between two generated ini files (with Lni) but these tooltips makes comparing more complicated, so I wanted to generate ini files with Lni thing without these tooltips, only pure numbers (like on screen), but I suppose there is no such a function
     
    Last edited: Nov 29, 2018
  6. actboy168

    actboy168

    Joined:
    May 1, 2012
    Messages:
    90
    Resources:
    1
    Tools:
    1
    Resources:
    1
    If you know a little bit about lua, the problem is simple. W3x2lni is released in source code, you can modify it at any time.

    sumneko/w3x2lni

    This is where the lni is generated. For values you don't want, you can use `return`, for example
    Code (Text):

    if key == "Tip" then
        return
    end
     
     
  7. Kolladan Stormrage

    Kolladan Stormrage

    Joined:
    May 5, 2018
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Oh, thats really helped, thats what I needed! Thanks! I can only advice to make these things as additional... options? to the programm itself, to make people life easier, without coding :D
     
  8. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    24,849
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
  9. actboy168

    actboy168

    Joined:
    May 1, 2012
    Messages:
    90
    Resources:
    1
    Tools:
    1
    Resources:
    1
    This is not universal and it is difficult to become an option.
     
  10. actboy168

    actboy168

    Joined:
    May 1, 2012
    Messages:
    90
    Resources:
    1
    Tools:
    1
    Resources:
    1
  11. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    24,849
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    The person reported that no error message was generated when saving the same map as "Obj" and uploading. However this is not ideal for him since he wants to use the "Slk" for its protected properties.
     
  12. Krotos

    Krotos

    Joined:
    Aug 11, 2009
    Messages:
    135
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hi!

    Yes, that'd be the case! As long as Hive and w3x2lni don't get along with each other, I am unable to post my resource on Hive, which is a shame. =/
     
  13. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    8
    Resources:
    0
    Resources:
    0
    I have problem with converting lini return back to object
    I attached the lni folder
    here the error eorororororroroororor.PNG
     

    Attached Files:

  14. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    23
    Resources:
    0
    Resources:
    0
    Thank you for your feedback. I have fixed this bug, you may patch it yourself for now.

    See: sumneko/w3x2lni
     
  15. sumneko

    sumneko

    Joined:
    May 31, 2018
    Messages:
    23
    Resources:
    0
    Resources:
    0
    Sorry I have no idea, I use Stormlib to create mpq. The only difference between "Obj" and "Slk" is that when "Remove WE-only files", we changed some flags to prevent generating "(listfile)",
    "(attributes)" and "(signature)".

    flags: sumneko/w3x2lni
    Stormlib: ladislav-zezula/StormLib
     
  16. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    24,849
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Ralle solved it. It was due to trigger string in-lining that confused the site parser. SLK form should now upload fine.
     
  17. sonphamthe11H

    sonphamthe11H

    Joined:
    Mar 6, 2017
    Messages:
    8
    Resources:
    0
    Resources:
    0
    same problem to the slk covert