Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 10th, 2015, 09:55 AM
I have a custom archetype for the Witch that changes the patron spells into spell-like abilities. It has been working great until the last update. Now I get these errors for each spell that becomes a Spell-like ability.

Code:
Attempt to access 'focus' pick from script when no focus exists
Location: 'eval' script for Component 'BaseSplPwr' (Eval Script 'Calc sConcCheck and sOverSplRs') near line 12
- - -
Attempt to access 'focus' pick from script when no focus exists
Location: 'eval' script for Component 'BaseSplPwr' (Eval Script 'Calc sConcCheck and sOverSplRs') near line 13
Could Mathias or Aaron let me know what is happening at those lines in the script? Everything seems to be working as the spell appears as a Spell-Like ability on the Spell tab but I need to figure out how to stop these errors from showing. What is it trying to set the focus too?

Any thoughts of what I am missing would be helpful.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 10th, 2015, 10:09 AM
The setfocus just before those lines depends on StandardDC tags.

But there's another script that should be assigning StandardDC.aCHA tags to spell-like abilities if they don't have any StandardDC tags, so I don't know why your ability wouldn't have a tag for that.

I'm afraid I also don't know why it would have changed from something that was working.
Mathias is online now   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 10th, 2015, 12:00 PM
Quote:
Originally Posted by Mathias View Post
The setfocus just before those lines depends on StandardDC tags.

But there's another script that should be assigning StandardDC.aCHA tags to spell-like abilities if they don't have any StandardDC tags, so I don't know why your ability wouldn't have a tag for that.

I'm afraid I also don't know why it would have changed from something that was working.
Well setting that tag caused the error to go away. So yeah!

Now I just have to figure out why it shows as "light gray" instead of "black" text on the "Spells" summary tab. Which it also didn't use to do.

I am not sure what exactly changed or "exactly" when. It was in the last few months but that covers allot of changes.

Update: Changing the timing from final down to PostLevel/90000 seems to have corrected the light gray text issue. So I am all good again.

Thanks!

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 10th, 2015, 12:11 PM
When in the final phase were you? The StandardDC tags are assigned at Final/25000 (in "Calc sDC and sCL"), so if your script was telling the spells that they were spell-like abilities after that, the tag wouldn't have been automatically assigned.
Mathias is online now   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 10th, 2015, 12:18 PM
Quote:
Originally Posted by Mathias View Post
When in the final phase were you? The StandardDC tags are assigned at Final/25000 (in "Calc sDC and sCL"), so if your script was telling the spells that they were spell-like abilities after that, the tag wouldn't have been automatically assigned.
Ahhhh. Yeah I was just past that at Final/30000. So that would be the issue.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 10th, 2015, 12:28 PM
I'd guess that in order to make something else work, the Calc sDC and sCL script was moved a little earlier than it had been, so it's now before your script. So I'd make sure to add Timing restrictions to your script to warn about this in the future.
Mathias is online now   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 10th, 2015, 02:27 PM
Quote:
Originally Posted by Mathias View Post
I'd guess that in order to make something else work, the Calc sDC and sCL script was moved a little earlier than it had been, so it's now before your script. So I'd make sure to add Timing restrictions to your script to warn about this in the future.
Hmmm that is a good idea. I admit I don't add that allot but I can see here how it work out nicely.

In my case I override the sDC and sCL values so I was trying to make sure I was just past when these values are calculated. But maybe instead I can now simply change the StandardDC from CHA to INT..... Hmmmm

Thanks for the help

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 10th, 2015, 02:30 PM
Sounds like you could also split your script - assign Helper.SpellLike in an early script, and overwrite the DCs in a later script. But if all you need to do is to change the attribute, changing the tag should handle that.

Edit: Or rather, assigning the tag before Calc sDC and sCL - if there is a StandardDC tag present, StandardDC.aCHA won't be assigned.
Mathias is online now   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 10th, 2015, 02:38 PM
Quote:
Originally Posted by Mathias View Post
Sounds like you could also split your script - assign Helper.SpellLike in an early script, and overwrite the DCs in a later script. But if all you need to do is to change the attribute, changing the tag should handle that.
Yeah I just hate adding into "two" foreach loops if I can help it. As a patron (custom special) has 9 spells I need to change. Speaking of CPU stuff. Is it better to use a foreach loop or instead use 9 hero.findchild? Happen to know which is more overhead?

If I change the DC using Tags then I just need to make sure the CL is correct. Maybe just easier to just add in the difference, what HL calculates and what I need, instead of trying to override the value at Final timing.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #9 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 10th, 2015, 02:47 PM
Quote:
Originally Posted by ShadowChemosh View Post
Yeah I just hate adding into "two" foreach loops if I can help it. As a patron (custom special) has 9 spells I need to change. Speaking of CPU stuff. Is it better to use a foreach loop or instead use 9 hero.findchild? Happen to know which is more overhead?

If I change the DC using Tags then I just need to make sure the CL is correct. Maybe just easier to just add in the difference, what HL calculates and what I need, instead of trying to override the value at Final timing.
I think foreach and findchild are both around the same overhead to set up, or maybe slightly faster for findchild, if you've only got one thing to search for, so if you can do one foreach, that's better than 9 findchilds. It's setting up the list of things to search among that's the really time consuming thing.
Mathias is online now   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:36 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.