dwarfmaster1974
Refugee
Hello survivors,
in principle, I have something very simple in mind.
I want to create a block that you can open like a workstation, which then only opens a window where an image is displayed.
This image, then, contains something like information within the game, such as a certain event.
The images come from an external server, which I can then exchange depending on the date.
I have seen that with the images in this mod and tried to adapt this. (Snufkin-LootboxAddon)
https://github.com/arramus/Snufkin-Weapons-Xpansion-A19-2021November20/tree/main/Snufkin_Weapons_Xpansion_LootboxAddon_A19_2021November20
This is what I have so far:
blocks.xml
<append xpath="/blocks">
<block name="orb-1">
<property name="Extends" value="stainlessSteelPillar100Cap"/>
<property name="CustomIcon" value="stainlessSteelPillar100Cap"/>
<property name="DescriptionKey" value="orb-1-desc"/>
<property name="Class" value="Workstation"/>
<property name="Path" value="solid"/>
<property name="ImposterExchange" value="imposterBlock" param1="143"/>
<property name="Collide" value="sight,movement,melee,bullet,arrow,rocket"/>
<property name="OpenSound" value="open_workbench"/>
<property name="CloseSound" value="close_workbench"/>
</block>
</append>
windows.xml
<append xpath="/windows">
<window name="orb-1" anchor="CenterCenter" depth="11">
<texture depth="11" pivot="center" width="1842" height="1036" texture="@http://nw-2.de/orb-1.png"/>
</window>
</append>
xui.xml
<append xpath="/xui/ruleset">
<window_group name="workstation_orb-1" controller="XUiC_WorkstationWindowGroup">
<window name="orb-1"/>
</window_group>
</append>
The block also shows that I can use it, but it does not open.
At startup, the message in the attachment comes up.
Can you tell me what I am doing wrong or what is still missing?
I would be really happy about that.

in principle, I have something very simple in mind.
I want to create a block that you can open like a workstation, which then only opens a window where an image is displayed.
This image, then, contains something like information within the game, such as a certain event.
The images come from an external server, which I can then exchange depending on the date.
I have seen that with the images in this mod and tried to adapt this. (Snufkin-LootboxAddon)
https://github.com/arramus/Snufkin-Weapons-Xpansion-A19-2021November20/tree/main/Snufkin_Weapons_Xpansion_LootboxAddon_A19_2021November20
This is what I have so far:
blocks.xml
<append xpath="/blocks">
<block name="orb-1">
<property name="Extends" value="stainlessSteelPillar100Cap"/>
<property name="CustomIcon" value="stainlessSteelPillar100Cap"/>
<property name="DescriptionKey" value="orb-1-desc"/>
<property name="Class" value="Workstation"/>
<property name="Path" value="solid"/>
<property name="ImposterExchange" value="imposterBlock" param1="143"/>
<property name="Collide" value="sight,movement,melee,bullet,arrow,rocket"/>
<property name="OpenSound" value="open_workbench"/>
<property name="CloseSound" value="close_workbench"/>
</block>
</append>
windows.xml
<append xpath="/windows">
<window name="orb-1" anchor="CenterCenter" depth="11">
<texture depth="11" pivot="center" width="1842" height="1036" texture="@http://nw-2.de/orb-1.png"/>
</window>
</append>
xui.xml
<append xpath="/xui/ruleset">
<window_group name="workstation_orb-1" controller="XUiC_WorkstationWindowGroup">
<window name="orb-1"/>
</window_group>
</append>
The block also shows that I can use it, but it does not open.
At startup, the message in the attachment comes up.
Can you tell me what I am doing wrong or what is still missing?
I would be really happy about that.
