The online racing simulator
Searching in All forums
(35 results)
1
A.I can' drive on this configuration
mstram
S2 licensed
Seems the A.I. can't drive on the new "ctrl" track configs ?

If so, disappointing.
mstram
S2 licensed
Ok, first, I apologize for the tone of my last message.

The original code produces a console app, that waits for a key press, ... which won't work in LFS, as LFS needs "focus".

So I tried to modify that code to automatically send the data, which is where I am stuck.

So while you say "There was nothing special I did ", you must have at least altered the code to run "automatically", rather than interactively

Mike

** Edit **

*** Ha, looks like we were posting at the same time, I'll look at your code, thx. **
Last edited by mstram, .
Technical info port forwarding - reverse port forwarding on Windows XP
mstram
S2 licensed
I've been looking for technical info on how TCPIP / UDP port forwarding + reverse port forwarding, specifically on Win XP works

Using this link, my buddy and I were finally able to get his LFS to host a multiplayer session on his private network / behind his XP firewall:

http://articles.techrepublic.com.com...1-1056226.html

The magic keywords "reverse port forwarding" led me to the article.

"Configuring Server Publishing" and "Creating new Service Definitions" are the Microsoft terms for "reverse port forwarding"

http://articles.techrepublic.com.com...1-1056226.html

"Configuring Server Publishing" and "Creating new Service Definitions" are the Microsoft terms for "reverse port forwarding"

The interesting thing was that if I started the multiplayer host (which connects to Live for Speed's central server), then my buddy *WAS* able to connect to my "host" (via the LFS's servers).

But when he created a host (which the LFS server apparently was able to do ... as I *was* able to *find* his host name on the central server (and NOT receive a "host not found" (as I would get if I typed in a non-existing host name), I would then receive a "connect error". Apparently because the "reverse port forwarding" was not in place.

From googling "linux / windows reverse port forwarding / port forwarding", it seems that the windows firewall "unblock" dialog only creates a *port forwarding* "path", but not a "reverse port forwarding path".

I would guess that this all boils down to socket API calls / routing software internals. I'm somewhat (a little knowledge is a dangerous thing ) familiar with all of the concepts, it's the port forwarding / reverse port forwarding "guts", that I'm trying to understand, and where it fits into the OSI network layer model, where it gets connected to XP's internals.

Any hints tips / links / code samples greatly appreciated.

Mike
mstram
S2 licensed
Quote from blackbird04217 :.

mstram - You probably need to configure LFS to see your virtual controller as by default it is likely using your existing wheel/controller. I had to write a "configure" app using the ppjoy to make my virtual gamepad so that I could press a specific letter on the keyboard to get the output I expected; then configure LFS using that.

Other than by just using the options / controls / axis ?

As I wrote, it *does* work with the ppjoyMouse.exe, connecting to the virtual joystick.

You keep feeding me "general", vague quasi-solutions / tips, I don't know why you're so reluctant to share some basic "driver level" code, that has nothing to do with your application code

I'm not trying to compete with your product, or even create anything commercial in the forseeable future.
mstram
S2 licensed
Quote from Vangeels :Interesting subject. :-) I was doing the same what you did and was able to do some laps. But indeed there seems to be some problem updating the UDP packets. So resulting in not up to date X,Y info and then missing a corner ... But to be honest still like to get it working one day. :-)

Btw I used PPJoy to do the steering and my X,Y was every 1 meter I guess.

I tried compiling / running the example ppjoy program for the virtual joystick, but I'm not getting any reaction from LFS.

I'm running WinXp sp2

When I use the PPjoy PPJoyMouse.exe program, LFS DOES respond to my mouse inputs, so it seems that my virtual joystick is setup properly.

Any tips / hints / code samples would be greatly appreciated.

Mike
LFS Host behind firewall - Solved !
mstram
S2 licensed
Not that there seems to be a great deal of interest in this thread, or the answer was "obvious" to some of you, but I found the answer !

http://articles.techrepublic.c ... 100-10878_11-1056226.html

The magic keywords "reverse port forwarding" led me to the article.

"Configuring Server Publishing" and "Creating new Service Definitions" are the Microsoft terms for "reverse port forwarding"
mstram
S2 licensed
Quote from bunder9999 :

now there is a way around this, but if you're using a store-bought router, it won't be possible...

or you can just connect using an ip address.

