I'm watching it with Race Director, because I don't have Eurosport 2, and it's worth it in itself. I've watched a few races before but my interest always drifted away. But this year I am really getting into it. I was riding with Justin Wilson for the whole Houston race - that circuit is just a little bit bumpy
Fujiwara, Ian... thanks for the information. I am learning with every post
I don't think I really explained it right though. At the moment die is ending the script. What I want to do now is to change it so that it doesn't stop... I want it to keep looping and echoing any messages it gets, if that's possible. I have tried removing die and putting echo in its place, but it seems that it's not as simple as that.
This works okay. But of course it will only show one message and then end the script. How do you keep it running? I've had a look around and tried print() (because echo() is not actually a function ), but it seems that without having die() there it never displays the message. I can't see why. I guess this should be going on a PHP forum really
IMHO the proper racing servers should go above the cruising ones, this is meant to be a racing sim first and foremost after all. I'm not starting an argument, I like the city driving servers as much as anyone
This is great idea. When it's done it needs to be made a sticky. It could go in the wiki too.
I would say something even simpler, like a quick fade to to the logo and back to the replay. A few years ago the F1 replays would fly in and out in a 3D box, but now the logo flies across the screen and the replay fades in.
I can upload a quick example of what I mean if it's okay for me to borrow a few seconds of the video
Yes, I know what you mean. I can fit 4x almost-one-hour highlights of the F1 races on a DVD, but it is quite low quality. On a standard TV you can't really tell much though, it's only when you watch it on a computer monitor that it's noticeable, but still watchable. I'm too stingy with myself to use more than four DVDs for the season
Being able to buy DVDs, well that will just be cool
Ah yes, just had a look, so you are encouraged to use headlights instead, and honking is equivalent to flipping someone off. But Becky allows it because it helps give the drivers personality as it is virtual racing. It would be nice if they weren't used at all but Becky's reason (of course) makes sense
When I say a DVD, I don't mean just the Windows Media files put on a disc, I mean a proper video DVD that you could watch on a TV. Maybe that's what you meant anyway
I love how you talk about if the stewards have seen people do things and how they are looking at data. And no comment on drifting!
One thing though - maybe you feel different about it - but shouldn't honking your horn be a similar offence to, say, telepitting while still racing? When you watch real life racing on TV, how often do you hear the drivers honking their horn? To me it just sounds silly.
Type 'ipconfig' into the command prompt (start > run > cmd) on the hosting computer, and try connecting to the IP address it says it has. Or if you are running the host on the same computer, try 127.0.0.1 .
I don't know if it will work, but try renaming it with DOS (well, as close you can get in XP)... go to Start > Run, open 'cmd'. Then type:
rename ^1[TC]^7>Chris<.ply blah.ply
Then if it works at least you can move/delete/whatever it.
is the pack format for the flags 'c'? According to InSim.txt, they are a byte - 1-byte unsigned integer - but in the PHP documentation the 'c' format is a signed char?
Also, so characters are okay just as strings, and integers need to be packed?
@rooble
Thanks a lot, that's exactly what I wanted!
@st4lk3r
Yes, I have looked at your tutorial... but I'm trying to learn the absolute basics, just trying to get connected and send a simple packet for the moment. Now I've done that, your tutorial will be very helpful
Hello... I am trying to learn how to use InSim with PHP. First question - can I do this with XAMPP on Windows? I have tried using the example code from the wiki but nothing happens. InSim is set to port 30000.
I'm a complete n00b with PHP, so all I want to do right now is to connect to LFS and send a simple packet. I'm not even worried about even sending the ISI packet yet. Am I right in thinking that LFS should complain about what I am sending to it?
If that's right, then should I just be able to use fsockopen and then send a packet with fwrite? Something like this: