Elevator lighting
But why are the elevator rooms so dark? All of the monitors are black and there's hardly any lighting in the room. Before you ask I did set the videos in the arrival_departure_transition_ents instance to "media/laser_danger_horiz.bik" and "media/plc_blue_horiz.bik" which don't seem to work.
(And as a bonus, can someone tell me how to turn on the lights in the PTI large observation room? I tried observationroom4 ? instance:relay_lights_on;Trigger but it didn't work.)
The videos are shown up the way they do because of a script. That script was substituted by another one in DLC2 release and it seems to be broken. Only PTI maps videos work fine.
Anyway, you're lucky because Brainstone made some awesome instances for you. Check this post.
About the lightng, you should have an env_projectedtexture in the arrival/departure logic instances (search near the elevator prop itself
)... You can only have one of these entities active at a time (your observation rooms surely have another of these entities) so you should know their names and fire outputs "TurnOn" to each one you want active as the player walks through the map... Ofc you have many other resources to light up your observation rooms, your elevators or your map... Check the light entities' flags because many of them could be set to 'Start Off' (or 'Initially dark'
)
Theevina wrote:
So if the problem is because of the instance, then wouldn't all the Portal 2 elevator videos be broken?
I told you, the problem is not the instances, it is a script that Valve modified... I guess Brainstone found any kind of fix to how the videos are managed by this script and introduced some changes to amend Valve's mistake... I'm not using these elevators so I can't tell where the fix is
(pm Brainstone if you are interested)
Have you tried them? Did you test and watch the videos?
josepezdj wrote:
Theevina wrote:So if the problem is because of the instance, then wouldn't all the Portal 2 elevator videos be broken?
I told you, the problem is not the instances, it is a script that Valve modified...
The script they modified will pick a random video, even if you specify it in the instance.
Brainstone's instance is great, however it will only stretch the monitor video one way because of the inputs he put on the videos to get them to stretch and tile correctly.
On the note of the observation room: you can directly access entities by putting the prefix of the instance and the name of the entity originally in the instance in an output.
e.g. Instance is called observationroom4, projectedtexture inside instance is called project1. You can activate the projected texture by putting observationroom4-project1 -> TurnOn.
Plus I've tried both methods to trigger the observation room, the room -> instance:relay;Trigger and the room-relay -> trigger but neither work.
I hate instances and maybe I'm doing something entirely wrong. Can someone look at the map so that they can see what I mean? I'll replace the elevator instances if that is really the source of the video problem but the projected texture problem bothers me the most.
About instances, you shouldn't hate them because they are extremely helpfufl, overall if you are making a mod: you can set them up and then add them in every map of your mod withouit remaking them once and again for each level; and any change you introduce into them will be present into each of your maps. Also, an advanced use of instances allows you to have variables that you can set up in the instance's properties dialog box each time you use them, but with all possible happenings packed into the instance... like the cube_droppers for example, and this is awesome.
There is one thing that can help if you really don't want to deal wit instances: collapse them:
1. Select the entity (/ies) you want to collapse
2. Go to Tools > Instancing > collapse > Selection
But I strongly recommend you not to do, you can just edit them: open the instance's properties dialog box and head to the left bottom corner where it says "Edit Instance" and click it. Now you are into the instance. First thing I recommend you to do is to save it under a different name to keep Valve's instances intact. Now just mess around and check each entity into the instance. Check their names and I/O to find out how they work. This way you can search for any possible logic_relay not being triggered and causing your lack of lighting in the elevator for example.
Normally the elevators have an env_projectedtexture parented to the elevator prop that lights up your way to the elevator shaft. But there are also several light_spot and light entities. Some of them are named and they're set to start initially dark (check their flags) to be later turned on by means of logic_relays. Here you can change whatever to set it up your way anad to control the name and I/O of each entity (be sure of what you do in order not to cause more bad than good
). However, I think there must be a trigger brush right where the elevator prop is that turns the lights on as soon as the player is spawn in there and he triggers it.
In order to trigger a logic_relay inside an instance, apart from the method Chicken said above, you can also add an "@" prefix to the name of the entity inside the instance. Say for example that you have a logic_relay that turns your projectedtexture and some other lights on called "relay_lights_on", well, just name it "@relay_lights_on" (again, check its inputs/outputs in order to not cut any connection it has to other entities into the instance, ok?). Now you can trigger that relay from outside the instance if you want including in your output: Target entity name "@relay_lights_on" > Trigger
I hope this helps you somehow
zivi7 wrote:
If I remember correctly the videos in the standard PTI-elevator will only show when the map is uploaded to the workshop. When testing locally, the screens stay black.
Hmmm... really? That is a good information zivi
That explains many things... I had no doubt though regarding the videos, I know they work for the PTI maps because of that script modified with the DLC2
zivi7 wrote:
If I remember correctly the videos in the standard PTI-elevator will only show when the map is uploaded to the workshop. When testing locally, the screens stay black.
Except I'm not using the PTI elevator. I said I replaced all of those instances except for the observation room and some buttons.
Has anyone looked at the map yet to confirm that the I/O isn't working to turn on the observation room light?
-
There IS a logic_relay into your obs_room called "@relay_lights_on". I took that trigger brush in your map's entry and correct your output for this one:
-
OnTrigger > "@relay_lights_on" > Trigger.
So your obs_room lights work out now.
- About the elevator, the env_projectedtexture works fine, but the videos don't. You are seeing that black tiles because they don't even turn on. I tell you again: it is because of the script. Valve released a new script "video_splitter.nut" with their DLC2. It's located into portal 2/portal2_dlc2/scrips/vscripts/videos folder, and it has priority over the old ones overriding them...
***My fix: ***
As I know that the old script works fine, all I did was to take it from portal 2/portal2/scripts/vscripts/videos folder, and in order to make it work, it's important to give it a different name and place it in a different location than it is now*. I named it "jose_video_splitter.nut" and located into a new folder I made: "portal 2/portal2/scripts/vscripts/josepezdj"*
Now, again, you have to go into the instance as I told you before (it's the "arrival_elevator_logic4") by clicking "Edit Instance". Locate the logic_script entity that manages this script (it's on the playerclip textured brush) and tell it to use your brand new script called "jose_video_splitter.nut" into /josepezdj folder... am I explaining clearly? 
So your videos show up now.
Proof:
It is important that you understand what I just did in order to do it yourself. But anyway, I'm attaching your map modified and the arrival_elevator_logic instance modified, and even the script with different name (place it where I said above). Would you try to manage yourself to make the videos to work for the departure elevator?
I know you will ![]()
I'm not lazy or not trying to fix my own problems. I've been doing Source mapping for a year now but instances have been impossible for me to understand. Every time I come back to Portal 2 I rage quit within days. I don't know if the wiki articles I was reading were poorly written or whatever but eventually I got too frustrated and needed to have someone personally show me an example in my map to understand the whole thing. I didn't know what they meant by the "@" pointing to the entity directly but now I get it. (Oh, and I'm a male.
)
One thing more I forgot: you should pakrat the script into the .bsp in order to make it work for other ppl, ok? And do not forget to correct its path once into the bsp with pakrat. 
I hope that you let me know if you finally get the deparutre elevator videos to work ![]()
backzpace wrote:
@josepezdj Amazing fix here, very detailed and worked right off the bat. Cheers!
Thanks mate! Glad to hear! ![]()