How to use SetPortal?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Ganryu
Posts: 60
Joined: Sun Mar 11, 2007 10:35 am

How to use SetPortal?

Post by Ganryu »

I've been playing around with this but can't get it to work. The info in the wiki seems to be conflicting with itself.

My tries yield no results as the sector that is supposed to act as a portal doesn't actually act as a portal at all.

My current method that fails: (i use names rather than numbers to illustrate the arguments clearer)
*Create two sectors A and B. Height adjust properly so that floor matches ceiling. Sectors are same size. A is the top. B is the bottom.
*All sectors supposed to be able to view portal A are tagged 1. All sectors able to see portal B are tagged 2.
*linedef 57 setportal on two lines X and Y of the same relative position within A and B where X is in A and Y is in B.
*Linedef X is (1, 0, ceiling, 0, 0)
*Linedef Y is (2, 0, ceiling, 1, 0)

This has no effect whatsoever. Adding another set of linedefs as the article says yiels no further effect.

*Linedef U is (1, 0, ceiling, 0, 0)
*Linedef V is (2, 0, ceiling, 1, 0)

This yields utterly bizarre effects.

I wish the wiki article had a step-by-step guide to making portals using SetPortal.

I'd really appreciate some help with this. While it's not too important to my Hexen mod, this feature is likely to see atleast some use if I can get it to work.


Edit: I have managed something here... But it seems to work only in one direction... Despite having two sets of linedefs.

Edit: Yes. I misunderstood exactly how this was supposed to work, but now I still can only get it to work in one direction.

My new method:

Sector A contains linedefs X and U
Sectob B contains linedefs Y and V
U and V are matched with same tag (2)
X and Y are matched with same tag (1)

Sector A = 1
Linedef X (1, 0, floor, 0)
Linedef Y (1,0,floor, 1)
Sector B =2
Linedef U (2, 0, ceiling, 0)
Linedef V (2, 0, ceiling, 1)

For some reason it only works in one direction :(
Ganryu
Posts: 60
Joined: Sun Mar 11, 2007 10:35 am

Re: How to use SetPortal?

Post by Ganryu »

Ok after excessive testing I finally found the error! Apparently a sector CANNOT be a portal if it has the same floor height as the surrounding floor (assuming the portal is a floor portal). My portal now works in both directions!

Now I've noticed something curious, though... It seems these portals are only view portals... Is it possible to make it traversible somehow? It would be nice :D
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: How to use SetPortal?

Post by NeuralStunner »

Ganryu wrote:OIs it possible to make it traversible somehow?
No, it's not (yet?). :(
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: How to use SetPortal?

Post by Graf Zahl »

Ganryu wrote:Ok after excessive testing I finally found the error! Apparently a sector CANNOT be a portal if it has the same floor height as the surrounding floor (assuming the portal is a floor portal). My portal now works in both directions!

Now I've noticed something curious, though... It seems these portals are only view portals... Is it possible to make it traversible somehow? It would be nice :D


That 'problem' has been abused so much in the past that there's not much to do about it. It was a simple oversight in the rendering code but when I found out that there's a bug it was too late. Many mappers have abused it the other way around (making non-portal sectors within the portal part of it.) It will work a bit differently (and hopefully more logical) in more recent SVN versions.
Locked

Return to “Editing (Archive)”