Commit Graph

1300 Commits

Author SHA1 Message Date
7dbf087df3 Fixed generated sources path 2020-11-17 13:22:42 -08:00
9c18e18a9c Reorganized gradle scripts into subproject directories
Reorganized gradle scripts into subproject directories
Reformatted gradle scripts to be more consistent
Created :server subproject group
Deleted :mpqlib subproject due to inactivity
Hopefully this is a step in the right direction
2020-11-16 23:14:33 -08:00
269f283c9b Changed to standard gradle src directory structure
Changed to standard gradle src directory structure
Changed some working directories to work properly with gradle tasks
Changed MPQViewer asset path to empty string
2020-11-15 23:49:18 -08:00
3e9b01bf02 Created saves command to output saves directory 2020-11-04 14:27:03 -08:00
c20978bdca Created home command to output D2 home directory argument 2020-11-04 14:22:41 -08:00
41035956d3 Fixes #122 2020-11-04 14:06:55 -08:00
c94cef1890 Created stub for primary attack 2020-11-02 18:09:17 -08:00
6924af03d6 Created stub for Actioneer#cast with specified sequence and mode 2020-11-02 18:08:11 -08:00
9a1a66c778 Adjusted API slightly to log unexpected mode translations 2020-11-02 18:05:18 -08:00
60247a6699 Added function to translate mode based on source entity type 2020-11-02 18:00:31 -08:00
2820ba7566 Replaced Gdx.app logging with Riiablo logger 2020-11-02 17:42:12 -08:00
d2ff1ec515 Replaced comment note with impl classes
Replaced comment note with impl classes
Removed assets hash map
Created AssetManager#update()
2020-11-01 12:10:56 -08:00
1d5cfc3cea Added comment to help with direction of AssetManager change 2020-10-26 15:18:51 -07:00
b8a428a5fd Created AsyncTask and SyncTask to manage tasks 2020-10-25 16:05:31 -07:00
6f22e1353c Created MutableString wrapper for AsciiString
MutableString to be eventually replaced with UTF8 compliant AsciiString
Changed paths API to use MutableString instead of AsciiString
ResolveNotFound takes CharSequence as an argument instead of AsciiString
2020-10-24 23:53:07 -07:00
ae083d176c Added support for PriorityContainer#unwrap(Iterable<PriorityContainer>) 2020-10-13 21:39:52 -07:00
9c389bbc36 Created PriorityContainer for resolver priorities 2020-10-13 12:51:46 -07:00
43cccecec3 Iterative cleanup of com.riiablo.assets 2020-10-13 08:50:49 -07:00
d136e3d599 Replaced Pathfinder dependency with Actioneer#moveTo 2020-10-09 12:34:32 -07:00
c305f1c586 Removed Pathfinder system injection from CursorMovementSystem 2020-10-09 12:32:26 -07:00
9c7a7f9795 Implemented EngineConfig (see #109) 2020-10-08 23:48:53 -07:00
30bd940846 Created basic BinkVideo packet and added additional logging to BinkAudio 2020-10-08 22:13:38 -07:00
1e9695a125 Reordered log message output 2020-10-06 11:54:50 -07:00
2dd14725c4 Implemented error checking and killing of audio threads when player is disposed 2020-10-06 11:53:01 -07:00
46b52ccbf6 Pass BIK reference to child BinkAudio for flags and version validation 2020-10-06 11:35:09 -07:00
292747adb3 Fixed passing incorrect buffer 2020-10-06 11:02:54 -07:00
be2e0d005c Created AudioPacket and basic executor 2020-10-06 10:55:04 -07:00
3803abb02b Implemented frame delta with time steps 2020-10-06 10:28:26 -07:00
ac5ec5f0d8 Resolve keyframe at decode layer so that info is preserved without creating extra data 2020-10-06 10:13:37 -07:00
a6f4aeb467 Better slicing of audio and video packets per frame 2020-10-06 09:59:38 -07:00
db97517cd2 Perform keyframe checking and masking of offsets table 2020-10-05 10:51:06 -07:00
fac0f9fd5d Changed Bink code to help with debugging and testability 2020-10-05 01:46:06 -07:00
bb8a621d5d Additional work on Bink video codec 2020-10-05 00:49:04 -07:00
2bbd3f0c9c Created BIK coded along with BinkAudio and BinkVideo (see #59) 2020-10-04 16:58:22 -07:00
58d31d0634 Adjusted API of UnsafeNarrowing to be more useful
UnsafeNarrowing is now loosely coupled with InvalidFormat via UnsafeNarrowing#wrapAndThrow
UnsafeNarrowing can now be passed an optional offset value
2020-10-03 00:56:58 -07:00
08bc23160f Increased robustness of UnsafeNarrowing exception
UnsafeNarrowing now requires a ByteInput argument to track where exception was thrown
Changed visibility of BitConstraints to public
Added BitConstraints safeXXu checkers for BitInput as well as ByteInput
2020-10-02 22:03:54 -07:00
5a9d179e15 Ported readSafeXXu methods from ByteInput to BitInput 2020-10-02 21:01:14 -07:00
35eaccf9a9 RiiabloTest changes logger to synchronous appender 2020-10-02 18:57:06 -07:00
c62c103948 Implemented support for com.riiablo.io into DCC codec
InputStream signatures have all been removed (interoperability would have meant tons of code duplication)
MPQInputStream now supports fast-track reading of uncompressed files
2020-10-02 12:11:48 -07:00
64fa1611e4 Revised BitInput slice strategy
BitInput now carries logical bitsRead from all previous ByteInput slices
Created BitInput#maxBit to track initial bitsRead + numBits
Created BitInput#maxBitByteOffset to trace delta between maxByte bit offset and maxBit
numBits check not replaced with bitsRead vs maxBit
ByteInput#slice(long) will slice at the current buffer readerIndex instead of mark due to an issue where mark was carrying parent offset
2020-10-02 11:41:54 -07:00
6e65f5361a Added support for reading bit input slices of arbitrary boundaries (closes #118)
BitInput#readSlice uses ByteInput#slice and performs manual #skipBits on parent buffer
Added single-byte tests
2020-09-30 16:36:38 -07:00
235ae94d5a Begin work on transitioning DCC to use new io API 2020-09-30 14:47:07 -07:00
757a85f84b Propagated name change 2020-09-30 10:18:34 -07:00
bb84f49d63 Merge branch 'master' of https://github.com/collinsmith/riiablo 2020-09-30 09:51:09 -07:00
d1af110c12 Created util function to retrieve safe u32s 2020-09-30 09:50:40 -07:00
88e173de60 Spelling error 2020-09-29 15:57:39 -07:00
1116e14fc7 Refined implementation
FileHandleAdapter changed to abstract class
FileHandleAdapter now incorporates Reader functionality via #adapt(FileHandle,Class)
Removed specialized functions from AsyncAssetLoader (should be callable directly now)
Refactor renamed readers to adapters
AssetLoader changed from interface to abstract class
AssetLoader requires type reference and is more similar to LibGDX implementation
Adjusted test case with new API
2020-09-29 12:10:23 -07:00
0c81104adb Reorganized code slightly 2020-09-29 01:17:37 -07:00
d3a9511a35 Closer API to what I would like, still requires better type inference on Reader 2020-09-29 01:14:06 -07:00
9d7ee8450e Changed strategy to support FileHandleAdapter and AsyncAdapter 2020-09-29 00:55:40 -07:00