Race Sim Central Forums
http://forum.racesimcentral.com
Go Back   Race Sim Central Forums > Live for Speed > Live for Speed > LFS Files > LFS Files > Unofficial Add-ons
User Name
Password
Register FAQ Members List Calendar Mark Forums Read SUBMIT NEWS
Site Home Forum Home Arcade vBGarage Articles vBookie View Your Warnings Rules About Us Donate
Users Online: 362, Members: 217, Guests: 145.


Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
Old 08-04-2004, 02:22     View Warnings    #1
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Insim Add-on, LFS-Marshal - Version 0.5 released

LFS-Marshal
This is a little program I wrote using the Insim system to implement flags in LFS. Flags are sent through coloured messages by the server.

Current Features:
- standalone program for Windows platforms (no need to install Python anymore)
- blue flags (when someone is being lapped)
- yellow flags (currently only at spins, and very low speeds)
- green flags (when yellow flag is removed)
- White flags (final lap)
- typing "flags on" or "flags off" turns on and off the flagging system for your car (on a car by car basis)

Problems resolved:
- Yellow flag spamming does not occur anymore
- Spin detection is less sensitive to allow for more drifting
- Should now work with non-dedi and dedi servers
- Hopefully it now works with more than 8 racers
- Does not require an empty server to be started anymore

I have set up a test server for testing purposes. If you want to have a look at it, and give me some feedback, please join in. Please post your comments in this thread or PM me.
The server name is now North American League #3.

It has now been merged into a RaceManager Toolset. This toolset can be downloaded here (this is useful only for server admins, or for programmers):
http://lfs.marcoz.org
New version uploaded 09/06/2004
There is a short README file which explains how to use it.
You need python 2.2 or more recent to be able to use it.

Last edited by Silkswift : 10-06-2004 at 06:12.
Silkswift is offline   Reply With Quote
Old 08-04-2004, 02:51     View Warnings    #2
illegal
Registered
 
illegal's Avatar
 
Join Date: Feb 2003
Location: Belgium
Age: 17
Posts: 954
vCash: 250
pcspecs
The idea is very nice, but there's quite some spamming by the program . I hope you get everything working
__________________
illegal is offline   Reply With Quote
Old 08-04-2004, 04:12     View Warnings    #3
Kamel
Registered
 
Kamel's Avatar
 
Join Date: Aug 2002
Posts: 81
vCash: 7500
it's working really nice!
Kamel is offline   Reply With Quote
Old 08-04-2004, 04:13     View Warnings    #4
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by illegal
The idea is very nice, but there's quite some spamming by the program . I hope you get everything working


Thanks to all who came

The spamming is now fixed, you get only 1 message every 5 seconds (instead of 0.5 second )
Silkswift is offline   Reply With Quote
Old 08-04-2004, 04:16     View Warnings    #5
Krane
Registered
 
Krane's Avatar
 
Join Date: Sep 2002
Location: A town called Vanda
Age: 25
Posts: 812
vCash: 7500
Send a message via ICQ to Krane
pcspecs
:speechless:
__________________
Krane is offline   Reply With Quote
Old 08-04-2004, 19:15     View Warnings    #6
Fonnybone
Moderator
 
Fonnybone's Avatar
 
 
Join Date: Aug 2002
Location: Montr?al, Canada
Age: 29
Posts: 2,782
vCash: 7500
I was gonna try but noticed i need python..anyways... Just one note,
i personally don't like the idea of a yellow flag for a spin. If you really spin
out and are a danger, the 'low speed' should be enough. If you don't
seem to go slow, maybe the driver 'drifted' out of the spin and can still go on.
Use the grass, sand and low speed instead to define a spin. Then yellow
flag that Of course the grass/sand 'trigger' might not be possible with InSim,
but i'm sure there's a way. Sound for example, grass and sand have distinct
sounds that are triggered. I'm just throwing ideas here


EDIT: Ok, just raced a bit on your server and what i feared came true
As soon as i started drifting those turns, 'yellow flag'. This could be used
to make another app, DriftJudge Seriously though, it does a pretty good
job at deciding what's a drift and what's not (yellow flag=drift). After a few
laps i made it a goal to drift every turn as to have a yellow flag Fun, but
not the intended purpose i believe.

Last edited by Fonnybone : 08-04-2004 at 19:46.
Fonnybone is offline   Reply With Quote
Old 08-04-2004, 20:12     View Warnings    #7
Kamel
Registered
 
Kamel's Avatar
 
