1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-27 09:35:29 +00:00
Commit Graph

456 Commits

Author SHA1 Message Date
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
90f13724cf animation data: methods for editing 2021-02-27 17:08:24 +01:00
gucio321
ab14168f50
Merge branch 'master' into anim-data-encoder 2021-02-26 21:04:14 +01:00
gucio321
6d88c9eacc
Merge branch 'master' into data-encoding2 2021-02-26 20:56:06 +01:00
gravestench
1ffafcb769
Merge branch 'master' into data-encoder-dat 2021-02-26 11:26:38 -08:00
M. Sz
62c58468e9 anim data: lintfix 2021-02-26 15:11:56 +01:00
M. Sz
e039c8ee70 anim data encoder + unit test for encoding 2021-02-26 14:57:55 +01:00
M. Sz
00e26fb862 animdata: the game now uses animation data manager from d2fileformats/d2animdata (instead of d2data/animation_data.go) 2021-02-26 11:56:49 +01:00
M. Sz
b5fa6e77eb cof: buildfix 2021-02-25 20:25:39 +01:00
M. Sz
15d30ffcce cof: rename SpeedToFPS -> FPS 2021-02-25 20:21:44 +01:00
M. Sz
976d78e595 pl2: lintfix 2021-02-25 19:26:01 +01:00
M. Sz
d61d829b98 pl2 encoder + test 2021-02-25 19:19:56 +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
8d5cf7a26b tbl: replaced lolstring with teststring in tests 2021-02-25 13:09:38 +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
78404ed56c cof: added Duration method 2021-02-25 09:33:47 +01:00
M. Sz
e7c5efe8e4 cof: added SpeedToFPS method 2021-02-25 09:30:59 +01:00
M. Sz
b4cd34e351 cof: splited long Marshal method to avoid nolint:funlen 2021-02-25 09:28:11 +01:00
M. Sz
a4f12f6ebe hotfix: removed unnecessary 0 from d2fontglyph.unknown3 bytes list 2021-02-19 14:22:11 +01:00
M. Sz
7574293624 hotfix: font format:
- removed magic numbers
- corrected unknown1 bytes count in d2fontglyph.Create
2021-02-19 08:49:04 +01:00
M. Sz
a9ccda1873 hothotfix: fixed argument order in call to d2fontglyph.Create 2021-02-19 07:42:25 +01:00
M. Sz
b75f82fc8c font format: refactor: moved font glyph into new package 2021-02-18 21:05:16 +01:00
M. Sz
aeef2d5c4b font format: NewFontGlyph method 2021-02-18 20:39:57 +01:00
M. Sz
6fdbaa07bd font table format: lintfix 2021-02-17 10:37:04 +01:00
M. Sz
66ac5ff657 font table format: methods to set size and frame index 2021-02-17 10:28:36 +01:00
M. Sz
7a54465eb3 hotfix: font table format: fontGlyph is now exported 2021-02-17 09:05:29 +01:00
M. Sz
4243a1f6b1 font: rename GetSize, and GetFrameIndex -> Size, FrameIndex 2021-02-17 08:38:41 +01:00
M. Sz
9f47ed4b35 font encoder: lintfix 2021-02-17 08:32:41 +01:00
M. Sz
1d12c2036a hotfix: font table editor: added methods GetSize, and GetFrameIndex to font glyph 2021-02-17 08:28:23 +01:00
gucio321
b2e10ca43e
Merge branch 'master' into date-encoder-font 2021-02-17 07:56:00 +01:00
gravestench
97708c1349
Revert "hotfix: ds1: method setupLayerTypes is now exported + circleci build job bugfix" 2021-02-16 10:02:34 -08:00
M. Sz
6866a03f34 hotfix: ds1: method setupLayerTypes is now exported 2021-02-16 13:06:12 +01:00
M. Sz
0dd9ae6783 ds1 encoder: fixed build error 2021-02-15 15:07:33 +01:00
M. Sz
8a4c138835 ds1 encoder: layerStreamTypes and npcIndexes are now exported 2021-02-15 15:01:14 +01:00
M. Sz
bbeb4b48e2 hotfix: rename hidden -> HiddenBytes in wall_record.go and floor_shadow_record.go 2021-02-15 08:34:12 +01:00
gravestench
298fc786b8
Merge branch 'master' into date-encoder-font 2021-02-10 12:14:41 -08:00
gravestench
d268a987f3
Merge branch 'master' into data-encoder-dat 2021-02-10 12:05:10 -08:00
gravestench
0c5a3ae54c
Merge branch 'master' into data-encoding2 2021-02-10 11:52:00 -08:00
gucio321
025a172500 fixed lint errors in stream_writter 2021-02-10 19:53:11 +01:00
gucio321
004787597e
Merge branch 'master' into data-encoder-dt1 2021-02-10 19:43:32 +01:00
M. Sz
8a087dba6c stream writer and stream writer test:
- fixed typo
- cut PushBits... methods
- removed magic number
2021-02-10 14:00:03 +01:00
gucio321
6c230f66d7
d2dat encoder: removed typo in comment 2021-02-10 13:03:59 +01:00
M. Sz
7d0eeb0fd3 hotfix: d2cof encoder: changed way of pushing weapon class 2021-02-10 12:59:07 +01:00
M. Sz
1010353071 hotfix: d2cof encoder: removed magic number (len of weapon class) 2021-02-10 12:35:35 +01:00
M. Sz
8a15c0b074 hotfix: cof encoder: coding weapon class 2021-02-10 08:33:29 +01:00
M. Sz
d9cfe7f435 d2font: removed d2interface.Animation argument from d2font.Load; added height reading in glyphs loader 2021-02-09 08:53:34 +01:00
M. Sz
622e54dfce dc6 refactor: lintfix 2021-02-08 18:50:58 +01:00
M. Sz
6d098de778 d2dc6 refactor + unit test for it 2021-02-08 18:50:58 +01:00
gucio321
b74bc3d0b6
Merge branch 'master' into data-encoder-dat 2021-02-08 18:43:58 +01:00
gucio321
98c38b0dbf
Merge branch 'master' into data-encoder-dt1 2021-02-08 18:40:27 +01:00
gucio321
51833ed2de
Merge branch 'master' into date-encoder-font 2021-02-08 18:40:07 +01:00
Tim Sarbin
a85a7a18c1
Merge branch 'master' into master 2021-02-08 12:37:46 -05:00
M. Sz
e2ec1c6613 d2font: fixed lint errors 2021-02-08 17:25:02 +01:00
M. Sz
662d4489c4 d2font: encoder 2021-02-08 15:03:59 +01:00
M. Sz
6df66b51c1 d2font: rewritten initGlyphs ethod to use stream reader 2021-02-08 14:11:51 +01:00
M. Sz
721a67b404 font table interpreter: moved d stuff responsible for font table into d2fileformats/d2font 2021-02-08 13:21:50 +01:00
gucio321
ac50f8274a
Merge branch 'master' into data-encoder-dat 2021-02-08 12:05:40 +01:00
gucio321
bcfb0fb5c2
Merge branch 'master' into data-encoder-dt1 2021-02-08 12:04:55 +01:00
M. Sz
a76ce059e8 dat decoder: fixed lints 2021-02-08 10:03:34 +01:00
gucio321
794c246f64 fixed lint error in bitmuncher_test.go 2021-02-08 09:57:43 +01:00
M. Sz
b6cb6f88a6 data encoder: d2dat 2021-02-08 09:49:43 +01:00
M. Sz
5caa93a399 unit test: bitmuncher 2021-02-08 08:23:43 +01:00
M. Sz
8e1ca1dd7f stream writer test: added test for pushing bits 2021-02-06 20:43:04 +01:00
M. Sz
20f0d8a3d5 removed some of nolint:govet 2021-02-06 19:10:15 +01:00
M. Sz
215ac8cfc5 ds1: splited loading function 2021-02-06 18:58:15 +01:00
M. Sz
32570d6ae5 replaced nolint:gomnd directives with "magic numbers'" names 2021-02-06 18:28:01 +01:00
gucio321
ac8794015e Merge branch 'master' into data-encoder-dt1 2021-02-06 17:30:10 +01:00
M. Sz
aadfbbc8a6 stream writer: added warnings when bits count is greater then possible input size (in PUshBits... methods) 2021-02-06 17:23:11 +01:00
gravestench
248eaf9d79 Minor refactor of d2cof
* Changed `Load` to `Unmarshal`
* made `Marshal` and `Unmarshal` into methods of `COF`
* added `New` function which creates a new, empty COF instance
* added helper functions `Marshal` and `Unmarshal`
* Changed `StreamReader.ReadBytes` to account for edge case of reading 0
bytes (this was returning an error when it should not have)
* added really simple unit tests for COF
2021-02-05 14:43:42 -08:00
M. Sz
b3a754a4a6 ds1 encoder: Marshal method was splited to avoid nolint directive 2021-02-05 15:05:11 +01:00
M. Sz
9227de3418 d2ds1 encoder: fixed lint errors 2021-02-05 14:54:35 +01:00
M. Sz
5702d96cac ds1 encoder: fixed bug, when decoded and encoded back data wasn't the same = records' encoding methods was rewritten to use streamWriter.Pushbit 2021-02-05 14:45:22 +01:00
M. Sz
3dafb3ebcd dt1 encoder: moved record encoders and decoders to appropriate files 2021-02-05 14:07:51 +01:00
M. Sz
9f56574066 data encoder: ds1 2021-02-05 12:52:51 +01:00
gucio321
1b8da9ec8e
Merge branch 'master' into data-encoding2 2021-02-03 16:28:10 +01:00
Tim Sarbin
ffe4e68108
Merge branch 'master' into data-encoder-dt1 2021-02-03 09:57:46 -05:00
Tim Sarbin
89595329a5
Merge branch 'master' into data-converting 2021-02-03 09:48:54 -05:00
M. Sz
9f9c882653 data encoder: dt1 2021-02-02 19:25:27 +01:00
gucio321
73ca325a6b
Merge branch 'master' into data-converting 2021-02-02 17:01:05 +01:00
gucio321
5aded8de66
Merge branch 'master' into data-encoding2 2021-02-02 17:00:19 +01:00
Tim Sarbin
42a41d4817
Merge branch 'master' into hotfix2 2021-02-02 08:54:17 -05:00
M. Sz
909a0a9939 lintfix: gomnd 2021-02-02 12:02:11 +01:00
M. Sz
20f2649b65 asset manager: merged TranslateLabel to TranslateString 2021-02-02 10:15:18 +01:00
M. Sz
5a0571763e data encoding: tbl 2021-02-02 10:08:32 +01:00
M. Sz
2ebb36eba8 fixed stream-writer's test bug 2021-02-01 20:58:29 +01:00
M. Sz
84c87b2eb8 data encoding: DC6 2021-02-01 12:57:02 +01:00
M. Sz
7781b2cd6b removed PushByte method from StreamWriter 2021-02-01 11:20:44 +01:00
M. Sz
0fec9473ed rename: PushBytes(b []byte) -> PushBytes(b ...byte) 2021-02-01 11:15:42 +01:00
M. Sz
0f32ad5d62 data encoder: COF remade Cof encoder to use stream writter 2021-01-31 19:14:18 +01:00
gucio321
c5eb602de0
Update cof.go 2021-01-31 12:11:54 +01:00
gucio321
d0288e309f
removed WIP code 2021-01-30 18:31:44 +01:00
M. Sz
157f110105 data encoding: added COF encoder 2021-01-30 18:23:00 +01:00
M. Sz
b25bbe31f4 d2ui: rename NewCustomButton -> NewDefaultButton; lintfix 2021-01-19 17:47:42 +01:00
M. Sz
07eeec4827 party panel: rearranged constants (moved part of them into d2enum) 2021-01-19 17:39:40 +01:00
M. Sz
71e4470c25 party panel: colored labels; d2ui improvement: SwitchableButton.SetState() method; lintfix 2021-01-17 20:47:40 +01:00
M. Sz
bd3fc4bb25 party panel: switchers creator, party indexes (name, classs labels and switchers) 2021-01-16 21:59:44 +01:00