Mimic?
Here is the basic idea that I wanted to implement. At first glance it would look as if a mirror is present in the room, but the reflexion is slightly different, and switches activated in the reflexion of the mirror would open up doors on the other side. The trick would be to have a glass instead of a mirror with a 2nd Chell that would mimic everything the player does.
This idea sounded simple, but I stumbled on a lot of hurdles:
- I cannot find a Chell NPC entity. I could use a different NPC, but it would look awkward.
- Interaction between entities appear to be impossible beyond target recognition and preprogrammed events. What I need is to copy-paste some entities attributes values, and sometimes multiply them by -1.
- Even if I abandon the mirror idea and only use a mimic in an isolated room, I'm still unable to set the player as a parent. Even if I am allowed to do so, NPC entities do not seem to be able to go through portals.
- I have no idea how to make my 2nd set of portals appear where I want given the restrictions. I don't even think a 2nd portal gun can fire portals not linked to the player's generated portals.
Since I'm still not familiar with the development tools, can somebody confirm that it indeed impossible to overcome these hurdles without installing Visual Studio and having to create a relatively complex mod?
I guess that I have to completely remove the actor that would mimic the moves as a visual indicator, and forget about controlling a 2nd set of portals based on the position of the player's portals. 
Mmmm... 
Actually, I could still do it, but the feeling would be completely different. For example, if in my 1st room I put a door and a box, and behind the glass a button and a door, I think people would understand the concept.
I think there is a way to make NPC's go through portals, remember seeing a tutorial to make Gman walk though one, don't know how well it works though, never tried it.
http://www.youtube.com/watch?v=k6JUUOH9O78 shows that it is possible, and the uploader of the video credits this site for the info about it, I just can't figure out where. Hope that helps a bit.
Stormrain wrote:
I think there is a way to make NPC's go through portals, remember seeing a tutorial to make Gman walk though one
It can only do prescripted things, so it will be the same every time.
There is no chell npc because she wasn't originally intended as an NPC.
I've also wanted to figure out if you can parent things to the player, so If anyone knows, can they answer please.
hanging_rope wrote:
I've also wanted to figure out if you can parent things to the player, so If anyone knows, can they answer please.
You can, but when the player looks up or down, the parented object doesn't go with it. (Perhaps you have to do SetParentAttachment as well, but I haven't tried that.)
Because you can't set a targetname on the player, you have to use a trigger that sends the objects to be attached a SetParent signal with !activator as the target. (!Activator being the player who just walked through the trigger.)
HMW wrote:
Because you can't set a targetname on the player, you have to use a trigger that sends the objects to be attached a SetParent signal with !activator as the target. (!Activator being the player who just walked through the trigger.)
This could give interesting results! Thanks for the tip HMW! 
SmashManiac wrote:
This idea sounded simple, but I stumbled on a lot of hurdles:
- I cannot find a Chell NPC entity. I could use a different NPC, but it would look awkward.
- Interaction between entities appear to be impossible beyond target recognition and preprogrammed events. What I need is to copy-paste some entities attributes values, and sometimes multiply them by -1.
- Even if I abandon the mirror idea and only use a mimic in an isolated room, I'm still unable to set the player as a parent. Even if I am allowed to do so, NPC entities do not seem to be able to go through portals.
- I have no idea how to make my 2nd set of portals appear where I want given the restrictions. I don't even think a 2nd portal gun can fire portals not linked to the player's generated portals.
There is no NPC for Chell. She exists only as a third person model for the player, that's it.
Explain more about what you mean/what you're trying to do. Maths are indeed possible but the more complicated you get the more entities are involved.
You can use !player as the targetname for various I/O to specify the player. There's a few more of these special targets but I won't go into them and confuse you. Also, NPCs don't go through portals. Check the wiki, there's a mega hack to make them do it but they kinda suck at it and freak out a little.
You can create pre-placed portals with multiple pairs, using the Pair ID in the prop_portal I believe. I don't think you can make the Portalgun create different paired portals.
msleeper wrote:
You can use !player as the targetname for various I/O to specify the player.
D'OH!! I totally forgot about that! Sorry 
Here's the full list of special names, in case anyone is interested.
msleeper wrote:
You can create pre-placed portals with multiple pairs, using the Pair ID in the prop_portal I believe. I don't think you can make the Portalgun create different paired portals.
That's right. The portal gun always produces portals with ID 0.
Also, watch out for putting to many portals close together and/or able to see each other. This is a very effective frame rate killer.
Well here is my original idea in more mathematical details.
Basically I wanted 2 rooms side-by-side, with a sheet of glass on the Y axis, which would act as the axis of symmetry. So if the player places a blue portal at coordinates (5,2,1), a blue portal of ID 1 would appear at coordinates (-5, 2, 1). It would be the same for all entities, including the player, picked up boxes, etc. Puzzles would have revolved around the differences between the 2 rooms, and then would gradually become more complex.
Doing such a thing is probably impossible, but I was wondering how close I could get to this original idea.
Just out of curiosity: what would happen when the player carries a box into an area that is solid in the mirror image? (see drawing) Would it cause an anomaly in the fabric of space which would lead to the entire universe being sucked through a dime-sized hole?
(As per your description, the two rooms are NOT mirror images of each other 
To avoid undesired desync issues, I was thinking of having collision and portal surfaces identical on both sides. To achieve that, there would be several invisible objects.
http://www.crazymonkeygames.com/Visible.html
Like that, right?