The online racing simulator
Searching in All forums
(192 results)
Brilwing
S3 licensed
Quote from NagashTheBlack :I saved the file, got the error again, but no .log file was created.

What do i do

Start LFS with SIG
Get the InSim text
Choose Multiplayer game
Choose any server
Choose any car
I type /o setup
Table with available sets apperas
I click Get Set
Nothing happens
I type /o setup again
Now nothing happens at all (no table)
I spectate from race
I join the race
I type /o setup
I get the table
I click Get Set
Nothing happens

And so on...

have you restarted SIG after saving the log4j.xml?
Brilwing
S3 licensed
Quote from NagashTheBlack :I have a problem with SIG, when i click Get Set nothing happens. Moreover, i can`t run the /o setup command until i do spectate > rejoin the race. Any suggestions?

can you activate the log file reproduce your error and then send me the log file: see http://setupgrid.net/sig#three-1)

please also describe the steps you perform unit you get the error e.g.
1. start single player race
2. select XFG as car
3. select BF1 as track
4. started the race
...
Brilwing
S3 licensed
Quote from Myffe :I have same problem.ITS SO FUC**NG NOYING!!!:hbomb:

You try SIG with a clean installation of LFS and see if this happens again.

If so, see the FAQ how to activate the log files, end send the log with a description of what you do to the mail address displayed in the FAQ.

Please also answer the following questions
- Does SIG start LFS?
- Do you use other programs that uses insim, and if so, what programs?

Without the log file I can only guess :sorry:
Brilwing
S3 licensed
I also have multiple hosts running on one machine and this should not be a problem at all. When you have one host running on port 29999 and the other on 29998, and you specify 29999 as port in jinsim, all should be working fine an the communication should all run on the port 29999.

You do not need the udp port for the insim communication, only when you use outgauge and outsim then the udp port is needed as far as i remember.
Brilwing
S3 licensed
Quote from RocksGt :
One more doubt... Is there any way to connect to a server by his name. I mean, now I'm connecting by the server IP but it would be much better if I could connect using only the server name. Maybe connecting to the Master Server and asking him to resolve the IP by the name?

AFAIK you cannot resolve the IP using the master server, so you need to know the IP adress or the hostname.
You can also use the insim relay. Here you can connect using the server name. You will get all InSim data through the relay, but sending insim request packets is limited. (see RelayClient.java in the jinsim source code)
JInSim also contains an example how to connect to a host via the insim relay.
Brilwing
S3 licensed
If you have configured a insim password in LFS you also need to enter the same password at the SIG config.
If you do not have an insim password, the password field in the SIG config must then be empty.
Brilwing
S3 licensed
Can't wait for an automatic result upload with a xml file or something similar, cause manually adding the result is :nut:

What I miss is a RSS feed of the news, but I hope that this will come in the future.

Maybe some news categories like league announcement, race announcement, result, etc. make sence?

Nevertheless good work.
Last edited by Brilwing, .
Brilwing
S3 licensed
I want to register the austrian championship league, but if I press the 'Register a league for news submission' nothing happens
Brilwing
S3 licensed
Quote from RocksGt :
Another question... can a single program connect to several LFS-Servers and listen to all of their responses or may I run one execution of my app for each of the servers I want to receive data from?

It should be doable, but jinsim has no support to identify from which server the packet comes from, so you have to keep track of this by yourself.
Brilwing
S3 licensed
I would be pleased if I can help you testing. I run the Austrian Championship and the A-Cup. The Austrian Championship is only for Austrian Drivers and the A-Cup is for german speaking drivers. At both leagues 2 races are already done and 9 are coming. The next race is in about 2 weeks.
Brilwing
S3 licensed
About Button with Split times and a PlayerVO object...
I'm currently working on a tool that I call RaceControl, that does this stuff. But it is not stable enough to release it. RaceControl is OpenSource (Apache 2.0 License) so you can investigate my code here: https://openbakery.org/svn/repos/trunk/racecontrol/

The PlayerControl.java class is where I create my Driver object (=PlayerVO).
You can investigate the Board.java class, here I display the last three laps with button to the current driver.
Brilwing
S3 licensed
I'm not sure when it is send when you are hotlapping. At an multiplayer race the NewConnectionResponse is send when a player connects (here you get the connection id). When the player leave the pits or the race is restarted, the NewPlayerResponse is send.
I think that the NewPlayerResonse is also send when you start hotlapping, but I have not tested it.

Just output all responses then you'll see what responses are send:

public void packetReceived(InSimResponse response) {
System.out.println(response);
}

Brilwing
S3 licensed
With the NewPlayerResponse you get the playername, car name, plate, skin etc.


public void packetReceived(InSimResponse response) {
if (response instanceof NewConnectionResponse) {
// here you get the connection id
} else if (response instanceof NewPlayerResponse) {
// here you get the player id and the player name etc.
}
}

Brilwing
S3 licensed
I think that the LFS player name is important, cause this name is unique. In my tool for the results the LFS player name is used as primary key to identify players.

On our website the results looks like this: http://liveforspeed.at/?q=en/league/results/102

In our league we have only one penalty and this could be disqualify or loss of championship points (we keep it simple). The easiest would that a driver result can be marked with a penalty and a description can be entered.

What about league standings?
Our league standings looks like this: http://liveforspeed.at/?q=en/league/standings/6

We have also multiple standings cause have an own standings for rookies and also a team standings:
http://liveforspeed.at/?q=en/league/teams/standings/6
http://liveforspeed.at/?q=en/league/standings/rookies/6
Brilwing
S3 licensed
Quote from Fischfix :
a league admin should be able to register drivers to the league or actually an league-registration "thing". if there is an "official" point of registration provided by lfs, this will make an extra thread and manual "verification" obsolete. i think this can also make every inscription to a league more "serious" and the dropout rate will go down if its "officially" written down and managed.

i wish drivers could also have some sort of "statistics" so people know exactly in which league they were, which position they had and why the did not start in 8 leagues they did sign up.

I don't understand why a registration is needed. Only races results and standings etc. should be submitted to the centralized league system. With the lfsworld name it is possible to add an overview that displays in which league the driver has raced.
Brilwing
S3 licensed
I have an self written software to manage our leagues (Austrian Championship, A-Cup and Summer-Challenge). Besides the race result and the stats it also calculates the standings.
I think that a XML based exchange format is the best option, and I think that it is not a very difficult task to update my tool to generate that xml with the proper data.

What about the transmission of this data file. Is it pull by the centralized league tool of has the admin an upload form at lfsworld?
Both ways are fine for me. (but I think the upload option is the better one)
Brilwing
S3 licensed
A centralized site for leagues is a nice idea, but I think that it should contain only the important informations and should not go into detail. Like RSS feeds, they also contain only a summary of the news and you have to go to the website to read the whole story.
If a league has sponsors it is also important that the audience sees this sponsors. On a centralized website this is not possible, so the user should have to visit the leagues website if he wants more detailed informations and here also the sponsors are presented.

So I think the main goal for a centralized league site should be that leagues have a place for presentation like what kind of league it is, the race schedule, a brief race result. etc.
Brilwing
S3 licensed
Quote from J@tko : This one doesn't work either

Error log attached
EDIT: BTW, LFS.exe does exist in that folder

Very strange. I had a look in the logfile but I need to do some testing. I have an idea what can be wrong, but I don't know if im right.
It could take a while until I find time to investigate this issue.
Brilwing
S3 licensed
Quote from bukhem :
Are you using Eclipse as IDE?

Yes

Quote from bukhem :
Any thoughts about switching to SVN?

Not really. I don't see lots of changes coming to JInSim in the near future, so I think CVS is fine for now. (If I'm wrong, I have no problems switching to SVN)

If you provide patches in the future for JInSim it is also very likely that you get access to the source control
Brilwing
S3 licensed
:banghead:

Sorry, i though you want only one unique id for a driver (combine connection id and player id). I should read the posts more carefully

If you will create a patch that rename the getId methods and replaces it with a more readable getConnectionId or getPlayerId, then I'm on your site and will include the patch in JInSim.

(Note to me: first read, then think, then write an answer)
Brilwing
S3 licensed
JInSim is only the Java implementation of the LFS InSim interface, and I think it should work the same way as InSim is described in Scawens documentation.

I understand your problem, with the player id and the connection id, but I don't think that a solution should be part of JInSim.

It would be better to create a new project that is a higher level object oriented api to communicate with LFS and uses JInSim as basis.
For example: When you want the list of all drivers you call a 'List<Driver> getDrivers()' method that returns a list driver object.
Brilwing
S3 licensed
I have not tested it, but I think a tiny request will do. e.g. extend the net.sf.jinsim.examples.console.Console example with:

client.send(new TinyRequest(Tiny.ALL_RESULTS));

But when you want to keep track of all players, you must also response when a player connects or leaves, also when he joins the race.

I have done a stats application that tracks the laps over every driver etc.
Here is the source, but I'm currently refactoring this app, so there will be lots of bugs:
https://openbakery.org/svn/repos/trunk/racecontrol/
Brilwing
S3 licensed
I do the same for SIG (http://www.setupgrid.net/sig) and my solution also work in Vista. LFS is started with this command:

String command = "rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + lfsHome + "LFS.exe\" /insim=" + port;

Brilwing
S3 licensed
We have also the idea to do live broadcasts of our austrian championship. We have done some tests with one strong PC, where LFS runs and also the Windows Media Encoder, that capures the video and encodes it to a 300kbit/s VC-1 video stream. The video quality is not the best, but viewable.

When you have a second PC, that you should get a better video result, cause you have more CPU time for the encoding.

We have also googled some commercial hosts where you can by stream time, but for the first broadcasts we will use our root-server as relay and limit the users. (e.g. with Darwin Streaming Server or something similar as relay)
I hope we can provide broadcasts in the next season which starts in autumn this year.
Brilwing
S3 licensed
Quote from Technique :I'm getting great performance out of it now. I think I might have just had too many applications open at the time

Nevertheless i will run a test in the profile, just to make sure that everything is fine
FGED GREDG RDFGDR GSFDG