Doc4
August 1st, 2005, 15:35
Hello there. I need some assistance with getting the reference window (the rulebook) to show information from my custom game mechanics.
My goal is to have the player click on the rulebook, have my custom graphic with selections appears (Campaign, Combat Rules, etc) , let the player click on a selection and have a simple page with normal text appear.
So far I have added my custom graphic, the text is now selectable, included my file in the BASE.XML file, and added my database file.
The problem is after selecting say Combat Rules, the window appears but the content is blank and closing it crashes the game. I clearly have some formatting or node business all wrong.
Here is a snipet from my reference.xml file:
<root>
<windowclass name="streetrules">
<frame name="streetrules" />
<defaultsize width="340" height="340" />
<sheetdata>
<windowopencontrol>
<bounds rect="93,11,135,33" />
<class name="campaign" />
<description field="description" />
</windowopencontrol>
<windowopencontrol>
<bounds rect="93,53,135,33" />
<class name="combat" />
<description text="description" />
</windowopencontrol>
<windowopencontrol>
<bounds rect="93,97,135,33" />
<class name="gear" />
<description field="description" />
</windowopencontrol>
<windowopencontrol>
<bounds rect="93,139,135,33" />
<class name="advantages" />
<description field="description" />
</windowopencontrol>
</sheetdata>
</windowclass>
If it is not too much to ask, what should the <windowclass name="campaign"> look like to have it load up formated text? Nothing special, just the text.
And what should the database xml file look like to fill that text. Something as simple as a "Hello world!" would get me started.
I have tried filling in examples from default ruleset, but I still have trouble getting text like classes.xml to populate.
Thank you,
Tom / Doc4
My goal is to have the player click on the rulebook, have my custom graphic with selections appears (Campaign, Combat Rules, etc) , let the player click on a selection and have a simple page with normal text appear.
So far I have added my custom graphic, the text is now selectable, included my file in the BASE.XML file, and added my database file.
The problem is after selecting say Combat Rules, the window appears but the content is blank and closing it crashes the game. I clearly have some formatting or node business all wrong.
Here is a snipet from my reference.xml file:
<root>
<windowclass name="streetrules">
<frame name="streetrules" />
<defaultsize width="340" height="340" />
<sheetdata>
<windowopencontrol>
<bounds rect="93,11,135,33" />
<class name="campaign" />
<description field="description" />
</windowopencontrol>
<windowopencontrol>
<bounds rect="93,53,135,33" />
<class name="combat" />
<description text="description" />
</windowopencontrol>
<windowopencontrol>
<bounds rect="93,97,135,33" />
<class name="gear" />
<description field="description" />
</windowopencontrol>
<windowopencontrol>
<bounds rect="93,139,135,33" />
<class name="advantages" />
<description field="description" />
</windowopencontrol>
</sheetdata>
</windowclass>
If it is not too much to ask, what should the <windowclass name="campaign"> look like to have it load up formated text? Nothing special, just the text.
And what should the database xml file look like to fill that text. Something as simple as a "Hello world!" would get me started.
I have tried filling in examples from default ruleset, but I still have trouble getting text like classes.xml to populate.
Thank you,
Tom / Doc4