
Hexploration
This thread has been closed. The new support thread for the script is here: https://app.roll20.net/forum/post/6927322/script-hexploration-thread-2/?pageforid=6927322#post-6927322
This thread has been closed. The new support thread for the script is here: https://app.roll20.net/forum/post/6927322/script-hexploration-thread-2/?pageforid=6927322#post-6927322
"ReferenceError: PathMath is not defined\n at getHexesInArea (apiscript.js:14150:20)\n at fillArea (apiscript.js:14114:17)\n at _.each.sel (apiscript.js:14254:13)\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n at msg (apiscript.js:14252:13)\n at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16)\n at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8)\n at /home/node/d20-api-server/api.js:1510:12\n at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560\n at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)"
"⬢⬢⬢ Initialized Hexploration v1.0 ⬢⬢⬢" "Hexploration ERROR: Cannot read property 'get' of undefined" "TypeError: Cannot read property 'get' of undefined\n at Object.persistHex (apiscript.js:1681:21)\n at _.chain.map.hex (apiscript.js:1742:29)\n at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n at fillArea (apiscript.js:1726:6)\n at _.each.sel (apiscript.js:1863:13)\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n at msg (apiscript.js:1861:13)\n at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16)\n at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8)" "Hexploration ERROR: Cannot read property 'get' of undefined" "TypeError: Cannot read property 'get' of undefined\n at Object.persistHex (apiscript.js:1681:21)\n at _.chain.map.hex (apiscript.js:1742:29)\n at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n at fillArea (apiscript.js:1726:6)\n at _.each.sel (apiscript.js:1863:13)\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n at msg (apiscript.js:1861:13)\n at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16)\n at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8)"
G G said:
Thanks, I found it also needs MatrixMath.
Now, that i have the dependencies, it crashes after drawing a single hex.
Errors in log:"⬢⬢⬢ Initialized Hexploration v1.0 ⬢⬢⬢" "Hexploration ERROR: Cannot read property 'get' of undefined" "TypeError: Cannot read property 'get' of undefined\n at Object.persistHex (apiscript.js:1681:21)\n at _.chain.map.hex (apiscript.js:1742:29)\n at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n at fillArea (apiscript.js:1726:6)\n at _.each.sel (apiscript.js:1863:13)\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n at msg (apiscript.js:1861:13)\n at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16)\n at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8)" "Hexploration ERROR: Cannot read property 'get' of undefined" "TypeError: Cannot read property 'get' of undefined\n at Object.persistHex (apiscript.js:1681:21)\n at _.chain.map.hex (apiscript.js:1742:29)\n at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n at fillArea (apiscript.js:1726:6)\n at _.each.sel (apiscript.js:1863:13)\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n at msg (apiscript.js:1861:13)\n at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16)\n at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8)"
Stephen L. said:
Right, this is mentioned in the script's README/One-Click documentation.
G G said:
Okay now I have VectorMath installed too, it's working. It's pretty great.
This will be a huge benefit to hexmapping exploration games.
It's a shame it doesnt work for squares, it would be a pretty useful alternative to fog of war i think for people who cant use dynamic lighting because its too demanding, or whatever. Just have a token that represents vision and move it around to clear a room. Manual fog of war is so clunky.
Adam E. said:
I used this last weekend for some hex crawling my group was doing. Things went really well. Nicely done!
I edited the script to make the hexes black with dark grey outlines because I found that easier on the eyes than the built-in yellow. Maybe the ability to customize the color would be nice.
I also moved a copy of the world map from the Map layer to the GM layer, lining them up exactly. That way, when I had it drop all the hexes on the mostly-unexplored world, I could still tell where things were since I now have a GM-only copy of the map right on top. It made it hard for me to see the "You Are Here" token, but I already know where that is, so it was doable.
I don't know if that's something you could automate with the script as well, but I would sure like it for the next world map I set up this way.
Could you add an option, where you draw a path, and the script fills the complete map EXCEPT the hexes that were covered by the path area? Like an inverted fill?
No, there is currently no interface in the API to manipulate the Fog of War.Havoc said:
Question: Are you able to port this thing into Fog of War? To create a fog of war based on the same selection and make it disappear one by one using a token?
Splendid! Awesome work man! <3Stephen L. said:
Update: v1.1
Version 1.1 is now available in beta from the merge request here: https://github.com/Roll20/roll20-api-scripts/pull/...
This update has the following changes:
* The script now has a chat menu interface.
* Implemented script configurations for hex colors.
* Implemented reveal distance configuration. When a token moves, it will also reveal hexes out to this distance.