Portal 2 Laser Catcher to activate door

Portal 2 Laser Catcher to activate door

Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Sat Jul 28th 2012 at 3:00am
Necromancer
392 posts
Posted 2012-07-28 3:00am
392 posts 1499 snarkmarks Registered: May 5th 2008
I just started mapping for Portal 2 and I am having some difficulties. I am trying to have a laser catcher activate a door (I do have the catcher setup because it receives lasers from the launcher and it changes colors) but it doesn't do what I want.

I also have the 2 logic relays for onpowered and offpowered with the targets and inputs and all that stuff, but the door still won't open.

Any ideas how to make it work? (I hope you have enough info)
Re: Portal 2 Laser Catcher to activate door Posted by Niborius on Sat Jul 28th 2012 at 4:07pm
Niborius
1007 posts
Posted 2012-07-28 4:07pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
I don't have much time at the moment as I am not at home right now, but I think that logic_relays are not necessary. I think you can make in-/outputs on objects like the door and the laser as well. Did you use a preset for the door?

When I'm back from Belgium I'll have a look at my own map and see how I did it there, but that'll be a week from now.

Hope it works out!
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Sat Jul 28th 2012 at 7:02pm
Necromancer
392 posts
Posted 2012-07-28 7:02pm
392 posts 1499 snarkmarks Registered: May 5th 2008
I used a preset for the door. Also, I may be wrong about this, but I think the relays may be necessary, because they are used in the sample map. Does the actual door need some kind of relay too?
I think you can make in-/outputs on objects like the door and the laser as well.
There is for the laser, which targets my relays. (I think I am remembering that correctly, I don't have it in fornt of me now though)

Well, anyway I'll try what you said. I am still trying to get this new input/output thing down for all of the different stuff.
Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Sun Jul 29th 2012 at 4:00am
Necromancer
392 posts
Posted 2012-07-29 4:00am
392 posts 1499 snarkmarks Registered: May 5th 2008
I got it to work today. I think one of my relays targeted a weird instance, because it had relay in the name (it was something like door_open_relay; trigger) but when I remade the triggers it did not say this, and it worked.

Also, I think you may be correct Niborius about not needed relays. (I have not officially tested it yet though) but it seems they may not be needed. I kept them this time since I had them already, but I'll try without them next time if I remember.
Re: Portal 2 Laser Catcher to activate door Posted by Niborius on Sun Jul 29th 2012 at 9:03am
Niborius
1007 posts
Posted 2012-07-29 9:03am
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
The in-/output system is usually not that difficult, but with instances/presets there seem to be some custom commands sometimes (like door_open_relay; trigger) which can make it more difficult. But following a tutorial step by step should usually do it :)

Again, when I'm back I'll check how I did it. Hope they'll work for you in the meantime!
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Mon Jul 30th 2012 at 3:13am
Necromancer
392 posts
Posted 2012-07-30 3:13am
392 posts 1499 snarkmarks Registered: May 5th 2008
I looked at one of the sample maps that had a box dropper where the box is destroyed when it is dropped in water, and I found out that the input via field (or whatever its called, it's the one below the input and output field) said "SilentDissolve" and it was in red and did not appear in the drop down box, but it does work though. So, do you know of any other special commands like this? Thanks.
Re: Portal 2 Laser Catcher to activate door Posted by Niborius on Mon Jul 30th 2012 at 11:56am
Niborius
1007 posts
Posted 2012-07-30 11:56am
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
I think the instance makes a unique command, so I do not think that there are any other of those commands. There are however different kinds of instances, like box_dropper_multiple (or something like that) which you must use if you have more than one box dropper in the level. (So that may already be the answer to a future question when you wonder why your second box dropper is not working properly, like it did for me :) )

I'd have a look at this site https://developer.valvesoftware.com/wiki/Main_Page since you can find anything mapping related there (Not all articles are about Portal 2 though, but I believe everything you need to know is in it)
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Mon Jul 30th 2012 at 7:28pm
Necromancer
392 posts
Posted 2012-07-30 7:28pm
392 posts 1499 snarkmarks Registered: May 5th 2008
There are however different kinds of instances, like box_dropper_multiple (or something like that) which you must use if you have more than one box dropper in the level.
I did read about this in the tutorial, but do you know why they made it so that you have to specify mutliple. Because you wouldn't have to have multiple doors or anything?

Also, do you know if this applies to any other instances or just the box dropper?
Re: Portal 2 Laser Catcher to activate door Posted by Niborius on Mon Jul 30th 2012 at 7:49pm
Niborius
1007 posts
Posted 2012-07-30 7:49pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
This is just for the box droppers.

What happened to me when I forgot about this is that one box dropper would drop 2 boxes simultanously. This was fine when I followed the tutorial when using the box_dropper_multiple.

It's probably because the doors are much more simple than the box droppers
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Mon Jul 30th 2012 at 7:59pm
Necromancer
392 posts
Posted 2012-07-30 7:59pm
392 posts 1499 snarkmarks Registered: May 5th 2008
What happened to me when I forgot about this is that one box dropper would drop 2 boxes simultanously.
1) Would that even happen when you give both box droppers a different fix up name?

2) Also, what is the purpose of the @ sign before the fix-up name? Because I have never used that and everything has been working fine so far.
Re: Portal 2 Laser Catcher to activate door Posted by Niborius on Mon Jul 30th 2012 at 8:20pm
Niborius
1007 posts
Posted 2012-07-30 8:20pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
Yea I think it will. But using the box_dropper_multiple works the same, so it shouldn't be too much trouble.

I think the @ sign also has something to do with the dropper being an instance. If I'm correct the instance is actually being loaded from another map, one with only the preset of the box dropper, which is what makes it more complicated.

You shouldn't mess too much with the instances unless you need to and read about it in the wiki.

Again, good luck, and I hope the map-loading issue will be fixed!
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Portal 2 Laser Catcher to activate door Posted by Necromancer on Mon Jul 30th 2012 at 8:26pm
Necromancer
392 posts
Posted 2012-07-30 8:26pm
392 posts 1499 snarkmarks Registered: May 5th 2008
If I'm correct the instance is actually being loaded from another map
Yes, that is true.
Again, good luck, and I hope the map-loading issue will be fixed!
Oh, there is not a loading problem. (I was just saying that when there are leaks it does not load. Also, I am just trying to get some new information about some of these things. :)

And I am actually starting to be able to make some cool things now. (At least considering it's my first map)

I may post it when it's finished to see what you (or anyone) thinks about my first attempt at a Portal 2 level. I am sure it probably needs work, but I still like it though.