Join Date: Aug 2002
Posts: 81
vCash: 7500
yeah we discussed it yeaterday on the server.
as it says in the code "# Check if direction and heading are more than approx 25 deg apart". so this just has to be set to a larger amount to allow driftig
Kamel is offline   Reply With Quote
Old 08-04-2004, 20:57     View Warnings    #8
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by Fonnybone
I was gonna try but noticed i need python..anyways... Just one note,
i personally don't like the idea of a yellow flag for a spin. If you really spin
out and are a danger, the 'low speed' should be enough. If you don't
seem to go slow, maybe the driver 'drifted' out of the spin and can still go on.
Use the grass, sand and low speed instead to define a spin. Then yellow
flag that Of course the grass/sand 'trigger' might not be possible with InSim,
but i'm sure there's a way. Sound for example, grass and sand have distinct
sounds that are triggered. I'm just throwing ideas here


Yes, I am planning on an off-the-track detection, but I fear this would need knowledge of the track, and would require quite a bit of work.
As opposed to you, I do like the yellow flag for all kind of spins, just so you can slow down to try to get a chance to avoid the high speed rotating car...

Quote:
Originally Posted by Fonnybone
EDIT: Ok, just raced a bit on your server and what i feared came true
As soon as i started drifting those turns, 'yellow flag'. This could be used
to make another app, DriftJudge Seriously though, it does a pretty good
job at deciding what's a drift and what's not (yellow flag=drift). After a few
laps i made it a goal to drift every turn as to have a yellow flag Fun, but
not the intended purpose i believe.


I am not a drifter at all, so my settings are for "non-drifting" races, which was the main purpose. As mentioned by GeForz, it is very easy to increase the threshold to allow for some drifting. The program is a script and can thus be modified/customized completely by server admins.
I will experiment with drifting a bit more though, and see what kind of settings would be needed.
I also like the DriftJudge idea
The code is a bit messy, but someone with a purpose should be able to use it to make other Insim addons fairly easily.
Silkswift is offline   Reply With Quote
Old 08-04-2004, 21:01     View Warnings    #9
xtremepsionic
Moderator
 
xtremepsionic's Avatar
 
Join Date: Aug 2003
Location: Calgary, Canada
Posts: 930
vCash: 7500
Send a message via ICQ to xtremepsionic Send a message via MSN to xtremepsionic
Yeah, that yellowflag is a bit too sensitve. And I think it needs to be location or car specific so for a real race, people would know where to look for the yellow/blue flag

great job tho! exactly what we need in LFS!

I'm hoping to use this in the North American League tonight, but the yellow might come up too often and get annoying.
__________________
[GURU]XPsionic Grown Up Racing Union Msg Board -- LFS North America Racing League -- LFS Racing Rules Video

North American League admin

Momo Force (red), Act Labs shifter, Act Labs clutch
xtremepsionic is offline   Reply With Quote
Old 08-04-2004, 21:22     View Warnings    #10
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by xtremepsionic
Yeah, that yellowflag is a bit too sensitve. And I think it needs to be location or car specific so for a real race, people would know where to look for the yellow/blue flag


I can decrease the sensitivity as much as you want. I can't do any testing right now (hmm, at work...) as to how much to decrease it though. If you have your own server, and are able to set it up with my prog, and have some timeto test, I can tell you where to modify the values.

Quote:
Originally Posted by xtremepsionic
great job tho! exactly what we need in LFS!


Thanks! Always appreciated

Quote:
Originally Posted by xtremepsionic
I'm hoping to use this in the North American League tonight, but the yellow might come up too often and get annoying.


I'll be available this afternoon after 3pm PST if you would like to do some testing and see if it would be possible to set it up for your race tonight.
Silkswift is offline   Reply With Quote
Old 09-04-2004, 15:03     View Warnings    #11
Li0n
Registered
 
Li0n's Avatar
 
Join Date: Sep 2003
Location: Belgium
Age: 21
Posts: 149
vCash: 7500
I didn't went to test the flags on your server but i read that there are only 3 flags available. Will there be more flags to come?
Red flag (needs a restart)
White flag (last lap)
Black flag (driver is disqualified or has stop&go penalty)
__________________
Subaru OWNS! The way cars meant to be driven.

Liquid Li0n is the name!
.be | The "Belgium Elite" racing team!
Visit .be fast at www.be-racing.tk
Li0n is offline   Reply With Quote
Old 09-04-2004, 15:57     View Warnings    #12
GP4Flo
Registered
 
GP4Flo's Avatar
 
Join Date: Jan 2003
Location: Germany
Age: 19
Posts: 1,026
vCash: 9416
pcspecs
Really nice, I just did some test laps on the server.

You could also add a white flag if a car is going slowly on the track (e.g. less than 30 km/h).

One question, are the messages sent to all players or only the players who are e.g. near a "yellow flag-zone"?
GP4Flo is offline   Reply With Quote
Old 09-04-2004, 18:08     View Warnings    #13
xtremepsionic
Moderator
 
