Working with Instances
Mediaburn wrote:
I agree with msleeper. How about a community project for those elevators. Can't we create a clean elevator for every type. And set it only to work for going up or down (and no lighting whatsoever). So everyone can customise it to their own map? Or am I talking Lie Cake now?
Creating a "base" template would be a good idea, yeah. But just a clean elevator, a destructed one would be a good idea too, since that is a theme.
Another suggestion that I might tap into later: allowing map switches, instead of the standard one map only elevators. It'd be ideal for people who are working on a full campaign (like moi) who need to use more than one map.
Erich wrote:
Another suggestion that I might tap into later: allowing map switches, instead of the standard one map only elevators. It'd be ideal for people who are working on a full campaign (like moi) who need to use more than one map.
Ya totaly! So that would make like 4 elevators. 2 clean with exit and map switch and 2 destructed with exit and map switch. And Im defently making a campaign so it would be very nice to have basic instances for that. (And maybe of both types. One that goes up. And one that goes down.)
Erich wrote:
Another suggestion that I might tap into later: allowing map switches, instead of the standard one map only elevators. It'd be ideal for people who are working on a full campaign (like moi) who need to use more than one map.
just uploaded a example map switch
tactical fluke wrote:
Erich wrote:Another suggestion that I might tap into later: allowing map switches, instead of the standard one map only elevators. It'd be ideal for people who are working on a full campaign (like moi) who need to use more than one map.
just uploaded a example map switch
changelevel example + source
enjoy
But aint the elevator 
I'm totally baffled by the instances. I can't understand how am I supposed to work with their I/O. Basically, what I'm trying to do now is to make cleanser_128x128 instance to shut down it's emancipation field when a button is pressed.
Right now, the outputs look like this:
OnPressed
$cleanser_name
Open
OnButtonReset
$cleanser_name
Close
Sliipperi wrote:
I'm totally baffled by the instances. I can't understand how am I supposed to work with their I/O. Basically, what I'm trying to do now is to make cleanser_128x128 instance to shut down it's emancipation field when a button is pressed.
Right now, the outputs look like this:
```
OnPressed
$cleanser_name
Open
> ```
OnButtonReset
> $cleanser_name
> Close
Try using Enable and Disable instead of Open and Close, respectively.
Sliipperi wrote:
Doesn't work. I remember reading somewhere in this thread, or in these forums, that the instance needs to have func_instance_io_proxy in order to get the I/O working. Instances are so confusing right now.
It does, should have caught that.
Anyway, the cleanser instance provided with the Authoring Tools isn't meant to be switched on or off, which explains why there isn't an I/O proxy in it. My suggestion is, since it's rather simple to construct, don't even bother with the instance. Place the props and the trigger_portal_cleanser (and the hint brush if you wish) directly in your map; that way you can easily enable/disable the cleanser. And for the record, use Enable/Disable instead of Open/Close, because the trigger brush doesn't have Open/Close inputs.
I don't know if you've seen my post (scroll down until you see the first post by me on the page) a few pages back, but it's the one thing that really cleared up instances for me. Hope it helps.
I made the fizzler from scratch, and got it working. Also learned to use logic gates. I think I'm learning Hammer here faster and better than anywhere else.
EDIT: Never mind it IS POSSIBLE!
Naigel wrote:
Man, some of the 'official' instances are ugly... carved surfaces and just bad brushwork. Kind of lazy if you ask me. Anyway, I have a question about instances: is there a way to easily list custom instances? That means, instances made by me. I have been making some small adjustments to few instances and renamed them, but I forgot which those were and how many... I'm afraid I'll have to do some manual comparing. Please tell me I'm wrong!
You can check the list of Portal 2 instances on the VDC; it's not quite complete but there's a fair amount of info there. Unfortunately, there's no other way short of... no, none that I can think of.