Author Topic: Blender Export script issue  (Read 1724 times)

asmodeus

  • Guest
Blender Export script issue
« on: 16 October 2008, 07:46:05 »
Recent versions of Python will break the current exporters because of the use of non-ASCII characters in the comment section.  See:  http://www.python.org/dev/peps/pep-0263/ where it states:  
Quote
   Python will default to ASCII as standard encoding if no other
    encoding hints are given.

    To define a source code encoding, a magic comment must
    be placed into the source files either as first or second
    line in the file, such as:

          # coding=<encoding name>

    or (using formats recognized by popular editors)

          #!/usr/bin/python
          # -*- coding: <encoding name> -*-

    or

          #!/usr/bin/python
          # vim: set fileencoding=<encoding name> :

The 1.5 exporter script fails on line 133 and the 1.6 script fails on line 138, both of which are a recognition of help received:
Code: [Select]
#       « pseudonym404 » : NMVert.uvco issue and solutions
As a work around you can delete the line in question after saying "all hail  Ã‚« pseudonym404 » for the contribution to this export script" a real fix might be to include some encoding (Or move the recognition from the script to a readme file :) )

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Blender Export script issue
« Reply #1 on: 16 October 2008, 12:13:35 »
ok, thanks for this!
I will fix it by removing all non ascii chars and release it as 1.7 soon .
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Blender Export script issue
« Reply #2 on: 16 October 2008, 13:02:01 »
Ok 1.7 is there, I hope its fixed now! I had no trouble so can someone please establish that its working now?

http://http://www.titusgames.de/blender/g3d_xml_exporter_v0.1.7.zip
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: Blender Export script issue
« Reply #3 on: 20 October 2008, 16:06:02 »
Good work guys, I just found out about this when I upgraded to blender 2.48. Nice to know its fixed  :)
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0