Hi, I was wounding how do you go about increasing the camera range so you can see father then the normal set up?
Also, I was wounding why this doesnt seem to work? I open a txt file and took a line from it to be town, then put town into the loader.loadModel. It works if I just put “towns/a” but not with this setup.
f = open("networking/Users/Mradr.txt","r")
lineList = f.readlines()
f.close()
print lineList[2]
town = lineList[2] + "\n"
#Load the first environment model town.egg
environ = loader.loadModel(town)
environ.reparentTo(render)
environ.setScale(0.25,0.25,0.25)
environ.setPos(0,0,0)
Error:
“towns/a”
:loader(error): Couldn’t load file “towns/a”
.egg: not found on model path (currently: “/c/Documents and Settings/Owner/Deskt
op/game;/c/Panda3D-1.4.2/etc/…;/c/Panda3D-1.4.2/etc/…/models”)
Traceback (most recent call last):
File “town1.py”, line 93, in ?
World()
File “town1.py”, line 27, in init
environ.reparentTo(render)
AttributeError: ‘NoneType’ object has no attribute ‘reparentTo’