Last wipe I just got all images local on my web server. For a while I had some on my server, and some on the wiki page. Since they stopped maintaining the items long ago.
But last wipe all was working from my url. Even then if I tried to get by a file it would show as a white square, or if I got by http it would also be the white square.
HTTPS was the only thing that showed the image. Now even that doesn't work.
I think the unity update is forcing https, and not allowing my self signed certificate the way the plugin is calling it out.
I know the sign artist plugin still lets me get images from the https:// of my url so somehow
there is a different way it is called.
If I do c:/apache24/images/myimage.png it shows the white box just like it would by using my IP.
So anything non ssl is white box, and anything ssl but self signed certificate is not even the white box.
Last wipe the https:// worked fine.
Also last wipe I added the "misc" category to config file creation, and button in the plugin file itself. I also made the button bar centered but a little smaller, reducing the font from 14 to 12, to fit it in and leave room for the lusty mini map. It looks great.
I would like to not have to mod the plugin after every update of it, and obviously the "misc" category has to be in there with all of the new electrical items.
Could you possibly tak a look and add this code. I basically just copied another button segment and config generation segment and pasted as "misc". Then perfected the positioning of the buttons to fit it in exact order as Rust has it. Of course "commands" is still the first button, but there is about 1.5" room to the right and left of the button bar, plus I lowered the whole bar 1 space because it was too close to the main shop title text right above it.
This is how it looks:
https://steamcommunity.com/sharedfiles/filedetails/?id=1653091187
And it works great!!
so for config file I added:
And for the cuibuttons:
Merged post
Ok, so I fixed the images not showing up. It appears unity or someone in the chain is not allowing my self-signed certificate after the last update, and my web server is set to refuse insecure content of any type.
So the solution was to add an exception to the image directory and allow my IP (not domain) address to allow any requests.
so it went from https://myurl.com/images to http://00.000.000.00/images, and now it works.
About the changes I wish to see on next version to add the misc category (code above), should I start a new post?
This is how it looks, and of course it works great, images and all:
https://steamcommunity.com/sharedfiles/filedetails/?id=1653407552
But last wipe all was working from my url. Even then if I tried to get by a file it would show as a white square, or if I got by http it would also be the white square.
HTTPS was the only thing that showed the image. Now even that doesn't work.
I think the unity update is forcing https, and not allowing my self signed certificate the way the plugin is calling it out.
I know the sign artist plugin still lets me get images from the https:// of my url so somehow
there is a different way it is called.
If I do c:/apache24/images/myimage.png it shows the white box just like it would by using my IP.
So anything non ssl is white box, and anything ssl but self signed certificate is not even the white box.
Last wipe the https:// worked fine.
Also last wipe I added the "misc" category to config file creation, and button in the plugin file itself. I also made the button bar centered but a little smaller, reducing the font from 14 to 12, to fit it in and leave room for the lusty mini map. It looks great.
I would like to not have to mod the plugin after every update of it, and obviously the "misc" category has to be in there with all of the new electrical items.
Could you possibly tak a look and add this code. I basically just copied another button segment and config generation segment and pasted as "misc". Then perfected the positioning of the buttons to fit it in exact order as Rust has it. Of course "commands" is still the first button, but there is about 1.5" room to the right and left of the button bar, plus I lowered the whole bar 1 space because it was too close to the main shop title text right above it.
This is how it looks:
https://steamcommunity.com/sharedfiles/filedetails/?id=1653091187
And it works great!!
so for config file I added:
{
"misc", new Dictionary<string, object>
{
{"description", "You currently have {0} coins to spend in this Misc shop"},
{"name", "Misc"},
{"buy", new List<object> {"Assault Rifle", "Bolt Action Rifle"}},
{"sell", new List<object> {"Assault Rifle", "Bolt Action Rifle"}}
}
},And for the cuibuttons:
//TODO MMMEEERRGGGGEEEE // This section modded by Snivel to add Misc category and adjust buttons.//////
private static CuiElementContainer CreateShopChangePage(string currentshop, int shoppageminus, int shoppageplus) {
return new CuiElementContainer {
{
new CuiButton {
Button = {
Command = $ "shop.show {currentshop} {shoppageminus}",
Color = "0.5 0.5 0.5 0.2"
},
RectTransform = {
AnchorMin = "0.2 0.12",
AnchorMax = "0.3 0.17"
},
Text = {
Text = "<<",
FontSize = 20,
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf"
}
},
ShopOverlayName,
"ButtonBack"
},
{
new CuiButton {
Button = {
Command = $ "shop.show {currentshop} {shoppageplus}",
Color = "0.5 0.5 0.5 0.2"
},
RectTransform = {
AnchorMin = "0.35 0.12",
AnchorMax = "0.45 0.17"
},
Text = {
Text = ">>",
FontSize = 20,
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf"
}
},
ShopOverlayName,
"ButtonForward"
},
{
new CuiButton {
Button = {
Command = $ "shop.show components {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.81 0.78",
AnchorMax = "0.86 0.82"
},
Text = {
Text = $ "Components",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Components"
},
{
new CuiButton {
Button = {
Command = $ "shop.show misc {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.75 0.78",
AnchorMax = "0.80 0.82"
},
Text = {
Text = $ "Misc",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Misc"
},
{
new CuiButton {
Button = {
Command = $ "shop.show traps {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.69 0.78",
AnchorMax = "0.74 0.82"
},
Text = {
Text = $ "Traps",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Traps"
},
{
new CuiButton {
Button = {
Command = $ "shop.show ammunition {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.63 0.78",
AnchorMax = "0.68 0.82"
},
Text = {
Text = $ "Ammunition",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Ammunition"
},
{
new CuiButton {
Button = {
Command = $ "shop.show food {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.57 0.78",
AnchorMax = "0.62 0.82"
},
Text = {
Text = $ "Food",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Food"
},
{
new CuiButton {
Button = {
Command = $ "shop.show medical {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.51 0.78",
AnchorMax = "0.56 0.82"
},
Text = {
Text = $ "Medical",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Medical"
},
{
new CuiButton {
Button = {
Command = $ "shop.show tools {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.45 0.78",
AnchorMax = "0.50 0.82"
},
Text = {
Text = $ "Tools",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Tools"
},
{
new CuiButton {
Button = {
Command = $ "shop.show attire {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.39 0.78",
AnchorMax = "0.44 0.82"
},
Text = {
Text = $ "Attire",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Attire"
},
{
new CuiButton {
Button = {
Command = $ "shop.show resources {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.33 0.78",
AnchorMax = "0.38 0.82"
},
Text = {
Text = $ "Resources",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Resources"
},
{
new CuiButton {
Button = {
Command = $ "shop.show items {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.27 0.78",
AnchorMax = "0.32 0.82"
},
Text = {
Text = $ "Items",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Items"
},
{
new CuiButton {
Button = {
Command = $ "shop.show construction {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.21 0.78",
AnchorMax = "0.26 0.82"
},
Text = {
Text = $ "Construction",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Construction"
},
{
new CuiButton {
Button = {
Command = $ "shop.show weapons {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.15 0.78",
AnchorMax = "0.20 0.82"
},
Text = {
Text = $ "Weapons",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Weapons"
},
{
new CuiButton {
Button = {
Command = $ "shop.show commands {shoppageminus}",
Color = "0.5 0.5 0.5 0.5"
},
RectTransform = {
AnchorMin = "0.09 0.78",
AnchorMax = "0.14 0.82"
},
Text = {
Text = $ "Commands",
Align = TextAnchor.MiddleCenter,
Font = "robotocondensed-regular.ttf",
FontSize = 12
}
},
ShopOverlayName,
"Commands"
}
};
}Merged post
Ok, so I fixed the images not showing up. It appears unity or someone in the chain is not allowing my self-signed certificate after the last update, and my web server is set to refuse insecure content of any type.
So the solution was to add an exception to the image directory and allow my IP (not domain) address to allow any requests.
so it went from https://myurl.com/images to http://00.000.000.00/images, and now it works.
About the changes I wish to see on next version to add the misc category (code above), should I start a new post?
This is how it looks, and of course it works great, images and all:
https://steamcommunity.com/sharedfiles/filedetails/?id=1653407552