The online racing simulator
Searching in All forums
(251 results)
bdshan
S2 licensed
I am always on the lookout for ways to kill time, http://tootough4u.mybrute.com
bdshan
S2 licensed

private void BTC_ButtonClicked(Packets.IS_BTC BTC)
{
try
{
switch (BTC.ClickID)
{
case 2:
<delete button 2>
<display new button>
break;
case 3:
<delete button 3>
<display new button>
break;
case 4:
<delete button 4>
<display new button>
break;
case 7: // Close button
<delete all buttons>
break;
}
}
}

bdshan
S2 licensed
Once you get your buttons clickable you'll need to listen for the button click event. In the button click event you'll want to take the appropriate action based on the button ID of the clicked button.
bdshan
S2 licensed
The basically, no insim needed:

1) enter server as Admin
2) issue the following command:
/kick X :disconnect user X

If you want to send a message to the user with the reason they are being kicked you need insim. ideally, if you are already running a insim cruise server app you'd want this new command added to your existing app. Rather than running a second insim app just for this command.
bdshan
S2 licensed
Quote from SilverArrows77 :I really dont recall 100% , put im quiet sure those little ball joints ive circled in picture must slot down into a little holder, as thats what "holds" the the pots to "zero input" , without them held in their slots the pedals wont measure any input

I was thinking the same thing. Don't the little balls on the end of the pots slide down into a holder of sorts. I remember the last time I took my pedals apart I put some blue tacky on those thingys to keep them securely in place.
bdshan
S2 licensed
Found this in the Washington Post yesterday.

Quote :
The most exhausting part of parenthood is the fact that for 99.9 percent of the various needs, you can't simply decide to "opt out," or even put them off until later; a child preparing to run into traffic takes precedence over anything else. It is the loss of the smallest measures of mental freedom and self-containment, of ability to pay attention to oneself when needed AT THAT MOMENT, that carry the most impact on our lives, energy and sense of self.
In comparison, a status report doesn't cry or scream if you are an hour late finishing it, nor feel abandoned if you put it aside until after lunch while you take a walk to clear your head.
A typical staff meeting is unlikely to include your co-workers complaining when you bring snacks because they "hate bran muffins, yuck! Why don't we ever have anything GOOD to eat? Billy's team in Marketing gets doughnuts" -- accompanied by, in the case of toddlers, throwing of the objectionable food. Your boss is unlikely to wake you up at 2 a.m. and puke on you, or need her diaper changed or a glass of milk, and if she does you should DEFINITELY leave your job unless you are a live-in care nurse.
If your job begins each day at 6 a.m. with your boss wanting you to carry him downstairs and make him breakfast, then subsequently includes a day filled with a host of never-ending, unappreciated and (socially deemed) menial tasks, ending somewhere around 9 p.m., if lucky, you'd have a pretty good rant for the blogs, right? You'd also likely have lots of folks asking why you put up with it and hoping you get paid well, as opposed to an astonishing number of people wondering "what you do all day."


Lastly, when a mother does her job, chances are she gets little to no recognition (let alone raises or bonuses), and if she's doing her job "right," chances are also excellent that at some point she will hear with distressing frequency, "I hate you!!! You don't understand!! I WISH YOU'D LEAVE ME ALONE!" If you heard that coming from your boss after a successful ad campaign, you'd leave your job, right? And if not, maybe you are strong enough to be a parent after all and should go get knocked up posthaste.
Whether everyone agrees with me or not (and I realize there are some who will not), the stakes are higher and the consequences of failure are heavier for this job than most any other endeavor, with the grand irony being that because we are human, we are destined to fail on so many levels and with heart-rending frequency.

bdshan
S2 licensed
Sorry to dig up an old thread, but I just got FreeTrack working with my Wii remote. Does anyone have a LFS profile for v2.2 that they'd care to share?
bdshan
S2 licensed
I have always had trouble displaying buttons whenever I don't set the request info and clickid before sending the button.

b1.setRequestInfo((byte)(1));
b1.setClickId(BTN_ID);

bdshan
S2 licensed
Quote from GabbO :Thanks, it helped.

Now i worked offline and created a buttonfactory that helps manipulate/handle buttons. The tool i created is working very well,
but now when i wanted to test it online i can't see the buttons. I created them with my connectionId, so it should be visible for me. It hard to do without docs . Any hints what could be the problem?