What is the "way around this " ?

My friend has a two machine network setup, both Win XP sp2, one machine connected to the internet, the second machine connected to the first, using the XP firewall.

He has LFS installed on the "internal" machine (192.x.x.x) address.

When he starts a multiplayer host, the LFS servers *do* accept the connection.

When I try to connect to his host, I DON'T get a "Host not found on master server", so LFS HAS apparently recognized and established the host.

But I then get "error connecting to host".

What does that message mean?

If I start a host on my (only) machine, he CAN connect from his LFS machine that's behind the XP firewall.

I don't understand why he can connect to my host, but I can't connect to his.

Does it boil down to the *listen* socket, that's presumably created for the host ?

If so, I'm not familiar with the exact technical details of how Winsock implements *listen* and /or how it interacts with the XP firewalling.

He also turned on the "ip routing" registry setting, but that is not having any effect.

Is there some port forwarding registry setting, that he needs to set ?

Mike
mstram
S2 licensed
Quote from amp88 :Np, have fun. I should also qualify the above statement to say that in some cases you will still be able to join a host on your own network through the server list, but not always.

Can you provide the details on when the server list will work or not?
mstram
S2 licensed
Quote from Sean_94 :How do I race on it?

1) Put the file(s) in your <lfs>\data\layout folder

2) Choose Blackwood as the track, Car Park as the configuration, any layout(s) will show up in the Layout list, LMB <click> to select the layout ... race away !
mstram
S2 licensed
I'm trying to do something similar to o.p.

I have PPJoy working, and am now trying to get the sample app in the PPjoy docs working.

I'm actually trying to get it working with MASM32, as I don't have MS C++ installed.

I'm stuck trying to figure out what the value of IOCTL_PPORTJOY_SET_STATE
is supposed to be.

From reading the PPJIoctl.h file it would seem to be 0x0.

When I run the program, nothing is getting sent though.
mstram
S2 licensed
Actually it looks like it was looking for C:\LFS\data\wld\Blackwood_GHOST.wld

(Thanks to the handy dandy program 'filemon').

I copied Blackwood.wld to Blackwood_GHOST.wld, and it's not complaining about the missing track.

But now it's saying : "Name is already used"

What Name ?

Not exactly the most informative error messages.

Here's the log now :

Aug 11 20:38:04 LFS DEDICATED HOST : 0.5Z28
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 ?
Aug 11 20:38:04 load bans
Aug 11 20:38:04 load font
Aug 11 20:38:04 no fonts available : SHIFTJIS
Aug 11 20:38:04 no fonts available : CHINESEBIG5
Aug 11 20:38:04 no fonts available : GB2312
Aug 11 20:38:04 no fonts available : HANGUL
Aug 11 20:38:04 -----
Aug 11 20:38:04 create english file
Aug 11 20:38:04 initialisations
Aug 11 20:38:04 tables
Aug 11 20:38:04 load objects
Aug 11 20:38:04 start intro
Aug 11 20:38:04 Blackwood
Aug 11 20:38:04 end of initialisation
Aug 11 20:38:06 Track loaded
Aug 11 20:38:16 Host Auth : 127.0.0.1
Aug 11 20:38:16 Send Track : 127.0.0.1
Aug 11 20:38:16 Connect : 127.0.0.1
Aug 11 20:38:16 Sent OK to new guest
Aug 11 20:38:17 Sent scrutineering packet
Aug 11 20:38:17 Told guests about new guest
Aug 11 20:38:17 A new guest is connecting
Aug 11 20:38:17 Sent guest list to new guest
Aug 11 20:38:17 Name is already used
Aug 11 20:38:17 Joiner Fatal Error
Aug 11 20:38:17 Cancelled join
Aug 11 20:38:18 New guest failed to connect
Aug 11 20:39:57 Host Auth : 127.0.0.1
Aug 11 20:39:57 Send Track : 127.0.0.1
Aug 11 20:39:57 Connect : 127.0.0.1
Aug 11 20:39:57 Sent OK to new guest
Aug 11 20:39:57 Sent scrutineering packet
Aug 11 20:39:57 Told guests about new guest
Aug 11 20:39:58 A new guest is connecting
Aug 11 20:39:58 Sent guest list to new guest
Aug 11 20:39:58 Name is already used
Aug 11 20:39:58 Joiner Fatal Error
Aug 11 20:39:58 Cancelled join
Aug 11 20:39:59 New guest failed to connect
mstram
S2 licensed
Here's the log file :

