Enquirer Home Page | Twitter | Back to Improbable Island

 Forum Index > Places > Places: Programming Help New Topic Post Reply
 Room program overriding Page program?
 |  Printable Version
calliaphone
 Monday, August 29 2011 @ 04:06 PM UTC (Read 1452 times)  
Forum Badass
Badass

Status: offline

Registered: 10/18/09
Posts: 95

Here's a simplified example of a problem I'm having.

Room173 contains:

Program100:
- ShowPage (Page87)
- AddPageAccess (Page88)

Page88 contains the following:

Program103
- If Memory1 = 1 then:
- HideDoor (Door111)
- ShowDoor (Door48)
- HidePageLink (Page88)
- ShowPage(Page88)
- AddPageAccess (Page87)

When I enter Room173:
Program100 runs as intended, passing the Memory-test, showing the appropriate page-description, and adding the nav-link to Page88.

But when I click to explore Page88, things go awry.

First, Program103 runs:
-Door111 disappears as intended
-Door48 does not appear as intended, although the debugger says its showing it.
-Page88 nav-link vanishes as intended
-Page88 description appears as intended
-Page87 nav-link appears as intended

But then, I'm unable to prevent Program100 from running again (presumably because I've just refreshed Room173):
- Page87 description shows (although its set to be hidden and I'd rather it didn't show while I'm on Page 88)
- Page88 nav-link does not appear, although the debugger claims it is now shown (but I didn't want this to be added anyway from Page88 so I'm not complaining, just baffled)

But *then*, for reasons unclear, the description to Page88 is shown again. So the description displayed on entering Page88, reads:
- Page88 description
- Page87 description
- Page88 description

Is it me or a bug? Any clues anyone?


 
Profile Email
Quote
CavemanJoe
 Monday, August 29 2011 @ 07:38 PM UTC  
Forum Admin
Admin

Status: offline

Registered: 02/24/08
Posts: 2281

Quote by: calliaphone


Page88 contains the following:
...
- ShowPage(Page88)
...
-Door48 does not appear as intended, although the debugger says its showing it.

But *then*, for reasons unclear, the description to Page88 is shown again. So the description displayed on entering Page88, reads:



Yeah, if you're on Page 88, then Page 88's description will be shown regardless of Contraptions or Contrivances. So it gets shown once by Contraption, and then it appears once because you're looking at the Page. As for Door48 - is it actually attached to the Room in which this Program runs?


 
Profile Email Website
Quote
CavemanJoe
 Monday, August 29 2011 @ 07:42 PM UTC  
Forum Admin
Admin

Status: offline

Registered: 02/24/08
Posts: 2281

As for the whole "Room program firing while I'm in a Page" thing, that's the expected and default behaviour. I'll make a "Stop running programs" Contraption to help in the circumstances where you don't want this to happen.


 
Profile Email Website
Quote
calliaphone
 Monday, August 29 2011 @ 10:03 PM UTC  
Forum Badass
Badass

Status: offline

Registered: 10/18/09
Posts: 95

Quote by: CavemanJoe

Quote by: calliaphone


Page88 contains the following:
...
- ShowPage(Page88)
...
-Door48 does not appear as intended, although the debugger says its showing it.

But *then*, for reasons unclear, the description to Page88 is shown again. So the description displayed on entering Page88, reads:



Yeah, if you're on Page 88, then Page 88's description will be shown regardless of Contraptions or Contrivances. So it gets shown once by Contraption, and then it appears once because you're looking at the Page. As for Door48 - is it actually attached to the Room in which this Program runs?



Hah! You were right, of course. I was using the wrong door. It really is getting like a French farce isn't it.

Oh, and thanks for the tip about the Pages thing too - got that sorted, I think.


 
Profile Email
Quote
Content generated in: 0.36 seconds
New Topic Post Reply



 All times are UTC. The time is now 05:23 AM.

Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content