The online racing simulator
Searching in All forums
(975 results)
morpha
S3 licensed
Quote from Flame CZE :I don't know why but it says unknown column 'number_of_layouts', although I have set this name as the alias.

Which MySQL version are you running? Try the COUNT() just to test the theory, then we can set about finding out why the alias doesn't work
morpha
S3 licensed
What about if you extend the WHERE clause with
OR number_of_layouts = 0

I'm heavily tangled up in C++ right now so my mind might mess up SQL a bit, but in my currently somewhat confused state that should return users with layouts and users without any, but not duplicates.
morpha
S3 licensed
Quote from Dygear :I skipped over your message because i4 = 4 integers = 64 bytes, because each 'i' or int is 16 bytes long, there for telling the unpack function to do i4 is telling it to read 4 sixteen byte segments giving you the total of 64 bytes read. Although I did read the answer part, and it just did not compute as the right answer because of the first part.

An int is 32bits = 4 byte, 4 ints are 16 byte
Even a 64 bit int would still only be 8 byte, so I really don't know what you're talking about.
morpha
S3 licensed
Quote from rockclan :???

That didn't make any sense?

Did to anyone but you
morpha
S3 licensed
Quote from BoyGTA :How do I install this?

I installed python, I changed in cfg port to 6699 and in CSR too. But when i open this python thing it says forwarind..

You don't "install" it, it forwards when it's running. It opens one port to receive LFS's OutGauge packets on and sends them to all the other ports you configured it to forward to. You always have to run it when you want multiple applications to be able to receive the packets.

I might release a C++ rewrite of it soon that can be started with LFS without minimizing the window, but it's not at the top of my todo list.
morpha
S3 licensed
Quote from avetere :Yeah, he didn't seem to realize that ...

Well it's not that I care much, but with the forum bugs increasing rapidly lately (incorrect UIDs, polls getting mixed up, thread ratings breaking, ...) I just wondered if there might be a more serious issue
morpha
S3 licensed
Am I getting completely ignored here? I wrote that a couple of posts up
Or is it a forum bug and my post simply doesn't show? Cause that's what it feels like
morpha
S3 licensed
I believe LFS doesn't use a "variable sized struct", the struct simply has a pointer to the button text and the TextSize is used to determine the necessary amount of memory required to hold the string. However, there is no reason why this has to be a multiple of 4 by what information we have, we simply have to assume that this is required by LFS for whatever it does with buttons.

Simple illustration:
  • LFS receives button (identified by the Type)
  • compare received bytes to packet's Size, wait for more data if it's fragmented TCP data and the size and received byte count don't match, discard otherwise for being invalid.
  • If valid, create struct for the button, allocate memory for the text (of length TextSize)
  • memcpy the socket buffer contents starting at the offset for text to start+len
  • Set text pointer in struct to newly allocated and filled memory.
morpha
S3 licensed
Quote from Dygear :So, they are 'packed strings' then, but still use full int's when they are crossing the Ethernet buffer?

Network traffic is not typed, if anything it's split into octets. One character corresponds to eight octets, or one byte (eight bits), this is always the case even when multi-byte character encodings are used because LFS first converts them to its own "encoding".
The reason it has to be a multiple of 4 is because LFS uses the packet size for validation purposes, at least that's the explanation I came up with.

Long story short: Fill your string with null bytes until its length is a multiple of 4

