The online racing simulator
Searching in All forums
(948 results)
filur
S2 licensed
Quote from MonkOnHotTinRoof :Yes, it's ugly, but you have any better idea how to detect car reset?

Nope, i wouldn't even try. It's one of them things you'd really not want to detect by mistake, and as such, you'd want to be able to compare your criteria over a period of time to make sure you don't get it wrong, and with car resets, you can't.
filur
S2 licensed
Quote from MonkOnHotTinRoof :Detecting reset would be made by comparing 2 frames on speed and distance/angle change

Really not a good idea.
Quote from MonkOnHotTinRoof :I think the problem with the pit detection is, that the name of player is in message

IS_PLP, UName and PName.
filur
S2 licensed
Quote from harlen :ZA is overprotective. it might be that, i use it and when i open a tga file it tells me it has a virus in it. try getting rid of ZA and it might work.

ZoneAlarm is a firewall, not a virus scanner. You're probably referring to something like ZoneAlarm Internet Security Suite.
filur
S2 licensed
Quote from Renku :.. I'm scared due do a lot of people seem to find hard to understand the new ..

To me it's just inconsistent, i know Blackwood, GP Track and BL1, but what's "Blackwood 1" ?
filur
S2 licensed
Quote from MZWiZard :.. it said in red "JOOS -main", which means you run a modified version of some kind and we will NOT allow such things on our server!

Out Of Sync, could be packet corruption for example.
filur
S2 licensed
Quote from shaGuar :Try to edit this one

Let me in a friendly way introduce you to the wonderful world of data compression. With the current bandwidth restrictions(?) on the forum, it took me almost 2 minutes to download your .bmp picture.

Your picture compressed to
PNG (lossless, no information gone): ~450kb (~35%)
RAR (still lossless): ~400kb (~30%)
JPG @ 80% quality (lossy), ~200kb (~15%)

The percentages can be roughly applied to my download times, ie. the RAR would have taken about 36 seconds instead of 2 minutes to download, and i'd still see the exact same picture.
filur
S2 licensed
Quote from lurendrejer :..

The only thing this script system does is send commands, there's already a way of automating commands issued on a server (Insim).
filur
S2 licensed
Quote from Jessedvd :its smooth.

How much is your graphics quality enhanced by the size of your harddrives?
filur
S2 licensed
+1, and also include searching for races where you've raced against/with <username>
filur
S2 licensed
My writings may be found on the danish forum

Made some 'unofficial' stats, recorded in 16x replay speed, so top speeds might not be all that accurate.

http://flp.c0m.se/reports/lfs-dk_we2h/stats/
filur
S2 licensed
Quote from St4Lk3R :you did it in your script sample... illepall now I am confused.

Yeah i guess i assumed you'd run both the script and the server locally.
filur
S2 licensed
Quote from St4Lk3R :you misunderstood him IMO. he entered his lfs-server's IP-address into the stream_socket_server function, which is of course wrong, because this is the local server you open to listen to the responses of lfs. so localhost is the IP to enter here.

Confusing. Well, anyway, localhost isn't necessarily the right one because a remote server still cannot connect to a socket locally bound to 127.0.0.1
filur
S2 licensed
Quote from St4Lk3R :wrong way.

you're connecting to the insim-port of lfs when you use fsockopen. stream_socket_server is for opening a LOCAL server listening to the responses of lfs. so udp://localhost:30000 is the correct url in all cases.

A remote server can't connect to your localhost, thus you bind the socket on all devices.

Quote from St4Lk3R :Do you need beta-testers?

I guess i do, i'll send a PM some day when i've not got a load of league races to prepare for, websites to code, cold coffee, etc.
Last edited by filur, .
filur
S2 licensed
Quote from St4Lk3R :when you're talking about that filur: when will it come along?



It's been in sporadic development for almost a year, starting to actually be really stable and truly useful lately. I'm still finding 'core' errors and annoyances from time to time, which is why i've not released anything so far. You can join FLP's server FLP Racing for a taster, the FLP Soccer 'mod' also runs on my insim code. The core insim class can of course be used for pretty much anything, not just running as an 'insim application'.

Hey, this is the most info i've ever given out so far, be happy, dygear!

(should be able to release something pretty soon, really.)

Quote from Goodfella :with your script, also remote servers are accessible?

Should be, you'll probably need to change the server_bind on the incoming socket to your external ip, or just use 0.0.0.0 (all devices), if your external ip is held by a router, use 0.0.0.0.
Last edited by filur, .
filur
S2 licensed
Quote from Goodfella :I saw it, but it's very hard debugging that script with a lfs server... i don't know if it works or not...

Well, it doesn't really need debugging since it doesn't do anything except actually showing you that it does work. (ft. keanu)

I've got quite a neat PHP package coming along, but in the meantime you'll have to figure it out yourself.
filur
S2 licensed
Quote from SpaceMarineITA :/bind F6 /write hello

Quote from kaspur :Would it be possible with this "script" to bind F1 with command "/run greenflag.lfs"

Setting commands on the chat-keys already works, i can't see how /run would be any different.
filur
S2 licensed
You can change tyre type in the pit instructions box (f12).

Your choice of tyres for 'go really fast' and 'be safe' seems to be a bit reversed, wouldn't you normally choose R2's to 'go really fast' ?
filur
S2 licensed
Quote from Scawen :/echo X [ makes message X appear on local computer screen ]

Yay!
Any possibility of a local version of /rcm? overridden by remote obviously.
filur
S2 licensed
Well, i failed, and google failed. Maybe i switched to the stream_ function set even earlier. To me, it seems the socket extension for php4 simply isn't finished, and with things being so incredibly simple in php5, it's absolutely not worth the hassle.

So, switch to php5 or install a separate cli-only php5 to use for this, because while there might be a magic trick to get it somewhat working under php4, comparing the amount of work involved under php4 to the amount of work under php5, using php4 seems like a really bad idea. Even if you're trying to run it under a webserver where you for some reason really don't want to switch php versions--and wan't short bursts of data off insim, running an exec or system call to a php5-cli would be less work, and you'd have the output in php4 thru stdout.

I do know for sure that i've been playing with sockets in php4, probably TCP, and had those non-blocking errors, another problem completely solved by php5.
filur
S2 licensed
Quote from St4Lk3R :Were you able to receive messages from insim?

I was able to send and receive, but i could not in any way manage to get the socket functions in php4 and the socket dll/so to work non-blocking, meaning any read or write operation would halt the entire script until it was finished.

You really should move to php5, php6 is already on it's way, but i'll try writing something short for php4, hang on.
filur
S2 licensed
Quote from racemania :the big problem for me is that i cant seem to figure out what im doing wrong.

My guess is you're trying to achieve this without any form of server-side scripting/cgi (php/asp etc.)

Result: you can't, all the code/snippets posted in this thread deals with fetching statistics and info from lfsworld using a server-side scripting language such as PHP or ASP, HTML is used to present the information, not gather it.

Solution: find out if your web host offers any server-side script support, if you're running your own web server, find out how to offer it yourself.
filur
S2 licensed
Haven't read or tried the class yet, but iirc you should get some kind of console output from LFS even if you're not sending the right stuff.
Packet received before ISI packet, Admin password doesnt match, unknown packet (x bytes).

And a successfull InSimInit should of course render ..
InSimInit: port x

filur
S2 licensed
Quote from wheel4hummer :There is like no documentation or tutorials?

As for programming, there's nothing special about Insim, your tutorials would be about basic networking and dealing with binary data.
FGED GREDG RDFGDR GSFDG