table, R record);
8 | }
9 |
--------------------------------------------------------------------------------
/table/core/src/main/java/com/riiablo/table/ParserInput.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table;
2 |
3 | public interface ParserInput {
4 | int fieldId(String fieldName);
5 | int numFields();
6 |
7 | int recordId(String recordName);
8 | int numRecords();
9 |
10 | String recordName(int recordId);
11 | int primaryKey(String fieldName);
12 | int primaryKey();
13 |
14 | CharSequence token(int recordId, int fieldId);
15 |
16 | byte parseByte(int recordId, int fieldId);
17 | short parseShort(int recordId, int fieldId);
18 | int parseInt(int recordId, int fieldId);
19 | long parseLong(int recordId, int fieldId);
20 | boolean parseBoolean(int recordId, int fieldId);
21 | float parseFloat(int recordId, int fieldId);
22 | double parseDouble(int recordId, int fieldId);
23 | String parseString(int recordId, int fieldId);
24 | }
25 |
--------------------------------------------------------------------------------
/table/core/src/main/java/com/riiablo/table/ParserMapper.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table;
2 |
3 | /**
4 | * @deprecated unused -- attempt to create automatic mapping of txt parser records to indexes
5 | */
6 | @Deprecated
7 | public interface ParserMapper> {
8 | int map(P parser, String recordName);
9 | }
10 |
--------------------------------------------------------------------------------
/table/core/src/main/java/com/riiablo/table/Serializer.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table;
2 |
3 | /**
4 | * Defines behaviors necessary to serialize a record to and from a binary
5 | * format.
6 | *
7 | * @param record type
8 | */
9 | public interface Serializer {
10 | void readRecord(R record, DataInput in);
11 | void writeRecord(R record, DataOutput out);
12 | boolean equals(R e1, R e2);
13 | Iterable compare(R e1, R e2);
14 | }
15 |
--------------------------------------------------------------------------------
/table/integration/build.gradle:
--------------------------------------------------------------------------------
1 | sourceSets.main.java.srcDirs += compileJava.options.generatedSourceOutputDirectory.getAsFile().get()
2 | idea.module.generatedSourceDirs += compileJava.options.generatedSourceOutputDirectory.getAsFile().get()
3 |
4 | dependencies {
5 | annotationProcessor project(':table:annotation-processor')
6 | implementation project(':table:core')
7 | implementation project(':table:annotations')
8 | }
9 |
10 | dependencies {
11 | testImplementation "junit:junit:4.12"
12 | }
13 |
--------------------------------------------------------------------------------
/table/integration/src/main/java/com/riiablo/table/schema/MonStatsInjectorImpl.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table.schema;
2 |
3 | import com.riiablo.table.Injector;
4 |
5 | public class MonStatsInjectorImpl implements Injector {
6 | @Override
7 | public MonStats inject(Object manifest, MonStats record) {
8 | throw new UnsupportedOperationException();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/table/integration/src/main/java/com/riiablo/table/schema/MonStatsTableImpl.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table.schema;
2 |
3 | import com.riiablo.table.Parser;
4 | import com.riiablo.table.ParserInput;
5 | import com.riiablo.table.Serializer;
6 | import com.riiablo.table.Table;
7 |
8 | public class MonStatsTableImpl extends Table {
9 | public MonStatsTableImpl() {
10 | super(MonStats.class);
11 | }
12 |
13 | @Override
14 | protected MonStats newRecord() {
15 | return new MonStats();
16 | }
17 |
18 | @Override
19 | protected Parser newParser(ParserInput parser) {
20 | return new MonStatsParserImpl(parser);
21 | }
22 |
23 | @Override
24 | protected Serializer newSerializer() {
25 | return new MonStatsSerializerImpl();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/table/integration/src/main/java/com/riiablo/table/schema/Weapons.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table.schema;
2 |
3 | import com.riiablo.table.annotation.Format;
4 | import com.riiablo.table.annotation.Schema;
5 |
6 | @Schema
7 | public class Weapons extends ItemEntry {
8 | public String wclass;
9 | public int minmisdam;
10 | public int maxmisdam;
11 | public int reqstr;
12 | public int reqdex;
13 | public int durability;
14 |
15 | @Format(format = "2handedwclass")
16 | public String _2handedwclass;
17 |
18 | @Format(format = "1or2handed")
19 | public boolean _1or2handed;
20 |
21 | @Format(format = "2handed")
22 | public boolean _2handed;
23 |
24 | @Format(format = "2handmindam")
25 | public int _2handmindam;
26 |
27 | @Format(format = "2handmaxdam")
28 | public int _2handmaxdam;
29 | }
30 |
--------------------------------------------------------------------------------
/table/integration/src/test/java/com/riiablo/table/IntegrationTest.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.table;
2 |
3 | import org.junit.Test;
4 |
5 | public class IntegrationTest {
6 | @Test
7 | public void test() {}
8 | }
9 |
--------------------------------------------------------------------------------
/tester/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'java'
2 |
3 | project.ext.visuiVersion = '1.4.0'
4 |
5 | dependencies {
6 | implementation project(':core')
7 | implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
8 | implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
9 | implementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
10 |
11 | implementation "commons-cli:commons-cli:$cliVersion"
12 | implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
13 | }
14 |
--------------------------------------------------------------------------------
/tools/backends/backend-core/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'application'
2 |
3 | java {
4 | sourceCompatibility = JavaVersion.VERSION_1_8
5 | targetCompatibility = JavaVersion.VERSION_1_8
6 | }
7 |
8 | dependencies {
9 | api project(':core')
10 | api "commons-cli:commons-cli:$cliVersion"
11 | }
12 |
--------------------------------------------------------------------------------
/tools/backends/backend-headless/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | api project(':tools:backends:backend-core')
3 | api "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
4 | api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
5 | }
6 |
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | api project(':tools:backends:backend-core')
3 | api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
4 | api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
5 | api "com.kotcrab.vis:vis-ui:$visuiVersion"
6 | }
7 |
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl/src/main/resources/ic_launcher_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/backends/backend-lwjgl/src/main/resources/ic_launcher_128.png
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl/src/main/resources/ic_launcher_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/backends/backend-lwjgl/src/main/resources/ic_launcher_16.png
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl/src/main/resources/ic_launcher_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/backends/backend-lwjgl/src/main/resources/ic_launcher_32.png
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl3/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | api project(':tools:backends:backend-core')
3 | api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
4 | api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
5 | api "com.kotcrab.vis:vis-ui:$visuiVersion"
6 | }
7 |
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl3/src/main/resources/ic_launcher_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/backends/backend-lwjgl3/src/main/resources/ic_launcher_128.png
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl3/src/main/resources/ic_launcher_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/backends/backend-lwjgl3/src/main/resources/ic_launcher_16.png
--------------------------------------------------------------------------------
/tools/backends/backend-lwjgl3/src/main/resources/ic_launcher_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/backends/backend-lwjgl3/src/main/resources/ic_launcher_32.png
--------------------------------------------------------------------------------
/tools/camera/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl') }
2 | description = 'Debugs isometric camera functionality.'
3 | application.mainClass = 'com.riiablo.camera.CameraTool'
4 |
--------------------------------------------------------------------------------
/tools/d2s-reader/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-headless') }
2 | description = 'Deserializes and debugs D2S files.'
3 | application.mainClass = 'com.riiablo.save.D2SReaderTool'
4 |
--------------------------------------------------------------------------------
/tools/direction/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl') }
2 | description = 'Debugs entity direction controls.'
3 | application.mainClass = 'com.riiablo.engine.DirectionTool'
4 |
--------------------------------------------------------------------------------
/tools/ds1-viewer/src/main/java/com/riiablo/map/DS1Types.java:
--------------------------------------------------------------------------------
1 | package com.riiablo.map;
2 |
3 | import com.riiablo.codec.excel.Excel;
4 |
5 | public class DS1Types extends Excel {
6 | public static class Entry extends Excel.Entry {
7 | @Override
8 | public String toString() {
9 | return Name;
10 | }
11 |
12 | @Column public String Name;
13 |
14 | @Column @Key
15 | public int Def;
16 |
17 | @Column public int LevelType;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/tools/font-metrics/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl') }
2 | description = 'Configures font metrics for D2 font files.'
3 | application.mainClass = 'com.riiablo.FontMetricsTool'
4 |
--------------------------------------------------------------------------------
/tools/map-debugger/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl') }
2 | description = 'Debugs map generation.'
3 | application.mainClass = 'com.riiablo.MapDebugger'
4 |
--------------------------------------------------------------------------------
/tools/map-viewer/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl') }
2 | description = 'View and generate maps.'
3 | application.mainClass = 'com.riiablo.map.MapViewer'
4 |
--------------------------------------------------------------------------------
/tools/mpq-viewer/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl3') }
2 | dependencies { implementation ("com.kotcrab.vis:vis-ui") { version { require '1.5.0' } } }
3 | description = 'View and debug MPQ archive contents.'
4 | application.mainClass = 'com.riiablo.mpq.MPQViewer'
5 |
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT1/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT1/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT1/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT1/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT2/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT2/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT2/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT2/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT3/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT3/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT3/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT3/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT4/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT4/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT4/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT4/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT5/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT5/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/ACT5/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/ACT5/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/EndGame/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/EndGame/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/EndGame/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/EndGame/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Menu0/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Menu0/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Menu0/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Menu0/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/STATIC/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/STATIC/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Sky/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Sky/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Sky/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Sky/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Trademark/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Trademark/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Trademark/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Trademark/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/Units/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/Units/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/fechar/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/fechar/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/fechar/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/fechar/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/loading/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/loading/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/loading/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/loading/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu1/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu1/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu1/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu1/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu2/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu2/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu2/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu2/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu3/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu3/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu3/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu3/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu4/Pal.PL2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu4/Pal.PL2
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/palettes/menu4/pal.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/palettes/menu4/pal.dat
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/shaders/indexpalette.vert:
--------------------------------------------------------------------------------
1 | attribute vec4 a_position;
2 | attribute vec4 a_color;
3 | attribute vec2 a_texCoord0;
4 |
5 | uniform mat4 u_projTrans;
6 |
7 | varying vec2 v_texCoord;
8 |
9 | void main() {
10 | v_texCoord = a_texCoord0;
11 | gl_Position = u_projTrans * a_position;
12 | }
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/shaders/indexpalette2.vert:
--------------------------------------------------------------------------------
1 | attribute vec4 a_position;
2 | attribute vec4 a_color;
3 | attribute vec2 a_texCoord0;
4 |
5 | uniform mat4 u_projTrans;
6 |
7 | varying vec2 v_texCoord;
8 | varying vec4 tint;
9 |
10 | void main() {
11 | tint = a_color;
12 | v_texCoord = a_texCoord0;
13 | gl_Position = u_projTrans * a_position;
14 | }
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/shaders/indexpalette3.vert:
--------------------------------------------------------------------------------
1 | attribute vec4 a_position;
2 | attribute vec4 a_color;
3 | attribute vec2 a_texCoord0;
4 |
5 | uniform mat4 u_projTrans;
6 |
7 | varying vec2 v_texCoord;
8 | varying vec4 tint;
9 |
10 | void main() {
11 | tint = a_color;
12 | v_texCoord = a_texCoord0;
13 | gl_Position = u_projTrans * a_position;
14 | }
--------------------------------------------------------------------------------
/tools/mpq-viewer/src/main/resources/skin/x1/uiskin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collinsmith/riiablo/59aa8d5021c457e8d2891bb23c9e3a0ef724c6b3/tools/mpq-viewer/src/main/resources/skin/x1/uiskin.png
--------------------------------------------------------------------------------
/tools/old/build.gradle:
--------------------------------------------------------------------------------
1 | project.ext.visuiVersion = '1.4.2'
2 |
3 | dependencies {
4 | implementation project(':core')
5 | implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
6 | implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
7 | implementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
8 |
9 | implementation "commons-cli:commons-cli:$cliVersion"
10 | implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
11 | }
12 |
13 | dependencies {
14 | implementation "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
15 | implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
16 | implementation "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
17 | }
18 |
--------------------------------------------------------------------------------
/tools/video-player/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies { implementation project(':tools:backends:backend-lwjgl3') }
2 | description = 'Play videos from MPQ archives.'
3 | application.mainClass = 'com.riiablo.video.VideoPlayerTool'
4 |
5 | dependencies {
6 | implementation "com.badlogicgames.gdx-video:gdx-video:1.3.2-SNAPSHOT"
7 | implementation "com.badlogicgames.gdx-video:gdx-video-lwjgl3:1.3.2-SNAPSHOT"
8 | }
9 |
--------------------------------------------------------------------------------