1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-16 04:25:23 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
M. Sz
da3fe0ed09 string table: fixed bug, when (despite OpenDiablo2#1080) string tables wasn't encoded correctly 2021-03-05 13:12:53 +01:00
M. Sz
4104d9d9ae text dictionary: added support for non-name (#??) strings 2021-02-28 16:29:05 +01:00
M. Sz
287fb2bf4d hotfix: lintfix 2021-02-28 14:14:47 +01:00
M. Sz
de1c0ebe5d hotfix: string table: fixed bug, when sometimes encoded end decoded table wasn't the same 2021-02-28 12:25:08 +01:00
M. Sz
c933e4b891 fixed build error & tbl: removed version check (because of error screen; we don't need to check version) 2021-02-25 14:11:19 +01:00
M. Sz
3b8cdffe15 tbl: lintfix 2021-02-25 12:08:02 +01:00
M. Sz
e163c40107 tbl: completed error mesages 2021-02-25 12:06:37 +01:00
M. Sz
91b3290322 tbl: completed test 2021-02-25 12:03:00 +01:00
M. Sz
522f749cfc tbl: encoder 2021-02-25 11:58:32 +01:00
M. Sz
2859eae91c Revert "data encoding: tbl"
This reverts commit 5a0571763e.
2021-02-25 10:02:10 +01:00
M. Sz
5a0571763e data encoding: tbl 2021-02-02 10:08:32 +01:00
gravestench
87d531814d d2datautil.StreamReader refactor
*`StreamReader.Read` methods now return errors

The other edits in this commit are related to cleaning up lint errors
caused by the changes to StreamReader
2021-01-12 10:26:27 -08:00
gravestench
2c0f3d9cd9 d2tbl.LoadTextDictionary now returns an error 2021-01-11 01:12:46 -08:00
gravestench
af1f0a0eda
removed string table singleton from d2common/d2fileformats/d2tbl/ (#900) 2020-11-03 11:10:11 -08:00
lord
7f6ae1b785
improve AssetManager implementation (#728)
* improve AssetManager implementation

Notable changes are:
 * removed the individual managers inside of d2asset, only one asset manager
 * AssetManager now has caches for the types of files it loads
 * created a type for TextDictionary (the txt file structs)
 * fixed a file path bug in d2loader Source
 * fixed a asset stream bug in d2loader Asset
 * d2loader.Loader now needs a d2config.Config on creation (for resolving locale files)
 * updated the mpq file in d2asset test data, added test case for "sub-directory"
 * added a Data method to d2asset.Asset. The data is cached on first full read.
 * renamed ArchiveDataStream to DataStream in d2interface
 * moved palette utility func out of d2asset and into d2util
 * bugfix for MacOS mpq loader issue

* minor lint fixes

* removed obsolete interfaces from d2interface

* lint fixes, added data caching to filesystem asset

* adding comment for mpq asset close

* adding comment for mpq asset close
2020-09-14 14:47:11 -04:00
lord
3988bd7f1c
d2tbl loader returns string lookup table (#725)
* fix glfw error in ci workflow

* make the tbl loader return the string lookup table (for use in hellspawner)
2020-09-11 19:24:33 -04:00
lord
0218cad717
organize d2common pakage (#716)
* move music path enumerations into d2resource

* move text dictionary (.tbl) loader into d2fileformats sub-package d2tbl

* lint fix, add doc file for d2tbl

* moved data_dictionary.go into d2fileformats sub-package d2txt, added doc file

* added sub-packages d2geom for geometry-related things, and d2path for path-related things

* moved calcstring.go to d2calculation

* move bitmuncher, bitstream, stream reader/writer from d2common into sub-package d2datautils

* fix lint errors in d2datadict loaders (caused by moving stuf around in d2common)

* move size.go into d2geom

* move d2common/cache.go into sub-package d2common/d2cache

* renamed d2debugutil to d2util, moved utility functions from d2common into d2util
2020-09-08 15:58:35 -04:00