Skip to content

Commit

Permalink
Merge pull request #311 from satisfactorymodding/patch
Browse files Browse the repository at this point in the history
Work around Cloudflare serving things as WEBPs by linking to PNG atta…
  • Loading branch information
budak7273 authored Aug 21, 2024
2 parents 31e696b + 5b2e72b commit 7cfc391
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"uasset",
"UCLASS",
"uconfigproperty",
"UE_LOGFMT",
"UFGCD",
"ufgitemdescriptor",
"ufgunlock",
Expand All @@ -109,7 +110,6 @@
"UKBFL",
"umenuworldmodule",
"undetailed",
"UE_LOGFMT",
"UOBJECT",
"UPARAM",
"uplugin",
Expand All @@ -119,6 +119,7 @@
"USTRUCT",
"VRAM",
"Vulkan",
"webp",
"winget",
"Wwise",
"wwiser",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ The building's final display name and description are also pulled from this asse
the descriptor's fields for this purpose are not used, which is part of why they are greyed out in the editor.

The descriptor category, subcategory, and icon also determine how the building will appear in the Build Gun.
You can use link:{attachmentsdir}/BeginnersGuide/simpleMod/Icon_DocBuild.png[this example image] as the icon.
You can use
// Links to GH hosted image because cloudflare serves it as a webp -> can't be imported to Unreal
link:https://raw.githubusercontent.com/satisfactorymodding/Documentation/master/modules/ROOT/attachments/BeginnersGuide/simpleMod/Icon_DocBuild.png[this example image] as the icon.

Building Descriptors use categories to determine where they appear in the build gun.
It's possible to create your own categories,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ M Small Icon::
An image texture to be used in the inventory, machine slots, and more.
The recommend size is 64px for regular items, and 256px for Build Gun items.
{blank} +
We have an image ready for use link:{attachmentsdir}/BeginnersGuide/simpleMod/Icon_DocItem.png[here].
// Links to GH hosted image because cloudflare serves it as a webp -> can't be imported to Unreal
We have an image ready for use
link:https://raw.githubusercontent.com/satisfactorymodding/Documentation/master/modules/ROOT/attachments/BeginnersGuide/simpleMod/Icon_DocItem.png[here].
You can import it in the Content Browser pane via `Add/Import > Import to...`.
* {blank}
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ M Time to Complete::
M Schematic Icon::
The icon displayed on a HUB milestone, MAM Research, or AWESOME Shop page and preview.
{blank} +
Go ahead and use link:{attachmentsdir}/BeginnersGuide/simpleMod/Icon_SchemDoc.png[this example image].
// Links to GH hosted image because cloudflare serves it as a webp -> can't be imported to Unreal
Go ahead and use https://raw.githubusercontent.com/satisfactorymodding/Documentation/master/modules/ROOT/attachments/BeginnersGuide/simpleMod/Icon_SchemDoc.png[this example image].
Consider making another folder to hold your schematic icons.
* {blank}
+
Expand Down
3 changes: 2 additions & 1 deletion modules/ROOT/pages/Development/ReuseGameFiles.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ xref:Development/BeginnersGuide/SimpleMod/buildable.adoc[Buildable tutorial],
which you can copy in from the ExampleMod in your project, or download it again from the above link.

For the icon texture, we can reuse the
link:{attachmentsdir}/BeginnersGuide/simpleMod/Icon_SchemDoc.png[Soon™ Icon]
// Links to GH hosted image because cloudflare serves it as a webp -> can't be imported to Unreal
link:https://raw.githubusercontent.com/satisfactorymodding/Documentation/master/modules/ROOT/attachments/BeginnersGuide/simpleMod/Icon_SchemDoc.png[Soon™ Icon]
from the
xref:Development/BeginnersGuide/SimpleMod/recipe.adoc[Recipe/Schematic tutorial],
which you can copy in from the ExampleMod in your project or download it again from the above link.
Expand Down

0 comments on commit 7cfc391

Please sign in to comment.