Do you have a code sample you can share? Did you hard code the connection id. I have never checked it out, but in single and multiplayer they could be different since the host take a connection in multiplayer.
bdshan
S2 licensed
Minor Threat - Salad Days, Cashing In, or Good Guys (Don't Waer White)
bdshan
S2 licensed
Check your php.ini on you server. I know this was an issue for me the first time I started with php.


;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On

bdshan
S2 licensed
I have been listening to these shows while doing mindless things @ work.

Very iRacing focused. But at least you get to hear what is right and wrong about the sim, and some perspectives on sim racing as a whole.

Agreed the commercials and off beat comments can be annoying to start the show off.
bdshan
S2 licensed
Maybe this will help.


// tracking HashMaps
Map<Byte, Connection> connections = new HashMap<Byte, Connection>();
Map<Byte, Player> players = new HashMap<Byte, Player>();


// handle new connections
if (pck instanceof NewConnectionResponse)
{
if (!connections.containsKey(connid))
{
connections.put(connid, new Connection(connid, ncr.isAdmin(), username));
}
}


// handle new players
if (pck instanceof NewPlayerResponse)
{
if (!players.containsKey(plyid))
{
players.put(plyid, new Player(npr, (Connection)connections.get(connid), b));
}
}

There might be better ways to do this, but this works for me.
bdshan
S2 licensed
Thanks for the insight Sam, we are using BL1R on at least on tier. We may have to re-think that.
bdshan
S2 licensed
That is true different systems can interpret the LFS data in different ways. We will be monitoring the system, and can tweak the yellow flag detection scheme if needed.
bdshan
S2 licensed
Quote from obsolum :
Only thing I don't understand is the bit about the yellow flags. How can a driver throw 6 yellow flags in a single incident?

LFS will keep reporting yellow flags, say for an incident where you run off track slide through the grass and pin yourself against the wall. You as a driver need to either clear your car of the incident by rejoining the track, tele-pit, or spectate.
bdshan
S2 licensed
After the client connects you can request the list of connections and players.


// request for connection info
client.send(new TinyRequest(Tiny.ALL_CONNECTIONS));
// request for player info
client.send(new TinyRequest(Tiny.ALL_PLAYERS));

After getting the initial list above you need to listen for new connections and players by checking the packet type in your packetReceived and then dealing with the appropriate type (NewConnectionResponse or NewPlayerResponse).
bdshan
S2 licensed
This is killing me and to save my life I can't figure out a solution.

I am trying to read a Path file, AS1.pth to be exact. It was going along swimmingly until I need the number of nodes. When I do a readInt() I get a wacky number 536936448, but I know for a fact that AS1 has 288 nodes. Am I using the wrong function call here? Any suggestions?


File pathfile = new File("c:/temp/AS1.pth");
if (!pathfile.exists()) System.exit(0);
FileInputStream fi = new FileInputStream(pathfile);
DataInputStream di = new DataInputStream(fi);
byte[] bLFSPTH = new byte[6];
di.read(bLFSPTH, 0, 6);
String _LFSPTH = new String(bLFSPTH);
// _LFSPTH must match LFSPTH
if (!_LFSPTH.equals("LFSPTH")) System.exit(0);
// version header
byte version = di.readByte();
if (version > 0) System.exit(0);
// revision header
byte revision = di.readByte();
if (revision > 0) System.exit(0);
// number of nodes
int nodes = di.readInt();
...

bdshan
S2 licensed
The S3R #30 will be sitting out this round.

Good luck to all.
bdshan
S2 licensed
Aug 2 works better for me.
bdshan
S2 licensed
Thanks for all the help so far.

I don't think my app is too big. I am just tracking connections, players, flags, and races. However, when I run it on the server via mono, mono takes up 25% of the cpu and the server goes a bit laggy. Any ideas why this might be? Other apps that we have run on the server do not use that amount of CPU power.
bdshan
S2 licensed
Yes, I was thinking that all I needed was to be using different insim ports on each server. I am doing that. But now I am confused. I was looking at the members of the configuration class. Should I be setting the LFSHostPort to the port the server runs on (62543) and the ReplyPort to the insim port (29997) used? Or do I just ignore the ReplyPort and just set the LFSHostPort to the insim port I want?
InSim Server Connection
bdshan
S2 licensed
I am attempting my first insim application. I am using the .net lib (http://www.lfsforum.net/showthread.php?t=39581). The intention is to run the application and connect to a local server. However the box I am running this on has multiple LFS servers running. I only want to connect to a specific one. I am assuming that if all the servers running on my box use different insim ports I would be fine. But I am not one to assume. So my question is how do I ensure that I am only connecting to the targeted LFS server?
bdshan
S2 licensed
Quote from DeadWolfBones :Having just watched the replay of the #1/#7 incident several times, it looks like it took about 3 minutes from the time of the SC period starting for the #1 to be rescued.

In my mind, this is penalty enough for all imaginable situations.

For subsequent rounds I plan to do away with the post-rescue time penalty altogether.

FGED GREDG RDFGDR GSFDG