IndexError in prp_DrawClasses.py during saving of mainRoom

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

IndexError in prp_DrawClasses.py during saving of mainRoom

Postby Finn » Tue Feb 16, 2010 10:24 pm

I've got Blender 2.49b (built on Python 2.6.2) with PyPRP 1.6.0 and Python version 2.6.1.

I've successfully completed the Beginner's Tutorial and gotten the age to run in URU CC without trouble.

I've started on the Your First (Real) Age tutorial. I have a book, a cylinder, a link-in point, two suns, a piece of terrain and a water plane that intersects it. The terrain has two materials with four textures (all 256x256 PNGs) and a stencil. The water plane and cylinder each have a material but no textures. All except the cylinder have been fully UV-mapped (the terrain has an extra UV texture for the stencil). I have some blank textures hanging arround in Blender (I can't figure out how to get rid of them), but they're not assigned to any materials.

When I try to export the age, I get an "IndexError: list index out of range" in prp_DrawClasses.py under the "@ Saving page mainRoom 0" section. Here's the full log:
Code: Select all
Exporting C:\Tools\Blender\blender-2.49b-windows\Blends\URU\Willit\Willit.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age Willit
[AlcScript Parser]
{'DayLength': 24.0, 'LingerTime': 180, 'MaxCapacity': 10, 'StartDateTime': 0, 'SequencePrefix': 1002}
{'AgeSDLHook': True}
[]
{'DayLength': 24.0, 'LingerTime': 180, 'MaxCapacity': 10, 'StartDateTime': 0, 'SequencePrefix': 1002}
#########################################
##
## => Exporting page Textures -1 <=
##
#########################################
#########################################
##
## => Exporting page BuiltIn -2 <=
##
#########################################
>>> Added AgeSDLHook scene object and python file mod
#########################################
##
## => Exporting page mainRoom 0 <=
##
#########################################

[SpawnPoint LinkInPointDefault]
 [Coordinate Interface LinkInPointDefault]
 [LogicHelper]
   No actions in list
None
   Exporting modifiers
   No modifiers
None

[Lamp Lamp.001]
 [Light Base]

  Diffuse Lighting Enabled
  Specular Lighting Enabled
  >>> !kLPCastShadows <<<
  >>> !kLPShadowOnly <<<
 [Coordinate Interface Lamp.001]

[Lamp Lamp]
 [Light Base]

  Diffuse Lighting Enabled
  Specular Lighting Enabled
  >>> !kLPCastShadows <<<
  >>> !kLPShadowOnly <<<
 [Coordinate Interface Lamp]

[Visual Object Plane]
 [LogicHelper]
   No actions in list
None
   Exporting modifiers
   No modifiers
None
 [Draw Interface Plane]
  [Material Material]
  [DrawableSpans 00000000_0]
   Processing Faces per Material - Totalling 1 materials
   Material Material
    Appending Light Lamp.001 as lightobject to object Plane
    Appending Light Lamp as lightobject to object Plane
 [ShadowCaster]

[Visual Object Surf]
 [LogicHelper]
   No actions in list
None
   Exporting modifiers
   No modifiers
None
 [Draw Interface Surf]
  [Material Cracked Dirt]
   [Layer Cracked Dirt-Stone]
    -> Using default first UV map
    [MipMap Cliffs0007-256x256-ti]
     MipMapInfo:
---------------
Imagename:Cliffs0007-256x256-ti
Resize Image: True
Make MipMaps: True
Calculate Alpha:False
MipMap Gauss:False
Mipmap AlphaMult:1.0
CompressionType: DXT
 SubType: DXT5
---------------

     Reading mipmap Cliffs0007-256x256-ti.tex from cache
   [Layer Cracked Dirt-Dirt]
    -> Using default first UV map
    [MipMap Cracked-256x256-tiled]
     MipMapInfo:
---------------
Imagename:Cracked-256x256-tiled
Resize Image: True
Make MipMaps: True
Calculate Alpha:False
MipMap Gauss:False
Mipmap AlphaMult:1.0
CompressionType: DXT
 SubType: DXT5
