Sarge
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Locked door opened by any key
 
Author
All times are GMT. The time now is 16:43. Post New Thread    Post A Reply
BlueEagle
Junior Member


Posts: 175
Registered: 05-04


Hi there!
I usually search every forum and wiki I know about a problem I encounter, but I couldn't find anything on this one.

So I have a map and there's a door that is locked. I want the player to be able to open this door as soon as he has any key. But if I set the "door locked raise" key lock to "Any Key" as DB2 tells me, the player can open the door even if he has no key at all. If I change the flag to any other regular key, it works.

What am I doing wrong?

Old Post 03-06-10 11:25 #
BlueEagle is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07


First, what's the map format and the intended port?

If it's for ZDoom and in Hexen or UDMF map format, provided you haven't overridden the default LOCKDEFS lump, then the correct key type should be 100.

Old Post 03-06-10 11:30 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
BlueEagle
Junior Member


Posts: 175
Registered: 05-04


Sorry, forgot to mention the port. Yes, it's Zdoom (GZdoom to be exact) and I'm using Hexen format. I can't insert numbers when using DB2, so I can only assume that "any key" means 100. I didn't change LOCKDEFS in any way.

Even if I open a complete new map, draw a room and a door inside and set lock to "any key", it opens even if I have no key at all.

Old Post 03-06-10 11:53 #
BlueEagle is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07



BlueEagle said:
I can't insert numbers when using DB2

Yes you can. You don't need to use the drop-down, you can just click on it and type something.

Old Post 03-06-10 12:25 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
BlueEagle
Junior Member


Posts: 175
Registered: 05-04


Oh, I didn't know that :)

But still no luck. Entered 100, but door still opens when I have no keys.

Old Post 03-06-10 13:02 #
BlueEagle is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07


Seems to be a bug, actually. I reported it.
http://forum.zdoom.org/viewtopic.php?f=2&t=25278

Old Post 03-06-10 14:22 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
BlueEagle
Junior Member


Posts: 175
Registered: 05-04


Thanks for reporting :)

Seems that this lock is almost never used. But I think it's pretty useful to create some non-linearity. So I guess I'm using ACS now to lock that door. Hope that works...

Old Post 03-06-10 14:44 #
BlueEagle is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07


No need to, you can fix that by making your own LOCKDEFS lump instead.

code:
Lock 100 { Any { BlueCard BlueSkull YellowCard YellowSkull RedCard RedSkull } Message "$PD_REDK" RemoteMessage "$PD_REDO" Mapcolor 128 128 255 }

Put that in your mod and it'll repair the lock.

Old Post 03-06-10 14:59 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
BlueEagle
Junior Member


Posts: 175
Registered: 05-04


Thanks, you were very kind and helpful!

Old Post 03-06-10 15:01 #
BlueEagle is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07


Bug is now fixed in ZDoom r2199 and GZDoom r745, which should soon be available here, so you don't even need to provide the alternate LOCKDEFS lump.

Old Post 03-06-10 15:11 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5536
Registered: 12-00



Gez said:
which should soon be available here

Done.

Old Post 03-06-10 16:13 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Cjwright79
Banned


Posts: 501
Registered: 11-09


In standard Doom you could just make three switches next to the door, one for each key color.

Old Post 03-06-10 16:18 #
Cjwright79 is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mr. Chris
The term is "prehensile"


Posts: 3519
Registered: 07-02



Cjwright79 said:
In standard Doom you could just make three switches next to the door, one for each key color.


Irrelevant to the OP's question, which has been answered already.

Old Post 03-06-10 16:52 #
Mr. Chris is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 16:43. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Locked door opened by any key

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory