XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Sep 26, 2017 6:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: update python version 2to3
PostPosted: Sun Sep 10, 2017 9:57 pm 
Offline
ultra-n00b

Joined: Sat Oct 22, 2016 12:33 am
Posts: 6
Has thanked: 0 time
Have thanks: 0 time

Hello friends,

does anyone how to update that python script(form http://zenhax.com/viewtopic.php?t=1287) to version 3.x ?

Image


i was trying to update it but it gives me error:
Image


:(

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: update python version 2to3
PostPosted: Tue Sep 12, 2017 7:46 pm 
Offline
ultra-n00b

Joined: Mon Mar 06, 2017 6:11 pm
Posts: 5
Has thanked: 0 time
Have thanks: 1 time
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) :
https://mogurijin.wordpress.com/2010/08/17/how-to-update-blender-2-49-bge-scripts-to-2-5x/

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.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group