Learn AgentCubes Online Troubleshooting
Overview
This document illustrates common problems encountered by students, especially in the early stages of working with AgentCubes. Each example has a counterpart AgentCubes Online project that can be examined to determine the cause of the problems.
- To view a given problem on a separate page, follow the link provided above the instructions for that problem.
- The solutions are hidden when the page loads. Each one can be revealed with a click on the corresponding [Expand] link.
- The content of this page is also available as PDF files:
We strongly encourage you to start by attempting to figure out the solution to each problem on your own.
- Try the problem as directed.
- Think about possible reasons for what is happening.
- Then click on the corresponding [Expand] link (on this page / individual problem pages) or check the downloadable solution guide (above).
You may also wish to visit this page, which contains some general troubleshooting tips and techniques: Troubleshooting tips and techniques
Contents
- 1 Overview
- 2 Frog will not move in certain directions
- 3 Cars get stuck in front of the right tunnel
- 4 Cars get stuck on right tunnel
- 5 Repeated sound and message displayed
- 6 Continuous sound
- 7 Too many turtles – Reason A
- 8 Too many turtles – Reason B
- 9 Too many turtles – Reason C
- 10 Too many turtles – Reason D
- 11 Clock problems
- 12 Super frog is not super
- 13 Super frog win error
- 14 Simulation does not end
- 15 Backward operation – Part 1 of 2
- 16 Backward operation – Part 2 of 2
Frog will not move in certain directions
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation and move the frog using the arrow keys.
What happens? Examine the frog agent behavior. What is the problem? How would you correct it?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59472 |
Cars get stuck in front of the right tunnel
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. In this example, the cars get stuck and “queue” up in front of the right tunnel.
Why is this occurring? How would you correct the problem?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59570 |
Cars get stuck on right tunnel
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. In this example, the cars pile up on top of each other on the right tunnel.
Why is this happening? How would you correct this?
More Information
Analysis and suggested solution |
---|
This example is similar to the previous example (Cars get stuck in front of the right tunnel), in that there is no absorption rule for the car to erase itself when it “sees” the tunnel to its right. In addition, there is also a missing condition in the movement rule that requires the car to “see” the road in order to move to the right, as shown below. As a consequence, the car moves unconditionally to the right until it reaches the end of the world space, which results in cars stacking on top of each other. |
The solution is to implement the absorption rule described in the previous example, and for completeness, add the additional condition described above, as shown below: |
Note that even with these rules implemented as shown above, it is still possible for cars to back up before the right tunnel. This can happen if the user has saved the world with at least one car already stacked on the right tunnel. In that case, the leading car will not “see” the tunnel; rather it will see the car stacked on the right tunnel. The “see” condition (as well as the “see a” and “next” conditions) refers to the topmost agent if agents are stacked. Even though the viewer, in birds-eye view” can see a tunnel beneath the car, from a programming view, only the topmost agent in a stack is visible to surrounding agents. |
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59571 |
Repeated sound and message displayed
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. Move the frog in front of a car. After the honk sound and the dialog is displayed, tap “OK” in the dialog window.
What happens? Why is this happening? How would you correct the problem?
NOTE: In order to clear the problem, you will use your keyboard and mouse* at the same time: press the “Enter” key while you simultaneously tap the “stop” button on the tool bar; you may have to do this multiple times!
* You may have a trackpad or other device instead of a mouse.
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59572 |
Continuous sound
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. You will hear a continuous honking sound. The world viewport may go completely black.
Why is this happening? How do you think this occurred? How would you correct it?
NOTE: You may need to reload the web page in order to stop the sound.
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59573 |
Too many turtles – Reason A
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. Notice the number of turtles emerging from the island.
Why are there so many? How can you correct this problem most efficiently?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59575 |
Too many turtles – Reason B
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. Notice the number of turtles.
Why are there so many? How can you correct this problem most efficiently?
More Information
Analysis and suggested solution |
---|
In this example, too many turtles are being generated in the river, but it’s not because of multiple island agents stacked above each other. Rather, there are island agents buried under the river, as can be seen below: |
Buried agents can sometimes be difficult, particularly when they are tiles or flattened inflatable icons. However, since it is a common problem, especially for beginning designers, it is worth an initial suspicion. In this case, there are two island (generator) agents that are visible when the river agents above them are removed. As in the previous example (Too many turtles – Reason A), it is possible to have AgentCubes remove the agents with some temporary programming and a single-step play, as shown below: |
Note that you may need to specify “somewhere below” instead of “immediately below” if you suspect that there are stacked generator agents under one or more river agents. If you use this technique, use the single-step function to accomplish the agent removal, then be sure to save the world afterward. |
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59654 |
Too many turtles – Reason C
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation.
Why are there turtles in the upper log lane? How can you correct this problem most efficiently?
More Information
Analysis and suggested solution |
---|
In this example, as in the previous examples (Too many turtles – Reason A, Too many turtles – Reason B), there is a buried generator agent. However, this one is buried under a river agent, which is under a tree agent, which is the log generator. As a consequence, turtles and logs appear in the same channel, as shown in the upper river channel. See below: |
As with previous examples, it is possible to use AgentCubes itself to correct the situation by removing the buried turtle generator (island) agent, as shown below: |
As discussed in previous examples, be sure to save the world after the buried agents are removed. |
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59652 |
Too many turtles – Reason D
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. Notice the number of turtles emerging from the island.
Why are there so many? How can you correct this problem?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59655 |
Clock problems
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Before running the simulation, examine the behavior of each agent (Light, Light3, and Mover). Decide the behavior you expect; then run the simulation.
Is the behavior as expected? Why not? How would you change the behavior to accomplish what appears to be intended?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59657 |
Super frog is not super
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Before running the simulation, examine the behavior of the Super_frog agent. Verify that the Super_frog’s rules should allow it to move anywhere in the world without a problem. Now test the Super_frog, as follows: erase the Frog from the world, add a Super_frog in its place with the pencil tool, then run the simulation and move the Super_frog throughout the world using the arrow keys.
Next, stop the simulation and reload the world. Run the simulation and use the arrow keys to move the Frog agent to the far right of the bottom row, where being on top of the Power_up agent should cause it to change to a Super_frog. Finally, navigate the Super_frog agent to the goal.
What happens? Why does it not behave as expected? What would you change to make this work?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59660 |
Super frog win error
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation. Move the Frog onto the Power_up agent to transform it into a Super_frog agent. Then move the Super_frog agent to the goal to win.
What happens? Why? What change is required to make this work?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59662 |
Simulation does not end
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Before running the simulation, select the Timer agent in the world and open the Agent Attributes window. Now run the simulation. The attribute should be incremented to 10, at which point the simulation should end.
What happens and why?
More Information
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/59665 |
Backward operation – Part 1 of 2
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Run the simulation using the “standard world” world, which should look like the image below. Move the frog up to the river to verify that the simulation works as expected.
Next, select “new world_2”, which should look like the image below. Run the simulation and note that the arrow keys seem to work backward.
Why? What do you think the designer did to cause this? How can this be corrected?
More Information
Analysis and suggested solution |
---|
This is a classic error with AgentCubes Online (as well as the computer-resident version of AgentCubes), particularly for beginners. In this example, the arrow keys seem to work backwards: up is down, left is right, etc. What the designer did was to experiment with the camera control tools, in particular the rotation tool, to rotate the world 180 degrees. Then the designer placed agents in the world. With the exception of the Frog agent, since the other agents in the world are symmetrical, it is not possible to see this. Placing a second Frog agent on the world will demonstrate, however, that, in fact, the world is rotated. No doubt, the designer saw this and then used a “rotate” action to rotate the Frog 180 degrees before saving the world. |
Unfortunately, there is no easy “fix” for this, short of reconstructing the world, because the agents are all in the opposite order from what the designer planned. Rotating the world as it is 180 degrees will demonstrate that the Frog agent moves properly; however, the highway is above the river, rather than below. This is the kind of error that a student usually makes only once! Note that simply clearing the world does NOT change the rotational orientation. Rather, it simply removes all agents. Therefore, the designer must clear the world, then correct the rotation before placing agents. Another approach is to simply create a new world and delete the original one. |
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/60328 |
Backward operation – Part 2 of 2
View this example on a separate page
Instructions
Open the simulation for this example in edit mode
Do not run the simulation, which uses the same project as in the previous example (Backward operation – Part 1 of 2). Select “new world_1” and attempt to place any agent into the world.
What happens? Why? What do you think the designer did to cause the problem? How can it be corrected?
More Information
Analysis and suggested solution |
---|
This example is similar to the previous one. However, it is different in that the user not only rotated the world, but also flipped it upside down. The consequence of this is that one cannot actually place agents in the world. As with the previous example, the solution is either to clear the world and re-rotate it before placing agents, or to create a new world and delete the original one. |
Where to find the main page for this project |
---|
https://www.agentcubesonline.com/project/60328 |