Why doesn't AI recognize interactive wall portals?

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Why doesn't AI recognize interactive wall portals?

Postby FishyClockwork » Wed Mar 15, 2017 11:50 am

Note: I don't consider this a bug, otherwise I would have made a report on mantis.

I know AI/monsters can use static (Eternity) portals, but those are rather a pain to setup for what I'm planning and are less flexible. (Also, Line_SetPortalTarget doesn't affect them.)

I'm just curious what are the technical reasons why the more flexible interactive wall portals are "invisible" to monsters and why you can't hear anything on the other side?

EDIT: Test map removed.
Last edited by FishyClockwork on Thu Mar 16, 2017 1:50 pm, edited 1 time in total.
User avatar
FishyClockwork
 
Joined: 23 Feb 2011
Location: 01101001 01101110 01110110 01100001 01101100 01101001 01100100

Re: Why doesn't AI recognize interactive wall portals?

Postby Rachael » Wed Mar 15, 2017 11:55 am

Interactive portals are more illusory than static portals. The reason why static portals work is because they link everything together - they try to tie together information from both ends of the portal and essentially make the scene truly seamless - interactive portals are nothing more than a visual window to the other side that just happens to let objects pass through.
User avatar
Rachael
 
Joined: 13 Jan 2004

Re: Why doesn't AI recognize interactive wall portals?

Postby Graf Zahl » Wed Mar 15, 2017 12:02 pm

The reason is that the AI needs a fixed offset between two regions to handle it - when making calculations it just adds that offset to the coordinates.
Fixed offset means that all paths leading from section A to section B add up to the same displacement. If you have different displacements along different paths the AI cannot determine which one to choose.
User avatar
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: Why doesn't AI recognize interactive wall portals?

Postby FishyClockwork » Wed Mar 15, 2017 12:05 pm

Thanks for answering so quickly. :)
User avatar
FishyClockwork
 
Joined: 23 Feb 2011
Location: 01101001 01101110 01110110 01100001 01101100 01101001 01100100

Re: Why doesn't AI recognize interactive wall portals?

Postby Trusty McLegit » Sat Mar 18, 2017 5:41 pm

So, what's the difference between visual portals and interactive portals?
User avatar
Trusty McLegit
 
Joined: 07 Feb 2016

Re: Why doesn't AI recognize interactive wall portals?

Postby Graf Zahl » Sat Mar 18, 2017 6:46 pm

Visual portals are just visual, they cannot be crossed.
User avatar
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: Why doesn't AI recognize interactive wall portals?

Postby Trusty McLegit » Sun Mar 19, 2017 6:36 pm

Sorry, I meant "Visual + simple teleporter"
User avatar
Trusty McLegit
 
Joined: 07 Feb 2016

Re: Why doesn't AI recognize interactive wall portals?

Postby Lud » Sun Mar 19, 2017 7:06 pm

Sound doesn't travel through a visual/simple portal, for starters.
User avatar
Lud
Pirates of the Somallean
 
Joined: 11 Feb 2016
Location: Somalia

Re: Why doesn't AI recognize interactive wall portals?

Postby Trusty McLegit » Sun Mar 19, 2017 8:10 pm

Sound doesn't travel through interactive portals either
User avatar
Trusty McLegit
 
Joined: 07 Feb 2016

Re: Why doesn't AI recognize interactive wall portals?

Postby FishyClockwork » Mon Mar 20, 2017 5:10 pm

As far as you, the player, are concerned, you can't hear anything on the other side of a interactive portal (I assume it's the same for visual and visual + simple teleport). Monsters on the other hand can 'hear' you. Meaning if you shoot your gun any monster on the other side of a interactive portal will wake up.

With static portals, you can hear actor-played sounds (monster chatter, fireballs being thrown etc) but sector-played sounds
(eg. a floor lowering) won't be heard, for some odd reason.
User avatar
FishyClockwork
 
Joined: 23 Feb 2011
Location: 01101001 01101110 01110110 01100001 01101100 01101001 01100100

Re: Why doesn't AI recognize interactive wall portals?

Postby Trusty McLegit » Mon Mar 20, 2017 6:22 pm

Awesome, thanks for the explanation!
User avatar
Trusty McLegit
 
Joined: 07 Feb 2016


Return to Editing

Who is online

Users browsing this forum: Darsycho and 4 guests