Hi D.T,
First, thanks for writing this, and making it available !
Except for the #@@#%#@^^ stupid indenting, I much prefer the interactive nature of Python rather than the overhead of a compiler.
I downloaded ver 1.55 that was in the first post of this thread, before I found this post (you really could start another thread ).
I had 1.55 working on my XP box, and was playing with the example scripts.
I was trying to output the speed and car.Node for a player, and it was sorta working.
I modified the example.4 script (kick player off if speed > 80 kph).
At Blackwood, the first node (starting gate was 299 .. it then went up to 310(?) .. and started over from 0 a few hundred feet from the first hairpin.
When I restarted the race, sometimes the script was working ... other times the node was increasing without the car even moving !
(Is that a bug that was fixed with 1.6.4 ?)
The line of code I added was just :
Anyway, I downloaded 1.64, ran the installer and now when I try to run any of the example scripts, I'm getting :
InSim Error: Could not init InSim
Mike
================================
My python path =
C:\Python26\Lib;C:\Python26\DLLs;C:\Python26\Lib\lib-tk;E:\Python26\Lib;E:\Pytho
n26\DLLs;E:\Python26\Lib\lib-tk;E:\Python26\Lib\site-packages
(E:\python26 is where pyinsim loaded itself, and e:\python26 is in my path)
Directory of E:\Python26\Lib\site-packages
08/04/2010 10:24 PM <DIR> ..
08/04/2010 10:24 PM <DIR> pyinsim
08/04/2010 10:24 PM <DIR> .
02/01/2010 03:44 PM 292 pyinsim-1.6.4-py2.6.egg-info
1 File(s) 292 bytes
Directory of E:\Python26\Lib\site-packages\pyinsim
08/04/2010 10:24 PM <DIR> ..
08/04/2010 10:24 PM <DIR> .
02/01/2010 03:44 PM 85,035 pyinsim.py
08/04/2010 10:24 PM 98,051 pyinsim.pyc
08/04/2010 10:24 PM 98,051 pyinsim.pyo
02/01/2010 03:39 PM 341,757 _strmanip.py
08/04/2010 10:24 PM 339,955 _strmanip.pyc
08/04/2010 10:24 PM 339,955 _strmanip.pyo
02/01/2010 03:39 PM 940 __init__.py
08/04/2010 10:24 PM 362 __init__.pyc
08/04/2010 10:24 PM 362 __init__.pyo
9 File(s) 1,304,468 bytes
Total Files Listed:
10 File(s) 1,304,760 bytes
5 Dir(s) 120,520,704 bytes free
First, thanks for writing this, and making it available !
Except for the #@@#%#@^^ stupid indenting, I much prefer the interactive nature of Python rather than the overhead of a compiler.
I downloaded ver 1.55 that was in the first post of this thread, before I found this post (you really could start another thread ).
I had 1.55 working on my XP box, and was playing with the example scripts.
I was trying to output the speed and car.Node for a player, and it was sorta working.
I modified the example.4 script (kick player off if speed > 80 kph).
At Blackwood, the first node (starting gate was 299 .. it then went up to 310(?) .. and started over from 0 a few hundred feet from the first hairpin.
When I restarted the race, sometimes the script was working ... other times the node was increasing without the car even moving !
(Is that a bug that was fixed with 1.6.4 ?)
The line of code I added was just :
insim.send(pyinsim.ISP_MST, Msg='(NODE):%d' % car.Node)
Anyway, I downloaded 1.64, ran the installer and now when I try to run any of the example scripts, I'm getting :
InSim Error: Could not init InSim
Mike
================================
My python path =
C:\Python26\Lib;C:\Python26\DLLs;C:\Python26\Lib\lib-tk;E:\Python26\Lib;E:\Pytho
n26\DLLs;E:\Python26\Lib\lib-tk;E:\Python26\Lib\site-packages
(E:\python26 is where pyinsim loaded itself, and e:\python26 is in my path)
Directory of E:\Python26\Lib\site-packages
08/04/2010 10:24 PM <DIR> ..
08/04/2010 10:24 PM <DIR> pyinsim
08/04/2010 10:24 PM <DIR> .
02/01/2010 03:44 PM 292 pyinsim-1.6.4-py2.6.egg-info
1 File(s) 292 bytes
Directory of E:\Python26\Lib\site-packages\pyinsim
08/04/2010 10:24 PM <DIR> ..
08/04/2010 10:24 PM <DIR> .
02/01/2010 03:44 PM 85,035 pyinsim.py
08/04/2010 10:24 PM 98,051 pyinsim.pyc
08/04/2010 10:24 PM 98,051 pyinsim.pyo
02/01/2010 03:39 PM 341,757 _strmanip.py
08/04/2010 10:24 PM 339,955 _strmanip.pyc
08/04/2010 10:24 PM 339,955 _strmanip.pyo
02/01/2010 03:39 PM 940 __init__.py
08/04/2010 10:24 PM 362 __init__.pyc
08/04/2010 10:24 PM 362 __init__.pyo
9 File(s) 1,304,468 bytes
Total Files Listed:
10 File(s) 1,304,760 bytes
5 Dir(s) 120,520,704 bytes free