Board index

PCGen


IT IS ALIVE!!!

[Pathfinder] Book of Arcane Magic

Where active book development is discussed
Forum rules
One Topic per active Book.

[Pathfinder] Book of Arcane Magic

Postby LearnTribe » Sat Aug 26, 2017 9:09 am

Hi,
Just looking for a bit of advice on coding. I'm working on getting boam ready for release but have hit an issue that's got me scratching my head. There are feats in the book for wizard/sorcerer/bard to be graduates of arcane magic schools. These grant an extra L1 spell known from specific school, and an extra spell cast at each spell level from that school. I tried basing this on class ability for specialist wizard but it doesn't pull through on test character with the feat.

https://pcgenorg.atlassian.net/plugins/ ... WSOURCE-25

Any advice most welcome.
Cheers, Gordon.
User avatar
LearnTribe
 
Posts: 19
Joined: Mon Jan 30, 2017 11:23 pm
Location: Scotland

Re: [Pathfinder] Book of Arcane Magic

Postby LearnTribe » Thu Sep 07, 2017 12:53 pm

Hi,

I have the bonus spell known and additional spells/level displaying on test characters for book of arcane magic source, but have a problem with this line:
BONUS:SPECIALTYSPELLKNOWN|CLASS=Bard;LEVEL=1|1|PRECLASS:1,Bard=1|SCHOOL=Conjuration
This should allow 1 extra 1st level spell from the school of conjuration, and displays in the #spells known summary as +1 but when I test it out by trying to add a new spell I get the error "your remaining slots(s) must be filled with your speciality" - which is perfect, except that it also pops up when the chosen spell IS from the appropriate school (in this case conjuration). I get the exact same error when adding spells for a Sorcerer (code is same as above but with Sorcerer instead of Bard). Wizard doesn't give the error - presumably because there isn't a limit to how many spells they can know.
Any suggestions?
Thanks, Gordon.
User avatar
LearnTribe
 
Posts: 19
Joined: Mon Jan 30, 2017 11:23 pm
Location: Scotland

Re: [Pathfinder] Book of Arcane Magic

Postby Distant Scholar » Fri Sep 08, 2017 1:14 am

First guess: put the PRExxx tag at the very end. That's where they usually go.


Douglas Limmer
PCGen Data 2nd/Chimp ... I think
User avatar
Distant Scholar
 
Posts: 86
Joined: Thu Oct 30, 2014 2:47 pm
Location: Texas Hill Country
Top

Re: [Pathfinder] Book of Arcane Magic

Postby LearnTribe » Mon Sep 11, 2017 1:11 pm

Hello,
Thanks for the response. I've tried re-ordering the sequence to have Pre at the end of the item BONUS:SPECIALTYSPELLKNOWN|CLASS=Bard;LEVEL=1|1|SCHOOL=Conjuration|PRECLASS:1,Bard=1
but still get the same error when trying to select a spell, with no log errors.

Moving the school to the start of the section generated a series of log errors about illegal tokens - eg
13:59:29.689 LSTERROR Thread-12 LstUtils:166 Illegal Token 'BONUS' 'SPECIALTYSPELLKNOWN|SCHOOL=Conjuration|CLASS=Bard;LEVEL=1|1|PRECLASS:1,Bard=1' for pcgen.core.Ability Bartek's School Graduate in file:/C:/Users/gml28r/OneDrive/Roleplaying/PCGen/6.07.03/data/pathfinder/4_winds_fantasy_gaming/book_of_arcane_magic/boam_feats.lst
13:59:42.493 INFO AWT-EventQueue-0 CharacterManager:200 Loaded character Sorc_boam - C:\Users\gml28r\OneDrive\Roleplaying\PCGen\6.07.03\characters\Sorc_boam_L1.pcg

I've also tried BONUS:SPECIALTYSPELLKNOWN|CLASS=Bard;LEVEL=1|1|SCHOOL=Conjuration;|PRECLASS:1,Bard=1 but no joy. As this is just a snippet from a longer line of code it's possible something else is upsetting it - but this is the only bit that specifically referes to adding an extra 1st level spell of a named school of magic.
Any suggestions?
Thanks, Gordon.
User avatar
LearnTribe
 
Posts: 19
Joined: Mon Jan 30, 2017 11:23 pm
Location: Scotland
Top

Re: [Pathfinder] Book of Arcane Magic

Postby Nylanfs » Mon Sep 11, 2017 1:24 pm

This might require some more hands on help. You could take out the | and replace with tab.

You can also ask in the Chat room.
https://www.hipchat.com/gmddByrFS

Ask for @GwenT or anyone that is hanging out in the room.


Paul "Yes that Paul" Grosse
PCGen BoD - PR Silverback
ICQ: 14397299
Forums: Nylan (or Nylanfs)
User avatar
Nylanfs
 
Posts: 327
Joined: Thu Sep 11, 2014 6:06 pm
Location: Elkhart, Indiana, United States
Top

Re: [Pathfinder] Book of Arcane Magic

Postby LegacyKing » Tue Sep 12, 2017 4:28 am

That BONUS is only allowed for Wizards. Period. Forget you ever saw it, and don't use it. (I'm not going to even attempt to give a hack to make it work, because it'll be a lot of effort for little gain, and be extremely outside the normal rules to even contemplate).

So, option 1: (Easy)

BONUS:SPELLKNOWN is the best you'll get and leave it to the user to self-police.


Option 2: (Hope you have free time)

Add each spell permissible to the class with a SPELLKNOWN tag. This is extremely time consuming, but likely to net you more cookies.


There are other options, but I think these two are the two extremes you can select.

Cheers,


Andrew Maitland
PCGen Content SB
- Data Chimp
- Quicksilver Tracker Monkey
User avatar
LegacyKing
Site Admin
 
Posts: 684
Joined: Fri Oct 11, 2013 12:35 pm
Location: California, US
Top

Re: [Pathfinder] Book of Arcane Magic

Postby LearnTribe » Tue Sep 12, 2017 7:46 am

Well that explains why it wasn't working!
I think it's best to go for option 1 and let users self-police, as otherwise there will be never ending updates everytime a new source is added with spells.
I'll comment the code to explain it for future reference - other than that I think this is just about ready for review as a new source. I'll do a bit more testing then submit the latest version on Github. New semester has just started here but hopefully I'll have it ready by the weekend.
Thanks, Gordon.
User avatar
LearnTribe
 
Posts: 19
Joined: Mon Jan 30, 2017 11:23 pm
Location: Scotland
Top


Return to New Sources

Who is online

Users browsing this forum: No registered users and 1 guest

cron