D2txt

Latest version: v0.5.1

Safety actively analyzes 682441 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.5.1

- Added Python 3.7, 3.8, 3.9 to list of supported Python versions

0.5.0

Changes

* `MonLvl.toml`: Separate stats for Closed Battle.net (i.e. official Battle.net) and Single Player/Open Battle.net into separate groups. Previously, `d2txt` joined stats in both categories into one row. This made a change in a Single-Player stat affect the entire row, even though modders usually edit only the Single-Player columns. The new change will help modders isolate changes better using diff tools. In addition, this allows `d2txt` to accept modified versions of `MonLvl.txt` that contain only the Single Player columns. (26)

Fixes
* `SkillDesc.toml`: The 7th dsc3line is now properly grouped. (25)

0.4.0

* d2txt is now available on PyPI! From now on, install with:

pip install d2txt

* `d2txt.py` no longer requires the `.py` extension when running from the command line. Use `d2txt decompile` instead of `d2txt.py decompile`.
* d2txt uses [Flit] instead of [Setuptools] (`setup.py`).

[Flit]: https://flit.readthedocs.io/
[Setuptools]: https://setuptools.readthedocs.io/

0.3.0

Install using the following command:


pip install https://github.com/pastelmind/d2txt/releases/download/v0.3.0/d2txt-0.3.0-py3-none-any.whl


Changes
* When packing column group arrays, trailing missing values are truncated. For example, the following column group:

toml
--MinDamage0-5 = ['120', '4', '3', '', '', '']


is now encoded as:

toml
--MinDamage0-5 = [120, 4, 3]

* The `CalcX` and `CalcX Desc` fields in Skills.txt and Missiles.txt are now grouped as well. Previously, I refrained against doing so because these fields sometimes contain long strings. Since then, I have decided that consistency with `ParamX` & `ParamX Desc` fields is more important than keeping line length short.
* Added new column groups for MonLvl.txt, SkillDesc.txt
* Updated column groups for MonProp.txt, Objects.txt

Fixes
* Fixed a bug that incorrectly aliased `CltParamX` columns to `--CltParamX.clt` in Missiles.txt. These columns are now aliased to `--CltParamX.param`, making them consistent with other `SomeParamX` columns.

0.2.0

Install using the following command:


pip install https://github.com/pastelmind/d2txt/releases/download/v0.2.0/d2txt-0.2.0-py3-none-any.whl


New features
* Multi-level column groups are now supported. (18)
* Changes several columns to use the new multi-level column group format.
* Column group aliases now always use `--` as the prefix.

Fixes
* Fixed a bug that caused the column group `__ht` for MonStats2.txt to be incorrectly applied to Objects.txt instead. (17)

0.1.0

Install using `pip install git+https://github.com/pastelmind/d2txt.gitv0.1.0`

New features
* When decompiling to TOML, `d2txt.py` now groups related columns into TOML arrays and inline tables. This makes it easier to read and modify the TOML file. Check out the [Column Groups](../../wiki/Column-Groups) page for details.
* The CLI script now supports (de)compiling multiple files at once. This can significantly reduce the time required to process multiple files.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.