Attachment 29398
The problem repeat in all character sheets on my campaign, action tab.
Printable View
Attachment 29398
The problem repeat in all character sheets on my campaign, action tab.
That is the downside of extension making from what I can see, at least I have not seen another way to do it. This is my first though ;)
II am not having issues with the character sheets, I would be interesting in what errors you are seeingQuote:
n the action tab, all character sheets broken in the scripts, i remove the extension and the problem is solved.
Look my error uploadAttachment 29399
You can minimize the impact by overriding only the ActionAttack functions that you've changed. This won't make it 100% change proof, but might minimize the possibility of ruleset changes breaking the extension.
Unfortunately (probably fortunately for most users) I plan on doing a lot of ruleset changes over the coming months, so the chances of extensions breaking and needing fairly regular updating will be high. Sorry.
I can duplicate that if I open a char and use the attack as DM before I open the CT and use the buttons. I will look deeper into it.
That appears to be the issue. It is not initializing the buttons in the window until the window has been opened. So, I will have to look
for a way to initialize those.
As a workaround until I get a fix in place you can open the CT first, as this only affects the GM, the players will not see the error.
I look forward to the updates, so no complaints from me!
Now that I have figured out how to make it flow better I might go back and look and see it that might be possible to take a section, I am not sure with the way it ties into all the modifer code it will though
You won't be able to initialize them without the window being open as the windowinstance container isn't there.
But, you don't really need to initialize them, you just need to check to see if the window exists.
Try the following:
This only tries to access the attack buttons if the window instance exists (isn't nil).Code:if User.isHost() then
if rRoll.sType == "attack" then
buttonWindow = Interface.findWindow("combattracker_host","combattracker");
if buttonWindow ~= nil then
buttonWindow["ATT_MULTI_2"].setValue(0);
buttonWindow["ATT_MULTI_3"].setValue(0);
end
end
end