• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

csv-from-w3x

Level 8
Joined
Aug 1, 2023
Messages
34
csv-from-w3x is a command line program that converts object editor data (units, items, destructables, doodads, buffs/effects, abilities and upgrades) to 'csv' files. The object editor data can be from 'war3map.w3u' (units data), 'war3map.w3t' (items data), etc. files or directly from a map file (map.w3x).

When the 'csv-from-w3x' program is ran without providing any arguments it prints the following:
Code:
usage:
  csv-from-w3x version                             -- print csv-from-w3x's version
  csv-from-w3x -uf <war3map.w3u>                   -- output 'units.csv' file
  csv-from-w3x -tf <war3map.w3t>                   -- output 'items.csv' file
  csv-from-w3x -bf <war3map.w3b>                   -- output 'destructables.csv' file
  csv-from-w3x -hf <war3map.w3h>                   -- output 'buffs-and-effects.csv' file
  csv-from-w3x -df <war3map.w3d>                   -- output 'doodads.csv' and 'doodads-variations.csv' files
  csv-from-w3x -qf <war3map.w3q>                   -- output 'upgrades.csv' and 'upgrades-levels.csv' files
  csv-from-w3x -af <war3map.w3a>                   -- output 'abilities.csv' and 'abilities-levels.csv' files
  csv-from-w3x -uf <war3map.w3u> -tf <war3map.w3t> -- output 'units.csv' and 'items.csv' files
  csv-from-w3x w3x u   <map.w3x>                   -- output 'units.csv' file from map 'map.w3x's 'war3map.w3u'
  csv-from-w3x w3x uq  <map.w3x>                   -- output 'units.csv', 'upgrades.csv' and 'upgrades-levels.csv' files from map 'map.w3x'
  csv-from-w3x w3x all <map.w3x>                   -- output all tables from map 'map.w3x'

The command to convert a map's 'war3map.w3u' (units data) to 'units.csv' would be:
Code:
csv-from-w3x w3x u map.w3x
Where 'map.w3x' is the name of the map. The 'u' flag stands for "convert only units data".

Both units and abilities data can be converted by specifying 'ua' as the flags:
Code:
  csv-from-w3x w3x ua map.w3x

All available object editor data from a map can be converted using both of these commands:
Code:
  csv-from-w3x w3x all map.w3x
  csv-from-w3x w3x utbhdqa map.w3x


See also: w3o-from-csv
 

Attachments

  • csv-from-w3x.zip
    89.5 KB · Views: 11
Last edited:
This doesn't seem to support Reforged data, it returns this error:
 

Attachments

  • error.PNG
    error.PNG
    1.8 KB · Views: 12
Top