1. 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
  2. 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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Ride into the sunset with the 32nd Modeling Contest. The contest is optionally paired. Best of luck, people!
    Dismiss Notice
  4. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  5. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. 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.

pw3i Batcher 1.0 - w3x parser

Discussion in 'Warcraft Editing Tools' started by Firstrun70, Feb 2, 2020.

  1. Firstrun70

    Firstrun70

    Joined:
    Feb 2, 2020
    Messages:
    10
    Resources:
    0
    Resources:
    0
    [​IMG]

    Author of pw3i.exe v1.02: Hodor xgm
    Author of pw3i Batcher 1.0: Firstrun70

    pw3i Batcher - Batch metadata parser from w3x w3m (from war3map.w3i war3map.wts)
    v1.0 [12.25.2019]
    Requires pw3i.exe v1.02

    Parses all the information of the map automatically, for example, Author, Title, Description, Number of players, etc.
    Work methods:
    1 - works from the current folder. Before starting, you need to copy the bat file to the folder with maps.
    2 - works with direct folders. Run from anywhere.
    The program has hidden working methods 11 12 13 21 22 23 (11=1 21=2), methods 12 13 22 23 are executed alternatively with other work logging.
    pw3i 1.02 only works with File format = 18 25 28 and does not work with File format = 8 10 11 15 23 24 26 27 31

    github https://github.com/Firstrun70/pw3i-Batcher

    An example of a program working with a map TFT 1.26a en-(2)EchoIsles.w3x:
    File format = 25
    Number of saves = 31
    Editor version = 6051
    Map name = TRIGSTR_004 = {Echo Isles
    }
    Map author = TRIGSTR_007 = {Blizzard Entertainment
    }
    Map description = TRIGSTR_006 = {Though these islands are surrounded by deep and treacherous waters, they have seen little peace. Many of the creatures dwelling here are refugees from the war. They have nothing left to lose. Don't expect a warm welcome.
    }
    Players recommended = TRIGSTR_005 = {1v1
    }
    Camera bounds:
    {
    -6912
    -5376
    6912
    4864
    -6912
    4864
    6912
    -5376
    }
    Map playable area = 116
    Map playable area = 84
    Map width = 128
    Map height = 96
    Flags:
    {
    Hide minimap in preview screens = 0
    Modify ally priorities = 0
    Melee map = 1
    Playable map size was large and has never been reduced to medium = 0
    Masked area are partially visible = 1
    Fixed player setting for custom forces = 0
    Use custom forces = 0
    Use custom techtree = 0
    Use custom abilities = 0
    Use custom upgrades = 0
    Map properties menu opened at least once since map creation = 1
    Show water waves on cliff shores = 1
    Show water waves on rolling shores = 1
    Unknown = 0
    Unknown = 1
    Unknown = 1
    }
    Map main ground type = 76
    Loading screen background number = -1
    Path of custom loading screen model =
    Map loading screen text =
    Map loading screen title =
    Map loading screen subtitle =
    Used game data set = 0
    Prologue screen path =
    Prologue screen text =
    Prologue screen title =
    Prologue screen subtitle =
    Uses terrain fog = 0
    Fog start z height = 3000
    Fog end z height = 5000
    Fog density = 0.5
    Fog red value = 0
    Fog green value = 0
    Fog blue value = 0
    Fog alpha value = 255
    Global weather id = 1919697234
    Custom sound environment =
    Tileset id of the used custom light environment = 0
    Custom water tinting red value = 255
    Custom water tinting green value = 255
    Custom water tinting blue value = 255
    Custom water tinting alpha value = 255
    Number of players = 2
    Players:
    {
    Player 1:
    {
    Status = Human
    Race = Human
    Fixed start position (0/1) = 0
    Player name = TRIGSTR_001 = {Player 1
    }
    Start position X = -5184
    Start position Y = 2944
    Priorities:
    {
    Player 1 = No
    Player 2 = High Priority
    Player 3 = No
    Player 4 = No
    Player 5 = No
    Player 6 = No
    Player 7 = No
    Player 8 = No
    Player 9 = No
    Player 10 = No
    Player 11 = No
    Player 12 = No
    Player 13 = No
    Player 14 = No
    Player 15 = No
    Player 16 = No
    Player 17 = No
    Player 18 = No
    Player 19 = No
    Player 20 = No
    Player 21 = No
    Player 22 = No
    Player 23 = No
    Player 24 = No
    }
    Player 2:
    {
    Status = Human
    Race = Orc
    Fixed start position (0/1) = 0
    Player name = TRIGSTR_003 = {Player 2
    }
    Start position X = 4672
    Start position Y = 2944
    Priorities:
    {
    Player 1 = High Priority
    Player 2 = No
    Player 3 = No
    Player 4 = No
    Player 5 = No
    Player 6 = No
    Player 7 = No
    Player 8 = No
    Player 9 = No
    Player 10 = No
    Player 11 = No
    Player 12 = No
    Player 13 = No
    Player 14 = No
    Player 15 = No
    Player 16 = No
    Player 17 = No
    Player 18 = No
    Player 19 = No
    Player 20 = No
    Player 21 = No
    Player 22 = No
    Player 23 = No
    Player 24 = No
    }
    }
    Number of teams = 1
    Teams:
    {
    Team 1:
    {
    Flags:
    {
    Allied = 0
    Share victory = 0
    Share advanced unit control = 0
    Share vision = 0
    Share unit control = 0
    }
    Players:
    {
    Player 1
    Player 2
    }
    Team name = TRIGSTR_002 = {Force 1
    }
    }
    }

    Related Links:
    Protection MPQ Archives - Warcraft III Maps
    filelist MPQ Archivy - Name breaking
    Parsing Parsing metadata from w3m w3x w3n
    WinMPQ Batcher 1.0 thread WinMPQ Batcher 1.0 - w3x unpacker
    WinMPQ Batcher 1.0 file WinMPQ Batcher 1.0 - w3x unpacker
    pw3i Batcher 1.0 thread pw3i Batcher 1.0 - w3x parser
    pw3i Batcher 1.0 file pw3i Batcher 1.0 - w3x parser
     

    Attached Files:

    Last edited: Feb 3, 2020
  2. Frotty

    Frotty

    Wurst Reviewer

    Joined:
    Jan 1, 2009
    Messages:
    1,473
    Resources:
    11
    Models:
    3
    Tools:
    1
    Maps:
    5
    Tutorials:
    1
    Wurst:
    1
    Resources:
    11
    So much for

    :grin:

    The github account "Firstrun70" doesn't exist, and therefore all the github links are broken.

    Does this only do parsing? What do you use the output data for? Doesn't look like a standard data format.
    ChiefOfGxBxL/WC3MapTranslator e.g. uses JSON for in & output.

    Does it support all w3i versions?
     
  3. Firstrun70

    Firstrun70

    Joined:
    Feb 2, 2020
    Messages:
    10
    Resources:
    0
    Resources:
    0
    Your account has been flagged. Yes, some techincal issues, need to wait a week
    Yes
    Anything
    txt file
    pw3i 1.02 only works with File format = 18 25 28 and does not work with File format = 8 10 11 15 23 24 26 27 31
     
  4. Cheezeman

    Cheezeman

    Joined:
    Aug 19, 2008
    Messages:
    488
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    Ffs xD your xkcd link is even more relevant now.