PDA

View Full Version : Adding Image to Module



mr_h
October 7th, 2010, 16:42
I Think I've been staring at this so long that my brain has jelly-fied. It might be a simple problem that I'm overlooking, but I could use some help.

I'm trying to add a image into a module. I have the image file in the module (CommonCivilianSmallArms.jpg). And this is the code that I have in my module:

Here is the first part (chapter entry). This is the part (as I understand it) where I make the entry into the module listing. Click on Gear and it should bring up a window that will list the various subjects (Common Civilian Small Arms, Standard Weapons, etc etc)




<chapter_006>
<librarylink type="windowreference">
<class>sw_referencetext</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Gear</name>
<text>And now we fill this with some useless text.</text>
<gear_001>
<listlink type="windowreference">
<class>imagewindow</class>
<recordname>refimage.CommonCivilianSmallArms</recordname>
</listlink>
<name type="string">Common Civilian Small Arms</name>
</gear_001>

</chapter_006>



And here is the reference portion


<refimage>
<CommonCivilianSmallArms>
<image type="image">
<bitmap>CommonCivilianSmallArms.jpg</bitmap>
</image>
<name type="string">Image: CommonCivilianSmallArms</name>
</CommonCivilianSmallArms>
</refimage>


All I get from this however is this:
https://mrh.boxofgeeks.net/SavageWorlds/GearProblem.jpg

What might I be missing here? BTW, the code was 'ripped' from the Savage Worlds players guide that has an image included...

Oberoten
October 7th, 2010, 17:14
Well... first of all what ruleset? Savage Worlds?

- Obe

mr_h
October 7th, 2010, 17:28
Oops, yeah, savage worlds (shouldn't post at work)

Sorcerer
October 7th, 2010, 17:39
is it just one image on one page of text?

if so I think you are over complicating it.

I think you only need


<text type="formattedtext">
<p> here is some text</p>

<link class="imagewindow" recordname="refimage.CommonCivilianSmallArms">Image: Common Civilian Small Arms</link>

</text>

of course I could be wrong...

mr_h
October 7th, 2010, 18:56
I must have had a typo hidden somewhere or something, because I went back in and redid the stuff....and it works now.

*scratches head* XML does strange things to my brain sometimes....