Collin Smith
ad19056cfb
Changed async logger appender to be a daemon thread
2020-09-27 13:12:53 -07:00
Collin Smith
1a6783f047
Workaround for an issue with LibGDX AssetDescriptor path contraint
2020-09-25 01:22:43 -07:00
Collin Smith
01d92a69c3
Changed capitalization of extensions
2020-09-25 01:03:53 -07:00
Collin Smith
055b56907b
Reorganized code slightly
2020-09-25 00:42:17 -07:00
Collin Smith
f2ec4c9c2e
Created Decryptor.LookupTable#fix(String) to return a valid translated path string
2020-09-25 00:26:11 -07:00
Collin Smith
e2c00d7336
Cleaner way of doing byte[] to upper case and converting path delimiter
2020-09-25 00:17:14 -07:00
Collin Smith
874bb809f8
Fixed mpq_bytebuf impl bugs
...
Added remaining MPQFileHandle impl override methods
MPQFileHandleResolver will automatically fix path delimiters
Fixed decompression on an uncompressed sector
2020-09-24 19:34:33 -07:00
Collin Smith
e091821c46
Fixed an issue where Exploder was masking an incorrect number of bytes for the copy offset
2020-09-24 19:12:26 -07:00
Collin Smith
8284ab095e
Removed INTS pool by using a ByteBuf instead
2020-09-24 17:57:26 -07:00
Collin Smith
cd9d8801c7
Refactored CursorMovementSystem#setTarget to Actioneer#moveTo
2020-09-23 11:48:54 -07:00
Collin Smith
6f40094f73
Increased sectors cache to 16384 offsets (67 MB)
...
Should research keeping a ByteBuf copy of offsets
2020-09-23 01:55:28 -07:00
Collin Smith
e1252e172c
Added terminator for MPQ#getIndex(long,int,short) for case where not found
2020-09-23 01:54:08 -07:00
Collin Smith
2c5d056457
Refined MPQFileHandle and MPQInputStream impls
2020-09-23 01:26:19 -07:00
Collin Smith
d7649ca94c
Removed throws IOException from methods
2020-09-22 15:59:10 -07:00
Collin Smith
16474a215f
Replaced gdx object pool with thread-safe com.riiablo.util.Pool
2020-09-22 13:40:36 -07:00
Collin Smith
5c10340222
Added support for initial capacity pre-init to Pool
2020-09-22 13:35:23 -07:00
Collin Smith
63c17b0e17
Created com.riiablo.util.Pool thread safe pool ( closes #116 )
2020-09-22 13:22:24 -07:00
Collin Smith
6d8cefb2c8
Committing tests of mpq_bytebuf package
2020-09-22 12:37:09 -07:00
Collin Smith
bd9b30a33d
Upgraded mpq_bytebuf library
...
Created MPQFileHandleResolver to resolve a filename to an MPQ
Greatly improved efficiency of MPQInputStream and reduced overhead
Added support for fast-path ByteBufInputStream for a native memory read
MPQFileHandle now supports key/offset caching for faster lookup
MPQ now initializes using a FileChannel instead of a RandomAccessFile
MPQ hash and block tables are read using a buffer
Moved MPQFileHandle file operations to MPQFileHandle from MPQ
Added ability to retrieve MPQ block table entry from an MPQ hash table entry
Inlined Exploder#TRUNCATE
Decryptor now works using arrays directly (asserted input is a heap byte buf)
Decryptor returns a long tuple consisting of key and seed state for buffered calls
2020-09-22 12:36:40 -07:00
Collin Smith
35504fccdc
Improved logger throughput
...
Added initial size and pool object init
AsyncAppender now releases events more reliably
Workaround for #116
2020-09-21 13:36:12 -07:00
Collin Smith
24f8c764bb
Created var-arg alternative methods
2020-09-21 02:32:19 -07:00
Collin Smith
368f2f71bf
Deferred log message creation until enabled is evaluated
2020-09-21 02:25:44 -07:00
Collin Smith
6117efc25e
Created AsyncOutputStreamAppender to support logging output on separate threads
2020-09-21 02:02:16 -07:00
Collin Smith
bb4efb7967
Created Pooled variations of message factory implementations
...
Created Pooled variations of message factory implementations
Set logger to default to use these pooled message factories
2020-09-21 01:45:23 -07:00
Collin Smith
aa04ebd132
Changed LogEvent to support pooling
2020-09-21 01:32:55 -07:00
Collin Smith
703be01ceb
Created Message#release()
2020-09-21 01:30:56 -07:00
Collin Smith
dd0707a759
Created methods for non-varargs log functions
2020-09-21 01:25:10 -07:00
Collin Smith
5b22902b10
Changed varargs to array
2020-09-21 01:10:16 -07:00
Collin Smith
68ada6121f
Added virtuals for newMessage without var args
2020-09-21 01:09:26 -07:00
Collin Smith
bd0752cc6a
Created Message#numParameters()
2020-09-21 00:54:47 -07:00
Collin Smith
f2816b24ab
Removed AbstractLogger and implemented functionality directly into Logger class
2020-09-21 00:42:56 -07:00
Collin Smith
2e4f7f6690
Created Actioneer#canInterrupt(int) to check whether an entity action can be interrupted
...
Implemented interruption checking into CursorMovementSystem#updateLeft()
2020-09-20 21:41:53 -07:00
Collin Smith
b8756bbe8d
MPQ library implemented with ByteBuf and MappedByteBuffer (see #8 )
2020-09-19 22:23:27 -07:00
Collin Smith
9009cdcfd9
Resolved a concurrency issue regarding shared state within static decompress method
2020-09-18 22:36:18 -07:00
Collin Smith
303e063586
Tested charclass sound against local player component
2020-09-13 19:46:10 -07:00
Collin Smith
aa948b9b1f
Resetting Animation instances clears Animation#cof reference (see #113 )
2020-09-13 13:46:27 -07:00
Collin Smith
28fb71de85
Fixed radial spells to 64 directions
2020-09-13 13:21:59 -07:00
Collin Smith
add2ea22b5
Added support for per-layer shadow flag
...
Added support for per-layer shadow flag
Set automatically for now based on blendMode
2020-09-13 13:15:50 -07:00
Collin Smith
c98c3dc2c8
Added support for cltdofunc 25 (shouts / novas)
...
Added support for cltdofunc 25 (shouts / novas)
Changed animation frame delta for missiles to 256 from Missile.Entry.animrate
Disabled Missie.Entry.TravelSound audio until it can be figured out better
Added Skills.Entry.cltmissile(a-d)
2020-09-12 15:31:45 -07:00
Collin Smith
372f501b4b
Created RADIANS_64
...
Created RADIANS_64
Redefined RADIANS_X tables mathematically to improve readability
2020-09-12 15:19:35 -07:00
Collin Smith
54216795f6
Enabled bullet flag for missiles and changed to sensors to disable collision
2020-09-12 14:48:39 -07:00
Collin Smith
efc6a5c0e4
Created MissileHandler to dispose of missile entities past their range
...
Created MissileHandler to dispose of missile entities past their range
MissileLoader now resets direction to 0 when missile is loaded
2020-09-12 14:21:48 -07:00
Collin Smith
b01f5180b2
Changed monster placement algorithm to distribute grouped monsters across an area
2020-09-11 13:26:59 -07:00
Collin Smith
0dccc53c44
Monster label now shows first non-empty hitpoints monster
2020-09-11 13:24:01 -07:00
Collin Smith
8eb29c9cfb
Monster label will hide itself if the target monster is dead
2020-09-11 13:20:46 -07:00
Collin Smith
8be6bee27a
Increased default mele range to 3 units
2020-09-11 13:20:00 -07:00
Collin Smith
143634858d
Fixed encoding for negative fixed point numbers
2020-09-11 13:08:35 -07:00
Collin Smith
6cc41eb633
Assigned missiles a physics body (see #113 )
2020-09-10 23:46:27 -07:00
Collin Smith
63bfa85173
Resolved the actual crash this time
...
It would appear that a valid targetId is given that has a position, except that the position is null? This will be looked into later.
2020-09-10 23:31:17 -07:00
Collin Smith
0590ddc166
Fixed crash caused resulting by a previous fix which incorrectly unset target entity
2020-09-10 23:28:02 -07:00