xtremepsionic's Avatar
 
Join Date: Aug 2003
Location: Calgary, Canada
Posts: 930
vCash: 7500
Send a message via ICQ to xtremepsionic Send a message via MSN to xtremepsionic
Quote:
Originally Posted by GP4Flo
Really nice, I just did some test laps on the server.

You could also add a white flag if a car is going slowly on the track (e.g. less than 30 km/h).

One question, are the messages sent to all players or only the players who are e.g. near a "yellow flag-zone"?


Just players near the incident zone, for all flags.
__________________
[GURU]XPsionic Grown Up Racing Union Msg Board -- LFS North America Racing League -- LFS Racing Rules Video

North American League admin

Momo Force (red), Act Labs shifter, Act Labs clutch
xtremepsionic is offline   Reply With Quote
Old 09-04-2004, 19:33     View Warnings    #14
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Li0n: Yes, other flags should be coming in the future. I'm planning on an out of track detection (for yellow flags and black flags). Red flags would probably be a lot trickier to make as it's hard to know when a race should be stopped or not, but i'll think about it.

GP4Flo: As XP said, it is car specific. You only see the messages that are relevant to your own car. At the moment, people who are spectating your car do not even see the messages (but I want to change that). Also, I just added a new feature, which allows you to turn off the flags on a car by ar basis (meaning you won't see the messages, but other cars are not affected).
Silkswift is offline   Reply With Quote
Old 09-04-2004, 20:40     View Warnings    #15
Fonnybone
Moderator
 
Fonnybone's Avatar
 
 
Join Date: Aug 2002
Location: Montr?al, Canada
Age: 29
Posts: 2,782
vCash: 7500
Tried server again and it seems you corrected the over-sensitive spin
detection In fact, 5 minutes with an AI, and i never managed to make
ANY flags come up.
Fonnybone is offline   Reply With Quote
Old 10-04-2004, 00:43     View Warnings    #16
Agent248
Awaiting Activation
 
Agent248's Avatar
 
Join Date: Dec 2002
Location: Canada
Age: 24
Posts: 18
vCash: 7500
For a reason or for another, I don't seem to be able to make this thing work. I've made many test with it, and whatever I do, I never see a single flag... Can someone help me set this up, please !

I'm using 0.3G, I start the game with the command line "lfs /insim=29999" and then start python et run the module, is this what we're suposed to do ?
Agent248 is offline   Reply With Quote
Old 10-04-2004, 02:15     View Warnings    #17
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by Agent248
For a reason or for another, I don't seem to be able to make this thing work. I've made many test with it, and whatever I do, I never see a single flag... Can someone help me set this up, please !

I'm using 0.3G, I start the game with the command line "lfs /insim=29999" and then start python et run the module, is this what we're suposed to do ?



Agent, I sent you a PM with a bit more detail. What you might have forgotten is to set the Admin password inside the file. Open the .py file with a text editor, and enter the admin password of your server in the Configuration section.
One side note is that I haven't tested it with a non-dedicated server. I have some doubts as to wether or not it would work. I'd have to try...
Silkswift is offline   Reply With Quote
Old 16-04-2004, 09:46     View Warnings    #18
Messiah
Registered
 
Messiah's Avatar
 
Join Date: Mar 2004
Location: Neuwied, Germany
Age: 23
Posts: 147
vCash: 7000
Some people don't getting it to run so I've tried it myself. I followed the steps in the readme file and everything went well, it ran after approx. 1 Minute.

I started playing on the server, got in my RB4 and started to drive around the track, drifting like hell *g*, an exception was thrown then.. one time it was thrown very early, without being in race (when connecting, I guess.. at least, a packet was received by lfs marshal).

Quote:
Press return to quit
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Programme\Python23\lib\threading.py", line 436, in __bootstrap
self.run()
File "lfs-marshal-0.3.py", line 485, in run
pac = (packet[0],) + packet[1][1:len(packet[1])]
TypeError: can only concatenate tuple (not "str") to tuple


I am running Windows 2000, latest Service pack,
Phython version 2.3.3 (python.exe -V),
LFS Dedicated (Patch G).

I don't know how to fix that.. prolly an syntax error for phyton 2.3.3 :/

Furthermore.. does LFS Marshal let LFS InSim time out or sends it packets (ie ACK packets) to keep InSim connection alive?
__________________
There are 10 types of people in the world. Those who understand binary and those who don't.

Last edited by Messiah : 16-04-2004 at 09:51.
Messiah is offline   Reply With Quote
Old 16-04-2004, 16:37     View Warnings    #19
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by Messiah
I started playing on the server, got in my RB4 and started to drive around the track, drifting like hell *g*, an exception was thrown then.. one time it was thrown very early, without being in race (when connecting, I guess.. at least, a packet was received by lfs marshal).
Thanks for trying my program! This sounds like a big bug though... I guess it is crashing when receiving a specific packet
In the directory where you placed the .py file, you should have a pynsim.log fle. Is there anything in that file?Could you maybe PM me the last 10 lines or so?
Quote:
Originally Posted by Messiah
Furthermore.. does LFS Marshal let LFS InSim time out or sends it packets (ie ACK packets) to keep InSim connection alive?
It should keep the connection alive. I know there was a problem when people were actually chatting without doing anything else, and it could time out, but that's been fixed, even though I'm not 100% sure the fix is in the downloadable version, I haven't updated it for a while, been busy this week...I'll try to do that tonight, and investigate the problem you mentioned.
__________________
Author of:
pynSim
LFS-Marshal
Silkswift is offline   Reply With Quote
Old 17-04-2004, 02:15     View Warnings    #20
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by Messiah
I started playing on the server, got in my RB4 and started to drive around the track, drifting like hell *g*, an exception was thrown then.. one time it was thrown very early, without being in race (when connecting, I guess.. at least, a packet was received by lfs marshal).
Thanks for reporting it. I do believe it is now fixed. I have uploaded a new version fixing this and a few other things. If you've got any more problems, please let me know
The new version also includes White flags for last lap in a race.
__________________
Author of:
pynSim
LFS-Marshal
Silkswift is offline   Reply With Quote
Old 18-04-2004, 20:23     View Warnings    #21
Bardy
Registered
 
Bardy's Avatar
 
Join Date: Mar 2003
Location: Holland
Age: 16
Posts: 68
vCash: 2000
pcspecs
Does it already suport non-dedicated? Because it's not working on my
non-dedicated. I get no errors, but I don't get flags to
__________________
Check my system ;)
Bardy is offline   Reply With Quote
Old 18-04-2004, 21:11     View Warnings    #22
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by Bardy
Does it already suport non-dedicated? Because it's not working on my
non-dedicated. I get no errors, but I don't get flags to
Yes, it should work. Make sure that you have started your multiplayer host before starting LFS-Marshal with insim enabled (type: "/insim 29999" once the host is started). If you're not getting error message, either from LFS-Marshal or from LFS, then the connection wasn't made between the 2. Check the admin password inside the file, and that Insim is enabled in your host.
I hope that helps. If it still doesn't work, could you let me know what are the steps you're taking? Thanks.
__________________
Author of:
pynSim
LFS-Marshal
Silkswift is offline   Reply With Quote
Old 18-04-2004, 21:20     View Warnings    #23
Bardy
Registered
 
