|update python version 2to3
|Page 1 of 1|
|Author:||cascraft [ Sun Sep 10, 2017 9:57 pm ]|
|Post subject:||update python version 2to3|
does anyone how to update that python script(form http://zenhax.com/viewtopic.php?t=1287) to version 3.x ?
i was trying to update it but it gives me error:
|Author:||philgrf [ Tue Sep 12, 2017 7:46 pm ]|
|Post subject:||Re: update python version 2to3|
I understand that you try to convert the script "starter.py" from python 2 to python 3.
This script not a standalone.
It imports the library "NewGameLib" with the first instruction of the script : import NewGameLib.
Some of the function used in "starter.py" are defined in "NewGameLib".
The script probably won't work outside of blender as it relies too on blender : import blender.
And it seems the NewGameLib itself relies too on blender.
I feel not only the python script need to be translated from python 2 to python 3 but also blender instruction need to be translated from blender 2.49 API to blender 2.7x API.
This website provides some insight about changes from blender API 2.49 to blender API 2.5x (there were later changes that one was the major change) :
I have had some success some years ago converting with this script :
https://blenderartists.org/forum/showth ... n-progress)
I was using blender 2.5x then.
Not used lately.
|Page 1 of 1||All times are UTC + 1 hour|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group