1951 Commits

Author SHA1 Message Date
f3f2d8b356 Implemented MpqBufferStream and started work on Dc decoder
Created MpqBufferStream which uses backing mpq file decoding
Created MpqFileHandle#bufferStream(EventExecutor)
Changed MpqFileResolver resolve failure to log at debug level
Work on new Dc,Dcc,Dc6 codecs for testing AssetManager
Roughed in deallocation for AssetContainer
2021-09-22 17:48:56 -07:00
f207861e41 Added asset manager tests 2021-09-21 23:36:57 -07:00
150c28ce80 Added improved AssetManager implementation
Work on new AssetManager using netty and futures
Removed older implementation which are now behind this one
Removed MountPoint abstraction from MpqFileResolver
Moved some static functions from Mpq.HashTable to Mpq
Added support for AssetDesc into MpqFileResolver
Created MpqFileHandle#sectorSize()
Created mockup loaders to sample API usage
2021-09-21 21:13:22 -07:00
9dabe6daf2 Fixed code formatting 2021-09-20 22:16:37 -07:00
5e8c3590a1 Refactored mpq_bytebuf to work using netty Future and EventExecutorGroup 2021-09-18 13:34:32 -07:00
9adfa09ae4 Added MpqFileHandle#stream methods to create InputStreams 2021-09-17 23:03:32 -07:00
a1bc7d1464 Removed unused BitVector field EMPTY_BIT_VECTOR 2021-09-17 17:00:10 -07:00
762bcee63f Removed hacked in code to support streaming -- streaming now calls SectorDecodeTask directly 2021-09-17 16:59:28 -07:00
bebcf90683 Added automated shutdown hook for DecodingService in case not shutdown properly 2021-09-16 19:17:43 -07:00
31a60c37d8 Refactored local com.riiablo.file onto com.riiablo.mpq_bytebuf
Refer to c.r.m.package-info.java in this commit for more info
2021-09-16 18:03:01 -07:00
7b7c442525 Revert 7525e288ea 2021-09-16 12:28:15 -07:00
7525e288ea Allow instantiation of EndOfInput outside of com.riiablo.io 2021-09-16 12:27:07 -07:00
474ea5b44b Integrated arg name into InstallationFinder searching methods
Integrated arg name into InstallationFinder searching methods
Refactored tools to use InstallationFinder#defaultHomeDir
Added java.lang.Exception to throws clause of Tool#handleCliOptions
Uncaught exceptions thrown by Tool#handleCliOptions will be fatal
2021-09-16 12:25:34 -07:00
c5c98ce48c Integrated InstallationFinder folder searching directly into InstallationFinder 2021-09-16 11:54:30 -07:00
69bfbfbf4f Parameterized RiiabloTest dirs
Added D2_TEST environment variable and getTestDirs for InstallationFinder
d2 home and d2 test home set by InstallationFinder for RiiabloTest
2021-09-15 23:07:21 -07:00
e342870bd9 Extended capabilities of RiiabloTest
Added #testAsset(String) to resolve file from test home
Added #toByteArray(short[]) to simplify ubyte array creation
2021-09-15 14:01:58 -07:00
1324adf677 Revised code style -- enabled space within braces 2021-09-08 23:03:50 -07:00
daedefa04f Bound ESCAPE to reset camera zoom and position to origin 2021-08-30 00:35:19 -07:00
0e5fc03f31 Created package-info.java for mpq_bytebuf 2021-08-29 23:46:10 -07:00
c744ac149b Changed visibility of methods for easier testing 2021-08-29 23:27:48 -07:00
82917f747c Created ImplUtils containing developmental functions 2021-08-20 17:51:23 -07:00
a8403abd19 Expose DS1 constants to public visibility 2021-08-08 00:34:18 -07:00
d067fea4de Implemented clearing array cells for primitive array types 2021-08-08 00:25:33 -07:00
fa45d5d4b7 Implemented subtile flags merging from tile layers
Implemented subtile flags merging from tile layers
Fixed algebra calculating Chunk#numTiles
Hacked MapGenerator to function with test DS1
2021-08-07 00:29:22 -07:00
db51859edc Fixed bug where chance initialized as 0 would select null tile 2021-08-06 17:08:07 -07:00
3bbcd2c086 Changes size of Chunk#flags to subtiles size
Changes size of Chunk#flags to subtiles size
Chunk#reset() now clears Chunk#tiles[][] entries
2021-08-04 14:08:54 -07:00
466d94b6fb Created Chunk#flags to store aggregated flags of chunk layers 2021-08-04 00:06:58 -07:00
d3c47b5781 Reorganized code 2021-08-04 00:03:51 -07:00
c3e10ed506 Restructured code to improve readability 2021-08-03 23:58:49 -07:00
6f44f10d4f Removed ChunkGrid note 2021-08-03 23:55:29 -07:00
bdc4892cd0 Renamed DS1.Object to DS1.Ds1Object for Ds1Info 2021-08-03 23:50:49 -07:00
6a73e59369 Renamed DS1.Object to DS1.Ds1Object to fix annoying IDEA parse bug 2021-08-03 23:50:10 -07:00
8656d50dfa Refined impls
Restricted scoping of DS1Reader constants specific to class impl to reduce confusion
Restructured DS1Reader a bit
Added support for DS1#layers bitsum of active layers
Implemented multiple layers into Chunk#tiles via Chunk#layers
Changed MapDebugger to y-up be north (more logical with level layouts and ds1 coordinates scheme)
2021-08-03 23:40:53 -07:00
508f08d8ef com.riiablo.map2 work from camping, including adding javax.annotation api depedency 2021-07-30 23:37:39 -07:00
78135e4ae1 Center map debug drawing at 0,0 2021-07-26 21:41:01 -07:00
9db87b166e Tests for random seed serialization 2021-07-24 00:57:54 -07:00
983552fe01 Created riiablo:tools:map-debugger to assist with com.riiablo.map2 api development 2021-07-24 00:57:18 -07:00
25cf027454 Added Map and MapGenerator implementations 2021-07-24 00:55:52 -07:00
66109d0cee Assignment of Chunk#tiles from pool 2021-07-24 00:55:27 -07:00
4421bdf78f Created Prefab class to be used to track prefab tile configurations 2021-07-24 00:49:27 -07:00
b10a059840 Created IndexDefs containing pre-defined special tile indexes 2021-07-24 00:48:12 -07:00
d192dd97e1 Created TileGenerator to produce random variations of tiles using specs 2021-07-24 00:47:17 -07:00
f18c864df0 Added DebugMode#PREFAB to draw prefab rects (unimplemented) 2021-07-24 00:45:21 -07:00
e56ced7d2b Pseudo-random number generator impl with serializable seed 2021-07-24 00:41:45 -07:00
41a8f42a33 Fill obtained arrays with null to allow GC 2021-07-23 19:03:17 -07:00
20b7908efb Added test case for ds1 containing groups 2021-07-23 01:47:10 -07:00
8806b86faa Mockup of Zone/Chunk structures
Mockup of Zone/Chunk structures
Expanded BBox functions to include setter function
2021-07-23 01:46:42 -07:00
0afb1e9514 Adjusted ArrayPool and BucketPool APIs 2021-07-23 01:43:00 -07:00
5bc47dbf98 Impl of pooling for arrays and buckets of arrays of sizes 2021-07-21 15:08:46 -07:00
16670d6e89 Refactored names for TileRenderer methods, removed deprecated methods 2021-07-20 23:24:54 -07:00