The line
if settings.startup["bobmods-power-nuclear"].value == true then
everywhere it occurs in the prototypes directory, causes nil errors. It needs to be
if settings.startup["bobmods-power-nuclear"] and settings.startup["bobmods-power-nuclear"].value == true then
to check for nil before indexing.