Well, yesterday we gave some work to the system and I think it works fine
Some people complains about lagging, but we need to find out if that's server problem or people connection problem.
We're already gathering feedback to find the correct configuration and I have some doubts:
- The wrong driving option: When it starts counting? When LFS shows you the message? One racer told that he was spectated while recovering from a spin. We have the next config:
WrongDrivingTimeRace=5
WrongDrivingTimePrac=10
Now that I think about it, maybe he was espectated by CrashCheckDelay=1
- About the lagging: It's the LagTotal resetted at race restarting or something? We use to have long sessions of practice and one hour race every monday, so maybe LagTotal=10 it's very low... We've to test all this things
Now an idea. We'll have two main configurations, one for weekly practice and another one for monday racing. So would it be possible to implement a way of having two options for some parameters? That way you'll not need to open the config files to switch those parameters, only invoking some command as !config=1 and !config=2 and Airio will look for parameters with two values labeled 1 and 2 and loading the correct value for those ones
Anyway... people is enjoyning it a lot, when we have it configured properly it would be amazing
09.02.11 19:34:17 AIR ERROR: Requested value 'NONE' was not found.
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at LiveForSpeed.InSim.Airio.Airio.ReadTrackCarConfig() in c:\Development Files\LFS_Airio2\TrackCar.cs:line 268
at LiveForSpeed.InSim.Airio.Airio.Main() in c:\Development Files\LFS_Airio2\Main.cs:line 131
I don't know what setting I set incorrectly, if you can tell me something I'd appreciate it
In a server-side InSim, is there a way to get the host name?
What I'm trying to do is connect to several servers, and mantain a Map of JInSimClient identified by the host name, so when I receive a packet from LFS I can link the host from where the packet is sent
Maybe this could be done by the connectionId or something like that, but the responses don't include a field like that I think
So the idea is to override the public void packetReceived(InSimResponse response) method in my Client (the one that implements the JInsimClient) and call to my packetProcessor linking the hostName (or some identifier) to get access to the correct client (send messages back to the server, buttons, etc...)
If you can get me a tip it would be very nice
******** SOLVED **********
Finally I've used an Integer as clientId
Each Client (extended JInsimClient) has a clientId. In the main class I read the config file with the host list and I link each client with an Id (starting at 1). Then I keep a static Map<Integer, Client> at the requestProcessor, so when a packet is received each client do this:
public void packetReceived(InSimResponse response) {
So I can get the client from the Map if the process of that packet Type require it
Anyway... I think I need to override some methods as the setVisible of Button cause it calls to JInsimClient.getInstance() and in my environment I have several JInsimClients objects...
I don't know if the JInSim have a better method to deal with an multi server app
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?
Thanks a lot, and very good job with JInSim, the more I work with it the more I apreciate the effort you put on it
I would say that racism in Spain it's not common, at least not against black people. Maybe a little racism in some regions against gypsies (as them being involved on drug selling and stealing), but more about their way of life than just their skin color...
In soccer there exist some fan groups that are really racist and their members are neo skins and fascist. Sadly they're supported by the teams in most of the ocassions... but that's another issue... they are just a few hundreds compared with the millions following soccer in Spain
About the photos of Pekin and the blacked people at Barcelona... well I think no one at Spain think of that as racism, mainly because we have not the racism as an daily isuue... just making some fun (beeing the blacked people some bad taste humour in my opinion )
What I mean is that he knows how to communicate the reasons why the car is not as fast as the others to their engineers, who, obviously, are the ones who work on the improvements
And I'm sure the Renault can improve a lot until the next year
I think Alonso have something that many other drivers do not, and it's an ability to develop and set his car... I don't think it's a coincidence that Renault have improved so much since the begining of the championship (something that they didn't last year when Alonso was at McLaren)
Hope next year with slicks and less aero all the cars will be more balanced and that can bring epic fights between Hamilton, Massa, Raikkonen, Alonso, Vettel, Kubika and maybe another surprising driver
Thanks for the responses, they solved most of my doubts
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?
Then I supposed I may have a Map of the players connected (I'm seriously thinking of having a PlayerVO just for making things easier ) and then searching on that map with the id to retrieve the PlayerVO containing all the data of the Player.
Then mantaining that Map when a player connects and when a player leaves the server
Another question (that I've didn't test it yet) it's about buttons... I'm showing split times on buttons, but I don't know how this could work on a multiplayer environment... may I set the button to a playerID for only that player sees the button of his split time and none of the others players?
That is called education. You might be thankful for that
As many gay children that were told that they were ill for liking people of the same sex. If you're straight you'll not end sleeping with a person of your sex because your teacher told you that you're in fact gay, that doesn't make sense at all
hmmm I've tried that, but maybe I've made something wrong
That packet NewPlayerResponse when is supposed to be sent? When a player connects to server? I'm testing my little app via HotLap... then, when I restart a HL that packet is sent again?
The app I'm trying to make is a kind of LFS-Lapper... but I'm going slowly so while I learn the basics I'm just testing with HL's on local, not on a server with several players
P.S: Don't know if this is the correct thread to comment this type of things, maybe I should open another thread requesting help on the problems I find during my develop and kee this one only for the library per se
I'm a completly n00b on InSim and I'm starting with this library as I'm a bit familiar with Java (at least more than I'm with C :nod
I'm trying to get some info of time splits and time laps and I'm missing some info.
I've been able (thanks for that nice examples ) to get a button showing split times, but I would like to show the name (the LFS-World nick) of the player too. I'm capturing the SplitTimeResponse and I see that it have a playerId field, but I don't know how to get the rest of info about that Player... I think I miss a Player VO class or something
If you can tell me how to get all the info about one player via this PlayerId field I would be very pleased
Thanks a lot in advance and sorry for my crappy english