1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-09 17:30:43 +00:00
Commit Graph

1414 Commits

Author SHA1 Message Date
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
1125a7dd45 circleci: golang version update 2021-02-26 10:57:43 +01:00
M. Sz
3f2e5d34d7 go.mod: dependencies upgrade 2021-02-26 10:56:21 +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
gucio321
4e7ec3e843
Ds1 refactor: removed npcIndexes field+fixed SetNumberOfWalls bug (#7)
* ds1 refactor: removed npcIndexes field
it was unnecessary, because described a number of objects with paths to use in encoder, but we can calculate manually

* ds1 refactor: fixed set number of (layers) bug

* ds1 refactor: SetNumberOf...Layers now returns error if incorrect number given

* ds1 refactor: lintfix

* ds1 refactor: rename: setupStreamLayerTypes -> GetStreamLayerTypes

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-02-23 12:35:06 -08:00
gucio321
5e62b12bc4
Ds1 refactor: test bugs + descriptive errors + SetNumberOfWall/FloorLayers (#6)
* ds1 refactor:
- removed DS1.layerStreamTypes field
- written unit test for setupStreamLayerTypes method
- added more descriptive error messages for LoadDS1 (and submethods)

* ds1 refactor: added some missing error messages

* ds1 refactor: fixed test bugs

* ds1 refactor: removed unnecessary c1. and c2. comments in ds1_test errors

* ds1 refactor: removed fmt from ds1_test

* ds1 refactor: fixed bug with SetTiles test + lintfix

* ds1 refactor: SetNumberOfWalls

* ds1 refactor: SetTile(s) now changes walls/floors length if neccesary

* ds1 refactor: removed unnecessary debugging fmt

* ds1 refactor: added substitution layer and object with paths to example data

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-02-22 12:18:35 -08:00
gucio321
46d2bc6559
Ds1 refactor: some test improvement (#5)
* ds1 refactor: floor_shadow.go: methods Encode, Decode an Hidden are methods of floorShadow

* ds1 refactor: test checks, if our methods sets all fields correctly

* ds1 refactor: minor bugfixes

* i don't remember what's this, but i commit it ;-)

* ds1 refactor: reverted some pushed by mistake things

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-02-20 11:28:06 -08:00
gravestench
bc4bd7235b
Merge branch 'master' into d2ds1_refactor 2021-02-20 11:23:40 -08:00
Tim Sarbin
d5d93df75c
Merge pull request #1071 from gucio321/hotfix2
hotfix: removed unnecessary 0 in unknown3 bytes list
2021-02-19 13:20:44 -05:00
M. Sz
a4f12f6ebe hotfix: removed unnecessary 0 from d2fontglyph.unknown3 bytes list 2021-02-19 14:22:11 +01:00
gravestench
318e4ac7e2
Merge pull request #1070 from gucio321/hotfix2
hotfix: font format:
2021-02-19 01:11:00 -08: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
gravestench
30fb02bc10
Merge pull request #1069 from gucio321/hotfix2
hothotfix: fixed argument order in call to d2fontglyph.Create
2021-02-18 23:18:37 -08:00
M. Sz
a9ccda1873 hothotfix: fixed argument order in call to d2fontglyph.Create 2021-02-19 07:42:25 +01:00
Tim Sarbin
99c7d49510
Merge pull request #1067 from gucio321/hotfix2
font format: NewFontGlyph method
2021-02-18 15:23:07 -05:00
Tim Sarbin
f7e965f098
Merge branch 'master' into hotfix2 2021-02-18 15:11:05 -05:00
gravestench
2888b5782e
Merge pull request #1068 from se16n/master
Updated description of project location path on windows
2021-02-18 12:07:47 -08:00
M. Sz
b75f82fc8c font format: refactor: moved font glyph into new package 2021-02-18 21:05:16 +01:00
se16n
93389d595d
Update description of project location path on windows 2021-02-18 22:40:09 +03:00
M. Sz
aeef2d5c4b font format: NewFontGlyph method 2021-02-18 20:39:57 +01:00
gravestench
169521e546 DS1.Tile() now calls update if dirty 2021-02-17 10:57:38 -08:00
gravestench
8a5148647b renamed another file 2021-02-17 10:23:49 -08:00
gravestench
84d510fe16 d2ds1.FloorShadow is now private 2021-02-17 10:16:10 -08:00
gravestench
09bbcf0b4d renamed some files in d2ds1 2021-02-17 10:15:51 -08:00
gucio321
99908016be
unit tests for ds1 (#4)
* ds1 refactor: added test fore some methods; put tests in right order

* ds1 refactor: unit tests for all methods

* ds1 refactor: fixed build errors

* ds1 refactor: lintfix

* ds1 refactor: fixed bug with SetWidth, SetHeight methods

* ds1 refactor: rename tile_record.go -> tile.go

* ds1 refactor: unit test for SetTiles

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-02-17 10:04:44 -08:00
gravestench
ec47f16cc4 Refactoring d2ds1
* Adding setters/getters so that state management can be maintained
internally when the ds1 struct is altered
* Adding unit tests for DS1
2021-02-17 02:36:25 -08:00
gravestench
e9c9786af1
Merge pull request #1065 from gucio321/hotfix2
Hotfix: methods for editing FontGlyph (font glyph is now exported)
2021-02-17 02:35:02 -08: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
gravestench
6043ca531f
Merge pull request #1063 from gucio321/hotfix2
hotfix: methods neccesary for getting informations from font table
2021-02-16 23:45:31 -08: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
gravestench
6a94dfcfcf
Merge pull request #1053 from gucio321/date-encoder-font
Date encoder: font table
2021-02-16 22:59:10 -08:00
gucio321
b2e10ca43e
Merge branch 'master' into date-encoder-font 2021-02-17 07:56:00 +01:00
gravestench
c4f8182f2f
Merge pull request #1061 from gravestench/master
bugfix: circle-ci build
2021-02-16 11:57:54 -08:00