Commit Graph
100 Commits
Author SHA1 Message Date
Manuel Vögele 8eb29a4dce Prevent creation of unnecessary waypoints 2022-02-09 21:08:28 +01:00
Manuel Vögele db7dd1c1c9 Allow walking through open doors 2022-02-09 20:54:05 +01:00
Manuel Vögele 0ccfc6ef2f Merge branch 'develop' into pathfinding 2022-02-09 11:00:08 +01:00
Manuel Vögele 22112ddfd5 Release v1.11.4 2022-02-09 10:58:02 +01:00
Manuel Vögele f59b0f9d2d When changing the measurement mode via a keybinding send the updated ruler state to other players immediately (fixes #152) 2022-02-09 10:51:19 +01:00
Manuel Vögele 443cfd4317 Don't apply snapping to rulers received from other players (fixes #150) 2022-02-09 10:41:01 +01:00
Manuel Vögele fb3665d758 If no measurement has been performed yet before dropping the token, schedule a measurement on drop (fixes #153) 2022-02-09 10:30:17 +01:00
Manuel Vögele 96cb690431 Use foundries new, improved way of wainting for animations when moving tokens (fixes #156) 2022-02-09 08:57:30 +01:00
Manuel Vögele f5b0e145ac Merge branch 'develop' into pathfinding 2022-02-03 18:57:03 +01:00
Manuel Vögele fa581ddfc3 Release v1.11.3 2022-02-03 18:23:35 +01:00
Manuel Vögele 56e15be4ca Don't perform pathfinding on other player's rulers 2022-02-03 17:59:35 +01:00
Manuel Vögele 1509307313 Show the setting for automatic pathfinding to players if they are allowed to use pathfinding 2022-02-03 17:59:09 +01:00
Manuel Vögele 68885385ea Formatting fix 2022-02-03 17:42:35 +01:00
Manuel Vögele 78b1e8cc4e Clippy 2022-02-02 10:51:30 +01:00
Manuel Vögele 4d6543174a Always keep tokenSize/2 distance from walls 2022-02-02 10:36:03 +01:00
Manuel Vögele b55af992ec Remove number of pathfinding nodes even further 2022-02-02 09:38:30 +01:00
Manuel Vögele 6748617f6a Add "DnD5e Drag Ruler Integration" and "Shadow of the Demon Lord" to list of Drag Ruler integraion 2022-02-01 20:57:44 +01:00
Manuel Vögele 0f288b65d9 Remove number of pathfinidng nodes to improve performance 2022-02-01 20:23:38 +01:00
Manuel Vögele 9253f3decd Use an internal colission cecker for better performance 2022-02-01 17:58:06 +01:00
Manuel Vögele 188f6c15bf Cargo fmt 2022-02-01 13:57:14 +01:00
Manuel Vögele 6273f7f8a7 Merge branch 'develop' into pathfinding 2022-02-01 12:03:53 +01:00
Manuel Vögele 9d5dccb504 Release v1.11.2 2022-02-01 11:35:46 +01:00
Manuel Vögele a252da620a Always allow the GM to use pathfinding 2022-02-01 11:33:33 +01:00
Manuel Vögele 6ce076fa43 Merge branch 'develop' into pathfinding 2022-02-01 02:59:27 +01:00
Manuel Vögele 39f9204fa7 Destroy labels that are no longer used 2022-02-01 02:58:55 +01:00
Manuel Vögele 1f434b3f6b Cleanup edge to the last node when done with pathfinding 2022-02-01 01:58:59 +01:00
Manuel Vögele 1e14ff24b0 Implement more clippy suggestions 2022-01-31 23:31:29 +01:00
Manuel Vögele cd61aa948e Implement clippy suggestions 2022-01-31 23:29:01 +01:00
Manuel Vögele 8817775201 Several pathfinding bugfixes 2022-01-31 23:09:16 +01:00
Manuel Vögele 673fa42a20 Call gridless pathfinder from rust code 2022-01-31 22:33:02 +01:00
Manuel Vögele 1ee406a047 Include inline snippets in release archive 2022-01-31 22:00:39 +01:00
Manuel Vögele 08f41ed2ff Rust code for gridless pathfinding 2022-01-31 21:48:20 +01:00
Manuel Vögele dc85609a75 Wasm skeleton 2022-01-31 11:03:25 +01:00
Manuel Vögele 472b373f13 Merge branch 'develop' into pathfinding 2022-01-30 14:29:18 +01:00
Manuel Vögele 10633e4e2a Add .gitignore 2022-01-30 14:28:02 +01:00
Manuel Vögele 57ed4d2cc5 Rename src/ to js/ 2022-01-30 14:24:10 +01:00
Manuel Vögele 81acdc3e63 Merge branch 'develop' into pathfinding 2022-01-30 13:53:44 +01:00
Manuel Vögele f3e1492edd Release v1.11.1 2022-01-30 10:55:10 +01:00
Manuel Vögele 7ac1c828b6 Perform pathfinding on grid-corner to grid-corner basis for tokens with size divisible by two (fixes #144) 2022-01-30 10:51:58 +01:00
Manuel Vögele 1972498b05 Avoid unnecessary diagonal calculation on hex grids 2022-01-30 10:16:19 +01:00
Manuel Vögele 64bce387d1 Merge branch 'develop' into pathfinding 2022-01-30 00:42:00 +01:00
Manuel Vögele 4a5b9bbb11 Release v1.11.0 2022-01-30 00:22:43 +01:00
Manuel Vögele d467fe5bcf Add pathfinidng support for square and hex grids 2022-01-30 00:06:48 +01:00
Manuel Vögele 6a5c96e425 Immediately re-measure when the pathfinding mode is changed 2022-01-30 00:06:14 +01:00
Manuel Vögele 43c05745c8 Don't try to paint debug info if debugging is disabled 2022-01-30 00:01:40 +01:00
Manuel Vögele efc3eb871c Hex support 2022-01-29 23:54:26 +01:00
Manuel Vögele 8f134a49ba Fix errors 2022-01-29 23:33:59 +01:00
Manuel Vögele e2c7fd992b Comment changes 2022-01-29 23:20:04 +01:00
Manuel Vögele 2e06a2440c Preparations for hex 2022-01-29 23:16:05 +01:00
Manuel Vögele 1c27f1a4a8 Small refactor 2022-01-29 23:04:34 +01:00
Manuel Vögele 5e96be458e Fix a regression in 5/5/5 2022-01-29 22:14:34 +01:00
Manuel Vögele b56d4fd14d On 5/10/5, start pathfinding on the correct layer 2022-01-29 22:03:15 +01:00
Manuel Vögele b822ada782 Re-check for grid settings everytime pathfinding is restarted 2022-01-29 13:40:55 +01:00
Manuel Vögele b610a00f0f Add note about a possible oversight 2022-01-29 12:01:42 +01:00
Manuel Vögele fe3efd7fe4 Proper waypoint deletion support while pathfinding 2022-01-29 11:41:00 +01:00
Manuel Vögele 5f971862e8 Better pathfinding enabling scheme 2022-01-29 00:14:23 +01:00
Manuel Vögele b8c29de841 Only enable pathfinding on square grids 2022-01-29 00:06:46 +01:00
Manuel Vögele a5b40382d7 Don't remove calculated path when a new waypoint is created 2022-01-28 23:59:51 +01:00
Manuel Vögele ce9bea14fc Show distance labels for points placed by pathfinding 2022-01-28 23:55:58 +01:00
Manuel Vögele a404353d38 5/10/5 support 2022-01-28 23:39:49 +01:00
Manuel Vögele a132ac2bf3 Rename functions to use snake case 2022-01-28 23:05:24 +01:00
Manuel Vögele e3a785d8fe Preparations for 5/10/5 2022-01-28 23:05:24 +01:00
Manuel Vögele 6e0571c565 Improve comment 2022-01-28 22:16:22 +01:00
Manuel Vögele 4c006d34c9 Add keybinding for the pathfinding feature 2022-01-27 23:58:51 +01:00
Manuel Vögele 9140ef3acf Add setting to forbid the usage of pathfinding 2022-01-27 23:29:08 +01:00
Manuel Vögele 7e19fb95b0 Don't do pathfinding by default 2022-01-27 23:16:32 +01:00
Manuel Vögele c9696f8725 Add an option to do pathfinding automatically 2022-01-27 23:07:58 +01:00
Manuel Vögele 54cebc3192 Reduce broken caching 2022-01-27 23:07:58 +01:00
Manuel Vögele 310014bb8a Broadcast pathfinding waypoints to other players 2022-01-27 23:07:58 +01:00
Manuel Vögele d53399fa1e Penalize diagonals minimally to disincentivise using unnecessary diagonals 2022-01-27 23:07:58 +01:00
Manuel Vögele 369159e6bb Initial working pathfinding impl 2022-01-27 23:07:28 +01:00
Manuel Vögele 1f770f7597 Release v1.10.3 2022-01-27 14:00:29 +01:00
Manuel Vögele fa62e1d9c4 Resetting the token drag vision moved from token drop to token cancel in foundry 9.245 2022-01-27 12:47:39 +01:00
Manuel Vögele f18ce33779 Release v1.10.2 2022-01-17 21:24:15 +01:00
Manuel Vögele 34cead5cba Clean up vision of clones when dropping a token (fixes #140) 2022-01-17 13:42:48 +01:00
Manuel Vögele eeb6db76a6 Measure the full path to determine highlight color (fixes #142) 2022-01-17 12:50:05 +01:00
Manuel Vögele 9c44994fd2 Add "A5e Drag Ruler Integration" to the list of game system integrations 2022-01-14 12:58:38 +01:00
Manuel Vögele 23c1a903a0 Release v1.10.1 2022-01-07 15:12:24 +01:00
Manuel Vögele 1b3f563c4e Keybindings no longer break if no scene is active (fixes #113) 2022-01-07 15:10:17 +01:00
Manuel Vögele fae1bb8fe0 Release v1.10.0 2022-01-03 09:15:10 +01:00
Manuel Vögele f203bea673 Add Symbaroum drag ruler integration to the list of game system integrations 2022-01-03 08:54:05 +01:00
Manuel Vögele 84c18a6221 Organzie imports 2022-01-03 00:44:16 +01:00
Manuel Vögele 0573adf0fe Sort translations by language code 2022-01-03 00:42:02 +01:00
Manuel Vögele 76c71329d6 Add french translation (thanks Elfenduli) (provided by & closes #129) 2022-01-03 00:42:02 +01:00
Manuel Vögele f918e148fe Add support for difficult terrain measurements on euclidean gridded scenes (resolves #134) 2022-01-03 00:23:35 +01:00
Manuel Vögele 52d77ba0a4 Code changes for v9 compatibility (moves keybindings into the new foundry API) 2022-01-02 18:32:30 +01:00
Manuel Vögele b06169f149 Remove migration from unnamed version 2022-01-02 18:32:00 +01:00
Manuel Vögele c914eb23ae Port to libwrapper 2022-01-02 18:32:00 +01:00
Manuel Vögele c8a7c73ace Immediately override the Ruler after extension to increase interoperability with other modules 2022-01-02 18:32:00 +01:00
Manuel Vögele 76cff06b66 Update formatting of japanes localization 2022-01-02 18:31:29 +01:00
Manuel Vögele 40b882ec93 Release v1.9.1 2021-12-28 17:20:08 +01:00
Manuel Vögele 1c8ce20a45 Move fallback to default color to a location where it's accessible (fixes #137) 2021-12-28 16:17:52 +01:00
Manuel Vögele a3e0ea9832 Typo 2021-11-24 16:30:13 +01:00
Manuel Vögele aa2b8b3928 Release v1.9.0 2021-11-24 09:53:02 +01:00
Manuel Vögele a164811bb6 Add hint that shift can disable gridless snapping to the setting 2021-11-24 09:52:31 +01:00
Manuel Vögele 752b8375ab Non-square tokens are now fully supported on square grids (fixes #116) 2021-11-24 09:14:27 +01:00
Manuel Vögele 32b38d8efe Make tokens snap to their speed ranges on gridless scenes (resolves #71) 2021-11-23 11:10:21 +01:00
Manuel Vögele c3a62e3646 Only switch to the next color once the distance is 0.01 above the allowed distance
The goal of this is to reduce color flickering noise due to floating number errors
2021-11-21 22:55:02 +01:00
Manuel Vögele 39f7bab4b6 Pass enableTerrainRuler option to all measureDistances calls
This fixes a regression introduced with e1265ad6fb
2021-11-21 20:58:18 +01:00
Manuel Vögele a3be4ceb03 Remove support for TerrainLayer (Enhanced Terrain Layer stays supported) 2021-11-21 16:52:55 +01:00