How I end my map?

Avatar
fedebenarg
70 Posts
Posted Jul 07, 2013
Hello! Im new here, and I'm making a map that is almost finished, unless by one thing: it doesnt ends. I mean. I have made an exit elevator, but it never ends. I see only a black screen at the end of the level. And nothing happens.
What can I do?
Advertisement
Registered users don’t see ads! Register now!
Avatar
User
630 Posts
Posted Jul 07, 2013
Replied 29 minutes later
Do you use the exit elevator Instance?
Avatar
RectorRocks
522 Posts
Posted Jul 07, 2013
Replied 38 minutes later
Create a point_clientcommand. Name it something.
Create a trigger_once above/below (depends on where the departure elevator goes) the elevator so that when the elevator goes up/down, it hits and triggers it.
Go to the Outputs tab of the trigger_once.
Add this output:

OnTrigger -> <name of point_clientcommand> -> Command -> Disconnect

Hope this helps! :thumbup:

Avatar
TeamSpen210
608 Posts
Posted Jul 07, 2013
Replied 1 minutes later
Do the above plus (for steam workshop intergration):

Add a func_instance that inserts the file "instances/p2editor/global_pti_ents.vmf". Give it a name. Put a trigger in the exit lift shaft triggering the global ents' input named instance:@global_pti_level_end;trigger or something like that (it'll show up in the dropdown). This will trigger the steam workshop vote page to come up when published.

Avatar
Gemarakup
1,183 Posts
Posted Jul 07, 2013
Replied 7 hours later
You don't need the point_clientcommand for the workshop, and if you're using the PTI elevator instance, you don't need to do anything. And the rating dialogue will only pop-up when you're playing your map from the workshop.
Avatar
fedebenarg
70 Posts
Posted Jul 07, 2013
Replied 1 hour later
Ok. I do everything you said to me, but nothing happens. Maybe helps that im using the PTI elevator instance, and that in Expert mode, it says "No elevator transition found defaulting to transition", or something like that in white, and then "logic @trasition from map has been triggered, but its awaiting refire" and the something that i not remember, in red.
Avatar
HMW
806 Posts
Posted Jul 07, 2013
Replied 41 minutes later
When you look through the console messages, is there one line that has just the name of your map, without any other text? If so, then it's going to work fine once you upload your map to the workshop. Don't worry about the other two messages, those are false alarms.

I just checked the PTI elevator instances. The one you should be using is:

instances/p2editor/elevator_departure_logic.vmf

It is a version of the "logic" part of the elevator (IE the car, tube and fan) that calls up the rating window when the player enters it.

Avatar
fedebenarg
70 Posts
Posted Jul 07, 2013
Replied 9 minutes later
Ok. Im using that instance you mentioned. That means that I have no way to know if my map had ended until I release it in the workshop?
Avatar
Lpfreaky90
2,842 Posts
Posted Jul 07, 2013
Replied 8 minutes later

fedebenarg wrote:
Ok. Im using that instance you mentioned. That means that I have no way to know if my map had ended until I release it in the workshop?

Basically not if you go for the global_pti_method; unless you change the relay a bit to display a text or anything, but I highly discourage you to do that. As soon as the map is released to the workshop subscribe to it and play it see if it works. If it doesn't; just edit the file :wink:

But as long as you trigger the global_pti_ents it should work just fine!

Avatar
fedebenarg
70 Posts
Posted Jul 07, 2013
Replied 3 minutes later
Thanks to all of you! I will release my map now and test it
Advertisement
Registered users don’t see ads! Register now!
Avatar
fedebenarg
70 Posts
Posted Jul 07, 2013
Replied 2 hours later
Done! I published it in the workshop, and it functions perfectly. Thanks to all of you!