Split Door (why does mine not work?

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1.5 MiB.

Expand view Topic review: Split Door (why does mine not work?

Re: Split Door (why does mine not work?

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. ;)

Re: Split Door (why does mine not work?

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.

Re: Split Door (why does mine not work?

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.

Re: Split Door (why does mine not work?

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.

Re: Split Door (why does mine not work?

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.

Re: Split Door (why does mine not work?

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.

Re: Split Door (why does mine not work?

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.

Re: Split Door (why does mine not work?

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);
}

Re: Split Door (why does mine not work?

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

Re: Split Door (why does mine not work?

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.

Split Door (why does mine not work?

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 182 times

Top