ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

"not on or inside another object"

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

"not on or inside another object"

Postby NickyDude » Sat Jul 28, 2012 10:53 pm

I've created an object:

Article: a
Prefix/Adjective: piece of
Name: string

Properties
=========
Object type: Dynamic
Location of object: In Location
Location: Cliff Top

When object is listed in location...: You notice a piece of string on the ground.

no other properties used

When I run the game and try to pick up the string it responds with: The piece of string is not on or inside another object! and I can't pick up the string, anyone know why?

EDIT: If I use "take all" I can pick up the string.

I'm using V5.0.24.

EDIT2: this was created in a previous version, V5.0.22 I think.
ImageI reject your reality and substitute my own...
User avatar
NickyDude
Moderator
 
Posts: 2467
Joined: Sun Jun 23, 2002 10:36 pm
Location: UK

Re: "not on or inside another object"

Postby saabie » Sun Jul 29, 2012 1:25 am

"The piece of string is not on or inside another object!" is from one of the take object from object tasks, but the "Take Objects From Location" task should have a higher priority and so should override it.
You may have a task with higher priority than "Take Objects From Location" that is causing "take object from object" to run too early.

The debugger output for "pick up string" should look like this:
adrift Code: Select all
Task 'Take Objects (Parent Task)' matches input.
Referenced Objects must exist: Passed
Referenced Objects must have been seen by the Player character: Passed
Referenced Objects must be visible to the Player character: Passed
Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
Referenced Objects must be exact text 'All': Failed
Referenced Objects must not be exact text 'All': Passed
Referenced Objects must not be held by the Player character: Passed
Referenced Objects must not be worn by the Player character: Passed
Referenced Objects must exist: Passed
Referenced Objects must have been seen by the Player character: Passed
Referenced Objects must be visible to the Player character: Passed
Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
Referenced Objects must be exact text 'All': Failed
Referenced Objects must not be exact text 'All': Passed
Referenced Objects must not be held by the Player character: Passed
Referenced Objects must not be worn by the Player character: Passed
Task passes restrictions.
Attempting to execute task Take Objects (Parent Task)...
Checking single reference task [get/take/pick up] a piece of string
Referenced Objects must exist: Passed
Referenced Objects must have been seen by the Player character: Passed
Referenced Objects must be visible to the Player character: Passed
Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
Referenced Objects must be exact text 'All': Failed
Referenced Objects must not be exact text 'All': Passed
Referenced Objects must not be held by the Player character: Passed
Referenced Objects must not be worn by the Player character: Passed
Passed Restrictions
Overriding child task found: Take Objects From Location
Attempting to execute task Take Objects From Location...
Checking single reference task [get/take/pick up] a piece of string
Referenced Objects must not be inside Any Object: Passed
Referenced Objects must not be on Any Object: Passed
Referenced Objects must not be held by Any Character: Passed
Referenced Objects must not be worn by Any Character: Passed
The Player Character must not have property 'Maximum weight of held items': Passed
The Player Character must not have property 'Maximum size of held items': Passed
Passed Restrictions
First Reference: a piece of string(no output)
Do not continue executing other child tasks.

Can you check your debugger output for this command and let us know whats different from the above?
saabie
 
Posts: 303
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia

Re: "not on or inside another object"

Postby NickyDude » Sun Jul 29, 2012 10:45 am

Here's the debug code:

adrift Code: Select all
[00.07]  Task 'Take Objects (Parent Task)' matches input.
[00.09]  Checking scope: Applicable
[00.14]  Referenced Objects must exist: Passed
[00.14]  Referenced Objects must have been seen by the Player character: Passed
[00.14]  Referenced Objects must be visible to the Player character: Passed
[00.14]  Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
[00.14]  Referenced Objects must be exact text 'All': Failed
[00.14]  Referenced Objects must not be exact text 'All': Passed
[00.14]  Referenced Objects must not be held by the Player character: Passed
[00.14]  Referenced Objects must not be worn by the Player character: Passed
[00.14]  Command matches without ambiguity.
[00.14]  Referenced Objects must exist: Passed
[00.14]  Referenced Objects must have been seen by the Player character: Passed
[00.14]  Referenced Objects must be visible to the Player character: Passed
[00.14]  Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
[00.14]  Referenced Objects must be exact text 'All': Failed
[00.14]  Referenced Objects must not be exact text 'All': Passed
[00.14]  Referenced Objects must not be held by the Player character: Passed
[00.14]  Referenced Objects must not be worn by the Player character: Passed
[00.14]  Task passes restrictions.
[00.14]  Task priority: 550014
[00.14]  Attempting to execute task Take Objects (Parent Task)...
[00.15]  Checking single reference task [get/take/pick up] a piece of string
[00.15]  Referenced Objects must exist: Passed
[00.15]  Referenced Objects must have been seen by the Player character: Passed
[00.15]  Referenced Objects must be visible to the Player character: Passed
[00.15]  Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
[00.15]  Referenced Objects must be exact text 'All': Failed
[00.15]  Referenced Objects must not be exact text 'All': Passed
[00.15]  Referenced Objects must not be held by the Player character: Passed
[00.15]  Referenced Objects must not be worn by the Player character: Passed
[00.15]  Passed Restrictions
[00.15]  Checking whether any of our child tasks should override...
[00.15]  Overriding child task found: Take Objects From Object (Lazy)
[00.15]      Override Parent
[00.15]      Attempting to execute task Take Objects From Object (Lazy)...
[00.15]      Checking single reference task [get/take/pick up] a piece of string
[00.15]      Referenced Objects must not be exact text 'All': Passed
[00.15]      Referenced Objects must be inside Any Object: Failed
[00.15]      Referenced Objects must be on Any Object: Failed
[00.15]      Failed Restrictions
[00.15]      %PCase[%TheObject[%objects%]%]% is not on or inside another object!
[00.17]      First Reference: a piece of string(no output)
[00.17]      Child task fails
[00.17]  Do not continue executing other child tasks.
[00.17]  Task passes and has output.  Will not execute lower priority tasks
...............................................
 


