Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Help: Random Dgn Gen With Lighting

1447859388

Edited 1447859573
Old Thread Link Since the old topic is over 3 months, I can't exactly post there and ask for help, so here goes. I quite literally have no idea what I am doing when it comes to API, scripting, or anything of that matter. I followed the Wiki and thread as best I could, but I still am not having any luck getting the Script to work right. This is my latest Issue. So any help at all is appreciated. 
1447862322
The Aaron
Pro
API Scripter
Can you post a link to the original script thread?
Isn't the link at the top of my post the one?
1447871584
The Aaron
Pro
API Scripter
Ah.. sorry, I missed the link.  =D  I should really learn to read...  I pinged Stephen about it, he should be able to pop in and diagnose the issue.  =D
For whenever Stephen pops in,&nbsp; <a href="https://app.roll20.net/join/502823/fSCWng" rel="nofollow">https://app.roll20.net/join/502823/fSCWng</a> This is the link to my campaign, so if I ever manage to be on around the same time as him, I can promote him to GM for a fix.
1447943830
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
The usual trouble with this script is the names in the name field for the rollable table. And its usually a&nbsp;leading " "&nbsp; (space) or a trailing " " (space) in the name field Example: "Geo_Type_A_0001 " (would be bad... trailing " " (space.) " Geo_Type_A_0001" (would be bad...&nbsp;leading " " (space.) "Geo_Type_A_0001" would be right.... Also I don't think "Geo_Type_A_0045" downloads with the total pack... seem to remember it needing to be down loaded by itself. I am hoping we will have access to market content with API soon... and then I will update all of these scripts and this will be much easier for everyone. (be sure to vote: <a href="https://app.roll20.net/forum/post/1749220/api-tags" rel="nofollow">https://app.roll20.net/forum/post/1749220/api-tags</a>... ) Let me know if that helps.
1447946009

Edited 1448035659
Don't think it's that. I went down the API, all of them are in line so I don't think it is that. I also made sure to go pluck the Geo 45 off the Wiki page, so I do have it as part of my rolltable. Like I mentioned before, if you want to come into my campaign, I can bump you to go Co GM and you could maybe take a look at it yourself. The API also has the&nbsp; placeTile = function(name, l, t, spin) { &nbsp; &nbsp; obj = _.find(geomorphicTilesArray, function(obj) { &nbsp; &nbsp; &nbsp; &nbsp; return obj.tileName == name; &nbsp; &nbsp; }); &nbsp; &nbsp; var left = l * 840 + 420; &nbsp; &nbsp; var top = t * 840 + 420; &nbsp; &nbsp; var url = obj.tileURL; &nbsp; &nbsp; var r = spin; &nbsp; &nbsp; marker = createObj("graphic", { &nbsp; &nbsp; &nbsp; &nbsp; _type: "graphic", &nbsp; &nbsp; &nbsp; &nbsp; _subtype: "token", &nbsp; &nbsp; &nbsp; &nbsp; _pageid: geomorphicMapId, &nbsp; &nbsp; &nbsp; &nbsp; layer: "map", &nbsp; &nbsp; &nbsp; &nbsp; width: 840, &nbsp; &nbsp; &nbsp; &nbsp; height: 840, &nbsp; &nbsp; &nbsp; &nbsp; left: left, &nbsp; &nbsp; &nbsp; &nbsp; top: top, &nbsp; &nbsp; &nbsp; &nbsp; imgsrc: url, &nbsp; &nbsp; &nbsp; &nbsp; rotation: r, &nbsp; &nbsp; &nbsp; &nbsp; sides: sideString, &nbsp; &nbsp; &nbsp; &nbsp; currentSide: obj.side &nbsp; &nbsp; }); &nbsp; &nbsp; marker = fixNewObject(marker); }; //--Utility Functionvar&nbsp; fixNewObject = fixNewObject || function(obj) { &nbsp; &nbsp; var p = obj.changed._fbpath; &nbsp; &nbsp; var new_p = p.replace(/([^\/]*\/){4}/, "/"); &nbsp; &nbsp; obj.fbpath = new_p; &nbsp; &nbsp; return obj; }; That you posted on the third page, still not getting anything to work proper.
Sorry for the double post, but any new information is good information, right? Disabled the old script, made a fresh one straight off the raw and now I am getting this. To be sure, I went and doubled checked all of my Geo tiles to make sure I had all of them correctly named and weighted. As best as I can tell, I don't think I have messed up anywhere. Maybe I should just scrap the roll table and start it all over again?
1448043480
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
I will try to look at this Sunday... I just have very little bandwidth for the next two days.