RPTools.net

Discussion and Support

Skip to content

It is currently Mon Dec 18, 2017 11:50 am 




Forum rules


Discussion regarding lmarkus001's framework only. Other posts deleted without notice! :)



Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Kobold
 
Joined: Fri Aug 19, 2011 10:33 am
Posts: 5
 Post subject: Re: Pathfinder Framework
PostPosted: Sun Jun 24, 2012 11:36 am 
Sorry guys, I haven't worked on this in a long time and don't plan to anymore. If anyone else wants to continue development, by all means you're free to do so.

I've moved on to Roll20 at this point, thanks for using the framework though :)

Quote:
I found some buggs.
Every time i open the Equipment sheet it changes the Ability weapons are based on. Is there any easy fix to this?
Above the Initiative field it says "Do NOT add your dex bonus" but the initiative button doesn't include your dex bonus.
When selecting str bonus for a weapons damage ability it adds the bonus to the attack roll but not the damage roll.
When selecting strx1.5 it adds 1.5xstr to the attack rolls, which i don't think is correct.
The Framework looks cool but threes some small things, keep up the good work.


The dropdown should persist the default values, but if it isn't you'll have to look into that. Initiative was adding Dex last time I knew, but if you're having issues open the Initiative macro and make sure the variable for the dex mod is included.

Quote:
When selecting strx1.5 it adds 1.5xstr to the attack rolls, which i don't think is correct.

1.5*value is semantically similar to value*1.5


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun Jan 06, 2013 2:57 am
Posts: 5
 Post subject: Re: Pathfinder Framework
PostPosted: Sun Jan 06, 2013 7:56 am 
I removed the 4th Edition and Basic elements and added a default value of 999 to ArmorMaxDexBonus. You don't actually need to load the campaign, so I removed that too. All you need to do is:

Load the Properties Into Maptools
(From inside MapTools in any campaign file.)
1) Select Edit\Campaign Properties
2) Select Import
3) Select PF-Properties.mtprops
4) Select Ok
You have just loaded the properties into MapTools. "Pathfinder" should be listed under "Token Type." If you select it, then a bunch of properties should appear in the main text area.

Connect the Properties to the Token
5) Add any token to the map. I chose the Elf. You can find tokens by selecting Window\Library\Default\Tokens. (The panel that displays is called "Resource Library") Just accept any defaults that it presents.
6) Right click on the token. Select Edit\Config
7) Set the "Properties" dropdown to "Pathfinder"
8 ) Select Ok
You have just told that particular token to use the properties that you loaded earlier.

Load the Macros
9) Select the token. Notice that the phrase "No Macros" is displayed in the "selection" frame under the image of your token.
10) Right click on the text "No Macros" and select "Import Macro Set"
11) Select "PF-NewMacroSet.mtmacset"
12) Select Ok
You have loaded the macros onto your token and they are using the properties that you loaded earlier.

Setup Your Character's Data
You will need to setup the character sheet and equipment sheet before the macros work. The character sheet appears to have good enough defaults to make everything work, but attacking wont work until after you have at least opened and closed the equipment sheet.

You now have a set of macros that you can run on your own character. Have fun!


File comment: This contains the pathfinder properties files
PF-Properties.mtprops [1.75 MiB]
Downloaded 116 times
File comment: This contains the pathfinder macro set.
PF-NewMacroSet.mtmacset [10.31 KiB]
Downloaded 119 times
Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun Jan 06, 2013 2:57 am
Posts: 5
 Post subject: Re: Pathfinder Framework
PostPosted: Sun Jan 06, 2013 6:20 pm 
This release fixes the bugs that have been noted before. I also reordered dex and con in the code so that it is in the same order that most people put it in their character sheets.

thegrym wrote:
I found some buggs.

I was able to reproduce and fix most of these. Two were not reproducible.


thegrym wrote:
Every time i open the Equipment sheet it changes the Ability weapons are based on. Is there any easy fix to this?

Yes, the fix was easy once I found it... finding it however... was not so easy. There was an off-by-one error between the numerical indexing of the json array that lists the ability modifiers and a method that was used to convert the names of ability modifiers into json array indexes. For example, (pseudo code) getIndex("StrengthBonus") should return 0, but it was returning 1.


