SpaceNode.php:
SpaceNode.php:
-Fixed id generation when making nodes with parents.
UniSim.php:
-Proved it.

--- a/SpaceNode.php
+++ b/SpaceNode.php
@@ -4,6 +4,7 @@
 		$this->name = $name;

 		$this->mean_radius = $radius;

 		$this->relative_coords = $coords;

+		$this->id = uniqid();

 		if (is_object($ultra)) {

 			//add the ultra node as a parent

 			$this->ultra = $ultra;

@@ -17,8 +18,6 @@
 				$GLOBALS["universe"] = $this;

 			}

 		}

-

-		$this->id = uniqid();

 

 		return $this;

 	}

@@ -60,6 +59,7 @@
 				$this->grow_radius($infra_r);

 			}

 			$this->child_list[$infra->id()] = $infra;

+			printf("Added child to #%s '%s': %s", $this->id, $this->name, $infra->describe());

 		} else {

 			throw new Exception("Tried to add duplicate child object '" . $infra->name() . "'to '" . $this->name . "'");

 		}


file:a/UniSim.php -> file:b/UniSim.php
--- a/UniSim.php
+++ b/UniSim.php
@@ -7,6 +7,8 @@
 echo $universe->describe();
 
 $node1 = new SpaceNode("node1", 40, new LinearCoords(40), $universe);
+$node2 = new SpaceNode("node1", 20, new CartesianCoords(20, 30, 40), $universe);
+$node2 = new SpaceNode("node3", 30, new CartesianCoords(20, -30, -40), $universe);
 
 $infra_list = $universe->get_infra_list();
 foreach ($infra_list as $infra) {