I also changed /cars=ALL to /cars=XFG

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

Aug 11 17:58:08 LFS DEDICATED HOST : 0.5Z28
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 ?
Aug 11 17:58:08 load bans
Aug 11 17:58:08 load font
Aug 11 17:58:08 no fonts available : SHIFTJIS
Aug 11 17:58:08 no fonts available : CHINESEBIG5
Aug 11 17:58:08 no fonts available : GB2312
Aug 11 17:58:08 no fonts available : HANGUL
Aug 11 17:58:08 -----
Aug 11 17:58:08 create english file
Aug 11 17:58:08 initialisations
Aug 11 17:58:08 tables
Aug 11 17:58:08 load objects
Aug 11 17:58:08 start intro
Aug 11 17:58:08 Blackwood
Aug 11 17:58:08 Track not found
Aug 11 17:58:08 end of initialisation
Aug 11 17:58:30 Host Auth : 127.0.0.1
Aug 11 17:58:30 Send Track : 127.0.0.1
Aug 11 17:58:30 Connect : 127.0.0.1
Aug 11 17:58:30 Sent OK to new guest
Aug 11 17:58:30 Sent scrutineering packet
Aug 11 17:58:30 Told guests about new guest
Aug 11 17:58:30 A new guest is connecting
Aug 11 17:58:30 Sent guest list to new guest
Aug 11 17:58:42 Joiner Fatal Error
Aug 11 17:58:42 Cancelled join
Aug 11 17:58:42 New guest failed to connect
Aug 11 17:59:10 /exit
Aug 11 17:59:10 shutting down
Aug 11 17:59:10 free objects
Aug 11 17:59:10 free languages
Aug 11 17:59:10 free font
Aug 11 17:59:10 kill graphics
Aug 11 17:59:10 save config
Aug 11 17:59:10 free mouse
Aug 11 17:59:10 EXIT
mstram
S2 licensed
So no-one else has ever received that message ?
mstram
S2 licensed
Is there a way to see the starting grid, without starting a host, and actually having XX number of cars join ?

I.e. some type of object in the autocross editor ?

.. And is the start object designed for only one driver? When I add the starting object, it only allows one driver.

Is there a way to change the starting position, that will affect multiple drivers?
mstram
S2 licensed
Quote from Bass-Driver :simple lyt
i'm sure its nice to drive this lyt with + 10 drivers

Actually I'm having a problem running it with more than 1 driver

When I restart the race, the second driver to join gets some kind of penalty, which seems to be because LFS is trying to place both cars in the same position on the start grid.

I haven't added a "start" position, just a finish line.
mstram
S2 licensed
"Stretched" .. "nasty version "
Triangle
mstram
S2 licensed
Interesting, varying the strategy, how much speed to hold, how fast
the car can corner / turn radius .. etc

I'm down to ~24sec in the MRT
mstram
S2 licensed
Two more variations.

They're both the same except for the last section before the start-finish line.

BL3_lot_goKart3p1 has a longer extended back straight

BL3_lot_goKart2d is the shorter one.

I went through the whole track and made it fairly uniform width, though it might still be a bit narrow for racing.

Enjoy, and post your replays
mstram
S2 licensed
GH,

Nice driving !

The track is "alpha" version 0.003 .. it was actually *narrower* in some spots before ! .. Widened it out, and tried to make some more room for turn 6

Probably need to widen it out some more to make it about the same as the start/finish line width .. on average.
MRT5 (Go Kart) track
mstram
S2 licensed
I made this go cart track in the Blackwood parking lot.

Best I've been able to do so far is 30.5 ... but I'm a newbie

If you can do it in under 30 (in the MRT), I'd love to see your replay.

Also it seems that if I start a host, none of the stats are recorded at LFSWORLD. Is that because it's the parking lot ?
Dedicated server - "Did not receive driver info "
mstram
S2 licensed
I'm trying to get the dedicated server running.

1) The server starts up, but then says "Track not found"

2) I connect with the LFS client, but then the client says Did not receive driver info

Is #2 because I'm the first driver trying to join? (no other drivers are on the server?

Mike

//
// Example host configuration file
// How to use: LFS /cfg=setup.cfg
// Lines starting with // are ignored

