diff -ru uqm-0.6.2/sc2/src/sc2code/uqmdebug.c uqm-0.6.2-xolotl/sc2/src/sc2code/uqmdebug.c
--- uqm-0.6.2/sc2/src/sc2code/uqmdebug.c	2006-12-23 04:26:09.000000000 -0600
+++ uqm-0.6.2-xolotl/sc2/src/sc2code/uqmdebug.c	2007-02-08 10:15:48.000000000 -0600
@@ -76,7 +76,7 @@
 	// Informational:
 //	dumpEvents (stderr);
 //	dumpPlanetTypes(stderr);
-//	debugHook = dumpUniverseToFile;
+	debugHook = dumpUniverseToFile;
 			// This will cause dumpUniverseToFile to be called from the
 			// main loop. Calling it from here would give threading
 			// problems.
@@ -693,6 +693,32 @@
 }
 
 const char *
+elementTypeString (BYTE type)
+{
+	switch (type) {
+		case COMMON:
+			return "Common";
+		case CORROSIVE:
+			return "Corrosive";
+		case BASE_METAL:
+			return "Base Metal";
+		case NOBLE:
+			return "Noble";
+		case RARE_EARTH:
+			return "Rare Earth";
+		case PRECIOUS:
+			return "Precious";
+		case RADIOACTIVE:
+			return "Radioactive";
+		case EXOTIC:
+			return "Exotic";
+		default:
+			// Should not happen
+			return "???";
+	}
+}
+
+const char *
 bodyColorString (BYTE col)
 {
 	switch (col) {
@@ -889,6 +915,8 @@
 dumpWorld (FILE *out, const PLANET_DESC *world)
 {
 	PLANET_INFO *info;
+	COUNT minerals[NUM_ELEMENT_CATEGORIES];
+	COUNT i;
 	
 	if (world->data_index == (BYTE) ~0) {
 		// StarBase
@@ -921,6 +949,14 @@
 	fprintf (out, "          Bio: %4d    Min: %4d\n",
 			calculateBioValue (pSolarSysState, world),
 			calculateMineralValue (pSolarSysState, world));
+
+	generateMineralIndex (pSolarSysState, world, minerals);
+	for (i = 0; i < NUM_ELEMENT_CATEGORIES; i++)
+	{
+		fprintf (out, "          %s Minerals: %d\n", elementTypeString(i), minerals[i]);
+	}
+
+
 }
 
 COUNT
diff -ru uqm-0.6.2/sc2/src/sc2code/uqmdebug.h uqm-0.6.2-xolotl/sc2/src/sc2code/uqmdebug.h
--- uqm-0.6.2/sc2/src/sc2code/uqmdebug.h	2006-12-23 04:26:09.000000000 -0600
+++ uqm-0.6.2-xolotl/sc2/src/sc2code/uqmdebug.h	2007-02-08 10:15:48.000000000 -0600
@@ -92,6 +92,8 @@
 // Describe one star system.
 void dumpSystem (FILE *out, const STAR_DESC *star,
 		const SOLARSYS_STATE *system);
+// Get an element type as a string
+const char *elementTypeString (BYTE type);
 // Get a star color as a string.
 const char *bodyColorString (BYTE col);
 // Get a star type as a string.
