The script says def __init__(self): 2 arguments 3 given

The script says def init(self): 2 arguments 3 given
But i don’t give 3 argument!

Can someone help me?

Hm tats strange. Can you post the full output?

Thats the full oputput…

def init(self): 2 arguments 3 given

Have you checked the line.

File "xxx", line x, in xxx

Yes, line 10 in this file and in ?

I think thats the clue:

import math
import sys,os

class NormalMapDemo([b]DirectObject.DirectObject[/b]):
	def __init__(self):
		wp = WindowProperties()
		wp.setTitle('Myhorigia ')
		base.win.requestProperties(wp)
		
		#Load the first environment model
		self.environ = loader.loadModel("models/levels/level1/level1")

Its new in 1.1.0 to write DirectObject.DirectObject[/b]

It says now:

What is in the folder where you have the file and what is in models/levels/level1/?

the level1.egg

this means that self.environ does not contain anything. I know this because of this line in the error report:

:loader(error): Couldn’t load file models/levels/level1/level1:
el path (which is currently: ".;/g/MMORPG/etc/…;/g/MMORPG/etc/.

your model failed to load in this arguement:

self.environ = loader.loadModel(“models/levels/level1/level1”)

are you sure you’ve got the correct path? Try using a case sensitive paths.