PDA

View Full Version : Where are references to images stored?



Morfedel
January 25th, 2006, 18:19
I was looking at the d20 rules set xml files, and saw d20_Desktop; in it, it referred to images such as button_rulebook and button_rulebook_down; I scanned an image of one of my other rulebooks, resized it so it was approximately the same size as the original icons, renamed button_rulebook.png, and named my scanned image to burron_rulebook, then loaded up FG.

Nothing looked different. So, I figured perhaps that button_rulebook was a reference to another xml file that lists the actual filename, but I'm having trouble finding it. But even then, if it is referencing a filename, my renaming should have worked.

How do you replace the graphics for the buttons?

Morfedel
January 25th, 2006, 18:24
Nevermind, I just saw in the tutorial goblin-king posted that the d20 stuff is protected. So, I guess I'll have to walk through his tutorial ;)

Morfedel
January 25th, 2006, 21:20
And now I'm left with my original question. I've been fooling around with the image references to change the appearance of the d20 srd book icon to something else. I've tried renaming images, changing reference file names, etc, and nothing seems to work.

And yes, I'm loading up a different rules set. Essentially copied the d20 stuff to another rulse set so I could fool around with it.

So, I found a file that had a reference to "button_rulebook", but not a file name such as button_rulebook.png. I figured that somewhere there would be an assignment of button_rulebook to button_rulebook.png. Not that that should matter... if I renamed the files, that should work anyway.

So, praytell, what am I doing wrong?

joshuha
January 25th, 2006, 21:43
There should be a d20_graphics file that defines this information. This file is not included with the sample D20 directory but is located in the resource.pak (the real source of what FG uses).

The tags look like the following:



<icon name="button_rulebook" file="rulesets/d20-SRD/icons/button_rulebook.png" />
<icon name="button_rulebook_down" file="rulesets/d20-SRD/icons/button_rulebook_down.png" />
<icon name="button_monsterbook" file="rulesets/d20-SRD/icons/button_monsterbook.png" />
<icon name="button_monsterbook_down" file="rulesets/d20-SRD/icons/button_monsterbook_down.png" />

<icon name="tracker_heading" file="rulesets/d20-SRD/icons/tracker_heading.png" />
<icon name="tracker_footer" file="rulesets/d20-SRD/icons/tracker_footer.png" />

<icon name="perceptiontracker_heading" file="rulesets/d20-SRD/icons/perceptiontracker_heading.png" />
<icon name="perceptiontracker_footer" file="rulesets/d20-SRD/icons/perceptiontracker_footer.png" />