|
|
Users Online: 362, Members: 217, Guests: 145. |
|
Thread Tools | Rating: | Display Modes |
08-04-2004, 02:22 | View Warnings #1 |
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. |
08-04-2004, 04:12 | View Warnings #3 |
Registered
Join Date: Aug 2002
Posts: 81
vCash: 7500
|
it's working really nice!
|
08-04-2004, 04:13 | View Warnings #4 | |
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
Thanks to all who came The spamming is now fixed, you get only 1 message every 5 seconds (instead of 0.5 second ) |
|
08-04-2004, 04:16 | View Warnings #5 |
Registered
|
:speechless:
|
08-04-2004, 19:15 | View Warnings #6 |
Moderator
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. |
08-04-2004, 20:12 | View Warnings #7 |
Registered
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 |
08-04-2004, 20:57 | View Warnings #8 | ||
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
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:
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. |
||
08-04-2004, 21:01 | View Warnings #9 |
Moderator
|
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 |
08-04-2004, 21:22 | View Warnings #10 | |||
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
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:
Thanks! Always appreciated
Quote:
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. |
|||
09-04-2004, 15:03 | View Warnings #11 |
Registered
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 |
09-04-2004, 15:57 | View Warnings #12 |
Registered
|
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"? |
09-04-2004, 18:08 | View Warnings #13 | |
Moderator
|
Quote:
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 |
|
09-04-2004, 19:33 | View Warnings #14 |
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). |
09-04-2004, 20:40 | View Warnings #15 |
Moderator
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. |
10-04-2004, 00:43 | View Warnings #16 |
Awaiting Activation
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 ? |
10-04-2004, 02:15 | View Warnings #17 | |
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
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... |
|
16-04-2004, 09:46 | View Warnings #18 | |
Registered
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:
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. |
|
16-04-2004, 16:37 | View Warnings #19 | ||
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
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:
|
||
17-04-2004, 02:15 | View Warnings #20 | |
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
The new version also includes White flags for last lap in a race. |
|
18-04-2004, 20:23 | View Warnings #21 |
Registered
|
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 ;) |
18-04-2004, 21:11 | View Warnings #22 | |
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
I hope that helps. If it still doesn't work, could you let me know what are the steps you're taking? Thanks. |
|
18-04-2004, 21:20 | View Warnings #23 |
Registered
|
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. |
18-04-2004, 21:44 | View Warnings #24 | |
Registered
Join Date: Dec 2002
Location: Vancouver
Age: 26
Posts: 187
vCash: 7500
|
Quote:
Do you get any message "InsimInit 29997" in LFS? Anything in pynsim.log? |
|
22-04-2004, 13:52 | View Warnings #25 |
Registered
|
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 .
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|