Cycling through prop_portals problems
Quote from Komali100 on August 24, 2012, 8:48 pmOkay. Here is my dilemma. I'm trying to make a chamber similar to the one at the beginning of Portal that has a set orange portal emitter and three blue portal emitters that get cycled through after a set amount of time. The only real difference is I have 4 possible blue portal placements.
My current setup that isn't working involves 4 logic_relays to activate each position, 4 logic_relays to deactivate each position, and a logic_timer. Each of the relays have an output to disable itself and one to enable the next one in line on trigger. And the logic_timer triggers every relay at 3 second intervals.
I also have a trigger_once, that turns on the orange portal and enables the logic_timer once the player enters the room.
I tested this and it will activate each blue portal in order, but won't repeat. And somehow, the orange prop_portal will change blue even though it is orange when I activate the trigger once.
Can you please help?
Okay. Here is my dilemma. I'm trying to make a chamber similar to the one at the beginning of Portal that has a set orange portal emitter and three blue portal emitters that get cycled through after a set amount of time. The only real difference is I have 4 possible blue portal placements.
My current setup that isn't working involves 4 logic_relays to activate each position, 4 logic_relays to deactivate each position, and a logic_timer. Each of the relays have an output to disable itself and one to enable the next one in line on trigger. And the logic_timer triggers every relay at 3 second intervals.
I also have a trigger_once, that turns on the orange portal and enables the logic_timer once the player enters the room.
I tested this and it will activate each blue portal in order, but won't repeat. And somehow, the orange prop_portal will change blue even though it is orange when I activate the trigger once.
Can you please help?
Quote from FelixGriffin on August 24, 2012, 9:42 pmDo you have the prop_portals Active at Map Spawn? How are you closing them? And are you using Enable/Disable or SetPosition?
Do you have the prop_portals Active at Map Spawn? How are you closing them? And are you using Enable/Disable or SetPosition?
Quote from Komali100 on August 24, 2012, 11:22 pmFelixGriffin wrote:Do you have the prop_portals Active at Map Spawn? How are you closing them? And are you using Enable/Disable or SetPosition?The Wiki says if the prop_portals are defaulted to active, it will open at the maps origin.
I'm closing them with "SetActivatedState" to 0.
And I'm using Enable/Disable on the relays that turn them on and the ones that turn them off.
I have this feeling that I need to use logic_case entities, but I don't know how to use them other than using them for random events and I thought the set up I have now would work.
I still have no idea why the orange portal suddenly wants to be a blue portal.
The Wiki says if the prop_portals are defaulted to active, it will open at the maps origin.
I'm closing them with "SetActivatedState" to 0.
And I'm using Enable/Disable on the relays that turn them on and the ones that turn them off.
I have this feeling that I need to use logic_case entities, but I don't know how to use them other than using them for random events and I thought the set up I have now would work.
I still have no idea why the orange portal suddenly wants to be a blue portal.
Quote from Brainstone on August 25, 2012, 5:31 amWhy are you disabling your relays and then triggering all four at the same time? You just need to have them trigger each other periodically.
relay 1: closes Portal Pos 4 and opens Portal Pos 1, triggers relay 2 after a certain delay. (You can also use a timer here if you want more control)
relay 2: closes Portal Pos 1 and opens Portal Pos 2, triggers relay 3 after a certain delay.etc.
Why are you disabling your relays and then triggering all four at the same time? You just need to have them trigger each other periodically.
relay 1: closes Portal Pos 4 and opens Portal Pos 1, triggers relay 2 after a certain delay. (You can also use a timer here if you want more control)
relay 2: closes Portal Pos 1 and opens Portal Pos 2, triggers relay 3 after a certain delay.
etc.
Quote from Komali100 on August 25, 2012, 6:15 amBrainstone wrote:Why are you disabling your relays and then triggering all four at the same time? You just need to have them trigger each other periodically.
relay 1: closes Portal Pos 4 and opens Portal Pos 1, triggers relay 2 after a certain delay. (You can also use a timer here if you want more control)
relay 2: closes Portal Pos 1 and opens Portal Pos 2, triggers relay 3 after a certain delay.etc.
I never thought of that. It sure sounds a lot simpler than what I was trying to do. I'll give it a try.
*EDIT*
Okay. I did what you told me to and it is working a lot better than my old, stupid setup. There is just one little problem. When it switches to position 3, the orange portal becomes blue, and the 3rd position blue portal becomes orange. But when it gets to position 4, it goes back normal. It is only that 3rd position.Does anyone know why that happens? If it is unfix-able, I guess it is fine, you can still solve the test. It is just weird and I would like to have it fixed if I can.
relay 1: closes Portal Pos 4 and opens Portal Pos 1, triggers relay 2 after a certain delay. (You can also use a timer here if you want more control)
relay 2: closes Portal Pos 1 and opens Portal Pos 2, triggers relay 3 after a certain delay.
etc.
I never thought of that. It sure sounds a lot simpler than what I was trying to do. I'll give it a try.
*EDIT*
Okay. I did what you told me to and it is working a lot better than my old, stupid setup. There is just one little problem. When it switches to position 3, the orange portal becomes blue, and the 3rd position blue portal becomes orange. But when it gets to position 4, it goes back normal. It is only that 3rd position.
Does anyone know why that happens? If it is unfix-able, I guess it is fine, you can still solve the test. It is just weird and I would like to have it fixed if I can.
Quote from Brainstone on August 25, 2012, 8:37 amProbably the 3rd position Portal has just the wrong number in the property "Portal number".
If that's not the case, you would need to use the input "new location". It needs six numbers. (three for position and three for rotation". You can find out the six numbers by placing placement helpers on the desired locations and copying their data.
Probably the 3rd position Portal has just the wrong number in the property "Portal number".
If that's not the case, you would need to use the input "new location". It needs six numbers. (three for position and three for rotation". You can find out the six numbers by placing placement helpers on the desired locations and copying their data.
Quote from Komali100 on August 26, 2012, 3:25 amBrainstone wrote:Probably the 3rd position Portal has just the wrong number in the property "Portal number".If that's not the case, you would need to use the input "new location". It needs six numbers. (three for position and three for rotation". You can find out the six numbers by placing placement helpers on the desired locations and copying their data.
The first was not the case, but the "new location" input worked wonderfully. Thank you VERY MUCH!! I guess the game doesn't like that many prop_portals in the same room.
If anyone wants to know all the entities and outputs I used in this setup, let me know. And again, thank you very much Brainstone.
*EDIT*
I also noticed going back that the 3rd blue prop_portal was set to "Start Active." This may have something to do with the problem I had, but the "New Location" output is working fine, so I'm not going to mess with it.
If that's not the case, you would need to use the input "new location". It needs six numbers. (three for position and three for rotation". You can find out the six numbers by placing placement helpers on the desired locations and copying their data.
The first was not the case, but the "new location" input worked wonderfully. Thank you VERY MUCH!! I guess the game doesn't like that many prop_portals in the same room.
If anyone wants to know all the entities and outputs I used in this setup, let me know. And again, thank you very much Brainstone.
*EDIT*
I also noticed going back that the 3rd blue prop_portal was set to "Start Active." This may have something to do with the problem I had, but the "New Location" output is working fine, so I'm not going to mess with it.