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

autoButton & TokenMod - No buttons showing?

Hi all, So I've installed the 0.8.9d v of autoButton, but when I call an attack, I'm not seeing any of the buttons beneath. I'm able to call the !autoButton --buttons command to see what's highlighted and what is, so I know the script's installed and is running, but beyond that, nada. Any help much appreciated. Thanks
Hey Demeggy, Curious where you got a 0.8.9d version. I see that the 1Click version, the one from Roll20's Github is 0.8.0, and Oosh linked a 0.8.1 version in this post  which goes to his Github and on that Github I see 0.8.1, so can you point me to where you got the 0.8.9d version? Also to confirm, is this a Jumpgate game or regular game?
Regular game, so it should be as standard. Grabbed the 0.89d build from the lib-math-intgeration branch; <a href="https://github.com/ooshhub/autoButtons/blob/lib-math-integration/autoButtons.js" rel="nofollow">https://github.com/ooshhub/autoButtons/blob/lib-math-integration/autoButtons.js</a> It's really weird, because I can access the configs and run the commands, it just doesn't generate the buttons when calling dmg attacks either directly or via token actions.
1721475212

Edited 1721475288
So I added the version you linked to a test game that has the D&amp;D 5e sheet by Roll20 and I got buttons when I clicked an attack off the character sheet. Since you say you can get the config to work, what does !autobutton --settings show? Does that match your game's configuration? Are you using the D&amp;D 5e sheet by Roll20? Are you using one of the templates in the list like `&amp;{template:atkdmg} `? For me I see this list of templates in the initial default setup: When you are doing your damage roll or attack and damage roll, if you up arrow in chat to show the roll you just sent is it using a corresponding template in your list like atkdmg or dmg? EDIT: Also just to confirm, are you seeing any messages in the API console? Any errors or warnings posted there?
1721481686

Edited 1721481794
Curious, must be something on my end. - Character sheet is 'D&amp;D 5E by Roll20' - No error in the Mod putput Console - last message is '"=( Initialised autoButtons - v0.8.9 )="' - !autobutton --settings shows; !autobuttons --templates shows; Hitting up after attacking with the npc gives a tonne of output, I can see dmg in there, so I don't think it could be that; @{Auton Duplicate|wtype}&amp;{template:npcatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}}&nbsp; @{Auton Duplicate|npc_name_flag} {{rname=[Wristgun](~-O0oUJv_9KbqVLjRHGej|repeating_npcaction_-O0oTtyT9DhOQXLkta0x_npc_dmg)}} {{rnamec=[Wristgun](~-O0oUJv_9KbqVLjRHGej|repeating_npcaction_-O0oTtyT9DhOQXLkta0x_npc_crit)}} {{type=[^{attack-u}](~-O0oUJv_9KbqVLjRHGej|repeating_npcaction_-O0oTtyT9DhOQXLkta0x_npc_dmg)}} {{typec=[^{attack-u}](~-O0oUJv_9KbqVLjRHGej|repeating_npcaction_-O0oTtyT9DhOQXLkta0x_npc_crit)}} {{r1=[[@{Auton Duplicate|d20}+(+8+0)]]}} @{Auton Duplicate|rtype}+(+8+0)]]}} @{Auton Duplicate|charname_output} Thanks
That template name is npcatk which is not one of the default templates listed.&nbsp; Also I'm not sure where in your template the damage roll is. It looks like only an attack roll in the r1 field. I don't see a damage roll in a field named something like dmg1, dmg2, crit1. So my NPCs are set to always roll damage: So when I when I click on an NPC attack it rolls with the template npcfullatk which is one of the default templates. And probably check the properties as well to&nbsp; @{Shambling Mound|wtype}&amp;{template:npcfullatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}} @{Shambling Mound|npc_name_flag} {{rname=Slam}} {{r1=[[@{Shambling Mound|d20}+(7+0)]]}} @{Shambling Mound|rtype}+(7+0)]]}} {{dmg1=[[2d8 + 4+0]]}} {{dmg1type=bludgeoning}} {{dmg2=[[+0]]}} {{dmg2type=}} {{crit1=[[2d8+0]]}} {{crit2=[[+0]]}} {{description=}} @{Shambling Mound|charname_output} Similarly with the PC character sheets, when I roll an attack it rolls with the atkdmg template which is also one of the default templates. @{Paladin|wtype}&amp;{template:atkdmg} {{mod=+4}} {{rname=Warhammer (One-Handed)}} {{r1=[[@{Paladin|d20}cs&gt;20 + 2[STR] + 2[PROF]]]}} @{Paladin|rtype}cs&gt;20 + 2[STR] + 2[PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 2[STR]]]}} {{dmg1type=Bludgeoning}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}} {{spelllevel=}} {{innate=}} {{globalattack=@{Paladin|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Paladin|global_damage_mod_type}}} ammo= @{Paladin|charname_output} So if you are using a different template you will need to add it to the list of templates and probably the properties too since if you look at the above the properties are dmg1, dmg2, crit1 which are in the properties list:
AHh brilliant, thanks mate. Always takes a second pair of eyes to spot the cause. I haven't been setting my npc's to autoroll damage, which is clearly going to be an issue, so I've changed that and it's made a difference.&nbsp; One last quick q, the mod's GUI is scaled huge in my chatbox compared to normal text and other mod GUIs, is there a way of customising that?
I don't see any obvious way to change style via the CLI. In the code you could play around with font-size if you wanted.