Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 10:06 AM
Do I need to buy the license for d20 to get the pkg files? I mean, what do I have to do to see the source code in .pkg files.
sincla is offline   #11 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 1st, 2014, 10:16 AM
pkg files are like a zip file, you can't access the stuff in them (and they can't be unzipped) I don't believe you can get access to that stuff from the D20 system
AndrewD2 is offline   #12 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 10:18 AM
Damn, it would have been really helpful to me to see how they are structured. But I guess I understand it it's proprietary stuff. But one wonders then how the community creates open source material for d20 if they don't know how the basic files are structured and specified.
sincla is offline   #13 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 1st, 2014, 10:29 AM
You can do a lot with the editor already, you don't need to authoring kit for doing that stuff.
AndrewD2 is offline   #14 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 05:12 PM
The wiki says that the intersect reference is the following format:

Code:
intersect[init,curr]
where in a validate script the tags in the group init belong to the initial context, that is the prospective container for a thing, and the curr gives you the tags in the alternate context which is the thing that might be added (as a pick).

But, it seems that this is exactly backwards in many instances in actual code I've seen. For example:

Code:
altthing.intersect[ReqClass,Class]
where the script is comparing the required class to wield the thing to be added (ReqClass) which resides on the altthing, and seeing if that intersects with a Class tag on the hero.

Which is the correct syntax?
sincla is offline   #15 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 4th, 2014, 05:53 PM
Still could use an answer on this...anyone know if the wiki has the context parameters in the square brackets exactly backwards?
sincla is offline   #16 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old September 5th, 2014, 10:05 AM
After looking at the code, it looks like you're right - the first parameter is the tag group to look at in the context you've just transitioned to, while the second parameter is the tag group to look at in the overall context for the script.

Thanks for flagging this! I'll update the documentation appropriately.
Colen is offline   #17 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 5th, 2014, 10:31 AM
Please do a quick double check of my source. I got the above code snippet from the 4e data files, components.core, the Requires component, which is full of validate scripts like these.
sincla is offline   #18 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 6th, 2014, 10:04 AM
Hi Colen,

I'm now getting an incomprehensible "Portal 'level" - Reference to incompatible field type/style/behavior based on portal type" for the following portal element:

Code:
	<portal
      id="level"
      style="lblNormal"
      showinvalid="yes">
      <label>
		  <labeltext><![CDATA[
		    @text = "hello world"
		    ]]></labeltext>
		</label>
	</portal>
Thing is I didn't change anything at all about it to cause the error. The only thing I tried was to change the text output to a simple string to see if even that would work, and it doesn't.
sincla is offline   #19 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,019

Old September 11th, 2014, 10:03 AM
What's the code you changed it to?
Mathias is offline   #20 Reply With Quote
Reply

Thread Tools
Display Modes

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 01:09 AM.


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