---------------

     Reading mipmap Cracked-256x256-tiled.tex from cache
   [Layer Cracked Dirt-Dirt_AlphaBlend_]
    -> Using UV map 'Stencil'
      Image size: 64x64
      DXT Compressing texture .... this can take a few minutes
     Compressing DXT5
Done
   [Layer Cracked Dirt-Dirt Detail]
    -> Using default first UV map
    [MipMap Cracked-detail-256x25]
     MipMapInfo:
---------------
Imagename:Cracked-detail-256x25
Resize Image: True
Make MipMaps: True
Calculate Alpha:False
MipMap Gauss:False
Mipmap AlphaMult:0.899999976158
CompressionType: DXT
 SubType: DXT5
---------------

     Reading mipmap Cracked-detail-256x25.tex from cache
  [Material Stone]
   [Layer Stone-Stone]
    -> Using default first UV map
   [Layer Stone-Stone Detail]
    -> Using default first UV map
    [MipMap Cliffs0007-detail-256]
     MipMapInfo:
---------------
Imagename:Cliffs0007-detail-256
Resize Image: True
Make MipMaps: True
Calculate Alpha:False
MipMap Gauss:False
Mipmap AlphaMult:0.899999976158
CompressionType: DXT
 SubType: DXT5
---------------

     Reading mipmap Cliffs0007-detail-256.tex from cache
  [DrawableSpans 20000000_0]
   Processing Faces per Material - Totalling 2 materials
   Material Cracked Dirt
    Appending Light Lamp.001 as lightobject to object Surf
    Appending Light Lamp as lightobject to object Surf
   Material Stone
    Appending Light Lamp.001 as lightobject to object Surf
    Appending Light Lamp as lightobject to object Surf
 [ShadowCaster]
 [Physical]
  ProxyBounds export
   Exporting 159 (784) vertices
   Exporting 290 (729) faces
  No Mass
  No Friction, disabling frictive setting
  No Elasticity set
  Camera blocking enabled
  Object is Static

[Visual Object Cylinder]
 [LogicHelper]
   No actions in list
None
   Exporting modifiers
   No modifiers
None
 [Draw Interface Cylinder]
  [Material Material.001]
  [DrawableSpans 00000000_0]
   Processing Faces per Material - Totalling 1 materials
   Material Material.001
    Appending Light Lamp.001 as lightobject to object Cylinder
    Appending Light Lamp as lightobject to object Cylinder
 [ShadowCaster]

[Camera Camera]
 [Coordinate Interface Camera]
 [LogicHelper]
   No actions in list
None
   Exporting modifiers
   No modifiers
None
Exporting Camera Modifier Object
Calculating FOV for lens is 35 mm
 Camera Brain: fixed
Exporting CameraBrain1
  No camera flags list, setting default
Exporting CameraBrain1_Fixed

@ Saving page Textures -1
@ Saving page BuiltIn -2
@ Saving page mainRoom 0

Image

Any suggestions are appreciated. Thanks!
Finn
 
Posts: 9
Joined: Tue Feb 16, 2010 9:37 pm

Re: IndexError in prp_DrawClasses.py during saving of mainRoom

Postby Lontahv » Tue Feb 16, 2010 10:46 pm

This could be due to too many vertices. To test this theory out select your largest object (probably your terrain) and go into edit mode. Then take a look at the number of vertices there are. This number is up in the right-hand top of blender.
num_verts.jpg
num_verts.jpg (34.77 KiB) Viewed 2045 times
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).
User avatar
Lontahv
Councilor of Artistic Direction
 
Posts: 1331
Joined: Wed Oct 03, 2007 2:09 pm

Re: IndexError in prp_DrawClasses.py during saving of mainRoom

Postby Finn » Wed Feb 17, 2010 10:32 am

Thank you, indeed it was. I didn't realize I had to convert it back to a mesh (Alt+C) to apply the modifiers.
Finn
 
Posts: 9
Joined: Tue Feb 16, 2010 9:37 pm


Return to Building

Who is online

Users browsing this forum: No registered users and 0 guests

cron