Commit Graph

482 Commits

Author SHA1 Message Date
jtuu
98acdbf7f9 [VM] Added arg stack. 2019-10-02 21:46:05 +03:00
jtuu
5458d06d8e [VM] Changed the icon for the VM button. 2019-10-02 21:46:02 +03:00
jtuu
80a4aa784f [VM] Added a button to run the current quest in the VM.
Made the VM work with output from the assembler.
Added some comments to the VM and cleaned it up a little bit.
2019-10-02 21:43:53 +03:00
Daan Vanden Bosch
bffd8f51d9 Fixed unit tests. 2019-10-02 20:20:59 +02:00
Daan Vanden Bosch
6396eb1bdf Feature flags. 2019-10-02 20:10:02 +02:00
Daan Vanden Bosch
ed571b9061 Added asm meta data to IR. 2019-10-02 19:57:43 +02:00
Daan Vanden Bosch
7bde9988e8 Tiny bugfix. 2019-10-02 18:32:00 +02:00
Daan Vanden Bosch
fc5a34946e Opcode is now structured cloning-safe. All IR is now structured cloning-safe. 2019-10-02 14:25:47 +02:00
Daan Vanden Bosch
16b89a01d0 Param is now structured cloning-safe. 2019-10-02 13:56:00 +02:00
Daan Vanden Bosch
fa76002d1c Instruction is now structured cloning-safe. 2019-10-02 13:44:55 +02:00
Daan Vanden Bosch
431c0545f2 Added the basic Monaco machinery for providing symbol definitions. 2019-10-02 13:28:14 +02:00
Daan Vanden Bosch
825f14dc90 Fixed a disassembler bug: va list arg_push* instructions would not be output when in automatic stack management mode. 2019-10-01 22:47:01 +02:00
Daan Vanden Bosch
df2bb7a6ab Fixed an assembler and a disassembler bug. 2019-10-01 22:18:14 +02:00
Daan Vanden Bosch
edc6428a3d Fixed regression. 2019-10-01 18:36:35 +02:00
Daan Vanden Bosch
9b3d280e4f Upgraded all dependencies and fixed linting warnings/errors resulting from eslint upgrade. 2019-10-01 18:30:26 +02:00
Daan Vanden Bosch
c64ba16c7a The ASM editor command palette can now be opened with ctrl-shift-p. 2019-10-01 17:41:28 +02:00
Daan Vanden Bosch
75c19cf112 The 3D view is now focused when dropping an entity on it. 2019-10-01 17:10:19 +02:00
Daan Vanden Bosch
f852333fd6 Fixed text area visual bug in Firefox. 2019-09-30 12:23:13 +02:00
Daan Vanden Bosch
b6619644d1 When the mouse leaves the 3D view while hovering over an entity it is now correctly de-highlighted. 2019-09-29 18:58:32 +02:00
Daan Vanden Bosch
4bf2148b39 Entities can be rotated via the entity info view. 2019-09-29 18:53:01 +02:00
Daan Vanden Bosch
1498b37f67 Reduced GC pressure while rotating entities. 2019-09-28 21:31:04 +02:00
Daan Vanden Bosch
9e2858dae2 Entities can now be rotated around their y-axis by right-click dragging. 2019-09-28 21:11:57 +02:00
Daan Vanden Bosch
5d6f04c2c4 Small fix for bug in QuestEntityControls. 2019-09-25 01:01:34 +02:00
Daan Vanden Bosch
83eade32dc Refactored QuestEntityControls to make it easier to add behavior. 2019-09-25 00:53:06 +02:00
Daan Vanden Bosch
d97872d528 The selected entity can now be deleted with the delete key. 2019-09-24 19:47:22 +02:00
Daan Vanden Bosch
e57f095a49 All entities from the NPC and object lists are now scaled to fit nicely in their square. 2019-09-23 16:07:46 +02:00
Daan Vanden Bosch
1fe3015ce5 All objects are now correctly filtered based on area. 2019-09-23 14:47:14 +02:00
Daan Vanden Bosch
9859e15806 Objects area now filtered based on the selected area. Fixed some typos in object names. 2019-09-22 16:14:38 +02:00
Daan Vanden Bosch
f40b1fb168 NPCs in the NPC list are now filtered according to the selected area. Objects can now be added via drag and drop from the object list. 2019-09-22 15:18:46 +02:00
Daan Vanden Bosch
f0d474ad40 The EntityListView now shows renders of entities instead of green squares. 2019-09-21 21:47:00 +02:00
Daan Vanden Bosch
3d9b003e39 Fixed regression: hovered entities are now highlighted again. 2019-09-21 19:03:30 +02:00
Daan Vanden Bosch
dbb5b65b74 Reduced garbage creation for increased performance. 2019-09-21 14:54:42 +02:00
Daan Vanden Bosch
79b85fc859 Entity creation is now undoable. Fixed a bug that occurred when you started to translate an entity and then moved the cursor outside of the 3D-view. 2019-09-21 14:39:04 +02:00
Daan Vanden Bosch
a97b56cecc Simplified and deduplicated entity transformation code. 2019-09-21 12:48:34 +02:00
Daan Vanden Bosch
6e666b0ea5 Entity drag and drop code doesn't use custom events anymore for increased performance and simplicity. Made code more typesafe and decoupled. Fixed some bugs. 2019-09-20 22:27:19 +02:00
Daan Vanden Bosch
4293a3862b Fixed visual bug due to order of model loading. 2019-09-19 22:30:39 +02:00
Daan Vanden Bosch
7ae4ad428c Basic entity creation via drag and drop. 2019-09-19 22:20:17 +02:00
Daan Vanden Bosch
4e55f1b9fd Fixed bug in NavigationView. 2019-09-17 17:32:17 +02:00
Daan Vanden Bosch
8622b07bde Added bind_children_to function to efficiently update child nodes of an HTML element based on the contents of a ListProperty. 2019-09-17 17:26:25 +02:00
Daan Vanden Bosch
859d85da45 ASM editor view is now sized correctly again. 2019-09-17 12:47:03 +02:00
Daan Vanden Bosch
3c6b28f536 Fixed bug that would disassemble arg_pushr arguments incorrectly in automatic stack management mode. 2019-09-16 18:52:16 +02:00
Daan Vanden Bosch
bdee123ee3 LabelledControl labels are now disabled again when their control is disabled. The now also have the same tooltip as their control. 2019-09-15 23:28:48 +02:00
Daan Vanden Bosch
25c3c3b5b8 Removed unnecessary update_assembly_settings call. 2019-09-15 23:25:18 +02:00
Daan Vanden Bosch
7d941aa0e4 Undo is now reset when toggling "Inline args mode". 2019-09-15 23:16:11 +02:00
jtuu
fa78f5f95b Lint 2019-09-15 21:47:13 +03:00
jtuu
f1e6a31f0e Merge branch 'master' into script-editor-settings 2019-09-15 21:44:31 +03:00
jtuu
3155cdb183 Transform existing quest script when inline args mode is toggled. 2019-09-15 21:38:30 +03:00
jtuu
0618ca0b87 Added a checkbox for enabling inline arguments transformation mode to the script editor toolbar. 2019-09-15 20:59:51 +03:00
Daan Vanden Bosch
87c6ae37e4 Widget's element property is now abstract and is overridden in every concrete subclass. This often simplifies widget code. 2019-09-15 19:32:34 +02:00
Daan Vanden Bosch
da622aab61 Ctrl-Z and Ctrl-Shift-Z undo and redo commands now work more consistently. 2019-09-15 18:34:24 +02:00
jtuu
463685ffa1 Added a toolbar to the script view. 2019-09-14 23:25:21 +03:00
Daan Vanden Bosch
7ec05ac9a1 Fixed typo in QuestInfoView class name. 2019-09-14 22:13:44 +02:00
Daan Vanden Bosch
ddf5ff1bef Disabled native drag-and-drop globally. 2019-09-14 21:14:38 +02:00
Daan Vanden Bosch
aca71d1a17 Merge branch 'nui' 2019-09-14 17:32:32 +02:00
Daan Vanden Bosch
4c09486f65 Removed all React-related dependencies and config. 2019-09-14 17:31:03 +02:00
Daan Vanden Bosch
8411d75b7f Ported the DPS calc store to the new observables system. 2019-09-14 17:13:08 +02:00
Daan Vanden Bosch
d9b6c7015a The hunt method tables can be sorted again. There's no visual feedback in the table headers though. 2019-09-14 16:11:45 +02:00
Daan Vanden Bosch
9906ea88a9 Added more finalize_construction calls where necessary. 2019-09-14 15:20:36 +02:00
Daan Vanden Bosch
3a95e8a974 Added server select. Widget construction now happens in two phases with a finalize_construction method being called from the lowest subclass. 2019-09-14 15:15:59 +02:00
Daan Vanden Bosch
944f72d1a7 Improved help text. 2019-09-14 14:25:12 +02:00
Daan Vanden Bosch
20a1046053 Added a help tab in Hunt Optimizer. 2019-09-14 14:23:06 +02:00
Daan Vanden Bosch
58939b2ff5 The ComboBox menu can now be filtered by typing. 2019-09-14 13:16:13 +02:00
Daan Vanden Bosch
c8ff72726e The OptimizationResultView is now completely ported to the new GUI system. 2019-09-14 11:59:50 +02:00
Daan Vanden Bosch
8f8da79041 Up to four .qst headers are now parsed. This fixes parsing of The Value of Money. 2019-09-13 22:47:50 +02:00
Daan Vanden Bosch
f7010d75e0 Fixed visual bug in Select. 2019-09-13 22:44:59 +02:00
Daan Vanden Bosch
d6b1b3ca17 Added GitHub link. 2019-09-13 21:20:26 +02:00
Daan Vanden Bosch
fcf08e6f76 Menus and the various controls that use menus can now be controlled with the keyboard. 2019-09-13 20:53:31 +02:00
Daan Vanden Bosch
a933c5e4c1 Wanted items can now be added and removed. 2019-09-13 14:30:29 +02:00
Daan Vanden Bosch
c9820ceccb More data is now shown in the optimization result view. 2019-09-11 15:51:56 +02:00
Daan Vanden Bosch
0cfa20e30f Started working on optimization result view. 2019-09-09 18:37:20 +02:00
Daan Vanden Bosch
d7490b0d3c Text in table cells can now be aligned. Table now works in firefox. 2019-09-07 20:43:53 +02:00
Daan Vanden Bosch
a28a8ce624 Refactored table from MethodsForEpisodeView into a reusable Table widget. 2019-09-07 17:49:21 +02:00
Daan Vanden Bosch
1c2473c24f Improved loading of store data. 2019-09-05 20:30:11 +02:00
Daan Vanden Bosch
46ba5bb018 Length is now updated when a SimpleWritableListProperty is modified. 2019-09-03 16:49:04 +02:00
Daan Vanden Bosch
62db02e278 ListProperties can now emit update events. 2019-09-03 16:44:13 +02:00
Daan Vanden Bosch
1039049fda ListProperties now emit ListPropertyChangeEvents. 2019-09-02 21:09:40 +02:00
Daan Vanden Bosch
bb7bf16f9f Ported part of the hunt optimizer to the new GUI system. The methods tab is now working except for sorting. 2019-09-02 14:41:46 +02:00
Daan Vanden Bosch
c743cba13b Made golden layout tabs height the same as regular tabs height. Correctly centered text in both. 2019-08-31 21:37:55 +02:00
Daan Vanden Bosch
f73db32eaa Fixed entity translation bug. Fixed bug that caused default browser key bindings to be triggered instead of applications bindings. 2019-08-31 20:30:40 +02:00
Daan Vanden Bosch
73619ea91f "Save as..." button works again. Added key bindings for most quest editor actions. 2019-08-31 20:01:35 +02:00
Daan Vanden Bosch
4dde973951 Improved dropdown button and select widget behavior. 2019-08-30 17:31:46 +02:00
Daan Vanden Bosch
24f0cdb461 Ported new quest button to new GUI system. 2019-08-30 00:06:32 +02:00
Daan Vanden Bosch
31c51ca83d Fixed bug in entity translation undo/redo. 2019-08-29 18:42:44 +02:00
Daan Vanden Bosch
762591bf24 Improved select button. 2019-08-29 18:31:29 +02:00
Daan Vanden Bosch
2859dacd90 Added icons, select button and quest area select. 2019-08-29 18:24:03 +02:00
Daan Vanden Bosch
5446f77202 Refactored widgets to make it possible to centralize processing of constructor-provided options. Made widget event/data flow unidirectional. 2019-08-28 21:36:45 +02:00
Daan Vanden Bosch
f100220176 Refactored widget properties to simplify the interface. 2019-08-28 00:50:38 +02:00
Daan Vanden Bosch
3fd4d7c882 Quest entity view is now ported to the new GUI system. 2019-08-27 14:50:16 +02:00
Daan Vanden Bosch
0a9abcc7ed ASM editor undo now correctly resets when a new quest is loaded. 2019-08-26 19:31:01 +02:00
Daan Vanden Bosch
4e38896676 The ASM editor view has been ported to the new GUI system. 2019-08-26 19:19:19 +02:00
Daan Vanden Bosch
03dc60cec9 Undo/redo now works again in the quest editor. The NPC counts view is also ported. 2019-08-26 15:42:12 +02:00
Daan Vanden Bosch
17400200a0 Ported quest info view to the new GUI system. 2019-08-23 17:00:39 +02:00
Daan Vanden Bosch
8e13441f26 Improved observables and ported more of the quest editor to the new GUI system. 2019-08-22 22:45:01 +02:00
Daan Vanden Bosch
18a8ac1ad6 Fixed bug in code that starts/stops renderers when not visible. 2019-08-21 22:29:20 +02:00
Daan Vanden Bosch
dbd5dba682 Tweaked theme and started working on porting quest editor to the new UI system. 2019-08-21 22:04:08 +02:00
Daan Vanden Bosch
3185737cd9 Made fonts slightly smaller. 2019-08-21 19:06:02 +02:00
Daan Vanden Bosch
844e63735e Texture viewer now uses the new UI system. 2019-08-21 18:59:56 +02:00
Daan Vanden Bosch
c4865ee510 Tweaked TabContainer and ToolBar. 2019-08-21 18:17:00 +02:00
Daan Vanden Bosch
72506461ab Swapped code using new and old UI system around. 2019-08-21 17:56:46 +02:00
Daan Vanden Bosch
060e746aac Model viewer now pauses and unpauses when switching tools. 2019-08-21 16:55:12 +02:00
Daan Vanden Bosch
66147fa5e1 Fixed bug in model viewer. 2019-08-21 15:39:32 +02:00
Daan Vanden Bosch
429595b513 Model viewer now completely build on the new UI system. 2019-08-21 15:19:44 +02:00
Daan Vanden Bosch
3ba13606aa More work on new UI. 2019-08-20 15:02:58 +02:00
Daan Vanden Bosch
c7cbf68411 The model viewer can load NJ and XJ files again. 2019-08-19 23:49:40 +02:00
Daan Vanden Bosch
5571f6b1a8 Started working on new UI. 2019-08-19 22:56:40 +02:00
Daan Vanden Bosch
1d0da754ca Added AddObjectComponent. 2019-08-17 17:14:09 +02:00
Daan Vanden Bosch
a619eaa8f7 Updated features list. 2019-08-17 12:59:31 +02:00
Daan Vanden Bosch
b8ff183808 Somewhat improved parameter hint signatures. 2019-08-16 20:26:37 +02:00
Daan Vanden Bosch
56964cb4e2 Added preliminary support for parameter hints. 2019-08-16 19:57:29 +02:00
Daan Vanden Bosch
7d0d3188c2 Script labels in TalkLinkToSupport objects are now detected. 2019-08-16 16:41:05 +02:00
Daan Vanden Bosch
48a1998679 Fixed bug in area geometry loading code. 2019-08-14 18:55:05 +02:00
Daan Vanden Bosch
7454517eb6 Fixed new quest creation. 2019-08-14 18:48:28 +02:00
Daan Vanden Bosch
3a94a94e5d Improved entity section guessing when translating entities. 2019-08-14 18:29:40 +02:00
Daan Vanden Bosch
791968dd4e Made quest ID, name, short description and long description undoable. 2019-08-14 17:37:06 +02:00
Daan Vanden Bosch
cd2849cae4 Script entry points are now extracted from NPCs and objects. 2019-08-14 13:58:48 +02:00
Daan Vanden Bosch
9b19431e0a Fixed bug in pasm syntax highlighting. 2019-08-13 15:44:35 +02:00
Daan Vanden Bosch
206cc3ebb0 More .dat object properties are now parsed. 2019-08-12 20:34:47 +02:00
Daan Vanden Bosch
1a1a52bd43 Seaside area at night variant 1 can now be used to add a second tower map. 2019-08-12 17:55:04 +02:00
Daan Vanden Bosch
29b2e754dd Fixed float parsing bug in assembly lexer. 2019-08-12 17:18:42 +02:00
Daan Vanden Bosch
6c17c36b61 Split NPC counts off into its own dockable component. 2019-08-11 21:59:36 +02:00
Daan Vanden Bosch
66127253d3 Split code into one module per tool + core and application module. 2019-08-10 22:09:06 +02:00
Daan Vanden Bosch
cf1cd26c41 Fixed a bug in area variants computation. 2019-08-10 19:37:34 +02:00
Daan Vanden Bosch
ecbab0637d Area variants now change automatically when bb_map_designate instructions are added, deleted or changed. The 3D view also updates automatically. 2019-08-10 18:11:27 +02:00
Daan Vanden Bosch
2d551a1951 Separated most of quest domain models from quest parsing code and made quest parsing data structures more structured cloning-friendly. All areas for the quest's episode are now shown in the area selector with the number of entities in them in parentheses. 2019-08-10 00:27:57 +02:00
Daan Vanden Bosch
7cfcf5222c Script editor now supports line comments. 2019-08-08 11:02:06 +02:00
Daan Vanden Bosch
269b9cbd25 Removed unnecessary default quest character. 2019-08-07 22:31:02 +02:00
Daan Vanden Bosch
48b683f514 Fixed .qst embedded file naming bug. Implemented simpler PRS compression algorithm that seems to cause fewer errors during roundtrip tests. 2019-08-07 22:28:03 +02:00
Daan Vanden Bosch
194df177ab When creating a new quest and saving it, the filename of a quest that was loaded earlier was shown. This is now fixed. 2019-08-07 14:22:47 +02:00
Daan Vanden Bosch
c8ae97d8f6 Fixed bug in assembler. 2019-08-07 13:57:59 +02:00
Daan Vanden Bosch
d32c56ed02 Improved quest unit test. 2019-08-07 09:03:25 +02:00
Daan Vanden Bosch
fbef785410 Refactored opcode types to make them structurally clonable. 2019-08-07 08:43:47 +02:00
Daan Vanden Bosch
b928738d06 Float literal arguments passed via the stack are now handled correctly in the assembler and disassembler. 2019-08-06 17:37:34 +02:00
Daan Vanden Bosch
d3efe94837 Started working on a quest script VM. It has a call stack, supports threading, waiting for vsync and can execute some instructions at the moment. 2019-08-06 17:07:12 +02:00
Daan Vanden Bosch
054b1c99fb Fixed bugs in DFA code. All dynamic label references are now detected unless they're computed in a way which is too complex to analyse at the moment. 2019-08-06 01:14:57 +02:00
Daan Vanden Bosch
9284cf4a8a Fixed assembler bug related to arg_pushr. 2019-08-05 22:33:07 +02:00
Daan Vanden Bosch
2fc55cdc1a Dynamically referenced object code segments are now parsed correctly. 2019-08-05 16:56:39 +02:00
Daan Vanden Bosch
1ba7d3b6a7 All bugs resulting from opcode typing changes have been fixed. 2019-08-05 00:14:39 +02:00
Daan Vanden Bosch
dbe1b06fa6 Only one bug remains after opcode typing changes. 2019-08-04 22:59:32 +02:00
Daan Vanden Bosch
8e5472044b Fixed most issues resulting from opcode typing changes. 2019-08-04 19:50:02 +02:00
Daan Vanden Bosch
7aefdb688c Opcode code is now generated from yaml definitions. 2019-08-04 17:52:01 +02:00
Daan Vanden Bosch
fba6ac3e10 Created yaml file with opcode definitions (70% complete). 2019-08-03 23:23:55 +02:00
Daan Vanden Bosch
83d32dfe99 Added basic algorithm to compute the possible values of a register at a specific program point. 2019-08-02 00:13:19 +02:00
Daan Vanden Bosch
76c3169fd3 Added ValueSet, an efficient integer set. 2019-08-01 19:37:26 +02:00
Daan Vanden Bosch
d9ff4308e0 Added control flow graph creation algorithm. 2019-07-31 21:37:17 +02:00
Daan Vanden Bosch
ccb31854c3 Object code is now parsed recursively from its entry labels to ensure all segments are parsed as the correct type. 2019-07-30 23:15:23 +02:00
Daan Vanden Bosch
a1cec18636 Fixed bugs in assembler. 2019-07-30 16:39:50 +02:00
Daan Vanden Bosch
7d89c870cc Fixed bugs in bin object code parsing and the assembler. 2019-07-29 23:46:11 +02:00
Daan Vanden Bosch
1da64b8632 Data segments are now supported in quest script assembly. 2019-07-29 21:59:16 +02:00
Daan Vanden Bosch
3edb861693 Object code and labels are now represented by segments. Each segment describes the instructions or data denoted by a label. 2019-07-29 01:02:22 +02:00
Daan Vanden Bosch
f95e7ea220 All unit tests pass again. Removed dependency on text-encoding. Refactored cursors to reuse more code. 2019-07-27 21:47:49 +02:00
Daan Vanden Bosch
4eeda19837 Jest tests are working again. 2019-07-27 17:13:00 +02:00
Daan Vanden Bosch
e859477727 Linting works again. Static asset generation is working as before but has been bugged since an earlier change. 2019-07-27 15:40:30 +02:00
Daan Vanden Bosch
d5bfa67d82 Ejected from create-react-app. Development server and production builds are working. Using css modules now. 2019-07-27 01:49:19 +02:00
Daan Vanden Bosch
f86a895900 Made most simple quest properties editable. 2019-07-25 22:43:27 +02:00
Daan Vanden Bosch
7f4569d40a Fixed bug in assembly worker. Improved undo stack management in quest editor. Improved robustness of quest editor layout persistence. 2019-07-25 17:02:35 +02:00
Daan Vanden Bosch
7f404ff35a Fixed bug in quest editor UI persister. 2019-07-24 23:28:22 +02:00
Daan Vanden Bosch
50eaf43082 Script editor is now readonly if no quest is loaded. Fixed a bug in the assembly worker. Fixed wrong opcode. 2019-07-24 22:53:20 +02:00
Daan Vanden Bosch
1d253e78f8 Bin files are now parsed completely. Fixed bugs related to global key binds. The URL hash is now used for remembering which tool is active between browser refreshes. 2019-07-24 22:15:38 +02:00
Daan Vanden Bosch
7f34ed9d69 Changing an entity's position via the entity info component now results in an action on the undo stack. 2019-07-24 20:47:20 +02:00
Daan Vanden Bosch
5bd8feb766 Script editor undo is now integrated with general undo system. 2019-07-24 20:10:34 +02:00
Daan Vanden Bosch
c0e3ac924a Improved global keybind handling. General quest editor undo stack is now disabled when the script editor is focussed. 2019-07-24 18:07:32 +02:00
Daan Vanden Bosch
52376193ae Quest editor layout is now persisted. 2019-07-24 16:44:17 +02:00
Daan Vanden Bosch
25b7a4869b Fixed bug with golden layout. 2019-07-24 15:53:18 +02:00
Daan Vanden Bosch
11c00e1af7 Fixed bug that would let the camera pan when pressing arrow keys anywhere. 2019-07-24 15:48:39 +02:00
Daan Vanden Bosch
ed41a2398b Put all user settings persistence code in its own module. 2019-07-24 14:31:49 +02:00
Daan Vanden Bosch
3fd812012a Tweaked look and feel. 2019-07-24 13:48:01 +02:00
Daan Vanden Bosch
350ae884e8 Now using golden-layout in quest editor. 2019-07-23 18:39:47 +02:00
Daan Vanden Bosch
e4f78a9d82 Improved asm editor performance with a web worker. 2019-07-23 15:54:42 +02:00
Daan Vanden Bosch
1840bf6575 Added assembler worker code. 2019-07-23 11:03:35 +02:00
Daan Vanden Bosch
fdebfabbda Changed button text. 2019-07-22 23:29:10 +02:00
Daan Vanden Bosch
a9f46ae4f3 Added complete assembler error checking to the editor. Improved editor autocompletion. Script asm modifications are now persisted when saving. 2019-07-22 22:51:44 +02:00
Daan Vanden Bosch
1408b2ffdc Improved asm editor highlighting. 2019-07-22 19:28:12 +02:00
Daan Vanden Bosch
769e6a8619 Added basic assembler. 2019-07-22 16:03:58 +02:00
Daan Vanden Bosch
cb7f088f22 Fixed bug in prs compression code. Improved prs compression performance by about 5x. Instructions are now written as object code in quest bin files. 2019-07-22 12:31:20 +02:00
Daan Vanden Bosch
73e199d724 Quest script assembly can now be viewed. 2019-07-21 20:44:34 +02:00
Daan Vanden Bosch
99d401e785 Linting and eliminated mobx warning. 2019-07-21 10:44:33 +02:00
Daan Vanden Bosch
14dd8dabff Improved quest script instruction set model. 2019-07-21 00:11:26 +02:00
Daan Vanden Bosch
7e5e34d770 New quests can now be created. The created quests don't have initialization code yet. 2019-07-20 21:18:09 +02:00
Daan Vanden Bosch
402bd0d1ef Linting. 2019-07-20 00:15:36 +02:00
Daan Vanden Bosch
15327d1478 Huge performance improvement when translating quest entities. 2019-07-20 00:14:51 +02:00
Daan Vanden Bosch
f670718637 Simplified mesh creation. Some performance improvements. Added debug mode to quest viewer that shows per-section colored area render geometry. 2019-07-19 21:49:59 +02:00
Daan Vanden Bosch
a181847647 Ninja render geometry is now parsed correctly. 2019-07-19 19:34:48 +02:00
Daan Vanden Bosch
8c21ea59c9 Quest editor now has undo/redo. 2019-07-18 15:39:23 +02:00
Daan Vanden Bosch
7b7daa29ac Refactored entity controls. The selection doesn't change anymore while controlling the camera. 2019-07-17 21:59:41 +02:00
Daan Vanden Bosch
8223107921 Refactored model loading code. 2019-07-17 19:37:48 +02:00
Daan Vanden Bosch
3122c256fb Refactored xj parsing code somewhat. 2019-07-16 17:12:57 +02:00
Daan Vanden Bosch
769e0e8377 Fixed issues with textures and tweaked lighting and ground color in quest renderer. 2019-07-13 21:48:18 +02:00
Daan Vanden Bosch
f23fe0091b Walls are not rendered anymore in the quest editor. 2019-07-13 18:58:11 +02:00
Daan Vanden Bosch
7c85081bb0 Objects are now rendered with textures in the quest editor. 2019-07-13 18:12:09 +02:00
Daan Vanden Bosch
60dcbae9b4 Textures are now repeated with mirroring. 2019-07-13 17:40:48 +02:00
Daan Vanden Bosch
46eb7cfdd0 Textures can now be applied to XJ models in the model viewer. 2019-07-13 17:09:28 +02:00
Daan Vanden Bosch
ff40ab7264 Using alpha test instead of transparency in npc models. 2019-07-13 13:43:18 +02:00
Daan Vanden Bosch
8163cd2299 Fixed bug in texture application and tweaked quest renderer camera settings. 2019-07-12 23:55:37 +02:00
Daan Vanden Bosch
ac31ea83f6 The quest editor now shows most enemies with textures. 2019-07-12 21:01:07 +02:00
Daan Vanden Bosch
43ca288221 Textures can now be applied to models in the model viewer. 2019-07-12 18:52:49 +02:00
Daan Vanden Bosch
81c3668706 Fixed bugs in model viewer. Model viewer now automatically pauses when unmounted. NJ texture coordinates are now parsed. 2019-07-12 13:10:51 +02:00
Daan Vanden Bosch
cb5e9427f7 Upgraded dependency minor/patch versions. 2019-07-11 17:40:23 +02:00
Daan Vanden Bosch
36cb131920 Added XVM texture viewer. 2019-07-11 17:30:23 +02:00
Daan Vanden Bosch
a60c69a3ef Refactored area render geometry code. 2019-07-09 20:22:18 +02:00
Daan Vanden Bosch
f1b3df9754 Refactored BufferCursor into a hierarchy of cursors and a ResizableBuffer to improve code clarity. 2019-07-08 23:56:05 +02:00
Daan Vanden Bosch
4e540acf0c Refactored area collision detection geometry parsing code. 2019-07-07 01:16:12 +02:00
Daan Vanden Bosch
9c71c3deb8 Clearer naming of NJ types. 2019-07-06 21:55:02 +02:00
Daan Vanden Bosch
ee7756487d Put player models in the canonical order. 2019-07-04 14:53:39 +02:00
Daan Vanden Bosch
7335042c53 The selected class and animation are now highlighted in the model viewer. 2019-07-03 14:27:44 +02:00
Daan Vanden Bosch
27fdefe74a Two small bugfixes. 2019-07-03 13:29:07 +02:00
Daan Vanden Bosch
f06d6d22e8 Added list of standard player animations to model viewer. 2019-07-03 12:37:40 +02:00
Daan Vanden Bosch
d982c6b1c9 Fixed bug that resulted in vertices being weigthed to the wrong bones. 2019-07-03 11:35:57 +02:00
Daan Vanden Bosch
7da5505124 Fix light in place so that it doesn't rotate with the camera in model viewer. 2019-07-03 10:53:22 +02:00
Daan Vanden Bosch
81c4d03325 Improved idle performance by not rendering at all when there's no user interaction or animation running in any of the renderers. Fixed memory leak. Fixed issues with current frame display and manual frame change in model viewer. 2019-07-03 00:43:17 +02:00
Daan Vanden Bosch
3c8f7ba01e Added lint task and enforced code style in static_generation and test. 2019-07-02 21:20:11 +02:00
Daan Vanden Bosch
19681d69a3 Enforced stricter eslint rules. 2019-07-02 20:56:33 +02:00
Daan Vanden Bosch
3498a10385 Added prettier and unleashed on the code base. 2019-07-02 18:08:06 +02:00
Daan Vanden Bosch
37690ef1e6 Code style consistency. 2019-07-02 17:00:24 +02:00
Daan Vanden Bosch
3c398d6133 Small tweaks. 2019-07-02 13:59:45 +02:00
Daan Vanden Bosch
017eb3e3e0 PSO v2 NJM files can now be parsed. 2019-07-01 21:20:09 +02:00
Daan Vanden Bosch
f19f2df2d2 Added various improvements. 2019-07-01 15:01:40 +02:00
Daan Vanden Bosch
e8226d94be Bugfix: respect the original bone's rotation order in animation keyframes. 2019-07-01 13:05:58 +02:00
Daan Vanden Bosch
6579a53d62 Added some functionality to the model viewer to aid in debugging. 2019-07-01 12:13:05 +02:00
Daan Vanden Bosch
43a4c7503d Refactored binary data format code. 2019-07-01 08:53:16 +02:00
Daan Vanden Bosch
8d9016bb30 Added all standard player models to the model viewer. 2019-06-30 23:55:28 +02:00
Daan Vanden Bosch
342ca81045 Fixed bug in model viewer that prevented animations from playing after changing the model. 2019-06-30 20:03:37 +02:00
Daan Vanden Bosch
a162b6ae62 Added model viewer and refactored the renderer into two separate renderers. 2019-06-30 19:55:30 +02:00
Daan Vanden Bosch
d2d83c82cb Bone weights are now extracted from nj files. 2019-06-30 02:07:59 +02:00
Daan Vanden Bosch
6b1e2e15c3 Models now use skeletons for animation. 2019-06-30 01:28:10 +02:00
Daan Vanden Bosch
3203e0a649 Improved ninja parsing and animation. 2019-06-29 23:18:52 +02:00
Daan Vanden Bosch
a36e177eef Extracting more data from njm files. 2019-06-29 19:09:38 +02:00
Daan Vanden Bosch
de3de9256b Started working on animation support in model viewer. 2019-06-27 18:50:22 +02:00
Daan Vanden Bosch
a639eb683f Some renaming. 2019-06-26 17:47:53 +02:00
Daan Vanden Bosch
056eb50b04 Added support for several formats and PRC decryption. 2019-06-26 17:21:05 +02:00
Daan Vanden Bosch
ab9a6afd54 Fixed bug in quest parsing code. 2019-06-23 02:45:56 +02:00
Daan Vanden Bosch
2ec99ea005 Improved the way npc flags are handled in dat files. 2019-06-22 20:41:26 +02:00
Daan Vanden Bosch
a21d31ce3a Fixed detection of barbarous wolves, pouilly slimes, sinow golds, yowies and kondrieu. 2019-06-22 20:29:16 +02:00
Daan Vanden Bosch
fe3859b782 Hunt methods are now sortable. 2019-06-22 17:05:42 +02:00
Daan Vanden Bosch
5f7a4d5c1d Filter out more quests that don't drop items. 2019-06-22 14:58:57 +02:00
Daan Vanden Bosch
15e652a5f4 Visual bug fix and improved help text for hunt optimizer. 2019-06-22 12:23:24 +02:00
Daan Vanden Bosch
2cec75224e Visual bug fix. 2019-06-22 12:08:03 +02:00
Daan Vanden Bosch
adaa36031e Hunt method times can now be customized by the user. 2019-06-22 01:12:39 +02:00
Daan Vanden Bosch
71feaf7867 Quests are now loaded from a json file generated from quest files. 2019-06-22 00:27:04 +02:00
Daan Vanden Bosch
4a91cb2a29 Added log library. 2019-06-21 20:06:55 +02:00
Daan Vanden Bosch
4b3695dd6f Basic damage calculations are done for DPS calculator. 2019-06-20 18:20:04 +02:00
Daan Vanden Bosch
3bc50a1e63 Now extracting shield and armor stats from ItemPMT for Ephinea. 2019-06-20 18:11:36 +02:00
Daan Vanden Bosch
a684bb65c8 Renamed ItemKind to ItemType for consistency with NpcType. 2019-06-20 14:06:11 +02:00
Daan Vanden Bosch
4a3f5991ed Now using ItemPMT.bin and unitxt_j.prs for item kind list. 2019-06-19 22:14:48 +02:00
Daan Vanden Bosch
d973a31b35 Added server selector so users see only Ephinea is supported. 2019-06-16 20:48:13 +02:00
Daan Vanden Bosch
d35b2356e7 Started working on DPS calculator. 2019-06-16 20:31:48 +02:00
Daan Vanden Bosch
d6f422335d Make sure section ids icons overflow nicely in hunt optimizer. 2019-06-16 13:02:40 +02:00
Daan Vanden Bosch
00c6dc804a Removed unnecessary import. 2019-06-16 12:57:17 +02:00
Daan Vanden Bosch
a71457642c Added section ID icons to hunt optimizer. 2019-06-16 12:55:49 +02:00
Daan Vanden Bosch
414c34221b Added help text to hunt optimizer. 2019-06-16 12:28:44 +02:00
Daan Vanden Bosch
30464680cb Items in the optimization result are now shown in the same order as the wanted list. 2019-06-16 11:43:10 +02:00