Strange Behaviour on Map Reload
Quote from Sidneys1 on May 13, 2011, 10:47 amSo, today I opened up Hammer to add an elevator to the beginning of my map, and all goes well until suddenly, without warning, none of the triggers in my map work when I run it in P2..
So I restart hammer and p2, recompile, and try again.. All the triggers work. Make a minor change, recompile, reload the map, and the triggers don't work again.
Then I restarted P2, but not hammer, and loaded the map. Triggers worked. Reloaded the map, and the triggers didn't work.
I'm thinking something in my map is 'breaking' the event system, but only after I've already (succesfully) loaded and run my map once. I looked around on the forums, but I didn't see anything that helped.. Any ideas?
Have a nice day,
~Sidneys1
So, today I opened up Hammer to add an elevator to the beginning of my map, and all goes well until suddenly, without warning, none of the triggers in my map work when I run it in P2..
So I restart hammer and p2, recompile, and try again.. All the triggers work. Make a minor change, recompile, reload the map, and the triggers don't work again.
Then I restarted P2, but not hammer, and loaded the map. Triggers worked. Reloaded the map, and the triggers didn't work.
I'm thinking something in my map is 'breaking' the event system, but only after I've already (succesfully) loaded and run my map once. I looked around on the forums, but I didn't see anything that helped.. Any ideas?
Have a nice day,
~Sidneys1
Quote from MrTwoVideoCards on May 13, 2011, 11:01 amHmm, thats odd. Are you reloading the map by mapname when you reload it, or are you just killing yourself to reload the map?
It sounds like whatever you're doing inside of Portal 2 is reloading the map without loading the newest entity lump.
Hmm, thats odd. Are you reloading the map by mapname when you reload it, or are you just killing yourself to reload the map?
It sounds like whatever you're doing inside of Portal 2 is reloading the map without loading the newest entity lump.
Quote from CraigChrist on May 13, 2011, 3:07 pmWhat type of triggers don't work? Buttons, trigger_multiples or maybe just trigger_once (or any other that triggers only once)? I heard of similar issues when a map reloads but it looks just like you respawned, and all triggers that were triggered the first time don't reset.
Is that the case? or the second time the map resets but triggers just don't work?
In any case I would track back and check all the stuff that were added since the last time it worked right. Hide it one by one until you find what caused the problem.
Give some more info if you can.
What type of triggers don't work? Buttons, trigger_multiples or maybe just trigger_once (or any other that triggers only once)? I heard of similar issues when a map reloads but it looks just like you respawned, and all triggers that were triggered the first time don't reset.
Is that the case? or the second time the map resets but triggers just don't work?
In any case I would track back and check all the stuff that were added since the last time it worked right. Hide it one by one until you find what caused the problem.
Give some more info if you can.
Quote from Sidneys1 on May 13, 2011, 3:26 pmIt may be just trigger_once brushes.. I spawn in the elevator car, and it never decends. If I noclip out of it, the door to my chamber (automatically opened by a trigger_once) doesn't open. I'll see if I can test a trigger_multiple and see if it's just the trigger_once brushes.
Thanks for the suggestions though.. I think it started when I dropped a certain instance into the map, but I took it back out and the problem persisted =P
Have a nice day,
~Sidneys1
It may be just trigger_once brushes.. I spawn in the elevator car, and it never decends. If I noclip out of it, the door to my chamber (automatically opened by a trigger_once) doesn't open. I'll see if I can test a trigger_multiple and see if it's just the trigger_once brushes.
Thanks for the suggestions though.. I think it started when I dropped a certain instance into the map, but I took it back out and the problem persisted =P
Have a nice day,
~Sidneys1
Quote from msleeper on May 13, 2011, 3:32 pmThis is incredibly weird. Can you try using the "disconnect" command (so that you are dropped from the game) before reloading your map?
This is incredibly weird. Can you try using the "disconnect" command (so that you are dropped from the game) before reloading your map?
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Quote from CraigChrist on May 13, 2011, 3:59 pmHave you tried some other map? maybe it's a problem with a game (i doubt it though).
Have you tried a map anywhere else beside you computer? to see if the problem is somewhere in your system...
just listing suggestions, so we can discard some things and locate what's causing the problem.
can't think of anything else right now
Have you tried some other map? maybe it's a problem with a game (i doubt it though).
Have you tried a map anywhere else beside you computer? to see if the problem is somewhere in your system...
just listing suggestions, so we can discard some things and locate what's causing the problem.
can't think of anything else right now
Quote from Sidneys1 on May 13, 2011, 4:31 pmOk, I did some testing, and narrowed things down a little:
It now appears to only be the trigger in the Instance containing the arrival elevator that starts the elevator on its downward path. It breaks on both "map [mapname]" and "disconnect" then relaunching the map.
However, this trigger does work in msleeper's map (good enough for science), regardless of how many times I restart it. This confuses me, since both his map and mine use the same vmf file for the Instance.
Urgg, this makes rapid prototyping so much less rapid.
Thanks for the help,
~Sidneys1
Ok, I did some testing, and narrowed things down a little:
It now appears to only be the trigger in the Instance containing the arrival elevator that starts the elevator on its downward path. It breaks on both "map [mapname]" and "disconnect" then relaunching the map.
However, this trigger does work in msleeper's map (good enough for science), regardless of how many times I restart it. This confuses me, since both his map and mine use the same vmf file for the Instance.
Urgg, this makes rapid prototyping so much less rapid.
Thanks for the help,
~Sidneys1
Quote from msleeper on May 13, 2011, 4:38 pmSidney, try verifying the game cache for the Portal 2 SDK files. Maybe your got corrupted some how. Are you using any custom compile options? Are you using "Export" or "Normal" compile mode, and does changing to the other have any effect?
Sidney, try verifying the game cache for the Portal 2 SDK files. Maybe your got corrupted some how. Are you using any custom compile options? Are you using "Export" or "Normal" compile mode, and does changing to the other have any effect?
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Quote from Sidneys1 on May 13, 2011, 4:57 pmJust did.. Hadn't even thought of that. Says two files failed to check out and were reaquired.. I'll launch it in a minute or two to see if it worked.
Just did.. Hadn't even thought of that. Says two files failed to check out and were reaquired.. I'll launch it in a minute or two to see if it worked.