thegrym wrote:
When selecting str bonus for a weapons damage ability it adds the bonus to the attack roll but not the damage roll.

The ability bonus, weapon specialization proficiency etc, should be working now. There is probably more to do. This is how the to-hit and damage modifiers are being calculated now.
Code:
[h: AttackBonus=eval(WepAbilBonus)+WeaponProficiency+WeaponFocus+WeaponEnhBonus+WeaponMiscAtkBonus]
[h: DamageBonus=eval(WepAbilBonus)+WeaponSpecialization+WeaponEnhBonus+WeaponMiscDmgBonus]



thegrym wrote:
When selecting strx1.5 it adds 1.5xstr to the attack rolls, which i don't think is correct.
Above the Initiative field it says "Do NOT add your dex bonus" but the initiative button doesn't include your dex bonus.

For these, it looked like it was getting the right results to me, but I didn't test this until after I had already changed the code, so maybe there was something weird going on. Let me know if you find that it still isn't working for you. Please post a screen shot of the relevant data (e.g. strength/dex, init modifier, weapon screen, chat output.)


As an aside, based on some of your findings, I'm guessing that you are looking at the macros themselves. If you ever want the system to "show its work" just delete the h: at the beginning of the code block. e.g.
Code:
[h: AttackBonus=eval(WepAbilBonus)+WeaponProficiency+WeaponFocus+WeaponEnhBonus+WeaponMiscAtkBonus]

becomes:
Code:
[AttackBonus=eval(WepAbilBonus)+WeaponProficiency+WeaponFocus+WeaponEnhBonus+WeaponMiscAtkBonus]

And you will see this in the chat where nothing had appeared before:
Code:
« AttackBonus=eval(WepAbilBonus)+WeaponProficiency+WeaponFocus+WeaponEnhBonus+WeaponMiscAtkBonus = AttackBonus = (eval(DexBonus) + 0 + 1 + 10 + 20) = 34 »



thegrym wrote:
The Framework looks cool but threes some small things, keep up the good work.

That's a good point. Thundertoe did a great job. It was pretty easy to understand what he was doing and he wrote it in a way that was pretty easy to find and fix the issues that you found. He even wrote useful comments. Kudos to him.


File comment: Attack and Damage bonuses for Attack Macro are now more accurate.
cStatParser returns the correct values.

PF-NewMacroSet.mtmacset [10.09 KiB]
Downloaded 189 times
File comment: Changed the order of Dex and Con in the ability modifier property.
PF-Properties.mtprops [1.75 MiB]
Downloaded 192 times
Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun Feb 17, 2013 3:15 am
Posts: 14
 Post subject: Re: Pathfinder Framework
PostPosted: Sun Feb 17, 2013 6:38 pm 
This worked first go for me! I've grabbed the latest files (newest post with files in it) though it would be great if you could just keep updating the original post with the latest files (and note that in the OP).

However, I'm wondering about rolling Init. When I use the macro to roll Init, it shows the Init in the chat window (great!) but it doesn't automatically set the initiative of the token in the Initiative Tracker. Is it supposed to?

Thanks and keep up the good work!


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun Feb 17, 2013 3:15 am
Posts: 14
 Post subject: Re: Pathfinder Framework
PostPosted: Mon Feb 18, 2013 6:45 pm 
ksignorini wrote:
However, I'm wondering about rolling Init. When I use the macro to roll Init, it shows the Init in the chat window (great!) but it doesn't automatically set the initiative of the token in the Initiative Tracker. Is it supposed to?


To follow up on my own post, I added the following three lines to the end of the Roll Initiative button macro:

Code:
[h: addToInitiative()]
[h: setInitiative(Init)]
[h: sortInitiative()]


Now the token gets added to the Initiative tracker or the token's initiative gets updated in the tracker. And, the list gets sorted.

Thanks!


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun Feb 17, 2013 3:15 am
Posts: 14
 Post subject: Re: Pathfinder Framework
PostPosted: Thu Feb 21, 2013 10:26 pm 
Thinking about my last post, this macro change will only work for GM's from what I've tested. Makes sense.

Have you thought about a modified version of the macros for monsters only? Keep the same ones for NPC's and more important monsters, and a simplified set of macros and character sheet for throw-away and one-off monsters?

