• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Attempt to access field 'cSpellExpr' that does not exist for thing

senjak

Well-known member
Hi,

I'm looking to a wider audience to see if anyone can suggest a fix for a problem I'm seeing with Monster races. I'm trying to duplicate the Pixie from Savage worlds, and I'm seeing the following error when I use xFly.

Attempt to access field 'cSpellExpr' that does not exist for thing 'mcPixie'
Location: 'eval' script for Component 'Totals' (Eval Script '#6') near line 7
- - -
Attempt to access field 'cSplBkExpr' that does not exist for thing 'mcPixie'
Location: 'eval' script for Component 'Totals' (Eval Script '#6') near line 8
- - -
Attempt to access field 'cSplScExpr' that does not exist for thing 'mcPixie'
Location: 'eval' script for Component 'Totals' (Eval Script '#6') near line 9​

Can you suggest a way to just initialize the above variables so that the message goes away?

Thanks!

Senjak
 
senjak, this is a known error, there is little you can do to get around it, as there is no cSpellExpr, cSplBkExpr, or cSplScExpr on the Hero totals, they are all prefixed with a t. Until LWD fixes that error, there is no known solution.
 
Sadness, I was hoping that someone might have figured out how to define the three variables so that the error condition would be met.

Senjak
 
Does anyone know if this error is even still on Lone Wolf's radar, or if there is now a work around?
 
Does anyone know if this error is even still on Lone Wolf's radar, or if there is now a work around?
I can confirm not on my radar to work on as I didn't know it existed. As it was not reported in the bug report thread... :(

I can't find "mcPixie" in d20 files so it has to be a custom race. Can you tell me how to duplicate this issue or post the user file causing it? Right now I am not fully understanding why this error would ever appear.... Thanks!
 
There is a mismatch in the HL code that tried to reference the wrong Spell Expression. I've reported it a few times, then eventually gave up on anything being done about it. On the races, it should be referencing the cSpellExpr on the Race (where it exists) rather than the Hero Totals. If it is indeed needing the reference the Hero Totals, that would be tSpellExpr. Pretty much what you said, but I know I've brought this up before (esp. considering races such as the Solar which use Domains), and I ended up doing a hack (which I want to get rid of when this is 'fixed').

I believe that correct procedure is for the race's cSpellExpr to be referenced, but I'm not privy to the inner workings of HL. Even explicitly changing the cSpellExpr and/or the tSpellExpr to what you need doesn't work. Whatever procedure that HL is invoking on the Race, it's doing it incorrectly.

To put the problem succinctly, if you need to add Domain spells or add additional spell lists (rather than the single class of spells) to a Race, you end up with this error. You can duplicate this by trying to add a Domain to the Solar through the spell expression field.

Let me know if you need anymore info. I'm more than willing to help out if it ends up fixing this. Thanks!
 
So this is happening only for "Monster Classes" correct? I tried the Solar (Race) from the community set and it seems to be working fine. Only the Savage Species Pixie tossed the error and I have that fixed.

So if its happening for a monster other than a "Monster Class" one I would appreciate a .user file that has the issue. This way I can just load it up and see the exact error. :)
 
No, not for the monster classes. For the races. Some races, such as the solar, can have Domains. If you try to add a domain to the SpellExpr for a race, you get the error. Try adding any Domain to the Solar's Spell Expr under it's spellcasting and you will get this error.

Does that help?
 
No, not for the monster classes. For the races. Some races, such as the solar, can have Domains. If you try to add a domain to the SpellExpr for a race, you get the error. Try adding any Domain to the Solar's Spell Expr under it's spellcasting and you will get this error.

Does that help?
Um not really. I have no "solar" in the base package to work with. And I am really not getting what you mean by adding a Domain? The only place I have been able to replicate the issue is with Monster Classes.

If you have a "solar" that tosses this error can you share the .user file with me or tell me how to change the one in the Community package? Be easier then me to trying to "create" the issue and then fix it. Sorry I am being dense I am just missing something...

For the .user file feel free to email at my forum user id at yahoo dot com. Or attach it here on a post.

Thanks
 
Um not really. I have no "solar" in the base package to work with. And I am really not getting what you mean by adding a Domain? The only place I have been able to replicate the issue is with Monster Classes.