// host name
/host=MstramDedicated

// optional: password
/pass=*****

// optional: admin password
/admin=*****

// optional: InSim port
/insim=29999

// optional: local specified ip address
//ip=127.0.0.1


// a high number below 65536
/port=63392

// demo/s1/s2
/mode=s2

// no/yes/hidden
// no for local ?
//usemaster=no
/usemaster=yes

// BL1/BL1R/BL2, SO1/SO1R/SO2, etc
/track=BL1

// weather
/weather=1

// cars allowed - see README.txt
/cars=ALL

// max guests that can join host
/maxguests=4

// slots reserved for admins (0 to 8)
/adminslots=1

// max cars in a race
/carsmax=5

// max cars (real+ai) on host pc
/carshost=2

// max cars (real+ai) per guest pc
/carsguest=2

// smoothness (3-6) number of car updates per second
/pps=3

// qualifying minutes, 0 for no qualifying
/qual=0

// number of laps, 0 for practice
/laps=5

// if laps not specified: hours
//hours=24

// 0=no/1=low/2=high
/wind=0

// nogfx/invisible
/dedicated=nogfx

// no/yes: can guests vote to kick or ban
/vote=no

// no/yes: can guests select track
/select=no

// no/kick/ban/spec: wrong way drivers
/autokick=spec

// no restart within X seconds of race start
/rstmin=60

// no restart within X seconds of race finish
/rstend=30

// no/yes: allow join during race
/midrace=yes

// no/yes: pit stop required
/mustpit=no

// no/yes: allow car reset
/canreset=yes

// no/yes: force cockpit view
/fcv=no

// no/yes: allow wrong way driving
/cruise=yes

// fixed/finish/reverse/random: race start order
/start=finish

// optional: welcome message up to 200 chars
//welcome=welcome.txt

// optional: text file listing allowed tracks
//tracks=tracks.txt

// optional: message log file
//log=deb.log

// no/yes: network debug
/ndebug=no

// MPR autosave (0=off / 1=manual / 2=auto)
/autosave=0

// MPR folder
/mprdir=mpr

// LYT folder
/lytdir=layout
mstram
S2 licensed
Hi Dt.,

Thanks for the all the info !

It's almost working

The dedicate server says "A new guest is connecting", then the LFS client pops up a message saying "Did not receive driver info", and the ded-serv then says "New Guest failed to connect"

Mike
mstram
S2 licensed
Hi D.t.,

Ok, I'll give that a try.

I had tried running that server before, the instructions are not very clear about where to setup the config info. I tried editing the setup.cfg file, but when I start the server it's ignoring / over writing the settings.

It sure doesn't have as nice an interface for settings as the multiplayer screen in the LFS client.

I'll revisit it , and I saw there was a network "sticky", I'll re-read it, and see what the issue is with it
mstram
S2 licensed
Quote from DarkTimes :The cruise.py example only works if you're connected to a dedi-server, I think that might be the problem. I guess I should write that somewhere in it.

Hmm ...... now I'm confused.

Do you mean I have to connect to a server using the multiplayer option dialog? ....

And then run the "local" server?

So that LFS would then be connected to two servers?


"""Example 15: Cruise

A simple cruise server. As you drive you earn cash, which can be spent on buying and selling cars. User data is stored as pickled Python objects in the
data\cruise folder,
mstram
S2 licensed
Tried running Cruise.py
--------------

Traceback (most recent call last):

File "C:\Python26\Lib\site-packages\pyinsim\pyinsim.py", line 2570, in __recvT
hread
[self.__recv(sock) for sock in socks]

File "C:\Python26\Lib\site-packages\pyinsim\pyinsim.py", line 2591, in __recv
[self.__onPacketData(pdata) for pdata in self.__buffer]

File "C:\Python26\Lib\site-packages\pyinsim\pyinsim.py", line 2608, in __onPac
ketData

if isp: self.event(ptype, packet)

File "C:\Python26\Lib\site-packages\pyinsim\pyinsim.py", line 2475, in event
[callback(self, *args) for callback in self.__callbacks[evt]]

File "cruise.py", line 118, in new_ply
if npl.CName in ncn.vars.cars:

AttributeError: 'IS_NCN' object has no attribute 'vars'
1
FGED GREDG RDFGDR GSFDG