Starfinder Playlist
Page 1 of 2 12 Last
  1. #1

    FGU ref-manual, inline images, "invisible".

    Is there any reason this image block would appear "invisible" (taking up space/etc) and when you click the space it should be, it pops up as a image window as you'd expect.

    Did the blocktype change for inline images in FGU?

    Code:
    <id-00007>
    	<align type="string">center</align>
    	<blocktype type="string">image</blocktype>
    	<caption type="string">Image: Horse at the Gate</caption>
    	<image type="image">
    		<gridsnap>on</gridsnap>
    		<layers />
    	</image>
    	<imagelink type="windowreference">
    		<class>imagewindow</class>
    		<recordname>image.id-00005@B2: The Keep on the Borderlands (L1-3)</recordname>
    	</imagelink>
    	<size type="string">350,500</size>
    </id-00007>
    This is what it looks like. When the cover pops I clicked on the blank space where it should appear in the ref-manual.



    I've attached the full module to the post if that's necessary for review.
    Attached Files Attached Files
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  2. #2

  3. #3
    Sulimo's Avatar
    Join Date
    Dec 2014
    Location
    Pacific Time Zone
    Posts
    879
    I'm not seeing the same in the reference manual for RMC Character Law, created a new campaign to test it out, I did not need to resize the window.


  4. #4

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    Easy:
    Code:
    <image type="image">
       <gridsnap>on</gridsnap>
        <layers />
    </image>
    Drop the gridsnap and layers, that's not part of the refblock markup. You're missing the recordname to the actual image, therefore nothing is rendered.
    Last edited by Talyn; November 7th, 2020 at 03:24.

  5. #5
    Quote Originally Posted by Talyn View Post
    Easy:
    Code:
    <image type="image">
       <gridsnap>on</gridsnap>
        <layers />
    </image>
    Drop the gridsnap and layers, that's not part of the refblock markup. You're missing the recordname to the actual image, therefore nothing is rendered.
    This helped me narrow down the issue. It looks like:

    DB.setValue(nodeBlock,"image","image",DB.getValue( nodeImage,"image",""));

    i.e. DB.getValue(nodeImage,"image","") doesn't return the same values in FGU ... which is where I get the value for the block.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  6. #6
    I'm having a similar issue. The imagelink works, but nothing in the reference manual page. Here's the relevant block of XML:
    <id-00001>
    <blocktype type="string">image</blocktype>
    <align type="string">center</align>
    <size type="string">657,224</size>
    <image type="image">
    <bitmap type="string">hidden_images\tied_scroll.jpg</bitmap>
    </image>
    <caption type="string" />
    <imagelink type="windowreference">
    <class>imagewindow</class>
    <recordname>hiddenimage.id-00001</recordname>
    </imagelink>
    </id-00001>

  7. #7

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    Quote Originally Posted by Bale Nomad View Post
    I'm having a similar issue. The imagelink works, but nothing in the reference manual page. Here's the relevant block of XML:
    Code:
    <id-00001>
    	<blocktype type="string">image</blocktype>
    	<align type="string">center</align>
    	<size type="string">657,224</size>
    	<image type="image">
    		<bitmap type="string">hidden_images\tied_scroll.jpg</bitmap>
    	</image>
    	<caption type="string" />
    	<imagelink type="windowreference">
    		<class>imagewindow</class>
    		<recordname>hiddenimage.id-00001</recordname>
    	</imagelink>
    </id-00001>
    Try this instead:

    Code:
    <id-00001>
        <blocktype type="string">image</blocktype>
        <align type="string">center</align>
        <size type="string">535,182</size>
        <image type="image">
            <bitmap>hidden_images/tied_scroll.jpg</bitmap>
        </image>
        <caption type="string" />
        <imagelink type="windowreference">
            <class>imagewindow</class>
            <recordname>hiddenimage.id-00001</recordname>
        </imagelink>
    </id-00001>
    I changed the size because the 'usable' width of a default refblock is ~535px. We shouldn't be designing refpages that require the user to resize them.
    The second change was eliminating the type="string" which is why your image is not displaying. I also switched the backslash to a slash in the path, as that is how the Wiki reads and that's how FG builds its markup.
    Last edited by Talyn; November 19th, 2020 at 14:09.

  8. #8
    Thanks for the advice, but it didn't work. I tried both suggestions independently and together, and I scaled down the image itself in case scaling from the original size to the specified size was a contributing factor. The image is a simple grey scale image of a scroll tied with a ribbon from page 24 of Rolemaster Companion III. It's not super high resolution or 32-bit color or anything.

  9. #9

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    The markup I gave is correct so that leaves me thinking your path is incorrect. I see you keep using hidden_images is that in fact the folder name? The imagelink below uses a recordname of hiddenimage so you've got two things going on: there needs to be a \hidden_images\ folder and all the images you're wanting to be hidden from the Images window on the sidebar should be stored there, and the image data for them needs to be in <hiddenimage> in your XML.

    If the image is not displaying on your refpage, it should still be drawing the box where the image should be and your imagelink is clickable. If that doesn't bring up the full-size image then both of those recordnames are incorrect.

  10. #10
    The "hidden_images" does exist and it does contain the image file. Is the text in the <bitmap> tag the path and file name, or is it supposed to be a reference to the "recordname"? I thought it was the path and file name.

    The <hiddenimage> tag also exists, and the use of the "recordname" in the link to that resource does work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in