2007-03-03 15:40:23 +00:00
/* This file controls the visibility of various error messages and groups of
error messages, or “message classes”. It can be selectively overridden
using a dictionary called “logging-enable” in Oolite’ s preferences which
allows you to reduce the flow of log messages to a more managable
quantity.
2007-03-03 19:05:50 +00:00
classes which are related, but not hierarchically, can be controlled using
metaclasses, whose names start with a $. See $error etc. below for
examples.
2007-03-03 15:40:23 +00:00
Log output can be modified using the following preference keys:
logging-show-app-name
logging-show-class
logging-show-function
logging-show-file-and-line
“logging-show-app-name” defaults to 1 under Mac OS X (where log output
goes to a shared console) and 0 under GNUstep (where log output goes to an
application-specific log file). “logging-show-class” defaults to 1. The
2007-04-01 11:26:35 +00:00
others default to 0.
NOTE: the GNUstep plist parser cannot parse this file, presumably because
of the $s. Until this is properly analyzed, an XML version is used
instead. The XML version is automatically generated from this version when
building with Xcode under OS X.
2007-03-03 15:40:23 +00:00
*/
2007-03-04 13:30:09 +00:00
/*** Special message classes ***/
2007-03-04 19:01:58 +00:00
_default = yes; // Fallback value for otherwise undefined classes. Must be yes or no.
// _override = yes; // Use to force display of all messages (or suppress all messages). Must be yes or no.
2007-03-03 19:05:50 +00:00
2007-03-02 21:20:18 +00:00
2007-03-04 13:30:09 +00:00
/*** Metaclasses ***/
2007-03-04 19:01:58 +00:00
$error = yes;
2007-05-23 14:24:12 +00:00
$scriptError = $error;
$shaderError = $scriptError;
2007-03-04 19:01:58 +00:00
$troubleShootingDump = yes;
2007-04-03 17:37:40 +00:00
$entityState = no;
2007-03-04 19:01:58 +00:00
$scriptDebugOn = no; // This metaclass is set by the debugOn and debugOff script actions.
2007-04-07 20:49:06 +00:00
$shaderDebugOn = no; // Enabled by 's' key while paused, disabled by 'n' while paused.
2007-03-04 13:30:09 +00:00
/*** Common programming problems ***/
2007-03-04 19:01:58 +00:00
general.error.subclassResponsibility = inherit;
general.error.parameterError = inherit;
general.error.deprecatedMethod = inherit;
2007-03-04 13:30:09 +00:00
exception = yes;
2007-03-04 19:01:58 +00:00
files.notFound = $error; // Failure to load a file.
files.notLoaded = $error; // A file should have been loaded at some earlier point, but wasn’ t.
2007-03-04 12:35:25 +00:00
2007-03-04 13:30:09 +00:00
/*** Old-style logging calls ***/
2007-03-04 19:01:58 +00:00
unclassified = inherit;
2007-03-03 15:40:23 +00:00
2007-03-04 13:30:09 +00:00
/*** Module-specific message classes ***/
2007-03-04 19:01:58 +00:00
ai = $entityState;
ai.message.receive = inherit;
2007-04-03 17:37:40 +00:00
ai.takeAction.takeAction = inherit;
ai.takeAction.noAction = inherit;
2007-03-04 19:01:58 +00:00
ai.takeAction.orphaned = $error;
ai.takeAction.debugMessage = inherit;
2007-04-03 17:37:40 +00:00
ai.takeAction.badSelector = inherit;
ai.pop = inherit;
2007-03-11 13:09:28 +00:00
beacon.list = $scriptDebugOn;
beacon.list.flightTraining = inherit;
2007-03-04 19:01:58 +00:00
2007-03-09 17:07:46 +00:00
$dataCacheStatus = yes;
2007-03-06 23:50:32 +00:00
$dataCacheError = $error;
$dataCacheDebug = no;
2007-03-09 17:07:46 +00:00
dataCache.found = $dataCacheStatus;
2007-03-09 18:41:57 +00:00
dataCache.upToDate = $dataCacheStatus;
2007-03-06 23:50:32 +00:00
dataCache.notFound = $dataCacheError;
2007-03-09 17:07:46 +00:00
dataCache.rebuild = $dataCacheStatus;
2007-03-09 18:41:57 +00:00
dataCache.rebuild.pathsChanged = inherit;
dataCache.rebuild.datesChanged = inherit;
2007-03-09 17:07:46 +00:00
dataCache.removedOld = $dataCacheStatus;
dataCache.write.success = $dataCacheStatus;
2007-03-06 23:50:32 +00:00
dataCache.write.buildPath.failed = $dataCacheError;
dataCache.write.failed = $dataCacheError;
dataCache.write.serialize.failed = $dataCacheError;
dataCache.retrieve.success = $dataCacheDebug;
dataCache.retrieve.failed = $dataCacheDebug;
dataCache.set.success = $dataCacheDebug;
dataCache.set.failed = $dataCacheError;
dataCache.remove.success = $dataCacheDebug;
dataCache.clear.success = $dataCacheDebug;
2007-03-09 17:07:46 +00:00
dataCache.prune = $dataCacheDebug;
2007-03-06 23:50:32 +00:00
2007-03-04 19:01:58 +00:00
$linkedListError = $error;
2007-03-06 23:50:32 +00:00
entity.behaviour.changed = $entityState;
2007-03-04 19:01:58 +00:00
entity.linkedList = inherit; // Management/verification of the lists used to track the relative position of entities.
entity.linkedList.add = inherit;
entity.linkedList.add.error = $linkedListError;
entity.linkedList.remove = inherit;
entity.linkedList.remove.error = $linkedListError;
entity.linkedList.verify.error = $linkedListError;
2007-03-05 14:34:26 +00:00
entity.linkedList.verify.rebuild = inherit;
2007-03-04 19:01:58 +00:00
entity.linkedList.update.error = $linkedListError;
2007-03-11 13:09:28 +00:00
equip.buy.mounted = no;
equip.buy.mounted.failed = $scriptError;
2007-03-04 19:01:58 +00:00
input.keyMapping.codeOutOfRange = inherit;
2007-03-06 18:40:34 +00:00
input.keyMapping.keyPress = no;
input.keyMapping.keyPress.keyDown = inherit;
input.keyMapping.keyPress.keyUp = inherit;
2007-03-04 19:01:58 +00:00
2007-03-06 23:50:32 +00:00
mesh.load.error = $error;
mesh.load.error.fileNotFound = inherit;
mesh.load.error.tooManyVertices = inherit;
mesh.load.error.tooManyFaces = inherit;
2007-03-26 01:24:50 +00:00
oxp.versionMismatch = $error;
2007-03-22 20:33:04 +00:00
$plistError = $error;
2007-03-21 11:40:43 +00:00
plist.parse.foundation.failed = $plistError;
plist.wrongType = $plistError;
plist.homebrew.badEncoding = $plistError;
plist.homebrew.exception = $plistError;
plist.homebrew.parseError = $plistError;
plist.homebrew.parseWarning = $plistError;
plist.homebrew.tokenize.trace = no; // Log details of first stage of homebrew parsing. Extremely verbose!
plist.homebrew.interpret.trace = no; // Log details of second stage of homebrew parsing. Also extremely verbose!
plist.homebrew.success = yes;
2007-03-20 17:12:39 +00:00
2007-03-04 19:01:58 +00:00
rendering.opengl.error = $error; // Test for and display OpenGL errors
rendering.opengl.version = $troubleShootingDump; // Display renderer version information at startup
rendering.opengl.extensions = $troubleShootingDump; // List OpenGL extensions at startup
2007-03-06 02:05:45 +00:00
rendering.opengl.shader.support = $troubleShootingDump; // Messages about factors influencing availability of OpenGL shaders
2007-03-04 19:01:58 +00:00
rendering.opengl.stateDump = $troubleShootingDump; // Dump of OpenGL state (debug tool, currently unused)
2007-04-07 20:49:06 +00:00
rendering.opengl.shader.uniform = $shaderDebugOn;
2007-04-14 00:07:32 +00:00
resourceManager.foundFile = off; // Tells you where all assets (models, textures, sounds) are found. Very verbose!
2007-04-13 10:38:08 +00:00
save.failed = yes;
save.success = no;
2007-04-07 20:49:06 +00:00
setup.ship.badEntry.subentities = inherit;
2007-03-04 19:01:58 +00:00
script.addShips.failed = $scriptError;
script.missionDescription.noMissionText = inherit;
script.missionDescription.noMissionKey = inherit;
script.debug = $scriptDebugOn;
script.debug.message = inherit; // debugMessage: script action
script.debug.onOff = inherit; // debugOn/debugOff script actions
script.debug.testCondition = inherit;
script.debug.testCondition.checkingVariable = inherit;
script.debug.testCondition.testValues = inherit;
script.debug.testCondition.oneOf = inherit;
script.debug.processSceneString.addScene = inherit;
script.debug.processSceneString.addModel = inherit;
script.debug.processSceneString.addLocalPlanet = inherit;
script.debug.processSceneString.addTargetPlanet = inherit;
script.debug.processSceneString.addBillboard = inherit;
script.debug.setSunNovaIn = inherit;
2007-04-02 19:59:43 +00:00
script.debug.note = inherit;
2007-04-01 11:26:35 +00:00
script.debug.note.scriptAction = inherit; // Messages saying a scripting method was called, with no further info
2007-03-04 19:01:58 +00:00
script.debug.note.awardCargo = inherit;
script.debug.note.removeAllCargo = inherit;
script.debug.note.useSpecialCargo = inherit;
script.debug.note.addShips = inherit;
script.debug.note.set = inherit;
script.debug.note.systemSeedForSystemName = inherit;
script.debug.note.showShipyardModel = inherit;
script.debug.note.showShipModel = inherit;
script.debug.note.setFuelLeak = inherit;
script.debug.note.addPlanet = inherit;
script.debug.note.replaceVariablesInString = inherit;
script.debug.note.processSceneString = inherit;
2007-04-01 16:56:17 +00:00
script.debug.note.testCondition = no;
2007-03-04 19:01:58 +00:00
script.debug.syntax = $scriptError; // Messages relating to script formatting
script.debug.syntax.badConditional = inherit;
script.debug.syntax.action = inherit;
script.debug.syntax.action.noneSpecified = inherit;
script.debug.syntax.action.badSelector = inherit;
script.debug.syntax.scriptCondition.noneSpecified = inherit;
script.debug.syntax.setPlanetInfo = inherit;
script.debug.syntax.awardCargo = inherit;
script.debug.syntax.messageShipAIs = inherit;
script.debug.syntax.addShips = inherit;
script.debug.syntax.set = inherit;
script.debug.syntax.reset = inherit;
2007-04-02 19:59:43 +00:00
script.javaScript.load.success = no;
script.javaScript.load.failed = $scriptError;
2007-04-01 11:26:35 +00:00
script.javaScript.init.success = no;
script.javaScript.init.error = $error; // Fatal start-up error
script.javaScript.call.badSelector = $scriptError;
2007-04-02 19:59:43 +00:00
script.javaScript.error = $scriptError;
script.javaScript.exception = $scriptError;
script.javaScript.warning = $scriptError;
2007-04-06 17:35:42 +00:00
script.javaScript.badParameter = $scriptError;
2007-04-01 11:26:35 +00:00
2007-04-01 16:56:17 +00:00
script.load = no;
2007-04-01 11:26:35 +00:00
script.load.badName = $scriptError;
script.load.notFound = $scriptError;
2007-04-01 16:56:17 +00:00
script.load.parseOK = inherit;
2007-04-01 11:26:35 +00:00
script.load.unnamed = $scriptError;
script.load.exception = $error;
2007-04-02 19:59:43 +00:00
script.load.world.listAll = $troubleShootingDump; // List names and versions of all loaded world scripts at startup.
2007-04-01 11:26:35 +00:00
script.plist.run.badTarget = $error;
script.trace = no;
script.trace.runWorld = inherit;
script.trace.plist.run = inherit;
script.trace.javaScript.call = inherit; // Prints selector and parameter string on Player.call()
2007-03-26 01:24:50 +00:00
2007-03-04 19:01:58 +00:00
searchPaths.dumpAll = $troubleShootingDump;
2007-05-23 14:24:12 +00:00
$shaderDebug = $shaderDebugOn;
2007-04-11 20:29:30 +00:00
$shaderError = $error;
shader.load.noShader = $error;
shader.uniform = $shaderDebug;
shader.uniform.set = inherit; // Successfully set a uniform.
shader.uniform.unSet = inherit; // A uniform went unset or was cleared (either because there was no matching uniform in the shader, or the new uniform could not be set up).
shader.uniform.badDescription = inherit; // A uniform specified in shipdata.plist could not be set up, because the configuration could not be understood.
shader.uniform.bind.failed = inherit; // Problem setting up uniform bound to an object property.
shader.vessel.init = $shaderDebug;
shader.compile.vertex.failure = $shaderError;
shader.compile.fragment.failure = $shaderError;
shader.link.failure = $shaderError;
2007-03-04 19:01:58 +00:00
strings.conversion = $scriptError; // Conversion of text to values (vectors, quaternions etc)
strings.conversion.vector = inherit;
strings.conversion.quaternion = inherit;
strings.conversion.vectorAndQuaternion = inherit;
strings.conversion.randomSeed = inherit;
2007-03-05 13:19:11 +00:00
texture.planet.generate = inherit;
2007-03-04 19:01:58 +00:00
2007-05-19 15:09:05 +00:00
$textureDebug = no;
2007-04-23 22:21:38 +00:00
texture.load.noName = $error;
texture.dealloc = $textureDebug;
2007-05-23 13:12:13 +00:00
texture.upload = $textureDebug;
2007-04-23 22:21:38 +00:00
textureLoader.asyncLoad = $textureDebug;
textureLoader.asyncLoad.done = inherit;
textureLoader.asyncLoad.exception = $error;
textureLoader.block = $textureDebug;
textureLoader.block.done = inherit;
textureLoader.detachThreads.failed = $error;
textureLoader.queueTask.inconsistency = $error;
textureLoader.unknownType = $error;
2007-05-19 15:09:05 +00:00
universe.populate = no; // “Populating a system with…” message when generating a star system
2007-03-06 02:05:45 +00:00
universe.populate.witchspace = inherit;
2007-03-04 13:30:09 +00:00
/*** Mac OS X/Cocoa-specific ***/
2007-03-04 19:01:58 +00:00
growl.error = $error;
growl.debug = no;
$soundError = $error;
$soundDebug = no;
$soundDebugVerbose = $soundDebug;
sound.channel.cleanup.success = $soundDebugVerbose;
sound.channel.cleanup.failed = $soundError;
sound.channel.cleanup.failed.broken = inherit;
sound.channel.cleanup.failed.badState = inherit;
sound.channel.machPortError = $soundError;
sound.initialization = inherit;
sound.initialization.error = $soundError;
sound.load.success = $soundDebug;
sound.load.failed = $soundError;
sound.mixer.outOfChannels = $soundError;
sound.mixer.inspector.loadFailed = $soundError;
sound.mixer.replacingBrokenChannel = $soundDebug;
sound.mixer.failedToConnectChannel = $soundError;
sound.play.success = $soundDebugVerbose;
sound.play.failed = $soundError;
sound.play.failed.badReuse = inherit;
sound.play.failed.setupFailed = inherit;
sound.play.failed.auError = inherit;
sound.render.undexpectedNull = $soundError;
sound.streaming.refill = $soundDebugVerbose;
sound.streaming.loop = $soundDebug;
sound.streaming.underflow = $soundError;
sound.virtualringbuffer = $soundError;
2007-03-10 16:08:37 +00:00
sound.streaming.releaseContext = $soundDebug;
2007-03-26 01:24:50 +00:00
sound.invalidBeep = inherit;