1951 Commits

Author SHA1 Message Date
b57d7aaf4e Added additional test cases
Added additional test cases
Fixed decode_future() not calling super.decode_future()
2021-12-02 08:14:15 -08:00
1779e3d8a9 Removed superfluous println statement 2021-12-02 08:12:37 -08:00
21adf993b6 Fixed bug where encrypted uncompressed files were not copied into buffer 2021-12-02 08:11:07 -08:00
1f9523425d Added support for graceful asset load failures
Changed AssetManager#load(AssetDesc) return type to Promise
Created classes to handle class load exceptions
Created AssetLoader#validate(AssetDesc) to validate asset desc
Changed asset types to bounded wildcards for polymorphism (test)
2021-12-02 06:45:45 -08:00
c0df032d1e Updated gdx-controllers version 2.2.0 -> 2.2.1 2021-11-30 16:44:04 -08:00
501b787bc2 Fixed ambiguous method call to ItemGenerator#generate 2021-11-30 16:33:49 -08:00
c8f14134ac Changed Java source/target compatibility to Java 8
Changed Java source/target compatibility to Java 8
Removed special :core:compileTestJava Java 8 support to use default above
2021-11-30 16:32:30 -08:00
dbb0866985 Adding cool awesome looking project file icon for IntelliJ 2021-11-30 16:16:30 -08:00
5c7b5216f4 Updated android gradle plugin 4.2.0 -> 7.0.1 2021-11-30 16:03:44 -08:00
ef89a85165 Updated gradle wrapper to 7.3 2021-11-30 14:13:04 -08:00
bcb6d7973d Fixed build instructions -- android SDK no longer required for non-android builds 2021-11-30 01:45:47 -08:00
bded14c1eb Moved icon resources into lwjgl, lwjgl3 backends 2021-11-27 23:46:20 -08:00
0cf617b55a Moved tools into backend dependencies and old tools into tools:old
Moved gdx-backend-lwjgl dependency from impl to testImpl in :core
Created backend tool libraries for headless, lwjgl, lwjgl3
2021-11-27 23:42:18 -08:00
b040835ddb Added missing code style config 2021-11-27 23:38:26 -08:00
6ab1bb2dd6 Removed compile org.slf4j depdendency
See #105, no longer required
2021-11-27 15:17:04 -08:00
5fcc4a6a59 Moved idea run configurations from .idea\runConfigurations\ to .run\ 2021-11-26 20:39:13 -08:00
6b946b70ec Updated gradle wrapper to 7.0 2021-11-26 13:16:30 -08:00
3ef662d1b6 Updated android gradle plugin 4.1.1 -> 4.2.0 2021-11-26 13:02:32 -08:00
8287515b24 Added dependency for idea task to generate core sources
gradlew idea should now generate version and flatbuffer sources
2021-11-26 12:56:43 -08:00
e0f52fc0f9 Updated android build script
Increased sdk compile/target versions to 30 (Android 11)
Modified android content root to directly specify /assets/
Changed java source/target compat to JavaVersion const
2021-11-26 12:55:43 -08:00
b05ca8b092 Fixed non-zero exit code warning in supported platforms 2021-11-24 14:08:26 -08:00
8272dda9ef Added tag and uncompressedSize to Dcc header 2021-11-24 12:17:31 -08:00
e39979faa8 Created Dc6 codec
Created Dc6 file codec and Dc6Decoder and tests
Amended Dc to remove Dc#dirOffsets and use virtual method instead
Dc6 implements offsets for each frame and therefore requires a bit of specialization
2021-11-17 22:48:05 -08:00
46aea7d6a1 Added Dcc test suite 2021-11-17 22:44:58 -08:00
1295b35f19 Implemented multi-threaded asset loading
Refactored single-threaded executors into executor group (async)
Removed deps and io executors
Suppressed unchecked warning for AssetManager#ioAsync
2021-11-14 23:02:52 -08:00
84fe716246 Moved dependency deallocation/unloading to AssetManager from AssetContainer
Unloading asset correctly unloads dependencies instead of only releasing them
2021-11-14 23:00:57 -08:00
b3586799cc Replaced resolver unwrap iteration with cached copy of sorted resolvers 2021-11-14 23:00:00 -08:00
a0c4a773fc Replaced mpqs iterator with array-based iteration
Concurrency issues in immutated array
2021-11-14 22:42:56 -08:00
bcefe041c3 Additional test cases 2021-11-14 22:41:49 -08:00
78852e4ea9 DccDecoder optimizations
Refactored 2d pixel buffer array to 1d array
Change made to try and alleviate memory usage issues on mobile
2021-11-14 20:09:44 -08:00
0bd76baf8f Cleaned up some comments 2021-11-11 00:34:26 -08:00
f6cd8b4447 Fixed bug where Dcc frame offsets were not read as signed integers 2021-11-10 18:24:28 -08:00
5187976ccf Updated DccDecoderTest to new Dcc spec
Implemented Dcc release for each refCnt
Updated pixelCodeAndDisplacementBitStream assertion message
2021-11-10 16:46:36 -08:00
6151379853 Optimized Dcc decoding to eliminate OOM errors
Refactored Cell impls to data-oriented-design approach
Added Dcc#MISSING_TEXTURE to set as the unloaded texture value
Added Dc#direction(int) to obtain the Dc.Direction
Removed old Dcc code which is no longer needed
Added accessor field for PaletteIndexedPixmap Pixmap.Format value
Added RiiabloTest#clearGdxContext() to reset Gdx fields to null
Fixed issues with LWJGL test cases not supporting more than 1 iteration
Enabled additional parameterized test cases for DccDecoderTest
Created test cases for DccLoader in DccLoaderTest using AssetManager
Removed FileHandleResolver field and accessors from AssetLoader
Added Palette decoder and PaletteLoader
Fixed issue where releasing Dcc direction was releasing all directions
Dc now implements ReferenceCounted and increments for each direction read
Removed FileHandleResolver field from AssetLoader (handled by AssetManager)
2021-11-10 15:49:49 -08:00
bd8e1638d2 Implemented AssetManager#sync(long) replacing AssetManager#update()
Implemented AssetManager#sync(long) replacing AssetManager#update()
Removed load_mpq0 test case
2021-11-08 22:01:05 -08:00
31960a83a1 Added support for asset dependencies
Added support for asset dependencies
Added EventExecutor AssetManager#deps for dependency loading
Added support for automatic DCC parent dependency
Separated AssetManager io task caller to AssetManager#ioAsync
Moved responsibilities of AssetManager#load to AssetManager#load0
Changed return type of AssetManager#load0 to AssetContainer
Changed visibility of PromiseCombiner to public
Moved PromiseCombiner to com.riiablo.concurrent.PromiseCombiner
Moved old AssetManager test case to load_mpq0
Modified AssetManager test case to work with dependencies
2021-11-07 23:40:50 -08:00
63360dc7e1 Extracted AssetManager.SyncTuple to com.riiablo.asset.SyncMessage 2021-11-07 01:15:13 -07:00
428006fde4 Sped up DccDecoderTest animation to improve fluidity 2021-11-07 00:51:41 -07:00
6ef6c26f7e Implemented basic sync queue for assets which require execution on GL sync thread
Created AssetManager.SyncTuple tuple to cache asset loading state
Renamed Dcc variables in DccLoader to dcc since parent and child dcc are the same
Changed AssetContainer future from a Future to a Promise and renamed it
Asset loading changed to use promises due to loading be a promise that the asset will load at a future time
Created AssetManager#getDepNow temp method to return non-retained reference to asset
Updated AssetManagerTest mpq test case
2021-11-07 00:47:14 -07:00
feee2f1a9e Added debug flag to control dev logging 2021-11-07 00:34:09 -07:00
c84db7729a Fixed issue decoding files where dCell doesn't map directly to fCell
Renamed PixelBuffer#cell to PixelBuffer#lastCell
Created PixelBuffer#cell to store fCell mapping
Renamed cell variables to be more consistent for dCell vs fCell
Adjusted test cases to work better, but disabled draw_pixmaps2
2021-11-06 00:38:13 -07:00
61db57060a Added support for loading Dcc bitmaps off of the GL thread
Added pixmap buffer to Dcc.Direction
Created Dcc#uploadTextures() to generate textures on GL thread and dispose pixmaps
Exposed DccDecoder#decode(Dcc,int) to public
Implemented DccDecoder into DccLoader
2021-11-04 21:59:02 -07:00
cafc56dad8 Implemented DccDecoder
Created DccDecoder to decode file streams into Dcc instances
Added generic bound to MpqParams#of to <T>
Changed Dc.Direction and Dc.Frame to be static abstract classes
Made Dc.Direction implement Disposable interface to dispose all its frames
Added Dc.Frame#texture() to return the TextureRegion of that frame
Implemented Dcc.DccDirection#texture as an array of textures (not a sprite sheet)
Changed Dcc.DccDirection#pixelValues to short to ease byte to ubyte conversion
Disabled some code in Dcc which expanded box width/heights by 1 (doesn't seem to be required)
Refactored Dcc.DccFrame#box initialization to be more simple
2021-11-03 23:53:24 -07:00
7e7b340fa2 Fixed build issue, see #142 #issuecomment-939136245
https://github.com/collinsmith/riiablo/issues/142#issuecomment-939136245
2021-10-08 15:08:10 -07:00
0a6547b1b6 Fixed buffer futures to return slices with writer index set
Fixed buffer futures to return slices with writer index set
Reorganized DecodingTest cases to make adding additional tests easier
Added additional tests to DecodingTest and validate readable bytes of `actual`
2021-09-25 20:03:58 -07:00
4ac297dc1d Changed override return type for MpqFileResolver#resolve to MpqFileHandle 2021-09-25 20:02:17 -07:00
c10083d1ea Cleaned up Dcc impl
Renamed optional* to extra*
Renamed flip to flipY and changed to boolean
Removed additional trace logging in favor of unit testing
2021-09-23 11:49:08 -07:00
4239f92d18 Fixed releasing data-holding structs for DccLoader 2021-09-23 11:47:10 -07:00
04b8421f0f Implemented Dcc direction and frames decoding
Implemented Dc and Dcc direction abstractions
Added AssetManager argument to AssetLoader#ioAsync for dependency access
Suppressed unchecked warnings in AssetDescTest test case
2021-09-23 00:23:53 -07:00
b7ae431a31 Implemented MpqBufferStream#read()
Implemented MpqBufferStream#read()
DccLoader#loadAsync will now process Dcc headers
Reorganized AssetManager io code and integrated rough loadAsync execution
2021-09-22 18:04:07 -07:00