#object disappeared

111 messages · Page 1 of 1 (latest)

dapper sable
#

Why?! All I did was change the rotation and change it back again and it totally corrupted the item
<@&553315866146766850>

#

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!?

dense tree
#

there is no need to do anything when you are in prefab editor as changes are automatically applied to prefabs

dense tree
#

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!!)

dapper sable
dense tree
#

your first message says you changed rotation

#

I really dont know what to take away from this

dapper sable
#

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 :|

dense tree
#

'now' compared to when?

#

no noise because there is no 'use' sound and probably no sound specified in dat file

dapper sable
dense tree
#

this is not very informative

#

😭

dapper sable
#

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 GrieferThonk

dense tree
#

what example did you duplicate to start with?

dapper sable
#

Maple Crate

#

hence why it had wood sounds and stuff attached

dense tree
#

so what are the current problems

dapper sable
#

well I've started from scratch so I'll bundle it and tell you what the problems are

dapper sable
# dense tree so what are the current problems
  1. The item shows up rotated in the inventory
  2. 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)
  3. No sound when placing
#

oh yeah and it's still completely massive when held by a player and clips into the player

dense tree
#
  1. double click the item here
#

use these arrows to dictate what perspective you want the icon to be from

dapper sable
#

I'm not seeing half the options you are

dense tree
#

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

dapper sable
#

ok

#

okay I've done that

dense tree
#
  1. did you copy dat file of a freeform plate?
#

they have different placing than normal barricades

dapper sable
#

I

#

well I just changed the data file to say freeform

dense tree
#

well thats from freeform

#

and it will 'rotate all over the place'

#

xD

dapper sable
#

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

dense tree
#

honestly no clue on that one

dapper sable
#

I fixed it xD

dense tree
#

good

dapper sable
#

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

dense tree
#

its saying blocked because of its origin point/radius/offset

#

I think I explained it somewhere

#

give me a sec

dapper sable
dense tree
#

#modding-archived message

dense tree
#

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

dapper sable
#

and how do I change the sound of the object when placed?

#

I just want the default concrete placing sound or whatever

dense tree
#

PlacementAudioClip core.masterbundle:Sounds/WoodenPlacement.mp3

#

add this to the dat file

dapper sable
#

is wooden placement the only placement sound?

dense tree
#

I think theres like metal

#

look around the vanilla placables

#

the wooden is most generic

dapper sable
#

yeah

#

wood will do for concrete

#

And how do I stop the item clipping into the player?

#

that's the only problem left

dense tree
#

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

dapper sable
#

how do I do something about how it's held?

dense tree
#

placable items commonly use scaled down models for the item in your hands

#

use custom animations

#

or other animations

dapper sable
#

Is it really that complicated?

#

I thought it would just be moving it forward and scaling it down

dense tree
#

I said that OR

dapper sable
#

so custom animations or other animations 🤔

dapper sable
#

oh that

#

hooray hooray