I've also tested it be creating another object (in V5.0.24) and it does the same thing.
ImageI reject your reality and substitute my own...
User avatar
NickyDude
Moderator
 
Posts: 2467
Joined: Sun Jun 23, 2002 10:36 pm
Location: UK

Re: "not on or inside another object"

Postby saabie » Sun Jul 29, 2012 11:28 am

Your game is clearly running the wrong Overriding child task.

In the "Give, Take and Drop" folder of the standard library, what are the priorities of the two specific tasks.
If i open a new project i get:
Take objects from object (Lazy) = 900019
Take objects from location = 900015
The actual value seems to vary depending on which version of ADRIFT was used to create the original file, but the "Take objects from location" task should always have a smaller number than the other one.
Also check that "Take objects from location" is overriding the "Take Objects (Parent Task)" general task.
If these all look OK, have you made any new specific tasks that override any of these tasks?
saabie
 
Posts: 303
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia

Re: "not on or inside another object"

Postby NickyDude » Sun Jul 29, 2012 6:49 pm

Here's the taf: http://www.madladdesigns.co.uk/downloads/monkeyisland.taf

I don't have a "Give, Take and Drop" folder, only a "Give and Take" folder, which is empty.
ImageI reject your reality and substitute my own...
User avatar
NickyDude
Moderator
 
Posts: 2467
Joined: Sun Jun 23, 2002 10:36 pm
Location: UK

Re: "not on or inside another object"

Postby Po. Prune » Sun Jul 29, 2012 8:23 pm

NickyDude wrote:Here's the taf: http://www.madladdesigns.co.uk/downloads/monkeyisland.taf

I don't have a "Give, Take and Drop" folder, only a "Give and Take" folder, which is empty.


I have a give, Take and Drop folder. It's in the Standard Library Folder.
D-Day V.5 in progress 79Kb so far (slowly getting there)
The Inheritance (Annual Adrift Comp. entry) in progress
User avatar
Po. Prune
Moderator
 
Posts: 3427
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark

Re: "not on or inside another object"

Postby NickyDude » Sun Jul 29, 2012 8:37 pm

Nope. :)

Image
ImageI reject your reality and substitute my own...
User avatar
NickyDude
Moderator
 
Posts: 2467
Joined: Sun Jun 23, 2002 10:36 pm
Location: UK

Re: "not on or inside another object"

Postby saabie » Mon Jul 30, 2012 12:41 am

Changing the priority of the "Take objects from location" task in the standard library "Tasks" folder from 600015 to 550015 should fix the immediate problem.

But the standard library in this game seems to be based on a very early version (a lot earlier then v22) and seems to have become a bit scrambled with some tasks being updated to newer versions while others were not.

Campbell will probably need to look at it to figure out what has happened to it.

Does your standard library in C:\Program Files\Common Files\ADRIFT\Libraries\ have a modified date of 9/jun/2012 ?
Did you get the "Update library items" prompt when you first loaded the game after updating ADRIFT ?
Did you answer Yes or No ?
saabie
 
Posts: 303
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia

Re: "not on or inside another object"

Postby NickyDude » Mon Jul 30, 2012 10:41 am

The library file I had was last modified 21/8/2011. What I did was just unzip the files straight into the Adrift folder without using the Setup. It doesn't mention that you have to unzip the Librarys folder to " C:\Program Files\Common Files\ADRIFT\Libraries\" so I've just been unzipping them straight to the Adrift folder. I've now updated the library but it was still saying the same thing "The piece of string is not on or inside another object!". Changing the priority did the trick, thanks saabie.

Image
ImageI reject your reality and substitute my own...
User avatar
NickyDude
Moderator
 
Posts: 2467
Joined: Sun Jun 23, 2002 10:36 pm
Location: UK


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 3 guests