Ok, never mind. Instead, you know the console?
Can you tell me the filename of the last file it opened. it will say something like:
C:/script.py has 30 lines etc.
then, post it on pasteall and give me the linK?
or pm me. Thanks!
hum the last file open is a little file so I post here the code :
#importation des librairies
import GameLogic as GL
#recuperation du proprietaire
owner = GL.getCurrentController().owner
#ajout de la camera
try:
GL.listcam.append(owner)
except AttributeError:
GL.listcam = [owner]
GL.cam = 0
But it strange, in this file, it wasn’t accentuate character.
Try this update in the first post:
It wasn’t better.
really?
it works for me 
what version of blender are you using?
I use blender 2.59, but I have find that it just crash on the next file, the script crash at the line 294.
The error is:
Python script error - object 'Cube', controller 'Python#CONTR#1':
Traceback (most recent call last):
File "Converter", line 294, in <module>
File "/home/bugs/Documents/Logiciels/blender/blender-2.59-linux-glibc27-i686/2.59/python/lib/python3.2/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 21: invalid continuation byte
I have find the right code on witch it crash.
# blenderclan IA
# récupération des variables système
cont=GameLogic.getCurrentController()
own = cont.owner
turn = cont.actuators["turn"]
motor = cont.actuators["motor"]
vname = own['name']
# sensor de detection
draya = own.getDistanceTo(cont.sensors['droite30'].hitPosition)
gray = own.getDistanceTo(cont.sensors['gauche30'].hitPosition)
aray = own.getDistanceTo(cont.sensors['avant'].hitPosition)
# récupération de l'objet touché par le ray de devant
sens_t = cont.sensors['avant'].hitObject
print(sens_t)
# analyse trajectoire
#if aray <= 16.0 and aray >= 10.0:
# if sens_t == ['droit']:
# vit=gray-(draya-0.15)
# elif sens_t == ['gauch']:
# vit=(gray+0.15)-draya
#else:
vit=gray-draya
# calcul du freinage
frein = 0
if aray < 10 :
frein = 10 - aray
# générateur de nombre aléatoire
speed = 0.0
own['rand'] = ( 32 * own['rand'] + 7 ) % 32562
own['rand'] = own['rand'] - (own['rand']/own['rand'])
# réduction du nombre alléatoire et création de la vitesse
if own['rand'] >= 1000:
speed = float(own['rand'])/2500
elif own['rand'] >= 100:
speed = float(own['rand'])/250
elif own['rand'] >= 10:
speed = float(own['rand'])/25
print (speed)
#decision action
if vit >= 3.0 or vit <= -3.0:
turn.dRot = [ 0.0, 0.0, vit/1000]
cont.activate(turn)
motor.linV = [ 0.0, 5 + speed - (frein/2), 0.0]
cont.activate(motor)
# print ("tourne")
else:
#cont.deactivate(ralenti)
if not sens_t == ['droit'] and sens_t == ['gauch']:
cont.deactivate(turn)
motor.linV = [ 0.0, 32.0-frein, 0.0]
cont.activate(motor)
print ("toutdroitatt")
else:
cont.deactivate(turn)
motor.linV = [ 0.0, int(28)-frein, 0.0]
cont.activate(motor)
# print ("toutdroit")
#print ("--------------------------")
It appears that python doesn’t like parsing the accents. I don’t have this problem, however, so i cannot replicate it 
I’ve updated the first post, it may not help you sevi, but it has better features.
Unfortunately, the method for changing functions wasn’t the best (i orignally thought about looking for features in a dict, but slowly it got more complex as i have to seperate functions (fullstops denote a function and target)
Anyway, it seems to be working on WSAG basic network, which is deprecated as can be!
I have find the problem, the file wasn’t encode in utf8.
So I have correct this mistake, and test again, and I haven’t any error.
But there are so much lot of information about additional space, could not you just say for example: “Found Operator! 16 Added spaces to relevant position”
Another Bump, added warnings to display. Please remember to look for property storage in your scripts - it’s almost impossible to change obj.property into obj[“property”] unless i actually log the GameObject references. Which i will see if it’s feasible.
Ok, i’ll make it turn off warnings if you like! Check the top of the code in about 5 minutes
ill add boolean properties (show warnings = True) to turn them on/off
UPDATED!
to turn off console statements, look in converter.py and the top section has all the arguments
I have a short code to turn a object :
orim = owner.localOrientation
orim = mathutils.Matrix(orim[0], orim[1], orim[2])
orie = orim.toEuler()
orie = mathutils.Euler( (orie[0], orie[1], orie[2]+180), "XYZ" )
orim = orie.to_matrix()
owner.localOrientation = orim
In blender 2.49 the angle is in degree, but in blender 2.59 it is in radian, have you an idea to set it in degree or to rotate the object with an other method?
(it is a conversion that you must to put in your script)
yes, i’ll have a look at it
At the moment, the script won’t find functions inside parenthesis. This is easily changed, but i need to get round to doing it!
Just a little bump, i’m adding some stuff so that it fixes deprecated code in brackets
hi!
Nice script! I’m afraid that at least with blender 2.60, it messes up the indentation level too much to be useful.
I tried it with a 3 spaces indented, tab indented and 4 spaces indented file.
It seems, at least the print statements completely lose their indentation level, and I’m too lazy to check all the other corrected lines.
Also, directly in the beginning, I see that
from Blender import NMesh
gets translated to
from bpy import NMesh
, but
from Blender.BGL import *
is not changed…
By the way - is there a compact guide somewhere explaining how to do what your script does manually? The best I found so far, is in fact reading the source of your script… 
Haha, i was thinking about this today, and i must get around to changing it!
It is a concept more than an actual working file, but i do wish to finish it.
I will need to have a look at how the python interpreter parses the files, to better understand how to acheive this!
Hello,
Can you help me please ?
I am getting following error on line 536
Line: 37 ---------------------Error 16 -------------------
Found changed Module: GameLogic
Replaced with: bge.logic
Python script error - object ‘Cube’, controller ‘Python’:
Traceback (most recent call last):
File “Converter”, line 536, in <module>
ValueError: substring not found
Then the application is consuming resources
nothing happens and no py files with 2.5 appendage are created.
thanks in advance,
regards,
Rahul