Problem with compile options 'copy file'
I have 2 prop_laser_relay and one door. The activation of both the relays opens the door and if one or both gets deactivated the door closes.
I used a math_counter with max legal value 2. On powered and unpowered outputs of the relay i add & subtract 1 from the math_counter. On the counter's onChangedFromMax output i close the door. OnHitMax i open the door.
The problem is that sometimes(rarely) the door doesn't open. Could somebody tell me where I'm going wrong?
You can grab my map from my signature below.
Edit:Title edited to reflect this thread.
Output:
Laser1= OnPowered; Branch1; SetValue; 1
OnUnPowered; Branch1; SetValue; 0
Laser1= OnPowered; Branch2; SetValue; 1
OnUnPowered; Branch2; SetValue; 0
Then paste the 2 branch names into the logic_branch_listener's properties, and have the outputs:
OnAllTrue; Door_open_relay; Trigger
OnAllFalse; Door_close_relay; Trigger
Remember to make the 2 relays too.
The one with the open output, and the other with the close output.
Remember that both of them must have the output: CancelPending. And they must do it to each other on triggered. This secures that the door won't bug and stay open.
There is one thing i would like to ask. Before the dlc got released(or maybe i screwed up some config) Portal 2's console used to list maps in the sdk_content directory. Now it doesn't. Is there a way to make it recognize files in the sdk directory
The game always copies the compiled BSP file to the game maps folder (see expert compiling mode, always the last line).
Expert compile options are:
Copy File:$path\$file.bsp $bspdir\$file.bsp
Sorry for going off-title in this thread
I had made a new compile config profile with exactly the same options as the provided full compile just excluding the game launch option(doesn't work with it on also).The bsp doesn't get copied with this profile but does with the provided profiles