PDA

View Full Version : [Par5e] Having trouble with images



VenomousFiligree
July 30th, 2015, 22:11
Any help appreciated.

I'm trying to add an image to the Reference Manual, I have the following code entered:


#zls;
#zl;image;Page8;Image on page 8
#zle;

I have tried Page8 both with and without the .jpg extension. Page8.jpg is located in /input/images

The link shows up fine in the Reference Manual, however clicking it brings up a blank page.

kylania
July 30th, 2015, 23:27
This is what I used and it worked for me:


#zl;image;Hillsfar.jpg;Hillsfar

I skipped the zls and zle though since it was a single link.

VenomousFiligree
July 30th, 2015, 23:30
OK, thanks.

Where was the image in the /input directory?

OneSidedDie
July 30th, 2015, 23:38
I am getting the same thing.

Looks like it is not creating links to the images properly. If I drag and drop an image into a link and then dig through the moduledb i get this:

<link class="imagewindow" recordname="image.img_feathergalespirepc@Princes of the Apocalypse">FeathergaleSpirePC</link>
<link class="imagewindow" recordname="image.img_feathergalespiredm_jpg@Princes of the Apocalypse">FeathergaleSpireDM</link>

The first line, the PC image, is unmodified where the 2nd one is the one i dragged and dropped. So it it needs a _jpg at the end of every link it seems.

If you use notepad++ you can fix this in "post processing" by pulling the db.xml out of the module file that par5e creates and running a find/replace.

Make sure match case is off and regular expression is selected. Leave the matches newline box blank.

Find what:
(recordname="image\.img.*)@

Replace with:
\1_jpg@

This should correct all links, assuming they are all JPG images.

10651

kylania
July 30th, 2015, 23:50
PAR5e\Hillsfar\input\Images

VenomousFiligree
July 31st, 2015, 00:06
Under <image> I have:


<img_page8_jpg>
<locked type="number">1</locked>
<name type="string">Page8</name>
<image type="image">
<bitmap type="string">images/Page8.jpg</bitmap>
</image>
</img_page8_jpg>

Under <imagewindow> I have:


<img_page8_jpg>
<name type="string">Page8.jpg</name>
<listlink type="windowreference">
<class>imagewindow</class>
<recordname>image.img_page8_jpg@Campaign Name</recordname>
</listlink>
</img_page8_jpg>

Under <imagedate> I have:


<img_page8_jpg>
<locked type="number">1</locked>
<name type="string">Page8</name>
<image type="image">
<bitmap type="string">images/Page8.jpg</bitmap>
</image>
</img_page8_jpg>

And for the link I have:


<listlink>
<link class="imagewindow" recordname="image.img_page8_jpg@Campaign Name">Image on page 8</link>
</listlink>

All of this is from the module as produced by Par5e, however no image is returned from the link.

VenomousFiligree
July 31st, 2015, 07:55
Hmm, getting weirder now...

I now have 6 images being Par5ed. If I look at the images from Images and Maps, 4 display correctly, 2 give blank frames. I can link to the ones that display correctly using the above code.

The images that aren't displaying correctly are entered exactly as the others. They're not the biggest in either size or dimensions.

damned
July 31st, 2015, 08:48
Hmm, getting weirder now...

I now have 6 images being Par5ed. If I look at the images from Images and Maps, 4 display correctly, 2 give blank frames. I can link to the ones that display correctly using the above code.

The images that aren't displaying correctly are entered exactly as the others. They're not the biggest in either size or dimensions.

Filenames?

VenomousFiligree
July 31st, 2015, 08:55
Just sorted it, the campaign was causing the issue. When I loaded the module in a clean campaign it all worked fine! :)

Ixion
September 19th, 2015, 17:07
I am having this issue as well, though I haven't gotten mine sorted yet. I created a Reference Manual for the Forgotten Realms Factions, and Par5e is adding the links in, but the images are blank. I have not yet delved into the XML, but all else seems like it should work just fine, and there was no trouble during the parsing. Hmmm.