[Solved] Problem with logic relays

Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
I am having some problem with logic relays. They are not behaving like they should. I have a button and I have bunch of env_splash in the scene. All the env_splash are setup to splash under logic relay when triggered and I have button when pressed triggers logic relay. I have another logic relay with same splash entities which is setup to trigger when the button is unpressed.

The problem I am having is that when the button is pressed, the logic relay is triggered and I get bunch of splashes like it should. But when the button is unpressed, I dont get any splashes. Both of my logic relays have different names.

Any help in the matter will be appreciated.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 23 minutes later
There are all sorts of debugging tools you can use to track down the cause of the problem. http://developer.valvesoftware.com/wiki ... #Debugging
Avatar
ChickenMobile
2,460 Posts
Posted Jun 04, 2011
Replied 16 minutes later
Your the same person who wanted to know how to make water splashes I'm guessing... -.-

The output for the button when unpressed (in this case a prop_button) is OnButtonReset. If your splashes aren't working your output is probably wrong, or the relay is disabled.
Check the input tab of your second relay and see what activates it, you can trace back to the entity by clicking 'Mark'. If it isn't your button "OnButtonReset" then this is the problem.

Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 26 minutes later
I am sorry I meant to say "floor button" and not the regular button. There is no OnButtonReset. I have check my logic relay and the output is correct. The relay is not disabled as well.

Yes I am the same person who wanted to know how to make splashes :smile:

Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Replied 3 minutes later
So, are you using onUnpressed, to trigger a different relay?
Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 6 minutes later
yes
Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 6 minutes later
Have you checked that the env_splashes actually get the input?
Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Replied 2 minutes later
I have not used env_splash before, but check the input window in one of them, and backtrack through them inputs, until you reach the button. If you make it there, then it should work. As long as you have the correct input values.
Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 8 minutes later

gompasta wrote:
I have not used env_splash before, but check the input window in one of them, and backtrack through them inputs, until you reach the button. If you make it there, then it should work. As long as you have the correct input values.

Ald?z wrote:
Have you checked that the env_splashes actually get the input?

yes I have check the inputs section and reach the button successfully. I have had done this before I decided to seek help here.

Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Replied 2 minutes later
Could you upload your VMF? I cant really help more without seeing it myself.
Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 6 minutes later
enjoy!!
Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 7 minutes later

dhavalmistry wrote:
Ald?z wrote:

Have you checked that the env_splashes actually get the input?

yes I have check the inputs section and reach the button successfully. I have had done this before I decided to seek help here.

I mean in-game in the console, not in Hammer. There are times when things look okey in Hammer, while they're not actually.

EDIT:
The map can't be compiled. I miss the "sp_panelized/instances/arrival_departure_transition_ents.vmf" instance.

Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 5 minutes later

Ald?z wrote:
dhavalmistry wrote:

Ald?z wrote:

Have you checked that the env_splashes actually get the input?

yes I have check the inputs section and reach the button successfully. I have had done this before I decided to seek help here.

I mean in-game in the console, not in Hammer. There are times when things look okey in Hammer, while they're not actually.

EDIT:
The map can't be compiled. I miss the "sp_panelized/instances/arrival_departure_transition_ents.vmf" instance.

sorry here is the instance

also you should put the vmf into the portal 2 directory and not in any random folder.

Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 3 minutes later
Do you not place the VMF in the maps folder? Some instances use absolute paths, not relative.
Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 6 minutes later

Ald?z wrote:
Do you not place the VMF in the maps folder? Some instances use absolute paths, not relative.

I do place them into the maps folder and thats what I meant when I said you should put the map into portal 2 folder.

Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 4 minutes later
Oh well, I wouldn't recommend using absolute paths anyway. I did a quick test, and the entities really get the splash input but do not splash. That's odd, but I don't have time to investigate further at the moment.
Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 6 minutes later

Ald?z wrote:
Oh well, I wouldn't recommend using absolute paths anyway. I did a quick test, and the entities really get the splash input but do not splash. That's odd, but I don't have time to investigate further at the moment.

I know its odd. I cant figure out why it would not splash. Its ok if you are busy. Thanks for trying tho!

Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Replied 11 minutes later
Found your problem, the panels make the game think the water is shallower. Turn off the "Diminish with depth" flag on each env_splash.
Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 10 minutes later
Since the I/O wasn't the problem, I figured that maybe the splashes are blocked by the arm props or the func_brushes. I turned out to be the func_brushes. Maybe the splashes need some distance above to be clear from any obstructions to work properly.

EDIT:
Didn't see gompasta's post. I think he's right. :thumbup:

Advertisement
Registered users don’t see ads! Register now!
Avatar
dhavalmistry
107 Posts
Posted Jun 04, 2011
Replied 18 minutes later
thanks a lot guys...it works!!!....:biggrin: :biggrin: