Parented func_brush doesnt sticks to animated plate
Quote from Skelpolu on July 19, 2011, 3:39 pmHey there, Thinkingwithportals-Community.
I were new when I started to watch SkwittGaming's Portal 2 Mapping Tutorial's on Youtube.
I got a little map idea to start off with, it's not finished and yet I got a problem - I got a plate, that has got an parented func_brush to it, since I want to disguise it as a wall, I used a idle-animation to start of with, since it isn't in that 90? state when the map loads. I used a auto_relay for that. ( I also used the same auto_logic on other plates, they doesn't work either when I push a button inside a room, you'll see in the map ) To "weld" and parent the func_brush to the plate(s, since I got no clue of they work on the other ones - these are invisible ingame ) I used the general "parent" tab in the func_brush properties and also used a auto_logic to attach it correctly, like SkwittGaming mentioned and showed in their video. ( Just search in their videos, you'll see a video called "Portal 2 Authoring Tools - Panels!!" ) I got no clue why it doesnt works, but if anybody out there knows whats wrong, please tell me.I don't know if a compile-result makes sense now, since it didnt had any errors while compiling, its more like a logical-problem I have here. ( If you need it though, just tell me, but I told you: It's not different to all other compile-results at all )
I would like to give you the vmf directly, but how should I, when the file-uploader tells me that the file extention .vmf isn't allowed? And since I'm not allowed to upload it anywhere else, I'm stuck. Herp. I hope someone can help me uploading that freakin' map, else I agree it when you say: "We cannot help you when we don't have any information about the map!"
Excuse me about the troubles I have with uploading, I hope This doesn't counts as a warning now, I'm just new to this type of uploading-system.
- Skelpolu
Hey there, Thinkingwithportals-Community. ![]()
I were new when I started to watch SkwittGaming's Portal 2 Mapping Tutorial's on Youtube.
I got a little map idea to start off with, it's not finished and yet I got a problem - I got a plate, that has got an parented func_brush to it, since I want to disguise it as a wall, I used a idle-animation to start of with, since it isn't in that 90? state when the map loads. I used a auto_relay for that. ( I also used the same auto_logic on other plates, they doesn't work either when I push a button inside a room, you'll see in the map ) To "weld" and parent the func_brush to the plate(s, since I got no clue of they work on the other ones - these are invisible ingame ) I used the general "parent" tab in the func_brush properties and also used a auto_logic to attach it correctly, like SkwittGaming mentioned and showed in their video. ( Just search in their videos, you'll see a video called "Portal 2 Authoring Tools - Panels!!" ) I got no clue why it doesnt works, but if anybody out there knows whats wrong, please tell me. ![]()
I don't know if a compile-result makes sense now, since it didnt had any errors while compiling, its more like a logical-problem I have here. ( If you need it though, just tell me, but I told you: It's not different to all other compile-results at all )
I would like to give you the vmf directly, but how should I, when the file-uploader tells me that the file extention .vmf isn't allowed? And since I'm not allowed to upload it anywhere else, I'm stuck. Herp. I hope someone can help me uploading that freakin' map, else I agree it when you say: "We cannot help you when we don't have any information about the map!"
Excuse me about the troubles I have with uploading, I hope This doesn't counts as a warning now, I'm just new to this type of uploading-system. ![]()
- Skelpolu
Quote from PrejudicedNanobot on July 19, 2011, 4:19 pmI haven't watched the video you mention, but the method you're describing sounds like it should work. For reference, here's how I attach brushes to panels:
(This assumes there's a func_brush called panel_A and a prop_dynamic called arm_A.)
- The "Parent" field of panel_A should be set to "arm_A".
- In a logic_auto entity, there should be two outputs:
-- OnMapSpawn > arm_A > SetAnimation > name_of_desired_starting_animation > No Delay > Fire Once: Yes (alternatively, you can set the "Default Animation" field in arm_A)
-- OnMapSpawn > panel_A > SetParentAttachmentMaintainOffset > panel_attach > Delay: 0.10 seconds > Fire Once: YesAs I said, from your description it seems likely that you're already doing things this way, but hopefully this description helps to confirm things. It might also be useful to take a look at this tutorial (it's substantially more detailed).
I haven't watched the video you mention, but the method you're describing sounds like it should work. For reference, here's how I attach brushes to panels:
(This assumes there's a func_brush called panel_A and a prop_dynamic called arm_A.)
- The "Parent" field of panel_A should be set to "arm_A".
- In a logic_auto entity, there should be two outputs:
-- OnMapSpawn > arm_A > SetAnimation > name_of_desired_starting_animation > No Delay > Fire Once: Yes (alternatively, you can set the "Default Animation" field in arm_A)
-- OnMapSpawn > panel_A > SetParentAttachmentMaintainOffset > panel_attach > Delay: 0.10 seconds > Fire Once: Yes
As I said, from your description it seems likely that you're already doing things this way, but hopefully this description helps to confirm things. It might also be useful to take a look at this tutorial (it's substantially more detailed).
Quote from Skelpolu on July 19, 2011, 4:45 pmHerp derp, even with your pretty precise description it doesnt works. I got a way more complicated way, but the way I do it is actually the same, at least for "parenting" them.
Tell me how to upload the vmf for quicker description, a file can do that better than me.
auto_logic:
OnMapSpawn > Laser-Plate-Brush > SetParentAttachmentMaintainOffset > panel_attach > 0.10the auto_relay I mentioned:
OnTrigger > Laser-Plate > Laser-Plate > 90idle > 0.00The plate itself:
name: Laser-Plate, Parent: none, since the brush is parented to it, not vice versa
World-Model: models/anim_wp/telescope_arm_128/telescope_arm_128.mdlThe func_brush:
name: Laser-Plate-Brush, Parent: Laser-PlateI just don't get why it doesnt works ..
Also, it works on the other animated plates, maybe its because the Laser-Plate is on IDLE state, when I parent it to it, but since I made a delay to set it's parent-attachment 0.10 after the animation, it should work, shouldnt it?
Herp derp, even with your pretty precise description it doesnt works. I got a way more complicated way, but the way I do it is actually the same, at least for "parenting" them.
Tell me how to upload the vmf for quicker description, a file can do that better than me. ![]()
auto_logic:
OnMapSpawn > Laser-Plate-Brush > SetParentAttachmentMaintainOffset > panel_attach > 0.10
the auto_relay I mentioned:
OnTrigger > Laser-Plate > Laser-Plate > 90idle > 0.00
The plate itself:
name: Laser-Plate, Parent: none, since the brush is parented to it, not vice versa
World-Model: models/anim_wp/telescope_arm_128/telescope_arm_128.mdl
The func_brush:
name: Laser-Plate-Brush, Parent: Laser-Plate
I just don't get why it doesnt works ..
Also, it works on the other animated plates, maybe its because the Laser-Plate is on IDLE state, when I parent it to it, but since I made a delay to set it's parent-attachment 0.10 after the animation, it should work, shouldnt it?
Quote from Rubrica on July 19, 2011, 5:03 pmSkelpolu wrote:OnTrigger > Laser-Plate > Laser-Plate > 90idle > 0.00Is the second Laser-Plate a typo? If not, there's a problem there, though I don't know if it's the problem you're describing. It should be SetAnimation. I get the feeling you just mistyped, though.
Is the second Laser-Plate a typo? If not, there's a problem there, though I don't know if it's the problem you're describing. It should be SetAnimation. I get the feeling you just mistyped, though.
Quote from PrejudicedNanobot on July 19, 2011, 5:19 pmI've just checked in the model viewer and the attachment name for telescope_arm_128.mdl is apparently panel_top, not panel_attach as it is for some of the other arm models. I imagine that's probably the source of the problem.
I've just checked in the model viewer and the attachment name for telescope_arm_128.mdl is apparently panel_top, not panel_attach as it is for some of the other arm models. I imagine that's probably the source of the problem.
