I have the object I am spawning on a separate layer from what I read that is correct, but I am having errors that the key is not in the list...double checked names and everything. Can anyone maybe see something I do not?

here is the error KeyError: "CList[key]: ''breadcrumb'' key not in list" I assume it thinks there is no object with that name

and the code I used below

import bge


def main():

cont = bge.logic.getCurrentController()
own = cont.owner
scene = bge.logic.getCurrentScene()

life_time = 5
if own['nodeSpawnTimer'] >= 5 and own['nodeCount'] <= 20:
own['nodeCount'] += 1
own['nodeSpawnTimer'] = 0


main()

To addObject() the object has to be in an inactive layer.

you need to use:

import bge
def main():

cont = bge.logic.getCurrentController()
own = cont.owner
scene = bge.logic.getCurrentScene()