Edit: And yes, this is important because LFS interprets an additional 0 followed by text (or random data, which is what you would send if the memory is not Zero'd) as Caption/Text separator!
morpha
S3 licensed
Follow my suggestion, enforce little-endian :rolleyes:
morpha
S3 licensed
Quote from Dominic123 :But if i paste this code there's an error message becuase the sum of all bytes isn't 80 bytes, what it should be.

That's because i4 = 4 integers = 16 bytes, you only need one int per value.
A byte is unsigned (as opposed to char, which is signed), as is a word (as opposed to short, which is signed) and while an int is usually signed, I really don't think it's meant to be in this case since you can't really achieve a negative laptime, so let's assume that was meant to be unsigned.

Use C for the byte, that's an unsigned 8bit integer.
Use v for the word, that's an unsigned 16bit integer guaranteed to be little-endian.
Use V for the int, that's an unsigned 32bit integer guaranteed to be little-endian.
morpha
S3 licensed
Hey, I'm replying here because you, for some reason, can't receive PMs from me.

Quote from r3zp3k7 :Hey!Thanks for the help with Insim I've wanted to ask you ,do you know how I can change the host name..Right now its "Host" I want to change it into something ,but I don't know how.. :?

Your dedicated host came with a file called cfg.txt, the server will fill this file with information at its first shutdown. In this file, after it's been filled with information, you will find the option "Ply Name" followed by "host", simply replace "host" with what you want the name to be.
morpha
S3 licensed
I seem to have just successfully voted 5 stars on this thread, could be cookie related?
€: Sorry, misread, thought you CAN'T vote on new threads :doh:
€2: Yep I can confirm that I cannot rate already rated threads, even if I didn't rate it myself.
morpha
S3 licensed
Quote from SidiousX :as I said before, the pedals wear over time, and can get jammed in their position.

Hist point was, how did the pedal get so far "back" in the first place? Valid question actually.
morpha
S3 licensed
Quote from Boris Lozac :Stupidity, cmon, the guy panicked, it's an awfull thing and nobody here knows how would they react in the same situation, maybe if he was alone he would react better, but he knew he had his family with him, which just worstened the situation.. It's easy to be a smarta** behind your monitor and say 'n00b, i would this i would do that'...

I know exactly how I would react because I regularly drive driving school vehicles with a second pair of pedals and it happens alot that when you've got a passenger onboard who doesn't know about the pedals, they occasionally step on them. Granted, that's a fairly unusual situation for most people, but I'm not some smartass behind my monitor
morpha
S3 licensed
Quote from Boris Lozac :Brits and their awesome sense of humour..:rolleyes:

I doubt she was joking and I partially agree with her, if I die through an act of (my own) stupidity, so be it. Sure, taking the whole (not yet existing as such) family with me would be cruel in a way, but utterly insignificant.

€: My ~25yr old Fantic Trial 50 has a very moody clutch, sometimes it just won't disengage, now that's mean! Very little you can do, hold the killswitch, hit the (drum) brakes, shift down if the gearbox lets you.
Last edited by morpha, .
morpha
S3 licensed
Why don't Toyota just tell people to take out their driver-side floormats? Way cheaper than a recall
morpha
S3 licensed
Quote from dmartin :Yes i did try with inline frame,but then it shows like this:
^4(^3IHR^4)^4IRONHORSE RACING

and should be like this:
(IHR)IRONHORSE RACING

Ah yes, you will definitely need to process the string then, which means either JS or a completely different approach, which is to "assemble" your team mate gadget thingy entirely on a server (php, python, asp, ruby, ...).

Unfortunately it'll be quite difficult in JS, for startes it requires AJAX, which the Windows gadget thingy should support though. Converting hostnames using non-standard character sets is tough though, I'm not sure it can be done in a reasonably efficient and small fashion using JS.
morpha
S3 licensed
That's because athost displays the hostname as string, not as image. What you're trying to do requires javascript. An inline frame would work too, but it'd probably ruin your layout.
morpha
S3 licensed
Quote from djgizmo68 :It explains that DVI-I has the best of both worlds, sending Digital to Digital, to Analogue to Analogue...

Yes but what you are trying is not D to D or A to A, it's D to A. VGA is never digital, so what you need is DVI-A to VGA, the link you posted confirms this:
Quote :DVI-A cables are used to carry a DVI signal to an analog display, such as a CRT monitor or budget LCD. The most common use of DVI-A is connecting to a VGA device, since DVI-A and VGA carry the same signal.

morpha
S3 licensed
Quote from menantoll :We already have this as an admin option, it's called turning off mid race join.

In combination with reset off
Still, without a proper damage model, particularly drive train and engine damage, we will continue to see vehicles competing quite well when they should actually be totaled.
morpha
S3 licensed
I believe that's the wrong cable, what you need is DVI-A to VGA.
You should actually have received at least one adapter plug with your graphics card
morpha
S3 licensed
100% accuracy is impossible, simply because no situation can be reproduced with 100% accuracy, not in real life and not in a computer simulation.

That's not the point, though, the point is getting as close as possible to the real thing. Sure, there are some limitations, even with very expensive and complex motion simulators, but in return a crash won't kill or injure you (although with the right motion sim, it could) and you don't have to worry about the (financial) damage and the expenses of obtaining and running several different cars.
morpha
S3 licensed
Was quite nice, kind of "sit back and watch" while most drifting videos are more like "LOOK LOOK, SEE WHAT I DID THERE?! COOL HUH!?"

Only thing I really didn't like are the textures, particularly the FE grass (clearly visible pattern, terrible colour) and the trees.
FGED GREDG RDFGDR GSFDG