Talk:Point bonusmaps accessor

From Valve Developer Community
Jump to: navigation, search

If I try to use the unlock input with this entity I always get a "failed to set boolean..." error. Someone who knows how to use this entity needs to explain it in better detail. Thelonesoldier 00:12, 6 October 2010 (UTC)

Reposting from my Talk page for everyone's benefit: Normal bonus maps should not have the lock set. Bonus map locking and point_bonusmaps_accessor are both used in the singleplayer game. You know how you can't play the Challenge versions of chambers 15-18 until you have completed them normally? That's what that entity is for. Those maps start out as locked, and they unlock as you progress through the singleplayer campaign via that entity.
You could, in theory, use this functionality to have a series of maps and only have them unlocked from the Bonus Maps screen as you complete them in progress, similar to the way the Chapters work for the singleplayer. You would still need the first map to start out unlocked, but the other maps could be locked and only unlock as the player progresses.
But I digress. If you are making a standalone map, it should have lock set to 0 otherwise it will be unaccessable. --Msleeper 04:58, 6 October 2010 (UTC)
See, if you look at "You know how you can't play the Challenge versions of chambers 15-18 until you have completed them normally? That's what that entity is for" by itself, that is where my confusion arose. That is apparently not applicable to a standalone bonus map because you can't even play it normally until you unlock it, which would prevent you from ever playing it. I had wanted to make it so you could play it normally but not play it as a challenge until you'd finished it once but that's not what the lock toggle is for. Thanks for clarifying.
EDIT: Still wondering though, my testing seems to have proven a map can't be used to unlock itself, but are we sure a usermade map can unlock another usermade map so it would still be functional in a series of maps? Thelonesoldier 05:46, 6 October 2010 (UTC)
I'm kind of a little stumped, I've never heard of anybody having these problems with a bonus map script before. If you want to upload the map somewhere so I can try installing and testing, that would really speed things up I'm sure.
I can't remember off hand, but I know there was some map pack released a year or so ago that had locked challenges similar to what I described. Once we get your bonus map problem sorted out, it would definitely be worth testing to confirm. --Msleeper 08:19, 6 October 2010 (UTC)