Just when you relaunched they were hosed ?Phergus wrote: Odd thing is that the buttons all work fine as long as the session is going.
MapTool 1.3 Development Build 37
Moderators: dorpond, trevor, Azhrei, Craig
- trevor
- Codeum Arcanum (RPTools Founder)
- Posts: 11311
- Joined: Mon Jan 09, 2006 4:16 pm
- Location: Austin, Tx
- Contact:
What steps are you taking to create the new button ? I don't know that code very well, but if you let me know the steps I can debug it.Phergus wrote:The label and the command both. It did this another half-dozen times with other buttons as well.
Odd thing is that the buttons all work fine as long as the session is going.
Dreaming of a 1.3 release
Yes.trevor wrote:Just when you relaunched they were hosed ?Phergus wrote: Odd thing is that the buttons all work fine as long as the session is going.
Pretty straightforward.trevor wrote:What steps are you taking to create the new button ? I don't know that code very well, but if you let me know the steps I can debug it.
Create first button.
* Right-click/New
* Rick-click/Edit
* Enter macro, change label, change color, save.
Create second from first
* Right-click/Duplicate
* Rick-click/Edit
* Change macro, change label, save.
Create third from second
* Right-click/Duplicate
* Rick-click/Edit
* Change macro, change label, save.
And so on. Along with the one posted above I also did 14 goto buttons. Some were preserved and some weren't. No pattern that I could see as they all were done the same way. Duplicate previous button to get the next.
On a previous campaign save, 12 of 14 were preserved but the next save kept only the very first one.
Anyone else have this bugg ?
When my players Roll Initiative or add hps after healing the character stats dont update.
Example:
I calculte the MaxHp :
MaxHp : {(ClassHP+Constitution)+(ClassHpLevel*Level)+Toughness}
when a player heal using this :
<span>[HealingGained = ChangeHP][HP = min((max(HP,0)) +HealingGained,MaxHP)][state.Dying = 1 - max(0,min(1,HP))][state.Bloodied = 1 - max(0, min(1,HP - Bloodied))]</span> <b>[HealingGained]!</b>
The HP property dont get updated ? same happens for Initiative and other properties i whant to update during gameplay.
Example:
I calculte the MaxHp :
MaxHp : {(ClassHP+Constitution)+(ClassHpLevel*Level)+Toughness}
when a player heal using this :
<span>[HealingGained = ChangeHP][HP = min((max(HP,0)) +HealingGained,MaxHP)][state.Dying = 1 - max(0,min(1,HP))][state.Bloodied = 1 - max(0, min(1,HP - Bloodied))]</span> <b>[HealingGained]!</b>
The HP property dont get updated ? same happens for Initiative and other properties i whant to update during gameplay.
It isn't really odd because the UI part of the buttons is seperate from their data which is kept in campaign itself. UI will always work but apparently saving has problems.Phergus wrote:The label and the command both. It did this another half-dozen times with other buttons as well.
Odd thing is that the buttons all work fine as long as the session is going.
I probably forgot creating new instances of button data on duplication . So it only copies the reference to duplicated data.Phergus wrote:And so on. Along with the one posted above I also did 14 goto buttons. Some were preserved and some weren't. No pattern that I could see as they all were done the same way. Duplicate previous button to get the next.
On a previous campaign save, 12 of 14 were preserved but the next save kept only the very first one.
Let me guess: If you create 1 button from scratch and duplicate it n times and then save, when you reload the campaign you end up with only 1. If you create 2 from scratch and duplicate them you end up with 2. Correct?
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Re: Anyone else have this bugg ?
I have no problem with the above and have used the healing macro (or some variation in 2 games so far.raymondm wrote:When my players Roll Initiative or add hps after healing the character stats dont update.
Example:
I calculte the MaxHp :
MaxHp : {(ClassHP+Constitution)+(ClassHpLevel*Level)+Toughness}
when a player heal using this :
<span>[HealingGained = ChangeHP][HP = min((max(HP,0)) +HealingGained,MaxHP)][state.Dying = 1 - max(0,min(1,HP))][state.Bloodied = 1 - max(0, min(1,HP - Bloodied))]</span> <b>[HealingGained]!</b>
The HP property dont get updated ? same happens for Initiative and other properties i whant to update during gameplay.
Here is a dumb question, what version of maptool are you (and/or the players if THEY are the ones running the macro) using? Whoever is running the macro must be using b35 or higher (I think thats the release where the setting of token properties came out).
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
I was referring to the fact that the macros worked correctly and each one does something unique even though they were copied from each other.Ryss wrote:It isn't really odd because the UI part of the buttons is seperate from their data which is kept in campaign itself. UI will always work but apparently saving has problems.Phergus wrote:The label and the command both. It did this another half-dozen times with other buttons as well.
Odd thing is that the buttons all work fine as long as the session is going.
That's what I expect is happening, yes.Ryss wrote:I probably forgot creating new instances of button data on duplication . So it only copies the reference to duplicated data.
More or less. When I create one and duplicate it to create the second, then create the third from the second and the fourth from the third ... and then saved, it lost the second and the last one created.Ryss wrote:Let me guess: If you create 1 button from scratch and duplicate it n times and then save, when you reload the campaign you end up with only 1. If you create 2 from scratch and duplicate them you end up with 2. Correct?
If I do it as you say, it works as you say.
- UntoldGlory
- Great Wyrm
- Posts: 1649
- Joined: Sun Mar 16, 2008 8:12 pm
raymondm wrote:When my players Roll Initiative or add hps after healing the character stats dont update.
Example:
I calculte the MaxHp :
MaxHp : {(ClassHP+Constitution)+(ClassHpLevel*Level)+Toughness}
when a player heal using this :
<span>[HealingGained = ChangeHP][HP = min((max(HP,0)) +HealingGained,MaxHP)][state.Dying = 1 - max(0,min(1,HP))][state.Bloodied = 1 - max(0, min(1,HP - Bloodied))]</span> <b>[HealingGained]!</b>
The HP property dont get updated ? same happens for Initiative and other properties i whant to update during gameplay.
I am unable to recreate this bug. All my float overs update immediatly upon running macros.
I am unable to recreate this bug on the global panel. I created a total of 7 buttons, changing the label and the contents slightly from one button to the next. Duplicated 1 to make 2, 2, to make 3, etc, etc. Using Windows XP btw. So it's some kinda weirdness with *just* the campaign panel. I saved my campaign before exiting though, so don't know if that did anything (which I don't guess it should on the global).Phergus wrote:Pretty straightforward.
Create first button.
* Right-click/New
* Rick-click/Edit
* Enter macro, change label, change color, save.
Create second from first
* Right-click/Duplicate
* Rick-click/Edit
* Change macro, change label, save.
Create third from second
* Right-click/Duplicate
* Rick-click/Edit
* Change macro, change label, save.
Yeah. It's just the Campaign panel. The Global panel is probably still the same code that has always been there for macro buttons.UntoldGlory wrote:I am unable to recreate this bug on the global panel. I created a total of 7 buttons, changing the label and the contents slightly from one button to the next.
- UntoldGlory
- Great Wyrm
- Posts: 1649
- Joined: Sun Mar 16, 2008 8:12 pm
Re: Anyone else have this bugg ?
Another thing to check (after the fact you are using one of the 3 latest versions of maptool) that messes up this sort of macro, is to make sure to remember to load in your campaign properties that include MaxHP and all the appropriate stats. Even if my saved tokens had been previously given values in MaxHP, TempHP, etc, if I forget to import the campaign properties file that includes them, the macro doesn't work. It runs fine, but doesn't update HP (or whatever you were trying to update). So was this your problem (forgetting to import campaign properties while testing)?raymondm wrote:When my players Roll Initiative or add hps after healing the character stats dont update.
Example:
I calculte the MaxHp :
MaxHp : {(ClassHP+Constitution)+(ClassHpLevel*Level)+Toughness}
when a player heal using this :
<span>[HealingGained = ChangeHP][HP = min((max(HP,0)) +HealingGained,MaxHP)][state.Dying = 1 - max(0,min(1,HP))][state.Bloodied = 1 - max(0, min(1,HP - Bloodied))]</span> <b>[HealingGained]!</b>
The HP property dont get updated ? same happens for Initiative and other properties i whant to update during gameplay.
Quote from an underwater D&D fight:
Alright fighter, it's your turn. What do you do?
Fighter: What do you think I do? I FAIL MY F**KING SWIM CHECK
Alright fighter, it's your turn. What do you do?
Fighter: What do you think I do? I FAIL MY F**KING SWIM CHECK
Re: Anyone else have this bugg ?
We are all using build 37jfrazierjr wrote: Here is a dumb question, what version of maptool are you (and/or the players if THEY are the ones running the macro) using? Whoever is running the macro must be using b35 or higher (I think thats the release where the setting of token properties came out).