PDA

View Full Version : Custom Die?



emb
March 22nd, 2007, 18:09
Hey, how can I add a custom die?

I want to have 6 new dice, with 6 sides whose values go as follows.

6,2,3,4,5,6
6,6,3,4,5,6
6,6,6,4,5,6
6,6,6,6,5,6
6,6,6,6,6,6

I tried adding it to gameelements.xml, but it didn't show up or work when I typed it in. I even changed the d4 entry, and it didn't change.

Thanks for your help!

~sean

joshuha
March 22nd, 2007, 18:12
Are you modifiying the one in the d20 folder? You have to create your own ruleset and modify that one. That also means your base.xml file needs to change to point at your new gamelements.xml file in your new ruleset.

emb
March 22nd, 2007, 18:19
Thanks for responding !

My base still points to the old one. I did make a custom ruleset, but since the d20 one (which I copied) points to the data/gameelements.xml folder instead of its local folder, I just kept it.

(... goes to change it ... )

K, I moved gameelements to rulesets/Sage/gameelements.xml and updated the entry in base. It is now obviously reading the file (I bumped down the d4, and I got a custom die to work).

There are a few problems: I tried doing "s6" as the name, and it didn't work. Does it have to have "d" in the name? Naming it d101 worked :).

Second, is there any way to to get it to show up as a droppable die? I'd be happy using an existing animation for it.

joshuha
March 22nd, 2007, 19:31
Yes it has to start with "d", although you could call it "dMyDie" for all it cares.

Currently no way to make it a droppable die, in the new beta version of FG though you can specify an existing die animation to roll on the screen when using custom dice.

emb
March 22nd, 2007, 19:34
Ok, cool.

The beta? Do they have a private pool of testers, or can anyone with a license download the beta? Is it stable enough to play with?

Tailz Silver Paws
March 23rd, 2007, 02:21
Ok, cool.

The beta? Do they have a private pool of testers, or can anyone with a license download the beta? Is it stable enough to play with?
I think there is a closed user group of testers, I am knocking myself over the head for not joining it when it was on the cards.

Valarian
March 27th, 2007, 13:10
I want to have 6 new dice, with 6 sides whose values go as follows.

6,2,3,4,5,6
6,6,3,4,5,6
6,6,6,4,5,6
6,6,6,6,5,6
6,6,6,6,6,6


Is this for Star Wars d6 die capping by any chance?
Did you get this to work?

I've just got Fantasy Grounds (I'm using GRiP currently) and Star Wars d6 is on my list of character sheets to do.

The full list, for anyone interested (or who can help by supplying one - character sheet only please, no rules).

Traveller T20
Vampire - The Masquerade
Star Wars d20
Star Wars d6
Cyberpunk 2020 (?maybe)

emb
March 27th, 2007, 16:15
Is this for Star Wars d6 die capping by any chance?
Did you get this to work?


Yes, I got it to work, but it isn't Star Wars. I haven't played Star Wars d6. This is for a game I'm developing myself, and the dice I explained above are for the skills/abilities. You can read the rules below.

https://tw.hessgames.com/game_source.html

You want the character sheet? The dice aren't in the character sheet, but I'd be happy to provide anything you'd like. Customizing FG can be insane, but it's easier with good examples to draw on.

Valarian
March 27th, 2007, 18:01
If you could ... a copy of the XML used to create the dice, and the XML files to modify. Without documentation and/or and XSD to work from I feel like I'm groping in the dark a bit. Thankfully, the problem should be mitigated when FG2 is released. There seems to be a little bit of documentation for this. An XSD would still be nice though. :)

emb
March 27th, 2007, 18:52
This is what I added to gameelements.xml. Make sure you update base.xml to point to a copy of gaemelements.xml within your local ruleset (in this case, gameelements was included as rulesets\Sage\gameelements.xml)



<die name="ds1">
<values list="6,2,3,4,5,6" />
<icon file="rulesets\Sage\icons\ds1.png" />
<position point="110,720" />
</die>

<die name="ds2">
<values list="6,6,3,4,5,6" />
<icon file="rulesets\Sage\icons\ds2.png" />
<position point="110,720" />
</die>

<die name="ds3">
<values list="6,6,6,4,5,6" />
<icon file="rulesets\Sage\icons\ds3.png" />
</die>

<die name="ds4">
<values list="6,6,6,6,5,6" />
<icon file="rulesets\Sage\icons\ds4.png" />
</die>

<die name="ds5">
<values list="6,6,6,6,6,6" />
<icon file="rulesets\Sage\icons\ds5.png" />
</die>


Here's the charsheet



<root>
<windowclass name="charsheet_main">
<datasource name="charsheet" />
<frame name="charsheet_main" />
<dynamic resize="vertical" />
<defaultsize width="320" height="600" />
<sheetdata>
<group id="namehead">
<stringcontrol>
<bounds hpos="10,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Name" />
</stringcontrol>
<stringcontrol>
<bounds hpos="170,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Dev" />
</stringcontrol>
<stringcontrol>
<bounds hpos="213,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="%" />
</stringcontrol>
</group>

