heinermann / Valheim_mods

My Valheim mods
Other
2 stars 3 forks source link

monster prefabs and boss stone placement #3

Open burn420 opened 2 years ago

burn420 commented 2 years ago

Description

1) monster prefabs wont keep the desired rotation direction after being placed. after being placed, the prefab will have a new undesired rotation.. this is easily illustrated with the training dummy in particular. the problem persists with all the other monster prefabs, but the training dummy is the one im most concerned with (personal build project im workin on).

2) the boss stones are still being placed -2 (meters?) below the surface of the ground. resulting in the boss stones being halfway immersed in the ground.

To Reproduce

Steps to reproduce the behavior:

  1. place a monster prefab (i.e., trainingdummy)
  2. place a boss stone (i.e. BossStone_Bonemass)

Expected behavior

  1. monster prefabs (i.e., trainingdummy) should retain desired rotation after placement
  2. boss stone placement (i.e. BossStone_Bonemass) should be at ground level, not clipping thru the ground at -2 meters below the surface of the ground

Log file and Screenshots

(Upload log file and/or screenshots if relevant) On Windows, the logfile should be located at %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\Player.log

Mod list

Version

heinermann commented 2 years ago

monster prefabs wont keep the desired rotation direction after being placed. after being placed, the prefab will have a new undesired rotation.. this is easily illustrated with the training dummy in particular. the problem persists with all the other monster prefabs, but the training dummy is the one im most concerned with (personal build project im workin on).

I'm not sure if this is controllable. Is there another spawner mod that makes NPCs face a certain direction?

the boss stones are still being placed -2 (meters?) below the surface of the ground. resulting in the boss stones being halfway immersed in the ground.

Will fix this one

burn420 commented 2 years ago

I'm not sure if this is controllable. Is there another spawner mod that makes NPCs face a certain direction?

infinity hammer

using the console commands included with IH, i can assign prefabs to the hammer and place any prefab monsters/creatures/spawners/trainingdummy.

the main rotation axis behaves normally when doing it this way. if i assign trainingdummy to the hammer via "hammer trainingdummy" i can then place the training dummy precisely and it will retain the main desired rotation axis when placed.

using your mod with infinity hammer, Better Creative seems to override InfinityHammer's placement logic.

having the prefab list INSIDE the build menu is such an easier time than looking up prefab names for assignment to the hammer. so thats why im using your mod.

if you cant fix it, can you make a toggle inside the config for completely enabling/disabling your mods functionality?

that way i could still use infinity hammer for the problem monster prefabs and then just toggle your mod on/off as needed in the config manager.

the boss stones are still being placed -2 (meters?) below the surface of the ground. resulting in the boss stones being halfway immersed in the ground.

Will fix this one

excellent!

burn420 commented 2 years ago

i should also note that the Haldor prefab (Trader/Merchant) does NOT have this issue with maintaining his placement axis. i can place him facing any direction and he will maintain that direction after being placed.

maybe look into what makes him special.

heinermann commented 2 years ago

Haldor isn't technically an NPC, it's just an interactable object that plays animations. So it doesn't have a Character component.

heinermann commented 2 years ago

I'm not experiencing the issue with the boss stones.