Member
Join Date: Aug 2014
Posts: 52
|
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.
|
#11 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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
|
#12 |
Member
Join Date: Aug 2014
Posts: 52
|
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.
|
#13 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
You can do a lot with the editor already, you don't need to authoring kit for doing that stuff.
|
#14 |
Member
Join Date: Aug 2014
Posts: 52
|
The wiki says that the intersect reference is the following format:
Code:
intersect[init,curr] But, it seems that this is exactly backwards in many instances in actual code I've seen. For example: Code:
altthing.intersect[ReqClass,Class] Which is the correct syntax? |
#15 |
Member
Join Date: Aug 2014
Posts: 52
|
Still could use an answer on this...anyone know if the wiki has the context parameters in the square brackets exactly backwards?
|
#16 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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. |
#17 |
Member
Join Date: Aug 2014
Posts: 52
|
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.
|
#18 |
Member
Join Date: Aug 2014
Posts: 52
|
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> |
#19 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
What's the code you changed it to?
|
#20 |
Thread Tools | |
Display Modes | |
|
|