Two posts above I explain how to fix this. You need to manually edit the macro onCampaignLoad on the token Lib:libDnD35Pathfinder. If you edit it you need to change the @this to @Lib:libDnD35Pathfinder. If you still need help contact me offline and I can send you the updated macro or token. My email is neofax99 <AT> gmail dot com.aethirshero wrote:I'm still fairly new to using MapTool, so this might be a problem on my part, but I'm getting the same error as Elorebaen when trying to edit a token's skills. Also though, when trying to edit a token's weapons, I get this error:
Undefined function: outputTo
Can anyone help me out with either of these problems?
MT1.3b86.03 Campaign Framework (Old Version)
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice, lmarkus001
Forum rules
Discussion regarding lmarkus001's framework only. Other posts deleted without notice!
Discussion regarding lmarkus001's framework only. Other posts deleted without notice!
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
Time-Zone information UTC -5
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
Neo's solution worked for me. Try that and see if you are still receiving those errors.aethirshero wrote:I'm still fairly new to using MapTool, so this might be a problem on my part, but I'm getting the same error as Elorebaen when trying to edit a token's skills. Also though, when trying to edit a token's weapons, I get this error:
Undefined function: outputTo
Can anyone help me out with either of these problems?
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
Is it possible to change the "deathpoint" for NPCs to 0, as a global option?
I'm not a fan of forcing my players to deal with "dying" monsters, I'd rather just have them marked as "dead" and be done with it.
EDIT: I just added this line to the subUpdateHPStatesBarsAliasmask@Lib:libDnD35Pathfinder macro...
It seems to be working, setting it as 0 marks it as both dead & disabled though...
I'm not a fan of forcing my players to deal with "dying" monsters, I'd rather just have them marked as "dead" and be done with it.
EDIT: I just added this line to the subUpdateHPStatesBarsAliasmask@Lib:libDnD35Pathfinder macro...
Code: Select all
[h, if(isNPC()): deathpoint = -1]
My form-fillable PDF Character Sheet for Pathfinder can be found here.
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
Just add the bottom line in this section:patnodewf wrote:Is it possible to change the "deathpoint" for NPCs to 0, as a global option?
I'm not a fan of forcing my players to deal with "dying" monsters, I'd rather just have them marked as "dead" and be done with it.
EDIT: I just added this line to the subUpdateHPStatesBarsAliasmask@Lib:libDnD35Pathfinder macro...
It seems to be working, setting it as 0 marks it as both dead & disabled though...Code: Select all
[h, if(isNPC()): deathpoint = -1]
Code: Select all
[H, IF(state.Dead), CODE: {
[H: if(isNPC(), setLayer("object"), '0')]
[H: state.Dying = 0]
[H: state.Unconscious = 0]
[H: state.Prone = 0]
[H: state.StableHP = 0]
[H: state.Disabled = 0]
};{}]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
The easiest way to handle this is to add all of the types and subtypes to deathpoint in the table. This does not affect any code at all in it was designed to do this. You can see how undead is done and add the other types/subtypes.
Time-Zone information UTC -5
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
I think his solution was good too, just set deathpoint = 0 if NPC. I was thinking up an update where it changes the image to a random blood splatter and saves the old image in the portrait. I think it will make the field look less confusing for the players. Get rid of dead state image. (set to transparent image)neofax wrote:The easiest way to handle this is to add all of the types and subtypes to deathpoint in the table. This does not affect any code at all in it was designed to do this. You can see how undead is done and add the other types/subtypes.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
I'm teaching a friend to use Maptools so I can actually play!
But he's running into an error that doesn't happen for me.
When he goes to Edit Globals to use the handout configuration he gets an error:
This doesn't happen with me. He's tried to export his maps and tokens and import them in a clean campaign file, and still gets this error.
Any ideas?
But he's running into an error that doesn't happen for me.
When he goes to Edit Globals to use the handout configuration he gets an error:
Code: Select all
Error processing "FOREACH" option: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 error executing expression json.get(arHandouts, 0).. Statement options (if any): R, FOREACH(p, json.get(arHandouts, 0), "") Statement Body : "
"+p
Any ideas?
I no longer believe that MapTools is usuable or intended just for programmers. MapTools is for everyone.
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
Here's the original code (my version):
I would add the pList line and update the loop with this:
The error is caused by arHandouts being empty.
Code: Select all
@@ @buildHandoutsDialog
[H: gHandouts = getLibProperty("Handouts", "Lib:GlobalsSRDPF")]
[H: arHandouts = json.get(gHandouts, "handouts")]
[H: tTable = json.get(gHandouts, "table")]
[H: hCount = 0]
<html><body>
<table border=1>
<tr>
<td><a href= [R: macroLinkText("addHandout@"+getMacroLocation(), "gm", "")] >Add Handout</a></td>
<td><b>Handout Table Name:</b> <a href= [R: macroLinkText("editHandoutTableName@"+getMacroLocation(), "gm", "")] >[R: tTable]</a></td>
</tr>
</table>
<table>
<tr>[R, FOREACH(p, json.get(arHandouts, 0), "</th>"): "<th>"+p]</tr>
[R, FOREACH(p, arHandouts, "</tr>"), CODE: {
[H: count = 1]
<tr>[R, FOREACH(v, p, "</td>"), CODE: {
<td [R, IF(count > 4 && count < 9): "align='center'"]>[R, IF(count == 2): "<a href='" + macroLinkText("editThisHandout@"+getMacroLocation(), "gm", hCount) + "' >"][R: json.get(p,v)][R, IF(count == 2): "</a>"]
[H: count = count + 1]
}]
[H: hCount = hCount + 1]
}]
</table>
</body></html>
!!
Code: Select all
<!-- OLD -->
<tr>[R, FOREACH(p, json.get(arHandouts, 0), "</th>"): "<th>"+p]</tr>
<!-- NEW -->
[H, if(! json.isEmpty(arHandouts)): pList = json.get(arHandouts, 0); pList = ""]
<tr>[R, FOREACH(p, pList, "</th>"): "<th>"+p]</tr>
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
THANK YOU!
I no longer believe that MapTools is usuable or intended just for programmers. MapTools is for everyone.
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
I just went and followed your advice to the letter, but still get the exact same error when trying to edit a token's skills. I'm not sure what to do from here.neofax wrote:Two posts above I explain how to fix this. You need to manually edit the macro onCampaignLoad on the token Lib:libDnD35Pathfinder. If you edit it you need to change the @this to @Lib:libDnD35Pathfinder. If you still need help contact me offline and I can send you the updated macro or token. My email is neofax99 <AT> gmail dot com.aethirshero wrote:I'm still fairly new to using MapTool, so this might be a problem on my part, but I'm getting the same error as Elorebaen when trying to edit a token's skills. Also though, when trying to edit a token's weapons, I get this error:
Undefined function: outputTo
Can anyone help me out with either of these problems?
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
You check to make sure every input box on the skill dialog has a number or zero in it? If so, post the token here and I will take a look at it.
Time-Zone information UTC -5
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
This is the Dead state image I'm using, I found it somewhere on these forums:aliasmask wrote:I think his solution was good too, just set deathpoint = 0 if NPC. I was thinking up an update where it changes the image to a random blood splatter and saves the old image in the portrait. I think it will make the field look less confusing for the players. Get rid of dead state image. (set to transparent image)neofax wrote:The easiest way to handle this is to add all of the types and subtypes to deathpoint in the table. This does not affect any code at all in it was designed to do this. You can see how undead is done and add the other types/subtypes.
As a full-token-size state image, there definitely is no question if something is dead on the field - especially with it moved to the object layer.
My form-fillable PDF Character Sheet for Pathfinder can be found here.
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
Does anyone know why this random error shows up "Unknown JSON type "" in function "json.get"." ?
I am receiving that error when trying to run Mod report on a token.
Thanks.
I am receiving that error when trying to run Mod report on a token.
Thanks.
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
You may have a corrupt JSON in the ActiveMod section of your character properties. E-mail the token and I will check it out. Probably won't get to it today as I am sick, but I will try.Elorebaen wrote:Does anyone know why this random error shows up "Unknown JSON type "" in function "json.get"." ?
I am receiving that error when trying to run Mod report on a token.
Thanks.
Time-Zone information UTC -5
Re: MT1.3b86.03 Campaign Framework (LATEST VERSION)
I actually ran in to that problem recently myself. It could be a couple of things. The one thing it was for me was I had some active mods on from another campaign for mods that didn't exist in this campaign file. Manually removing the items in in PrivateJSON like this: "ActiveTempModSets":[] fixed it for me, but there should be a coded solution. Since I'm familiar with the code, I may just do a rewrite with some error checking.Elorebaen wrote:Does anyone know why this random error shows up "Unknown JSON type "" in function "json.get"." ?
I am receiving that error when trying to run Mod report on a token.
Thanks.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools