The online racing simulator
Searching in All forums
(167 results)
Brilwing
S3 licensed
Yes, the connect throws an IOException.
Brilwing
S3 licensed
Thx, fixed this in my version.
I will post a new version as soon as I have fixed the UDP issue.
Brilwing
S3 licensed
Yes some examples do not work, cause I haven't updated all by now. If everything is stable the version number whould be 0.5

The UDPChannel has some bugs, and I will fix this soon, until then try the examples using the TCPChannel.
Brilwing
S3 licensed
Hmm, as admin you have always an eye on the race with the buttons system vs. an external application.
Otherwise if the rules system grows then only using the buttons can become unhandy.

On the other side, if the rules system is so complicated that you cannot handle it with the insim buttons system, then this could be a sign that the rules system is too complicated
Brilwing
S3 licensed
Hmm should be all doable with the insim button system.

e.g. in the Pit Lane is closed that a Button is shown to every driver that the Pit is closed.
And so all messages can be displayed via buttons.

Also the whole admin stuff can also be done as buttons, so that admins are able to display the userlist as buttons with the infos like pitstops etc.

On my dedi ( \\\liveforspeed.at#2 ) I have an insim tool running where users are able to display there last 3 laps on the servers with split times with the button system. (My tool is written in Java)
Brilwing
S3 licensed
I updated jinsim with the minor X30 changes:
http://liveforspeed.at/download/jinsim-0.4.99.zip

Also changed:
* InSim relay support is now included + example program
* Fixes at the comp car and MCI requests
* Fixes a the set camera request
* Added a Track enum so that track codes like 100 or BL1 can be converted in an enum value and then to the real trackname.

I have tested this version only with a X30 Dedi, but it should also work with X10.
Brilwing
S3 licensed
I have created new package of jinsim with the latest fixes:
http://liveforspeed.at/download/jinsim-0.4.97.zip

* Some fixes at the button requests
* added java.lang.String to LFS codepages encoding
* fixed a synchronizing issue when sending lots of insim requests
* and maybe some more that I can't remember
Brilwing
S3 licensed
I did some additional testing.
One thing that I had wrong in my program was that I always send the maximum packet size of the IS_BTN request with 252 bytes. But this is not really a bug, its only a waste of bandwidth.
Now I have changed this to a dynamic size depending on the text length.
With this now, It looks like that it works now, because my 100 buttons test program works fine on my linux/wine LFS dedi.

My opinion now is that if the LFS dedi has to send lots of InSim requests to the client, that this can cause a disconnect.
Brilwing
S3 licensed
Today I wrote a test program that displays 100 buttons and every second the text of 10 buttons was updated. I did only take one second until I lost the connection to the server.
I found in the log the following error messages:
TCP ERROR : WOULDBLOCK
TCP : Cleared emergency store
FATAL TCP ERROR : CONNRESET

I search the forum and found this thread:
http://www.lfsforum.net/showthread.php?p=465707

This gave me the hint that this could be a linux/wine issue, because my host also runs unter linux.
So I tried my test program on another dedi server that runs on windows and it worked. No disconnect after several minutes.

I will try to google a bit, maybe it is possible to tweak wine, or try a newer wine version, but I think this is unfixable as long there is no native lfs linux dedi
Brilwing
S3 licensed
I have now changed the width and height so that 0 is send, but a colleague yesterday had this kind of disconnect.

I will try to write a program that displays and hides lots of buttons, so that I can reproduce this, because it only happens very rarely.
Brilwing
S3 licensed
Too many? 239 buttons ids can be used, so I assume I can use 239 buttons. I display not more then 30 buttons at one time.

What du you mean with the wrong way?

What I do is that if a button is shown and I want to change the text, then I send IS_BTN with the same values but the new text. I do not send a prior clear.

If the buttons are not shown I never had this kind of disconnect. This disconnect only happend to me twice, and I have done lots for laps with the buttons activated.
Avoiding buffer crash (OK)
Brilwing
S3 licensed
In the last time I had two disconnects from LFS and got the error message: Avoiding buffer crash (OK)

I never had this kind of disconnect before and the only thing that had changed was, that I have extended the LFS-Dedi with an InSim application that displays the recent laps to the current driver.
I use buttons to display the information and I have the suspicion that this extension is the cause for the disconnection. So is it possible that I have a bug in my program, so that some wrong data is send to the client, that causes the crash?

Here is a screenshot of an early version of the extension:


If someone wants to see this live, just join one of my servers ( \\\liveforspeed.at or \\\f1challenge ) and enter the chat message '/i board'. (Currently a restart of the race is needed to see the times)
Brilwing
S3 licensed
Quote from DJMOZ :Lfs Is Full Of Idiots,

As far a I know that is not right. Only a few people to not know how to behave, and for this I love the ban button
I also have banned people for bad language, so if someone uses 'special words' like f*** multiple times in the chat messages, then it is very likely that I use the ban button.

So be nice and drive clean and you will never get banned.
Brilwing
S3 licensed
Sure it is possible. I write all my InSim programs with Java. If you do not want to start from the scratch you can use jinsim. You can find the latest version here: http://www.lfsforum.net/showthread.php?p=515910#post515910
The package also contains some example applications.
Brilwing
S3 licensed
I'm the other way around. I use frameworks. Before I start to implement something, I searched if someone else has done this before. If I find something good I use it, if not I do it myself.
Ok, the main language I use is Java, and as Java-Developer you normally use lots of frameworks and libs (starting with apache commons).
But I also want to know how it works, so I prefere open source frameworks/libs, where I can read the source, to see how this works.
When it now comes to web-frameworks for Java, I must say that the major frameworks here (struts, jsf, ...) are not the holy grail, and every framework has it glitches. But in the end you are faster than doing it all by yourself.

One other good thing about frameworks is when you need additional developers (e.g. a company) then you can search for people that already have experience with this frameworks, and the time to familiarized with the product and work productiv is much shorter.
Last edited by Brilwing, .
Brilwing
S3 licensed
Maybe you should take a look at drupal (http://drupal.org). Yes, drupal is known as CMS, but is is very simple to write custom modules, because it has a good and well documented api for forms and database access and much more.
I have written a complete league managment as drupal module, and I think that I have never done this with PHP if I havn't already used drupal as CMS before.
Austrian Championship
Brilwing
S3 licensed
I want to announce the start of the 3rd Saison of the Austrian Championship on the 28th October 2007. The first race is on Blackwood with the XFG, XRG.
This championship is for austrian drivers only, so every austrian that have not signed up and want some good races, come and join us.
All details can be found on our homepage:
http://liveforspeed.at/oelfsm
Brilwing
S3 licensed
Quote from DemonTPx :Thats only for LFS I see. Paddock is for LFS, rFactor, <your favorite racing game here> and it can also be used for real-life racing leagues.

For the first tool yes.

But the second tool depends only on the gstats file format, or to be more precise the mysql db schema. I don't know rfactor, but if you have a results xml and convert it to my format than you can also manage rfactor league. Theoretically

There was a discussion about a common xml format some time ago, but nothing came out of it.
(I also mentioned there that a common xml format should be racing game independend: http://www.lfsforum.net/showthread.php?p=388497#post388497)
Brilwing
S3 licensed
Bin there, done that

Ok, from the start. I have written a league manager which consists mainly of two programs.
The first one generates a stats file from the replay (live recording on the lfs server also works).
It is not xml. I use a simple CSV like format, but extending to store XML should be a simple task.
Here is an example of the current format: http://liveforspeed.at/files/WE1_race_0710041939.gstats
The tool is written in Java and the source is here (Apache 2.0 License):
https://openbakery.org/svn/repos/trunk/gstats/
and here
https://openbakery.org/svn/repos/trunk/gstats-common/

The second tool is a module for the drupal CMS (http://drupal.org) with is written in PHP. Here multiple leagues can be created with different rules. The stats file generated with the first tool can be uploaded and stats, graphs standings are dynamically generated.
See: http://liveforspeed.at/?q=league/results/41 and http://liveforspeed.at/?q=en/league/standings/5
The source code for the drupal modules is here (GPL):
https://openbakery.org/svn/rep ... nk/drupal/modules/league/
and here
https://openbakery.org/svn/rep ... pal/modules/league_graph/
Last edited by Brilwing, .
Brilwing
S3 licensed
Programming (also InSim programming) is not difficult, it is only time consuming, very time consuming.

+1 for Hollywoods first post from me.
Dedi mpr bug
Brilwing
S3 licensed
I don't know if this is already reported (i used search and found nothing).
The mpr that is recorded on the dedi has the wrong track stored. Today we raced on SO4 and I lost my connection during a thunderstorm power failure, so I used the mpr that was recorded on the dedi to create the stats. Watching the replay is funny because the track layout SO1 is used but the cars drive SO4. So the the cars drive though walls and fly round.

Here you find the replay: http://liveforspeed.at/replays/f1ct2.zip (15.4MB)

The dedi version is X10 and it runs under Debian Linux with Wine version 0.9.25

With InSim I get the track name SO0
Last edited by Brilwing, .
Brilwing
S3 licensed
Hmm I don't have this exception when I run the hello world example. Nevertheless, I have updated jinsim that this exception is handled, cause it indicates that the jinsim connection is closed.

here you find the update: http://liveforspeed.at/download/jinsim-0.4.96.zip
Brilwing
S3 licensed
Quote from joelbarton1987 :ok thanks but new error : error = in dedi host screen when trying to load insim : = " insim: first byte in packet does not match size "

Hmm, I have tested this example only with LFS not with the dedi, so I don't know if the example works with a dedi, because it only sends a chat message. But you error message look like that you are using an older dedi version. Are you using the latest dedi version patch X?

@Eclipse: download this: http://www.eclipse.org/downloads/moreinfo/java.php
FGED GREDG RDFGDR GSFDG