Log in

View Full Version : Extension question



lamentia
September 9th, 2016, 14:32
Hello there. i am trying to change my decal to the warrior.png. What i am doing wrong?thanx

damned
September 9th, 2016, 14:42
Looks ok to me.
Once you load the extension you then need to select the decal from Options.
As a minor aside you could change this particular image to a jpg and save about 75% of the file size/weight (and in turn memory and transfer speeds).

Zacchaeus
September 9th, 2016, 14:49
It's telling me that your extension won't unzip so I'm guessing you zipped it up wrong.

damned
September 9th, 2016, 15:04
it unzipped for me... but I used... 7zip... perhaps lamentia didnt zip it and used 7z compression or anything other than zip compression?

Zacchaeus
September 9th, 2016, 15:09
I use 7zip too, since after a recent update the inbuilt windows 10 unzipper refused to work. And that's what I've done here was tried to use the windows unzipper instead of 7zip; I clicked the wrong option it seems. It is telling me that it's unzipped as a .rar archive so could that be the problem?

lamentia
September 9th, 2016, 16:45
Thanx for your help but in fantasy grounds doesn't give the option: masks custom desktop to select it, when you are in the screen in extensions for what you want to load.Can you try test it while you load the fantasy grounds?thanx again.

Trenloe
September 9th, 2016, 17:07
Thanx for your help but in fantasy grounds doesn't give the option: masks custom desktop to select it, when you are in the screen in extensions for what you want to load.Can you try test it while you load the fantasy grounds?thanx again.
As has been mentioned above by Zacchaeus, the extension has been compressed using RAR compression, not ZIP compression. Create the extension again making sure you select the compression type as ZIP.

lamentia
September 9th, 2016, 18:54
Yep its done :)thanx guys. The next thing now is how to make it to cover the whole monitor not only a part of it. :)

lamentia
September 9th, 2016, 22:36
I can't find yet how resize the image to fit in the whole fantasy grounds background.

Zacchaeus
September 9th, 2016, 22:51
I' m not sure you can can you? Most of the decals that I've seen are just in the middle of the screen. But them I could have been looking at all the wrong decals.

Trenloe
September 9th, 2016, 22:57
I can't find yet how resize the image to fit in the whole fantasy grounds background.
It's controlled by the <bounds> entry of the desktopdecalpanel in CoreRPG desktop\desktop_panels.xml

These bounds keep the maximum size the decal can be to 100 pixels inside of the desktop boundaries (top, bottom, left & right), and the decal will be resized to fit within these maximums as the FG desktop is resized. Plus the decal size on the won't go above the actual size of the decal image, but it will be reduced if the desktop is smaller than the image size (plus the <bounds> setting).

damned
September 10th, 2016, 00:50
you need to remember that every at the table could have a different screen size and screen proportions to you.
to make it cover the whole screen you cant use a decal you need to use a tiled wall paper.
it uses a 9 slice layout -

top left - fixed size
top - tiles horizontally
top right - fixed size
left - tiles vertically
middle - tiles both directions
right - tiles vertically
bottom left - fixed size
bottom - tiles horizontally
bottom right - fixed size

the code looks something like this:

<!-- Desktop background -->
<framedef name="desktop">
<bitmap file="graphics/frames/desktop.jpg" />
<topleft rect="0,0,300,300" />
<top rect="300,0,400,300" />
<topright rect="700,0,300,300" />
<left rect="0,300,300,200" />
<middle rect="300,300,300,200" />
<right rect="700,300,300,200" />
<bottomleft rect="0,500,300,300" />
<bottom rect="300,500,400,300" />
<bottomright rect="700,500,300,300" />
</framedef>
<framedef name="shortcuts">
<bitmap file="graphics/frames/sidebar.png" />
</framedef>

and you can find some basic samples with the basic structure on https://www.fg-con.com/free-downloads but they use only the middle definition - you would use the above code to create a full screen image.
however after all that you might notice that the middle tiles so its generally not going to work with what you are wanting to do here. You would pick a uniform background colour and fade the edges of your decal or a few other variations.
attached is a really basic example.