Commit Graph

1524 Commits

Author SHA1 Message Date
Collin Smith
16670d6e89 Refactored names for TileRenderer methods, removed deprecated methods 2021-07-20 23:24:54 -07:00
Collin Smith
8f13d9bac0 Created Ds1Info and display (no rendering) 2021-07-18 21:06:11 -07:00
Collin Smith
ce5166753b Second iteration of DT1 codec
Separated responsibilities of DT1 into DT1Reader and TileRenderer
DT1 now depends on calculated BBox to position textures
Integrated new DT1 codec into MPQViewer (including Dt1Info)
Fixed numerous issues with MPQViewer UI value labels
2021-07-18 12:07:30 -07:00
Collin Smith
9241e3a898 Upgraded riiablo:core tests from JUnit 4 -> JUnit 5
Upgraded riiablo:core tests from JUnit 4 -> JUnit 5
Changed source and target compatibility for riiablo:core to Java 8
Adjusted project style to organize JUnit imports more cleanly
2021-07-14 22:00:59 -07:00
Collin Smith
33e2633f96 Additional exclusion for :table:annotation-processor dependency (#135)
Fix for bf609ac2f0 not excluding during test sources compilation
2021-07-10 01:03:12 -07:00
Collin Smith
0eea5e2793 Migrated libgdx 1.9.13 -> 1.9.14
Migrated libgdx 1.9.13 -> 1.9.14
Removed gdx-jnigen dependency (waterfalled from within gdx-video correctly now)
Separated gdx-controllers version 1.9.14 -> 2.2.0
Changed HeadlessApplicationConfiguration#renderInterval to #updatedPerSecond
2021-05-28 15:30:15 -07:00
Collin Smith
bf609ac2f0 Disable :table:annotation-processor dependency (#135)
Disable :table:annotation-processor dependency
Exclude com.riiablo.table.*.** from compile to improve performance
2021-05-28 12:47:54 -07:00
Collin Smith
e550bdab55 Fixed CvarManager cleanup
Fixed an issue where removing a Cvar from a CvarManager was not removing its state listener
2021-04-25 01:47:57 -07:00
Collin Smith
651e2c9210 Changed filtering for palette render textures to Nearest
This is the default, protecting against LibGDX API changes
2021-01-24 16:37:03 -08:00
Collin Smith
7a2ed359c8 Changed glClearColor to set on each draw call
Changed glClearColor to set on each draw call
Changed glClearColor color definition to global const
2021-01-19 16:27:46 -08:00
Collin Smith
438f26d468 Upgraded LibGDX from 1.9.11 -> 1.9.13
API change scrolled(int) -> scrolled(float,float)
Changed switches to if/else, asserting non-zero amounts
API change gdx.utils.Pool removed prefill argument -- adjusted code
Note: DS1Viewer remains broken, API updated anyways
2021-01-13 21:29:13 -08:00
Collin Smith
97ee523541 Created BinGenerator and tests 2021-01-10 18:35:31 -08:00
Collin Smith
f4705e5775 Added package-level documentation for excel packages 2021-01-10 18:34:08 -08:00
Collin Smith
48de8bf54e Ported some additional schemas 2021-01-09 20:08:30 -08:00
Collin Smith
e7791c1742 Fixed incorrect import 2021-01-09 20:05:53 -08:00
Collin Smith
ff301e0e63 Created schemas for remaining tables
Unimplementable code commented out
Need to fix bug: overridden primary key being used as primary key (ModeEntry)
2021-01-09 19:48:37 -08:00
Collin Smith
1621249f10 Added suppression for unused warning 2021-01-09 19:12:17 -08:00
Collin Smith
f24869411a Created compcode schema and table tests 2021-01-08 19:20:31 -08:00
Collin Smith
322f238a0c Created Color schema and tests 2021-01-08 19:12:30 -08:00
Collin Smith
6953e55457 Fixed compiler warning 2021-01-08 19:11:38 -08:00
Collin Smith
a2ca786ff6 Created CharStats schema and tests 2021-01-08 19:03:50 -08:00
Collin Smith
367b0835a6 Added graceful handling of null fieldName parameter within TsvParser#primaryKey(String) 2021-01-08 19:03:32 -08:00
Collin Smith
c2b7bb20e6 Created ArmType schema and table test 2021-01-08 17:16:25 -08:00
Collin Smith
beebd4378f Created RareAffix and RarePrefix, RareSuffix schemas and table tests 2021-01-08 17:09:34 -08:00
Collin Smith
d8e78d46cc Created Affix, MagicAffix, MagicPrefix and MagicSuffix schemas and table tests 2021-01-08 01:47:03 -08:00
Collin Smith
23449e2ef0 Added support for injecting references to records in foreign tables
Removed interface-based Injector implementation in favor of statically-based one
Injector required manifest fields which were generated after, causing errors
Created Manifest abstraction with Manifest#inject to perform injections
Added Manifest injection to Table constructor to enforce injection within Table#get
2021-01-07 14:04:41 -08:00
Collin Smith
b1bfc32a74 Fixed deprecation warning suppression by fully qualifying deprecated import 2021-01-07 14:00:58 -08:00
Collin Smith
dc37d7f239 Added bounds checking for fieldId to return default if not existing
monstats2 triggered this case, but other columns may not always exist
2021-01-04 20:01:41 -08:00
Collin Smith
5fc82d6516 Fixed EXPANSION marker skipping to skip until CR
monstats2 was formatted EXPANSION\t*0\r\n
2021-01-04 20:00:38 -08:00
Collin Smith
9fa2244429 Added support for record lookup via string primary key
Added support for record lookup via string primary key
TsvParser implements recordName(int) primaryKey(String) and primaryKey()
Added fast-forward recordName(int) into Parser base class to ParserInput
Merged parse record code within Table impl into parseRecord method call
2021-01-04 15:13:27 -08:00
Collin Smith
b4d54d687c Added additional test case for weapons using string primary key 2020-12-31 13:55:05 -08:00
Collin Smith
e0d4884b96 Added additional test case for ItemEntry super class 2020-12-31 13:53:37 -08:00
Collin Smith
72a83fa81e Created obj schema and customized table with tests 2020-12-31 02:11:07 -08:00
Collin Smith
acda9a23b4 Set indexed config for MonPreset schema 2020-12-31 01:51:25 -08:00
Collin Smith
4b656760d3 Removed primary key tag from Act field (should be marked indexed) 2020-12-31 01:47:21 -08:00
Collin Smith
ad3de24792 Improved test cases for MonPreset table 2020-12-31 01:44:47 -08:00
Collin Smith
cb31a45ed4 Created monstats schema and custom table impl and tests 2020-12-30 23:48:43 -08:00
Collin Smith
2afc050f6f Created ItemStatCost schema and custom table with tests 2020-12-27 23:07:37 -08:00
Collin Smith
ad5fb534ad Created BodyLocs schema and custom table with tests 2020-12-27 21:55:52 -08:00
Collin Smith
e511c3d87e Added trace logging to SoundsTable record init 2020-12-27 21:55:17 -08:00
Collin Smith
4ac194b335 Added preload for sounds table records test 2020-12-27 21:54:33 -08:00
Collin Smith
2ea6398d0c Created Sounds schema with custom SoundsTable and tests 2020-12-27 20:18:17 -08:00
Collin Smith
257a8d3b40 Committing ParserMapper and RunesMapper implementation
Deprecated, but a good start if ever moved forward with
2020-12-27 20:03:37 -08:00
Collin Smith
dedc07799e Implemented Runes schema with custom RunesTable indexer and tests 2020-12-27 20:02:23 -08:00
Collin Smith
cc807f60fa Implemented Table#preload
Implemented Table#preload
Removed Table#initialize() call from within Table#initialize(ParserInput)
2020-12-27 20:01:47 -08:00
Collin Smith
138c62c225 Created definitions for numRecords and numFields within ParserInput 2020-12-27 19:59:58 -08:00
Collin Smith
7ad9fd937c Additional test cases -- added assertions 2020-12-20 01:18:38 -08:00
Collin Smith
8aafd22da5 Committing additional schemas 2020-12-20 00:37:48 -08:00
Collin Smith
7e7dfa0213 Implemented foreign key into :core test case
Fixed issue where parser was generating code for foreign keys
Added additional test case to output tsv field names and ids map
Added MonStats2 foreign key to MonStats schema
Generated TableManifest fields are now statically instanced
2020-12-20 00:35:16 -08:00
Collin Smith
2996e164f2 Added additional documentation to Table and refactored parser init function call 2020-12-18 00:55:58 -08:00
Collin Smith
4139ecbd38 Fixed table parser initialization 2020-12-18 00:02:54 -08:00
Collin Smith
adbd5f78c4 Commented out javadoc triggering a deprecation warning 2020-12-17 23:54:09 -08:00
Collin Smith
831fd15592 Implemented basic loading logic 2020-12-17 23:38:26 -08:00
Collin Smith
c736412b4b Created Tables and TsvParser impl in :core
Created Tables and TsvParser impl in :core
Added lazy loading of table records
2020-12-17 22:33:32 -08:00
Collin Smith
9d62df5850 Transitioned to new SerializerGenerator tools 2020-12-12 21:33:03 -08:00
Collin Smith
d8570e136d Moved com.riiablo.excel2 to com.riiablo.excel 2020-12-12 19:45:23 -08:00
Collin Smith
94475701d9 Merge branch 'master' of https://github.com/collinsmith/riiablo into excel-refactor 2020-12-12 17:55:08 -08:00
Collin Smith
107b408f1e Force :core:createVersionSource to always run regardless of up-to-date 2020-12-12 17:44:45 -08:00
Collin Smith
ff3d807de7 Created BinGenerator to generate bin files from tsv txt files via their Excel schemas 2020-12-12 17:40:54 -08:00
Collin Smith
05b37637bb Fully implemented MonStats entry schema
Fully implemented MonStats entry schema
Replaced serializer definition with generated one
2020-12-12 17:40:02 -08:00
Collin Smith
eec17d0a01 Effectively renamed #writeString methods to #writeChars (see #136) 2020-12-12 17:38:49 -08:00
Collin Smith
7b8ea9511b Removed unused annotations 2020-12-12 16:47:59 -08:00
Collin Smith
e8a8de6888 Implemented putting excel entries 2020-12-12 16:47:45 -08:00
Collin Smith
db1b60fb7d Significantly improved error detection and handling for excel column parsing
Significantly improved error detection and handling for excel column parsing
Added support for default values if a column text length is 0
All exceptions are propagated and logged and handled by parser
2020-12-12 14:53:39 -08:00
Collin Smith
d0f06c6c06 Completed majority of Excel class implementation 2020-12-12 04:27:55 -08:00
Collin Smith
9f7cd6d903 Removed deprecation from Excel.Entry.Column#columnIndex 2020-12-12 01:35:57 -08:00
Collin Smith
29d89f157a Improved logging granularity in tests 2020-12-12 01:35:16 -08:00
Collin Smith
2d149e18c9 Added termination to line cacheLine loop 2020-12-12 01:34:33 -08:00
Collin Smith
f3a1cbd4be Created :core:createVersionSource gradle task
Gradle build info is now output to a generated source RiiabloVersion.java
Renamed generatedSourceDirs to vcsGeneratedSourceDir for version controlled generated sources
Created generatedSourceDir for build generated sources
Integrated RiiabloVersion into Client and MenuScreen
Changed Client.properties diablo->riiablo=Riiablo (e.g., Riiablo)
Changed Client.properties version->V {0} (e.g., V 0.0.3-SNAPSHOT)
2020-12-11 20:18:55 -08:00
Collin Smith
fd795892b0 Created ByteInput#readString() to handle dynamic length strings 2020-12-11 18:27:13 -08:00
Collin Smith
c29d7bfd39 Created Entry annotation to tag the excel row schema 2020-12-11 18:26:32 -08:00
Collin Smith
9b95eb1ac8 Added code generation API for generating excel serializers 2020-12-11 17:54:46 -08:00
Collin Smith
32f9db81c2 Moved some inner classes into discrete class files 2020-12-10 02:55:29 -08:00
Collin Smith
ab6cc744cb Created Excel#excelClass and Excel#entryClass methods 2020-12-08 23:35:47 -08:00
Collin Smith
96c58afe44 Added Excel.Entry.PrimaryKey 2020-12-08 23:34:42 -08:00
Collin Smith
33abf641c9 Renamed TxtParser methods to current usage patterns 2020-12-08 23:33:27 -08:00
Collin Smith
4800f0412e Resolved log message dynamic dispatch issue via casting 2020-12-08 23:32:02 -08:00
Collin Smith
d49a81c395 Second iteration of revision of excel-refactor 2020-12-08 20:30:09 -08:00
Collin Smith
06adbf1dcf Removed unnecessary checks 2020-12-07 18:58:03 -08:00
Collin Smith
f00dd70023 Suppressed unused warning 2020-12-07 18:53:17 -08:00
Collin Smith
e95411388c Updated Excel class logging 2020-12-07 11:31:52 -08:00
Collin Smith
ea2ff28d61 Implemented MDC into Excel class logging 2020-12-07 11:26:25 -08:00
Collin Smith
99cb75341d Created unit test for TxtParser 2020-12-07 10:56:41 -08:00
Collin Smith
9171fe8f74 Created BinGenerator 2020-12-07 10:33:07 -08:00
Collin Smith
f60040a5d2 Refactored com.riiablo.excel
Replaced logging with com.riiablo.logger
Renamed fields to more accurately reflect use
Propagate exceptions to caller to help with exception handling
2020-12-07 02:16:37 -08:00
Collin Smith
d17f9048ce Enabled weave closure and left disabled until #134 is resolved 2020-12-05 02:20:15 -08:00
Collin Smith
e27d6bba73 Merge branch 'master' of https://github.com/collinsmith/riiablo into excel-refactor 2020-12-04 19:51:55 -08:00
Collin Smith
2c73bff490 Added code to append unchecked and deprecation checks to Java compiler 2020-12-04 19:51:37 -08:00
Collin Smith
9ea79c90e8 Removes Guava dependency 2020-12-04 19:36:56 -08:00
Collin Smith
073f73e1a3 Resolves #130 2020-12-04 19:36:34 -08:00
Collin Smith
9ba8608af4 Resolved compile unchecked cast warnings in ClassUtils 2020-12-03 01:42:49 -08:00
Collin Smith
659e812e83 Resolved or documented deprecation warnings for suppression 2020-12-02 11:57:06 -08:00
Collin Smith
0410eb2505 Resolved libGDX update deprecation 2020-12-02 11:52:24 -08:00
Collin Smith
42f077d680 Improved organization of :core build.gradle 2020-12-02 00:29:08 -08:00
Collin Smith
cb4c7596bf Moved flatbuffers src to correct directory 2020-12-01 21:36:52 -08:00
Collin Smith
0e2313c44a Disable :core:createFlatBuffers task at configuration level if building on non-Windows
Disable :core:createFlatBuffers task at configuration level if building on non-Windows
Added warning messages stating that it's been disabled (should add check)
2020-12-01 18:21:49 -08:00
Collin Smith
85780c6ba8 Created :core:generateSources gradle task
:core:generateSources calls :core:createFlatBuffers
:core:createFlatBuffers will only error out if not up-to-date on non-windows
:core:compileJava depends on :core:generateSources
2020-12-01 17:43:02 -08:00
Collin Smith
f81198781d Moved flatbuffers schemas to src/main/flatbuffers source 2020-12-01 17:07:10 -08:00
Collin Smith
85731f8fa4 Supressed some deprecation warnings 2020-12-01 13:11:06 -08:00
Collin Smith
080ac483ed Updated flatbuffers version to 1.12.0 (see #132) 2020-12-01 13:06:45 -08:00
Collin Smith
6e44b4d745 Refined flatbuffers dependency implementation (see #132)
Included flatc.exe within repository (v1.11.0 binary)
Added check within :core:createFlatBuffers task for Windows OS family
Added flatbuffersVersion variable within gradle.properties to 1.11.0
Changed many fields to variables and implemented flatbuffers closure
2020-12-01 10:02:07 -08:00
Collin Smith
fb089185c1 Fixed code style 2020-12-01 09:55:49 -08:00
Collin Smith
61cb66514b Removed argument from SerializerGenerator#generateSerializers 2020-11-30 11:37:28 -08:00
Collin Smith
9122c29f03 Removed explicit default constructor declaration 2020-11-30 11:21:07 -08:00
Collin Smith
51ce483944 Merge branch 'master' of https://github.com/collinsmith/riiablo into excel-refactor 2020-11-30 11:14:34 -08:00
Collin Smith
468ecf7201 Updated org.apache.commons:commons-lang3 from 3.6 -> 3.9
3.10+ were causing a program hang (see #131)
2020-11-30 10:56:58 -08:00
Collin Smith
2d5e377aca Created excel-refactor containing excel 2.0 2020-11-29 17:58:51 -08:00
Collin Smith
af2a5737fa Simplified :core generated sources assignment 2020-11-29 17:52:36 -08:00
Collin Smith
51d71252cb Added boolean support
Created ByteInput#readBoolean(boolean)
Created ByteOutput#writeBoolean(boolean)
2020-11-29 00:56:41 -08:00
Collin Smith
4629af164e Amending previous commit with one additional refactor 2020-11-26 14:26:57 -08:00
Collin Smith
f5a60935a8 Replaced the majority of guava usages with apache commons equivalents 2020-11-26 14:25:10 -08:00
Collin Smith
aec0a8c07f Created delegate InstallationFinder impl for MacInstallationFinder
Delegate references LinuxInstallationFinder
2020-11-26 02:40:42 -08:00
Collin Smith
7b7874278e Ignored test case failure (see #129) 2020-11-22 18:41:46 -08:00
Collin Smith
6be4e48a1b Changed test case to pass 2020-11-22 18:20:00 -08:00
Collin Smith
8a37179c70 Disabled benchmarking in two test cases 2020-11-22 18:14:23 -08:00
Collin Smith
49757eb85f Level#valueOf(String,Level) now returns default value when name is null 2020-11-22 15:24:22 -08:00
Collin Smith
38fb0c13e8 Disabled DC6 logging 2020-11-22 13:59:17 -08:00
Collin Smith
a54fec91d8 Added support for LinuxInstallationFinder
Added support for LinuxInstallationFinder
Created stub for InstallationFinder for unknown platforms
2020-11-21 20:53:20 -08:00
Collin Smith
7c05c7ef63 Upgraded android support-annotations to 28.0.0 2020-11-21 17:16:06 -08:00
Collin Smith
ec39040b28 Code cleanup 2020-11-21 04:30:49 -08:00
Collin Smith
c888c9beb2 Integrated InstallationFinder into :desktop 2020-11-21 04:15:27 -08:00
Collin Smith
e660f2bd78 Created InstallationFinder to search for D2 installations and saved games 2020-11-21 03:54:59 -08:00
Collin Smith
859d0888bf Moved gradle version variables to gradle.properties
Moved gradle version variables to gradle.properties
Replaced some inline box2d light versions variables
Added commented config for artemis:weave task
2020-11-20 15:44:52 -08:00
Collin Smith
cc8f9c82a8 Added assets as resources root for :core 2020-11-18 10:51:13 -08:00
Collin Smith
7dbf087df3 Fixed generated sources path 2020-11-17 13:22:42 -08:00
Collin Smith
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
Collin Smith
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
Collin Smith
3e9b01bf02 Created saves command to output saves directory 2020-11-04 14:27:03 -08:00
Collin Smith
c20978bdca Created home command to output D2 home directory argument 2020-11-04 14:22:41 -08:00
Collin Smith
41035956d3 Fixes #122 2020-11-04 14:06:55 -08:00
Collin Smith
c94cef1890 Created stub for primary attack 2020-11-02 18:09:17 -08:00
Collin Smith
6924af03d6 Created stub for Actioneer#cast with specified sequence and mode 2020-11-02 18:08:11 -08:00
Collin Smith
9a1a66c778 Adjusted API slightly to log unexpected mode translations 2020-11-02 18:05:18 -08:00
Collin Smith
60247a6699 Added function to translate mode based on source entity type 2020-11-02 18:00:31 -08:00
Collin Smith
2820ba7566 Replaced Gdx.app logging with Riiablo logger 2020-11-02 17:42:12 -08:00
Collin Smith
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
Collin Smith
1d5cfc3cea Added comment to help with direction of AssetManager change 2020-10-26 15:18:51 -07:00
Collin Smith
b8a428a5fd Created AsyncTask and SyncTask to manage tasks 2020-10-25 16:05:31 -07:00
Collin Smith
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
Collin Smith
ae083d176c Added support for PriorityContainer#unwrap(Iterable<PriorityContainer>) 2020-10-13 21:39:52 -07:00
collinsmith
9c389bbc36 Created PriorityContainer for resolver priorities 2020-10-13 12:51:46 -07:00
Collin Smith
43cccecec3 Iterative cleanup of com.riiablo.assets 2020-10-13 08:50:49 -07:00
Collin Smith
d136e3d599 Replaced Pathfinder dependency with Actioneer#moveTo 2020-10-09 12:34:32 -07:00
Collin Smith
c305f1c586 Removed Pathfinder system injection from CursorMovementSystem 2020-10-09 12:32:26 -07:00
Collin Smith
9c7a7f9795 Implemented EngineConfig (see #109) 2020-10-08 23:48:53 -07:00
Collin Smith
30bd940846 Created basic BinkVideo packet and added additional logging to BinkAudio 2020-10-08 22:13:38 -07:00
collinsmith
1e9695a125 Reordered log message output 2020-10-06 11:54:50 -07:00
collinsmith
2dd14725c4 Implemented error checking and killing of audio threads when player is disposed 2020-10-06 11:53:01 -07:00
collinsmith
46b52ccbf6 Pass BIK reference to child BinkAudio for flags and version validation 2020-10-06 11:35:09 -07:00
collinsmith
292747adb3 Fixed passing incorrect buffer 2020-10-06 11:02:54 -07:00