Bardy's Avatar
 
Join Date: Mar 2003
Location: Holland
Age: 16
Posts: 68
vCash: 2000
pcspecs
jup doing it like that but I don't know about this one what do I have to fill in here?

# IP address to listen to recieve UDP packets
serverAddress = " "

[EDIT] I think I know what it is, I'm behind a router and nobody can enter my server so I think LFS-Marshal can't connect to.
__________________
Check my system ;)

Last edited by Bardy : 18-04-2004 at 21:27.
Bardy is offline   Reply With Quote
Old 18-04-2004, 21:44     View Warnings    #24
Silkswift
Registered
 
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
Quote:
Originally Posted by Bardy
jup doing it like that but I don't know about this one what do I have to fill in here?

# IP address to listen to recieve UDP packets
serverAddress = " "
That's the IP address of the computer where LFS-Marshal is running on. If you are running it on the same computer as the LFS server, it should be 127.0.0.1 (localhost IP address). That would be useful only if you run LFS-Marshal on a different computer.
Do you get any message "InsimInit 29997" in LFS? Anything in pynsim.log?
__________________
Author of:
pynSim
LFS-Marshal
Silkswift is offline   Reply With Quote
Old 22-04-2004, 13:52     View Warnings    #25
D!zzy74
Registered
 
D!zzy74's Avatar
 
Join Date: Jun 2003
Location: Germany
Age: 31
Posts: 160
vCash: 7500
Send a message via ICQ to D!zzy74
pcspecs
Just want to say that this little tool helps a lot . Build my first suspension yesterday based on the values this tool calculated and the result was 1. an new pb on so long (1.58.72) and 2. a much more comfortable driveable setup .
__________________
?PEDAL TO THE METAL
...ONLINE RACING TEAM...

visit @ http://pedal.lfs-racing.de
D!zzy74 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 00:55.

© 2001-2005 Race Sim Central (RSC), All rights reserved. All copyright RSC unless otherwise notified.