Split Door (why does mine not work?

Need help with your project? Ask here.
User avatar
Syfo-Dyas
Order 66 has been issued!
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Split Door (why does mine not work?

Post by Syfo-Dyas » Wed Dec 15, 2010 0:08

Here is another issue I'm having and I've tested this in both GzDOOM and Odamex:


I went through this guide and duplicated it exactly, except in my map the rooms are above one another instead of side by side.

For what ever reason, when I play my map, the DOOR doesn't do a thing, but when I play the demo map included with the tutorial, it works fine.

Can someone please point out to me what I'm doing wrong?

Thank you!

http://zdoom.org/zdkb/splitdoor.html
Attachments
DFSplitDoor.rar
(1016 Bytes) Downloaded 131 times

User avatar
Rex Claussen
Developer
Developer
Posts: 2491
Joined: Tue Jul 11, 2006 18:36
Contact:

Re: Split Door (why does mine not work?

Post by Rex Claussen » Wed Dec 15, 2010 3:18

I don't have WinRar installed on this computer, so I can't check your wad. You said:

"... except in my map the rooms are above one another instead of side by side."

Is there a doorway connecting the upstairs rooms, and is that doorway above the doorway connecting the downstairs rooms? If that's the case, you'll have to make sure your ceiling & floor heights for the horizontally split door are suitable. Other than that, I can't figure out what might be causing the door to not open.

Can you post your script here? I may be able to tell what your problem is from that.

User avatar
Syfo-Dyas
Order 66 has been issued!
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Re: Split Door (why does mine not work?

Post by Syfo-Dyas » Wed Dec 15, 2010 5:55

I'm sorry, by above one another and side by side, I meant in regards to how they appears when mapping in "CAD" mode in DOOM Builder 2.

The rooms within the game are actually on the same level and same floor.

Here is the script:

#include "zcommon.acs"

script 1 (int DoorTag)
{
Floor_LowerByValue (DoorTag, 16, 64);
Ceiling_RaiseByValue (DoorTag, 16, 64);

Delay (120);

Floor_RaiseByValue (DoorTag, 16, 64);
Ceiling_LowerByValue (DoorTag, 16, 64);
}


Confirmed not to work in both Odamex and GzDOOM.

This is the demo I'm basing my work off of. As you can see in it the room are side by side (East and West) as opposed to mine where they are (North and South).

http://zdoom.org/zdkb/splitdoor.html

User avatar
Rex Claussen
Developer
Developer
Posts: 2491
Joined: Tue Jul 11, 2006 18:36
Contact:

Re: Split Door (why does mine not work?

Post by Rex Claussen » Wed Dec 15, 2010 15:47

Ah, I get it now. In any case, orientation of the doorway would not make a difference to the way this script works, so whether your rooms are E-W of each other or N-S (as in your case) it would not make a difference.

In your ACS_Execute special assigned to the activating linedef, make sure that you assign the door's tag ID to the first argument. This may be what's causing your problem. (Of course, also make sure that the activating linedef is flagged properly - player crosses, player uses, enemy crosses, etc.)

As an alternative, use the following script (assuming your door has a Tag ID = 9):

#include "zcommon.acs"

script 1 (void)
{
Floor_LowerByValue (9, 16, 64);
Ceiling_RaiseByValue (9, 16, 64);

Delay (120);

Floor_RaiseByValue (9, 16, 64);
Ceiling_LowerByValue (9, 16, 64);
}

User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Split Door (why does mine not work?

Post by Graf Zahl » Wed Dec 15, 2010 18:02

You tagged the sector 1 and passed 2 as an argument to the script so logically it won't work.

NeuralStunner
Heresy!
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

Re: Split Door (why does mine not work?

Post by NeuralStunner » Thu Dec 16, 2010 20:54

Rex Claussen wrote:I don't have WinRar installed on this computer, so I can't check your wad.
7-Zip can open those.
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs

User avatar
Rex Claussen
Developer
Developer
Posts: 2491
Joined: Tue Jul 11, 2006 18:36
Contact:

Re: Split Door (why does mine not work?

Post by Rex Claussen » Thu Dec 16, 2010 22:23

NeuralStunner wrote:7-Zip can open those.
Good to know. Unfortunately, I don't have 7-Zip either, but I'll get it.

User avatar
Syfo-Dyas
Order 66 has been issued!
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Re: Split Door (why does mine not work?

Post by Syfo-Dyas » Fri Dec 17, 2010 18:59

7Zip is the way to go, great compression, though I've been a registered WinRAR user for years, so I just go with what I know, though I'll try to stick with zip in the future to create less problems.

Anyhow, Graf and Rex, you got it! And I'm on to something as to why it will not work with Odamex/ZDOOM 1.22 yet the example this is based off of does.

I decided to load up the example WAD in DOOM Builder 2, I then compiled the script and saved, and what do you know, it no longer worked under Odamex or ZDOOM 1.22! So now I need to see if I can find an older copy of ACC and compile it with that (after learning how to do it all by hand), then I'm off to look up Crusher commands in the ACS wiki and make this door deadly.

User avatar
Rex Claussen
Developer
Developer
Posts: 2491
Joined: Tue Jul 11, 2006 18:36
Contact:

Re: Split Door (why does mine not work?

Post by Rex Claussen » Mon Dec 20, 2010 12:38

Syfo-Dyas wrote:So now I need to see if I can find an older copy of ACC and compile it with that (after learning how to do it all by hand)
Note that older versions of ACC will not recognize many of the newer features of ZDooM, and could prove to be more of a headache than a solution.

User avatar
Enjay
There is no dark side in the moon, really...
Developer
Developer
Posts: 4643
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Split Door (why does mine not work?

Post by Enjay » Mon Dec 20, 2010 14:24

If you use the -h argument with newer versions of ACC it will compile in a format compatible with Hexen/older Zdooms.

User avatar
Syfo-Dyas
Order 66 has been issued!
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Re: Split Door (why does mine not work?

Post by Syfo-Dyas » Tue Dec 21, 2010 20:00

Yes, thank you, I'd seen that, but could not figure out exactly how ACC was used as I was getting errors, though the guys in the ZDOOM forums cleared it all up for me:

ACC -h scripts.acs BEHAVIOR

It's kind of sad that I can take such simple things and complicate them. ;)

Post Reply

Return to “Editing Help”