• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

csv-from-w3x

Status
Not open for further replies.
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

Last edited:
This doesn't seem to support Reforged data, it returns this error:
 

Attachments

  • error.PNG
    error.PNG
    1.8 KB · Views: 105
Status
Not open for further replies.
Back
Top