1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-16 17:35:57 -05:00
Commit Graph

1462 Commits

Author SHA1 Message Date
gravestench
59114a72ed
Merge pull request #1066 from gravestench/d2ds1_refactor
Refactoring d2ds1
2021-03-31 01:54:07 -07:00
gravestench
787d7f531e add layer schema test 2021-03-31 00:28:01 -07:00
gravestench
9fe2069040 adding size and version tests for ds1 2021-03-31 00:15:41 -07:00
gravestench
51cc23abef revert windows path string in config defaults 2021-03-31 00:10:21 -07:00
gravestench
f832c2a809 add missing unit tests for ds1 layers 2021-03-30 23:57:26 -07:00
gravestench
738e1ba7d6 change ds1.unknown1 to uint64 2021-03-30 11:39:37 -07:00
gravestench
5074ed24ed export ds1.SubstitutionType 2021-03-30 11:22:34 -07:00
gravestench
b155f970df revert windows path string 2021-03-30 11:13:45 -07:00
Tim Sarbin
9561086965
Merge pull request #1112 from shivanraptor/patch-1
Added macOS instructions
2021-03-30 14:09:38 -04:00
Tim Sarbin
ad2cb34c26
Merge pull request #1106 from drpaneas/faq
Add FAQ
2021-03-30 14:07:53 -04:00
gravestench
91209fd540 add more ds1version methods 2021-03-30 11:04:25 -07:00
gravestench
1a3fc68d03 use error-wrapping verb in fmt.Errorf 2021-03-30 10:39:35 -07:00
gravestench
66435a264e adding a ds1 version setter/getter 2021-03-30 10:35:56 -07:00
gravestench
1a3f3ed91a
Merge pull request #1114 from gucio321/revert-1113-revert-1105-fix_ci
Revert "Revert "Fix golang-ci gocritic error""
2021-03-30 10:05:01 -07:00
gucio321
72fa20eff8
Revert "Revert "Fix golang-ci gocritic error"" 2021-03-30 18:31:21 +02:00
gravestench
1c0b9a1c9c
Merge pull request #1113 from gucio321/revert-1105-fix_ci
this broke opening mpq's
2021-03-30 09:15:52 -07:00
gucio321
67eb1cc103
Revert "Fix golang-ci gocritic error" 2021-03-30 18:04:56 +02:00
Raptor K
1b8971a52e
Added macOS instructions 2021-03-30 16:23:38 +08:00
Panagiotis Georgiadis
e5f886e1e1
Add HellSpawner[] to statuspage 2021-03-29 20:05:14 +02:00
Panagiotis Georgiadis
3a8b8e15a2
Fix typo and remove Akara credit 2021-03-29 19:44:36 +02:00
gravestench
c8ef8cf2a4
Merge pull request #1110 from gucio321/d2font
dt1: added New method and made unknownX bytes as an constant variable
2021-03-29 02:45:34 -07:00
M. Sz
d946094162 dt1: lintfix 2021-03-29 11:41:31 +02:00
gravestench
a3cb024b49 Merge branch 'master' of http://github.com/OpenDiablo2/OpenDiablo2 into merge_ds1_upstream 2021-03-29 01:44:52 -07:00
gravestench
8e3620ff45 remove unnecessary interface 2021-03-29 01:31:47 -07:00
M. Sz
db89a09f9d dt1: added New method and mad unknownX bytes as an constant variable 2021-03-29 09:40:25 +02:00
Tim Sarbin
435fd1a61b
Merge pull request #1107 from fzwoch/go_version
Bump go.mod Go version to 1.16
2021-03-28 12:15:47 -04:00
Tim Sarbin
cfcd303252
Merge pull request #1109 from gucio321/d2font
d2dat: add New method for DATPalette
2021-03-28 12:02:01 -04:00
M. Sz
3fd19f727e d2dat: lintfix 2021-03-28 17:56:53 +02:00
M. Sz
5962d2e832 d2dat: add New method for DATPalette 2021-03-28 17:56:53 +02:00
Tim Sarbin
5efe96ebe3
Merge pull request #1108 from gucio321/d2font
d2font: fixed creating file bug
2021-03-28 10:25:43 -04:00
M. Sz
d72b3e3345 d2font: fixed bug, when was unable to create new file doing just &Font{}.Marshal() 2021-03-28 16:21:06 +02:00
Florian Zwoch
01b207b402 Bump go.mod Go version to 1.16 2021-03-28 14:14:28 +02:00
Panagiotis Georgiadis
2801ae5410
Add FAQ 2021-03-28 03:29:04 +02:00
gucio321
41c1d8e874
bugfix: "insert" bug (#12)
* remove magic 'et' file

* ds1 refactor: test for InsertFloors; fixed inserting bug

* ds1: global method for getting layers group; fixed Delete.. bug (group var in delete meghod wasn't pointer

* ds1: lintfix

* ds1: remove ds1.ds1Layers.Orientation

* ds1: lintfix

* ds1: addet getMaxGroupLen method

* ds1: insert now returns if after inserting group will be greater than max number of ...

* ds1: add common test for ds1Layers.Insert...

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-03-27 13:09:53 -07:00
Tim Sarbin
73bf269d48
Merge pull request #1100 from drpaneas/golangci
Update golangci
2021-03-26 18:22:24 -04:00
Tim Sarbin
26c6dde74d
Merge pull request #1102 from drpaneas/readme
Redesign the readme
2021-03-26 18:21:24 -04:00
gravestench
5b1debd3f0
Merge pull request #1105 from drpaneas/fix_ci
Fix golang-ci gocritic error
2021-03-26 11:03:14 -07:00
Panagiotis Georgiadis
4558da0136
Fix golang-ci gocritic error
It should fix this error:
`nilValReturn: returned expr is always nil; replace err with nil`
2021-03-26 18:52:53 +01:00
Panagiotis Georgiadis
ded81770df
Link readme to individual docs 2021-03-26 18:28:52 +01:00
Panagiotis Georgiadis
578fa35446
Add user installation information 2021-03-26 18:25:35 +01:00
Panagiotis Georgiadis
6bcde98d6e
Reposition the order - emphasis 2021-03-25 12:17:48 +01:00
Panagiotis Georgiadis
07381b347c
Redesign the readme 2021-03-25 04:37:53 +01:00
Panagiotis Georgiadis
49ae2308f1
Add Go Report Card 2021-03-25 02:31:45 +01:00
Panagiotis Georgiadis
db99c66d25
Comply with gofmt -s 2021-03-25 02:29:16 +01:00
Panagiotis Georgiadis
e9031d97bd
Disable fieldalignment 2021-03-25 00:51:10 +01:00
gravestench
468f5682ae Merge branch 'd2ds1_refactor' into d2ds1_refactor_wip 2021-03-24 11:55:34 -07:00
gucio321
6e7e7b9d3f
Ds1 refactor (#11)
* Refactoring d2ds1

* Adding setters/getters so that state management can be maintained
internally when the ds1 struct is altered
* Adding unit tests for DS1

* 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>

* renamed some files in d2ds1

* d2ds1.FloorShadow is now private

* renamed another file

* DS1.Tile() now calls update if dirty

* 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>

* 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>

* 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>

* WIP

* Ds1 refactor - tests (#10)

* ds1 refactor test: example data

* added loader check

* ds1 refactor: fixed bug, with loading substitutions; added descriptive error message in engine.go:118 and changed Logger.Error with Logger.Fatal

* ds1 refactor: fixed loading bug

* ds1 refactor: fixed bug when walls wasn't rendered (now we can see only walls :-)

Co-authored-by: M. Sz <mszeptuch@protonmail.com>

* ds1: floor rendering bugfix

* ds1: implemented encode layers method

* ds1: implemented encoder

* ds1: update of ds1_test

Co-authored-by: gravestench <dknuth0101@gmail.com>
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-03-24 10:28:02 -07:00
gucio321
6f41387e30 Ds1 refactor - tests (#10)
* ds1 refactor test: example data

* added loader check

* ds1 refactor: fixed bug, with loading substitutions; added descriptive error message in engine.go:118 and changed Logger.Error with Logger.Fatal

* ds1 refactor: fixed loading bug

* ds1 refactor: fixed bug when walls wasn't rendered (now we can see only walls :-)

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
2021-03-24 10:10:36 -07:00
gravestench
5dfca5e9f3 WIP 2021-03-24 10:10:36 -07:00
gucio321
a33117fb56 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-03-24 10:10:36 -07:00