Commit Graph

85 Commits

Author SHA1 Message Date
Daan Vanden Bosch
38f4bdd484 Renamed "Debug Log" to "Debug" and moved all debugging related buttons to its toolbar. 2020-04-30 18:27:19 +02:00
jtuu
fb0f49611a Show instruction documentation on hover over. 2020-04-29 07:14:21 +03:00
Daan Vanden Bosch
e950fb0e78 Updated FEATURES.md. 2020-04-25 20:43:14 +02:00
Daan Vanden Bosch
b276ba988e Quests can now be saved in GC format. 2020-01-16 21:45:20 +01:00
Daan Vanden Bosch
542f61bf0c Improved error handling in viewer. 2020-01-06 23:32:14 +01:00
Daan Vanden Bosch
8580cd4f66 The model viewer now shows a problems popup when loading a file failed or succeeded with some problems. 2020-01-06 21:09:44 +01:00
Daan Vanden Bosch
93e05ea614 - Moved instructions/opcodes and DFA code to core to avoid dependency from core to quest_editor
- When the assembly worker updates map designations, it now takes map_designate and map_designate_ex into account
2020-01-02 18:42:08 +01:00
Daan Vanden Bosch
7806fae98b Actions can now be added to events. 2019-12-31 23:45:49 +01:00
Daan Vanden Bosch
6a88c4558b Lock door and unlock door actions are now editable. 2019-12-31 23:10:27 +01:00
Daan Vanden Bosch
d824984889 - Events are now serialized in the order that they were deserialized
- When adding a new event while an existing event is selected, the new event will now have the selected event as parent
- Generated event IDs now follow the SEGA convention more closely
2019-12-31 20:00:43 +01:00
Daan Vanden Bosch
bc95a490ca Refactored QuestEventDagModel. 2019-12-30 16:40:58 +01:00
Daan Vanden Bosch
5e8467e7ed QuestEventDagModel now enforces connectivity. 2019-12-30 02:19:38 +01:00
Daan Vanden Bosch
8d1721fd4b Undo and redo now work correctly for deleting events. 2019-12-30 01:29:00 +01:00
Daan Vanden Bosch
596bd103da Events can now be selected by clicking anywhere on the event and the selected event can be deleted by pressing the delete key. 2019-12-29 23:00:09 +01:00
Daan Vanden Bosch
5b5ce69d07 You can now view just the NPCs of a specific wave by clicking a button next to the wave ID in the events view. 2019-12-27 16:56:48 +01:00
Daan Vanden Bosch
994afa7387 Refactored HTML element creation code. Removed PropertyChangeEvent, properties don't emit their old value anymore. Added an EventsController and moved some code from EventsView and QuestEditorStore to it. 2019-12-27 00:55:32 +01:00
Daan Vanden Bosch
2808983add Added DisposablePromise to facilitate cancelling promises that are underway when a component is disposed. Added EntityInfoController with unit test and added tests for EntityInfoView. 2019-12-26 00:44:30 +01:00
Daan Vanden Bosch
99d50d754d Replaced js-logger. Improved testability with mocks, improved test configuration and code improvements. 2019-12-25 00:17:02 +01:00
Daan Vanden Bosch
243638879c Entity counts in area select are now updated when adding or removing entities. Added more unit tests. 2019-12-24 03:04:18 +01:00
Daan Vanden Bosch
100272a115 Added a QuestInfoController and added unit tests for QuestInfoView. 2019-12-23 22:38:44 +01:00
Daan Vanden Bosch
ebe2c78ca9 Stop the quest runner when a different quest is set. 2019-12-22 23:38:22 +01:00
Daan Vanden Bosch
66b8e808dd Fixed bug in QuestRunner that prevented the correct episode from reaching the VM. Improved logging performance in several different components. 2019-12-22 23:15:05 +01:00
Daan Vanden Bosch
be144ce9b1 Event section IDs and delays can now be edited. 2019-12-22 17:24:22 +01:00
Daan Vanden Bosch
33026ce015 Improved golden layout config persistence. A prompt is now shown when the user tries to leave the page after making changes to the current quest. Set production log level to INFO. 2019-12-22 15:30:16 +01:00
Daan Vanden Bosch
f1374fe100 Improved log view performance and fixed bug in quest runner. 2019-12-22 04:34:50 +01:00
Daan Vanden Bosch
05c9f3ce81 All code now uses HttpClient interface instead of fetch for improved testability. 2019-12-21 22:49:41 +01:00
Daan Vanden Bosch
8ce19fac62 Most dependencies are now injected to improve testability. 2019-12-21 19:40:42 +01:00
Daan Vanden Bosch
f8a9c65086 NPC wave numbers are now shown in the entity info view. 2019-12-21 15:56:24 +01:00
Daan Vanden Bosch
e4dda8c1c7 Added key bindings for debugging actions. 2019-12-20 18:20:02 +01:00
Daan Vanden Bosch
663ad75435 Debugging now happens in the VM itself, this simplifies the code. 2019-12-20 16:10:50 +01:00
Daan Vanden Bosch
f8fc12c468 Fixed some bugs and added VM support for bb_map_designate. 2019-12-20 00:11:54 +01:00
Daan Vanden Bosch
86187a0539 Fixed bug in script editor that would add breakpoints whenever a line was deleted. 2019-12-18 22:58:46 +01:00
Daan Vanden Bosch
2366cb3aa0 Refactored script debugging code to avoid circular dependencies and separate concerns. 2019-12-18 22:37:26 +01:00
Daan Vanden Bosch
28b8fa03d9 Simplified quest logging system. 2019-12-18 20:06:09 +01:00
jtuu
8582a25bc3 Lint 2019-11-16 18:07:21 +02:00
jtuu
6e41b6fb79 Reworked script editor decorations.
Breakpoints now move correctly when script is edited.
2019-11-15 19:59:05 +02:00
jtuu
b8f0cbfcb3 Added running and paused properties to QuestRunner.
Also tried to improve the situation with the circular dependencies.
2019-11-15 19:59:05 +02:00
jtuu
911bde2bd9 Highlight the source location currently being executed when VM pauses. 2019-11-14 00:34:07 +02:00
jtuu
144e9513ac Added toggleable icons that represent breakpoints in the script editor. 2019-11-13 21:51:30 +02:00
jtuu
b9e762fa6e Use the new message log in QuestRunner. 2019-11-08 18:34:58 +02:00
jtuu
7e99857baf Added a message log in the quest editor.
QuestEditorStore was extended to hold the state of the message log. The view is handled by a new core GUI class MessageLog.
2019-11-08 15:07:46 +02:00
Daan Vanden Bosch
9545f056ab Added QuestRunner for managing game state, orchestrating the VM and controlling the visual aspects of a virtual quest run. 2019-11-05 21:07:17 +01:00
jtuu
89a119e90d Modified the function convert_quest_from_model to do a deep copy of the given object.
Added a couple other cloning functions.
2019-11-01 18:13:32 +02:00
Daan Vanden Bosch
f1fa19238d Event DAG edges are now shown with lines. 2019-10-31 19:11:14 +01:00
Daan Vanden Bosch
95da6e9e57 Logging when duplicate events are encountered. 2019-10-29 15:26:10 +01:00
Daan Vanden Bosch
5f1b3d5ff1 Quest events are now grouped in DAGs. 2019-10-29 15:22:46 +01:00
Daan Vanden Bosch
9b1bc675a2 Fixed compilation issues and fixed bug in SimpleListProperty (length was not correctly initialized). 2019-10-11 00:04:01 +02:00
Daan Vanden Bosch
ff8f02fe5b Refactored events model and added a basic view for it behind a feature flag. 2019-10-10 23:11:52 +02:00
Daan Vanden Bosch
c287fdeb2f Renamed event-related types. Updated feature list. 2019-10-10 19:47:38 +02:00
Daan Vanden Bosch
9803bfe125 Wave data is now parsed/written and converted to models. 2019-10-10 13:47:43 +02:00