Thoughts?


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Feb 23, 2013 1:10 pm
Posts: 2
 Post subject: Re: Pathfinder Framework
PostPosted: Sun Feb 24, 2013 1:22 am 
I've been trying to get this working for two days now with no luck so figured I'd come here. It loads up fine, and the only real problem I'm having is that it seems to be randomly adding 1 or 2 to every roll the macros make. I've double and triple checked the values input into the character sheet, but it seems no matter what i try, the total always comes out either 1 or 2 higher than it should. Is this a known issue with a fix, or is it just me?


Top
 Profile  
 
User avatar  Offline
Kobold
 
Joined: Tue Feb 12, 2013 11:11 am
Posts: 19
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 23, 2013 9:15 am 
While this looks like a good campaign framework, I keep getting stack overflow errors whenever I try to use the character or equipment sheet macros.
I followed the instructions to the letter, so I know I installed it right and I've tried it out on both maptools 1.3.b87 (which uses java 6) and then newer 1.3.b89 (which uses java 7), but I keep getting the same error.

This problem is really frustrating me, can anyone help?


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12103
Location: Tampa, FL
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 23, 2013 10:20 am 
Sorry Embrace, I can't help with your issue.

Ramsey, those memory settings are a starting point. If you get stack size errors, just bump it up a little bit. On a low memory machine running a 32-bit Java, you should start small and build up. For example, if you've got 1MB set as the stack size, maybe try 2MB. Then 3MB, then 4MB.

The Java runtime is somewhat dynamic in terms of its capabilities (a lot depends on what drivers are installed on the host system, like DirectX versions and so forth) which means some flexibility needs to be allowed in Java-based settings.

HTH.


Top
 Profile  
 
User avatar  Offline
Kobold
 
Joined: Tue Feb 12, 2013 11:11 am
Posts: 19
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 23, 2013 11:07 am 
Azhrei wrote:
Ramsey, those memory settings are a starting point. If you get stack size errors, just bump it up a little bit. On a low memory machine running a 32-bit Java, you should start small and build up. For example, if you've got 1MB set as the stack size, maybe try 2MB. Then 3MB, then 4MB.

The Java runtime is somewhat dynamic in terms of its capabilities (a lot depends on what drivers are installed on the host system, like DirectX versions and so forth) which means some flexibility needs to be allowed in Java-based settings.

HTH.


I've already tried that many times, it doesn't help.
Sorry, I forgot to mention that.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12103
Location: Tampa, FL
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 23, 2013 3:26 pm 
Then I guess we'll need to see the error messages. You can copy/paste it into a post here.


Top
 Profile  
 
User avatar  Offline
Kobold
 
Joined: Tue Feb 12, 2013 11:11 am
Posts: 19
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 23, 2013 4:42 pm 
It's just the standard stack overflow warning I think.

<html>A stack overflow has occurred.<p>This is commonly because a macro being used has exceeded the stack space specified when MapTool was executed.<br>Please run MapTool again and specify a larger stack size.


Top
 Profile  
 
User avatar  Offline
Kobold
 
Joined: Tue Feb 12, 2013 11:11 am
Posts: 19
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 30, 2013 4:12 pm 
From the lack of replies I take it that no-one knows how to fix this issue?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7969
Location: Bay Area
 Post subject: Re: Pathfinder Framework
PostPosted: Tue Apr 30, 2013 5:27 pm 
I suggest you post your debug info under Help | Gather debug info. I suspect your stack is too low. Usually 3M is good enough, but if you're running the default MT macros then its set at 512K (xss). You could also have a huge html comment that is trying to post with the character sheet which is causing the stack overflow. Text outside of MT statements ([H:...]) is sent to the chat including comments. This is the usual cause of a stack overflow. Especially when you have a bunch of loops like the character sheet is likely to have.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Kobold
 
Joined: Tue Feb 12, 2013 11:11 am
Posts: 19
 Post subject: Re: Pathfinder Framework
PostPosted: Thu May 02, 2013 7:17 am 
Bah!
I've set the stacksize to ludicrously high numbers and it still says stack overflow!
I'm fed up with this thing, I'll just throw something together myself. It probably will be a lot more minimalistic, but at least it will work.

Thanks for trying to help, guys, but I'm giving up on this thing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman