View Single Post
Old 07-23-2009, 06:21 AM   #7
LogicDeLuxe
Rookie
 
Join Date: Oct 2004
Posts: 215
I tried Scummbler, but it doesn't seem to work for me. Scummpacker does, though.
I tried it with the example code from the manual, and this is what I got:
Code:
Traceback (most recent call last):
  File "F:\monkey_test\scummbler.py", line 409, in <module>
    main_selector()
  File "F:\monkey_test\scummbler.py", line 399, in main_selector
    main()
  File "F:\monkey_test\scummbler.py", line 377, in main
    compile_script(infile, SCUMM_version)
  File "F:\monkey_test\scummbler.py", line 286, in compile_script
    results = comp.compileFile(infile)
  File "F:\monkey_test\scummbler_compiler.py", line 86, in compileFile
    results = self.rootExpression.parseFile(filename)
  File "E:\Python26\lib\site-packages\pyparsing.py", line 1405, in parseFile
    return self.parseString(file_contents, parseAll)
  File "E:\Python26\lib\site-packages\pyparsing.py", line 1070, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2352, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2717, in parseImpl
    loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2604, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2418, in parseImpl
    return maxMatchExp._parse( instring, loc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2352, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2461, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2336, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 945, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 2461, in parseImpl
    ret = e._parse( instring, loc, doActions )
  File "E:\Python26\lib\site-packages\pyparsing.py", line 971, in _parseNoCache
    tokens = fn( instring, tokensStart, retTokens )
  File "F:\monkey_test\scummbler_compiler.py", line 711, in do_grFunc_cutscene
    op = self.opFunctionTable[toks.function]
KeyError: 'cutscene'
Results from anything taken directly from descrumm produces similar results.
Any idea what I did wrong? I'm new to Python.
LogicDeLuxe is offline   you may: quote & reply,