The online racing simulator
Searching in All forums
(35 results)
2
mstram
S2 licensed
I have it working now.

It appears to have been an issue with the firewall and port 29000 not being open, the error was in the socket initialization.

Also, I can't tell if the code was supposed to have the "raise Error('Could not init InSim')" line indented under the 'except' or not (it wasn't indented).


except socket.error as err:
raise Error(err[1])
raise Error('Could not init InSim')

or


except socket.error as err:
raise Error(err[1])
raise Error('Could not init InSim')

Also, how do you terminate an example program?

Ctr-BRK, CTR-C have no effect, I've been going to the Windows task manager and killing python

It would preferable to add a keypress check routine or something similar for a more elegant exit
mstram
S2 licensed
Dt,

I'm trying to run any of the examples in the 1.6.4..beta\examples folder.

I'm running python ver 2.6.5

Just get :
InSim Error: Could not init InSim

I haven't installed any third party debuggers / IDE's.

Is there a "native" python "trace" or debug instruction ? .. or any other info I can provide?
mstram
S2 licensed
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 :

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



Quote from DarkTimes :PYINSIM 1.6.4 BETA

I've uploaded pyinsim 1.6 BETA below. The new version of the library has been largely rewritten and contains many changes and additions, especially to the core InSim class. The idea behind this release is to clean up a lot of the old guff left over from earlier versions, so I can focus on pyinsim 2.0 and Python 3.0 support. That being said it is still the best version of pyinsim evar!


LFS or X-plane networking - private network
mstram
S2 licensed
We are running into a simiiar problem with LFS.

Strangely, my buddy can connect to my machine when I start a server / host (not dedicated ... just a multiplayer host), but when he starts the host (behind his XP firewall), I can't connect ..(just get "timed out").

He DID receive the windows "allow unblocking dialog" etc, when he started the network-host from his LFS client.

I thought that "unblock" message was XP's firewall's way of "port forwarding" ? If not, is there a registry setting or something else that needs to be tweaked ?

--------------------------------

Is anyone here running x-plane or an LFS server behind a firewall, and able to network / multiplayer with it?

I'm trying to set it up, and the issue seems to be that the client want's the actual (private) i.p. of the other client, which of course is not visible.

This is on two windows XP boxes (one "pro", the other "home") .. the "home" machine is the one with the private network.

I've read some mention of "port forwarding", but apparently Windoze is supposed to automatically handle that.

And indeed with LFS it does just that (As LFS is running / connecting fine to the LFS server from behind the firewall).

I the difference between x-plane / LFS is the "external" server for LFS, vs the "peer-peer" connection of x-plane ?

Mike
Last edited by mstram, .
mstram
S2 licensed
Quote from jrd.racer :you can also try this. Its a bit harder to use than the ingame one though.

I'm curious what "this" was /is ..... (the link is broken)
mstram
S2 licensed
It seems that (according a quick google) that F1 cars don't have speedometers, so presumably, that's one of, if not the main reason for the limiter ?

If so, is there a rule against a car having a speedometer, or do F1 teams choose not to install it to save weight / complexity ... other reasons?
mstram
S2 licensed
Quote from Highsider9 :Pitlimiter

Ok, thanks for the magic key words ( that I was then able to find in the online manual and see that it's hotkey "l" (ell) by default

Seems like only some cars have it installed
After pit stop BF1 won't shift out of 1st
mstram
S2 licensed
While driving the BF1 on Blackwood, if I make a pit stop, after the pit stop there is a square plate in the middle of the back axle flashing red, and the car won't shift out first gear.

Bug ? feature ?
mstram
S2 licensed
(For now), I'm using an r.c. transmitter (Esky 0404) with a U.s.b. adapter.

Throttle/brake on left stick, steering on right.

I'm using auto-shifting, as otherwise using the keyboard for shifting would require three hands
Slalom course GTI
mstram
S2 licensed
Hi guys,

I just bought the S2 LFS and am having a blast with it.

Congrats to the programming team, fantastic graphics and "immersion" factor. (Will be even better if I get my soundcard fixed

As a result of manic / obsessive playing over the past few days, I'm managed to progress from just keeping the car on the track to my p.b. of a 1:09.79 in the Bmw F1

But the Slalom course GTI is another matter.

I was just barely able to post a 19.xx time, I can't see how a 13.xx is possible in that scenario. I was using full throttle / full brake, just missing the outside pylon, i.e. doing it as efficiently (??) as I think the car can possibly do it.

Also the sim seems to record an "internal" replay of the training, is there a way to save that recording?

Mike
2
FGED GREDG RDFGDR GSFDG