#object disappeared
111 messages · Page 1 of 1 (latest)
also why does it show up like this in the inventory?!
and why is it obscuring the player?
and why is it brown when the material is grey!?
you seem to be in prefab editor and dragging your prefabs... somewhere?
there is no need to do anything when you are in prefab editor as changes are automatically applied to prefabs
because you rotated the item? 🤔
you said so at least
icons are casted from 'icon' child of the item prefab
you can preview them by adding a camera to that icon prefab (make sure to remove afterwards!!)
I never set a rotation
your first message says you changed rotation
I really dont know what to take away from this
it always does this even before I changed the rotation
And when I said I changed it just then, I immediately changed it back without bundling
the item is just invisible now and makes no noise when placing it :|
'now' compared to when?
no noise because there is no 'use' sound and probably no sound specified in dat file
compared to before I tried fixing it
sorry xD give me chance!!
When I first did it I set it to brown which was a mistake because it looked like wood, and furthermore I had forgotten to change the effects so it was actually sounding and hitting like wood too
Additionally it didn't look right in the inventory (see above)
And it would always place down upside down
and you had to rotate it upwards yourself
and it would say "blocked" unless it was specifically clipping into the floor 
what example did you duplicate to start with?
so what are the current problems
well I've started from scratch so I'll bundle it and tell you what the problems are
- The item shows up rotated in the inventory
- When placing the item it shows up in this angle: (see picture) and moving it around is really difficult, like scrolling moves it left and right, and moving your mouse seems to rotate the object all over the place (probably because of how it's rotated)
- No sound when placing
oh yeah and it's still completely massive when held by a player and clips into the player
- double click the item here
use these arrows to dictate what perspective you want the icon to be from
then click Icon once and click ctrl+shift+f to move camera to your view
the models are irrelevant in this
Im telling you how to fix your icon
- did you copy dat file of a freeform plate?
they have different placing than normal barricades
okay let me explain what I mean
I want it to be free form
but if I move my mouse left it appears to move in the complete other direction
or right or forwards and backwards
in other words, rotating the item is not intuitive because it seems to be rotating on a different axis
yeah I've figured out what it's doing now
if I move the mouse horizontally (while right clicking of course) it rotates the object across the what I think is the X plane
if I move the mouse backwards and forwards it rotates across the Y plane
if I scroll, the object rotates across the Z plane
that's all messed up, it should rotate on the Z plane when I move the mouse back and forwards
(also I am only assuming it's the Z plane because relative to me it's depth, and Y is height etc.)
in other words, the game doesn't seem to know what way the object is facing
Yeah my theory was correct
honestly no clue on that one
I fixed it xD
good
All I had to do was go to model_0 and change the rotation on the Z axis
okay
only other problem
well, other than this:
the only other problem is because it's still using the Crate's .. thingy.. it often responds as "blocked" when trying to place the barricade
this thing
I'm sure this is the problem
hmm maybe not actually :/ seems like it's tied to LODs
its saying blocked because of its origin point/radius/offset
I think I explained it somewhere
give me a sec
oh wait is that done in the data file?
#modding-archived message
yes and no
you can change the radius and offset in the dat file
the origin of the object has to be changed in unity or through blender
and how do I change the sound of the object when placed?
I just want the default concrete placing sound or whatever
PlacementAudioClip core.masterbundle:Sounds/WoodenPlacement.mp3
add this to the dat file
is wooden placement the only placement sound?
I think theres like metal
look around the vanilla placables
the wooden is most generic
yeah
wood will do for concrete
And how do I stop the item clipping into the player?
that's the only problem left
the item that appears in your hands is the item.prefab
so you need to do something about how its held or change the scale of that model
how do I do something about how it's held?
placable items commonly use scaled down models for the item in your hands
use custom animations
or other animations
Is it really that complicated?
I thought it would just be moving it forward and scaling it down
I said that OR
so custom animations or other animations 🤔