<group id="namehead_2">
<stringcontrol name="named">
<bounds hpos="10,140" vmargin="7,0"/>
<font name="chatfont" />
<frame name="controlarea" offset="4,4,8,8" />
</stringcontrol>
<numbercontrol name="devpercent">
<bounds hpos="166,36" vmargin="7,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
<numbercontrol name="devpoints">
<bounds hpos="206,36" vmargin="7,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
</group>

<group id="a">
<stringcontrol>
<bounds hpos="10,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Body" />
</stringcontrol>
<numbercontrol name="body">
<bounds hpos="76,36" vmargin="14,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
<numbercontrol name="bodyspent">
<bounds hpos="116,36" vmargin="14,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>

<stringcontrol>
<bounds hpos="190,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Debt" />
</stringcontrol>
</group>

<group id="b">
<stringcontrol>
<bounds hpos="10,64" vmargin="7,0" />
<font name="narratorfont" />
<static value="Mind" />
</stringcontrol>
<numbercontrol name="mind">
<bounds hpos="76,36" vmargin="5,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
<numbercontrol name="mindspent">
<bounds hpos="116,36" vmargin="5,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>

<numbercontrol name="debt">
<bounds hpos="186,36" vmargin="5,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
</group>

<group id="c">
<stringcontrol>
<bounds hpos="10,64" vmargin="7,0" />
<font name="narratorfont" />
<static value="Spirit" />
</stringcontrol>
<numbercontrol name="spirit">
<bounds hpos="76,36" vmargin="5,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
<numbercontrol name="spiritspent">
<bounds hpos="116,36" vmargin="5,0" />
<noreset />
<font name="smallcontrol" />
<frame name="controlarea" offset="0,0,0,1" />
</numbercontrol>
</group>



<group id="d">
<stringcontrol>
<bounds hpos="10,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Skills" />
</stringcontrol>
</group>

<group id="j">
<stringcontrol name="skills">
<bounds hpos="10,276" vmargin="7,15"/>
<multiline spacing="14" />
<font name="chatfont" />
<frame name="controlarea" offset="4,4,8,8" />
</stringcontrol>
</group>
</sheetdata>
</windowclass>

<windowclass name="charsheet_details">
<datasource name="charsheet" />
<frame name="charsheet_details" />
<dynamic resize="vertical" />
<defaultsize width="320" height="600" />
<sheetdata>
<group id="tempgroup">
<stringcontrol>
<bounds hpos="10,90" vmargin="16,0" />
<font name="narratorfont" />
<static value="Temptations" />
</stringcontrol>
</group>

<group id="tempgroup2">
<stringcontrol name="temptations">
<bounds hpos="10,276" vmargin="7,0"/>
<multiline spacing="14" />
<font name="chatfont" />
<frame name="controlarea" offset="4,4,8,8" />
</stringcontrol>
</group>

<group id="keysgroup">
<stringcontrol>
<bounds hpos="10,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Keys" />
</stringcontrol>
</group>

<group id="keysgroup2">
<stringcontrol name="keys">
<bounds hpos="10,276" vmargin="7,0"/>
<multiline spacing="14" />
<font name="chatfont" />
<frame name="controlarea" offset="4,4,8,8" />
</stringcontrol>
</group>
</sheetdata>
</windowclass>

<windowclass name="charsheet_notes">
<datasource name="charsheet" />
<frame name="charsheet_notes" />
<dynamic resize="vertical" />
<defaultsize width="320" height="600" />
<sheetdata>

<group id="detailsgroup">
<stringcontrol>
<bounds hpos="10,64" vmargin="16,0" />
<font name="narratorfont" />
<static value="Notes" />
</stringcontrol>
</group>

<group id="detailsgroup2">
<stringcontrol name="details">
<bounds hpos="10,276" vmargin="7,0"/>
<multiline spacing="14" />
<font name="chatfont" />
<frame name="controlarea" offset="4,4,8,8" />
</stringcontrol>
</group>
</sheetdata>
</windowclass>

<windowclass name="charsheet">
<datasource name="charsheet" />
<dynamic resize="vertical" />
<defaultsize width="320" height="600" />
<minimumsize width="320" height="600" />
<minimize />
<nodelete />
<playercontrol />
<!--<tooltip field="name"/>-->
<sheetdata>
<subwindow name="1main">
<class name="charsheet_main" />
<activate />
</subwindow>
<subwindow name="2details">
<class name="charsheet_details" />
</subwindow>
<subwindow name="3notes">
<class name="charsheet_notes" />
</subwindow>

<windowchangecontrol>
<bounds rect="-20,10,15,80" />
<target name="1main" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="-20,94,15,80" />
<target name="2details" />
</windowchangecontrol>
<windowchangecontrol>
<bounds rect="-20,178,15,80" />
<target name="3notes" />
</windowchangecontrol>
</sheetdata>
</windowclass>




</root>