PDA

View Full Version : GlobalRegistry Problem



Foen
July 17th, 2009, 07:20
Over the last couple of weeks I have been getting errors on loading my rulesets, stating that the GlobalRegistry doesn't exist: attempt to index global 'GlobalRegistry' (a nil value).

This occurs on scripts which run as modules and try to load preferences from the global registry on startup.

Is this unique to me? Will it go away?

Stuart

Foen
July 20th, 2009, 06:05
I think this was a corrupt GlobalRegistry.lua file. I have stopped having problems since I deleted it (it was recreated the next time I ran FG).

Stuart

Foen
July 23rd, 2009, 22:40
Update on this: for some reason (possibly a crash-exit) the Global Registry was an empty file. Any attempt to access the registry after this gave the 'GlobalRegistry doesn't exist' error.

Other than darn unstable rulesets (who builds these things anyway?) it would be nice if:

A crash out of FG didn't leave the registry in a state of permanent failure (it never recovers from this state unless manually deleted); and
The FG engine was able to cope with a blank registry without throwing script errors (perhaps by treating it as though the file didn't exist).

Just a thought.

Stuart