Please or Register to create posts and topics.

[Portal 1] Bonus Map Scripts and You

PreviousPage 2 of 2

How do you unlock the next map when you finish a level?

youme wrote:
It seems I can't put muliple maps into one bonus map, I've set up the driectory stucture all correct and the level transitions are working fine.
But when i run the maps using the bonus map script the first map runs fine and when i get to the level transition I get this error:

Code: Select all
Level transition ERROR
Can't find connection to TS13testc_06 from TS13/testc_07

I know the slashes are different directions but hammer won't let me put a in, It changes it to a / as soon as I hit apply.

Any advice?

Edit: I did a bit of looking at the differences in the console stuff between running it using "map TS13/testc_06" and running it via the bonus level stuff and it seems that the bonus level stuff uses whilst everything else uses /. Even if my bns files use /
Help!

Edit 2: I've fixed it, I resorted to making a bns for each map and making the player pick the next map after each map finished, But then the level transitions worked, it turns out it doesn't load the map file, it loads bns assosiated with that map. Its a bit annoying to have to make more than one bns but at least it works now :D

Also instead use"_" better, as that helps the system organize files, and vmf's and the like.

Currently working on Darksiders 3.
youme wrote:
How do you unlock the next map when you finish a level?

Via a console command, thats the best way, using a point_client_command in your map.

Currently working on Darksiders 3.

Updated for clarity, added links, and just generally made the first post better.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
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.

Hi, I'm essentially done with my first Portal map, but I'm stuck on the challenge script. I have a BNS file which as far as I can tell is all set up correctly; if you select the map in the in-game menu it correctly displays the bronze requirements for each of the challenges. But it doesn't seem to save my score when I complete the map under any of the challenges, and I have no idea how to get this working.

I've read this thread, but it seems to have been stripped in favor of the wiki. I've read the relevant wiki pages several times but I'm stumped.

My map doesn't end in an elevator, so it wouldn't make sense to have it display your challenge results in the elevator like the official maps. I wouldn't know how to put the challenge results in the elevator anyway, since that doesn't seem to be on the wiki... Is it possible to have it save your score without the elevator part? If so, what should I do to enable this?

there's a specific entity that displays the score. You can use it at the end of your map. I can't remember the name, it was like env_scoreboard_bouns or something.

Image

Thanks, but that didn't really answer my question. That was the one thing I didn't need, unless that also saves your score. I also can't find any entity by that name or close to that name.

Well, the entity is called prop_portal_stats_display, and has two inputs that might be of use: ResetPlayerStats and UpdateStats

Hear the turret, for it is knell. It summons thee to heaven, or to hell.
onemanescapepod wrote:
Thanks, but that didn't really answer my question. That was the one thing I didn't need, unless that also saves your score. I also can't find any entity by that name or close to that name.

Sorry i was completely guessing since I have never messed with the entity. And yes it is required to update it.

Image
PreviousPage 2 of 2