Obenseuer/Modding: Difference between revisions

From Stalburg Wiki
Jump to navigation Jump to search
mNo edit summary
(added Layer information)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Custom Unity files for [[Obenseuer]] can be loaded using the [https://github.com/Ierdna100/OSLoader OSLoader], created by Ierdna100.
Custom Unity files for [[Obenseuer]] can be loaded using the [https://github.com/Ierdna100/OSLoader OSLoader], created by Ierdna100. Additional modding library, the [https://github.com/BoettcherDasOriginal/OSML_ObenseuerSimpleModdingLibrary/ OSML] created by BoettcherDasOriginal, is available for OSLoader.


==Adding new furniture==
==Adding new furniture==
Line 23: Line 23:
       -> Stuff + Collision (Rigidbody(kinematic), Box Collider(trigger), InsideTrigger.cs)
       -> Stuff + Collision (Rigidbody(kinematic), Box Collider(trigger), InsideTrigger.cs)
  </code>
  </code>
==Layers==
* Layer 08: IgnoreCamera
* Layer 09: Ragdoll
* Layer 10: Player
* Layer 11: ItemPreview
* Layer 12: Placeable
* Layer 13: Wall
* Layer 14: NotWalkableSurfaceAI
* Layer 15: NPC
* Layer 16: OnlyWorldCollision
* Layer 17: Usable
* Layer 18: PostProcessing
* Layer 19: PostProcessingWasteland
* Layer 20: 3DSkybox
* Layer 21: UI
* Layer 22: DontHideFirstPerson
* Layer 23: UsableStatic
* Layer 24: FirstPerson
* Layer 25: PlayerClip


[[Category:Community Content]]
[[Category:Community Content]]

Latest revision as of 08:53, 8 July 2024

Custom Unity files for Obenseuer can be loaded using the OSLoader, created by Ierdna100. Additional modding library, the OSML created by BoettcherDasOriginal, is available for OSLoader.

Adding new furniture[edit | edit source]

Furnitures are made out of two prefabs, the furniture prefab and the preview prefab.

Furniture prefab[edit | edit source]

Rendered on user layer 12, named as Placeable.

Component structure:


Prefab (FurniturePlaceable.cs)
  -> rotate (empty object)
     -> Stuff (components, like the MeshRenderer, of the furniture)

Preview prefab[edit | edit source]

Rendered on user layer 11, named as ItemPreview.

Component structure:


Preview Prefab
  -> rotate (ObjectPreview.cs)
     -> Stuff + Collision (Rigidbody(kinematic), Box Collider(trigger), InsideTrigger.cs)

Layers[edit | edit source]

  • Layer 08: IgnoreCamera
  • Layer 09: Ragdoll
  • Layer 10: Player
  • Layer 11: ItemPreview
  • Layer 12: Placeable
  • Layer 13: Wall
  • Layer 14: NotWalkableSurfaceAI
  • Layer 15: NPC
  • Layer 16: OnlyWorldCollision
  • Layer 17: Usable
  • Layer 18: PostProcessing
  • Layer 19: PostProcessingWasteland
  • Layer 20: 3DSkybox
  • Layer 21: UI
  • Layer 22: DontHideFirstPerson
  • Layer 23: UsableStatic
  • Layer 24: FirstPerson
  • Layer 25: PlayerClip