
If other people make tiles, will the code need to be updated to include them (and the lighting paths for them?)
Your scripts are currently disabled due to an error
that was detected. Please make appropriate changes to your scripts and
click the "Save Script" button and we'll attempt to start running them
again. More info...
For reference, the error message generated was:
TypeError: Cannot read property 'blocked' of undefined
at evalmachine.<anonymous>:618:15
at Array.forEach (native)
at Function._.each._.forEach (/home/symbly/www/d20-api-server/sandcastle/node_modules/underscore/underscore.js:78:11)
at buildTileArray (evalmachine.<anonymous>:616:7)
at geomorph (evalmachine.<anonymous>:565:35)
at processMessage (evalmachine.<anonymous>:508:31)
at evalmachine.<anonymous>:502:61
at eval (
Jarrod . said:
You actually have to click on the tile set and go in and look through for 0045. I had the same issue where it wasn't in the grouped download.
As far as the error message, try disabling the script and reenabling it.. That's worked for me before.
Stephen S. said:
I just setup a new campaign.
The only item I copied over was my roll able table.
I went to the Gist link and clicked "copy raw"
Which goes to here
Copied all and pasted into a new script.
No other changes where made or actions taken.
So it may be in the roll able table.... or something else.... any other clues as to what is happening?
ReferenceError: geomorphicTilesTableItems is not defined
at buildTileArray (evalmachine.<anonymous>:869:12)
at geomorph (evalmachine.<anonymous>:804:35)
at processMessage (evalmachine.<anonymous>:747:31)
at evalmachine.<anonymous>:741:61
at eval (
Stephen S. said:
So its breaking in the buildTileArray function
This takes the items in the roll able table, and for each one, compares it to each item in the var geomorphicTilesInformation array where the names are equal....
I updated the script in the lead post... lets see if we get you a bit further with the changes... be sure to use the link because the code displayed in the forum might not be the most current.
Keith M. said:
Maybe I'm crazy, but I am having difficulty finding the script. Where is the script to be ran?
When I run the Create-Map-Layer macro, it doesn't place all of of the tiles. Can anyone help me out with that one?
Leo said:
Hm... I just finished setting up the rollable table (only found tiles up to #44, not #45) and now I realize that the gist link seems to be broken. The link points to https://gist.github.com/BaldarSilveraxe/9075585 but I get the following error:
"Whoops.
We seem to have missed the gist of that gist you were looking for."
Hopefully it's just a problem on GitHub's gist end.
Jarrod . said:
You actually have to click on the tile set and go in and look through for 0045. I had the same issue where it wasn't in the grouped download.
As far as the error message, try disabling the script and reenabling it.. That's worked for me before.
buildTileArray = function() {
geomorphicTilesArray = new Array();
var count = 0
_.each(geomorphicTilesTableItems, function(geomorphicTilesTableItemsEach) {
obj = _.find(geomorphicTilesInformation, function(obj) {return obj.tileName == geomorphicTilesTableItemsEach.get("name");});
log(obj.tileName)
if(obj.blocked == false){
geomorphicTilesArray.push({
tileName: geomorphicTilesTableItemsEach.get("name"),
tileURL: geomorphicTilesTableItemsEach.get("avatar").replace("med.jpg?","thumb.jpg?"),
edge: obj.edge,
corner: obj.corner,
entrance: obj.entrance,
type: obj.type,
rotation: obj.rotation,
rarity: obj.rarity,
blocked: obj.blocked,
side: count
});
count++
};
});
};