If you have a "solar" that tosses this error can you share the .user file with me or tell me how to change the one in the Community package? Be easier then me to trying to "create" the issue and then fix it. Sorry I am being dense I am just missing something...

For the .user file feel free to email at my forum user id at yahoo dot com. Or attach it here on a post.

Thanks

I'll whip up a simple example that should work as a demonstration. I don't really ever use Monster Classes myself, just the Races. I'll get it to you this weekend sometime (at work now).
 
I'll whip up a simple example that should work as a demonstration. I don't really ever use Monster Classes myself, just the Races. I'll get it to you this weekend sometime (at work now).
Awesome! Would totally appreciate the help! Just FYI I got your BAB, Size, Range, Reach coded into the Summary Basics tab:
SummaryBasics.jpg
 
Apologies, things have been pretty hectic lately at work. So I haven't gotten around to the example. Will try again this weekend.
 
Apologies, things have been pretty hectic lately at work. So I haven't gotten around to the example. Will try again this weekend.
No problem it happens. I found another "error" with Races and Spells that I am trying to fix. It "maybe" this same issue but an example would help for me to be 100% sure we are on the same page. :)
 
Tried to create an example and found that there is another error getting in the way of the one I'd like to demonstrate. Appears that the linkage to the class from which the spell casting is drawn is not working. I believe this is probably the error you've found, but it is unrelated to the original error. Until this new one is fixed, I can't even make the example work to show how it is not working. Soon as it is fixed, I'll have my example whipped up.
 
Nevermind, I was able to find a way to work around it. I am including a Test Solar here, nothing filled out except to give it the 20 caster levels of Cleric and attempt to give it Domains (unsuccessfully). However, it allows you to choose Domain spells (from all spells, because of the error). Just make a Test Solar hero, give it a single Domain spell, close the spell chooser and the error will appear.

So the problem appears twofold, the first being what is mentioned above, the code attempting to access a field cSecSpExpr on the Hero Totals where the field really exists only on the Class or Race.

The second is Domains, there is no way to choose Domains for a Race since there are no fields to allow for them. In other words, the Race functions just like a class except for the choosing of Domains. The Domains are selected by Clerics through the Custom Special mechanic, which is allowed to them because the Cleric has a cCustTot field that holds a number indicating the number of Domains a Cleric can choose. It's odd considering the Races have all the Domain stuff set up as if they could select them, but there is no option to set how many custom specials they can choose. There is also a cGiveSpec field on a Cleric, but I have no idea if that is used or not for the purposes of Domains. If it is, this is also missing from Races as well.
 

Attachments

So using the test Solar in the current d20 5.2 I get the following error right away:
Code:
No panel linkage defined for thing 'rTestSolar'
Location: 'evalrule' script for Component 'Spellcast' (Eval Rule '#3') near line 55
I don't get this in my upcoming version. So that is good!

Then when trying to pick a spell I get:
Code:
Attempt to access field 'cSplScExpr' that does not exist for thing 'Totals'
- - -
Empty candidate tagexpr specified for field 'cSplScExpr' on pick 'Totals'
This after looking into it is caused by this script you have running:

First/1000
Code:
perform assign[Helper.HasSecSpl]
This tag is only assigned by a background component when it finds the class has a Domain or Wizard school of magic. By you assigning its messing with HL as it thinks it has access to components that it does not. :(

If I remove the above script then I am currently getting no errors from your Test Solar in the latest version. Plus it only correctly shows me "cleric" spells to pick from.

This does NOT mean Domains are working for Racial Spells. From what I can tell no background logic is in place to support Domains or Wizard schools for Racial Spellcasting. Now this is something I am happy to add to the "to-do" list but adding this logic is not quick for me. So its going to have to wait at least until 5.4 or so.

Hopefully that at least gets us moving forward with races/monster races that don't toss errors anymore. :)
 
Right, well that is a bummer. Solars, among others, can't have domains assigned, can't have additional spells, or domain powers without putting them in explicitly. That seems like a shortfall.

BTW, does Pathfinder allow for choice Domains on races and all the attendant abilities? Anybody out there know?
 
BTW, does Pathfinder allow for choice Domains on races and all the attendant abilities? Anybody out there know?
Not currently. It also does not handle well a race that gets both Divine and Arcane spells.

I know Frumple created "Racial Classes" to try and give races access to things like Witch Hexes and stuff.

So this is an area that needs improvement for both systems.
 
Back
Top