The online racing simulator
Searching in All forums
(986 results)
filur
S2 licensed
Fraps'd!
filur
S2 licensed
Quote from mkinnov8 :@filur - The Video you posted above, done with fraps... How'd you get things so smooth looking, is it simply just a powerful pc, or have you done something to the video?
  • LFS at .125 speed
  • Fraps at 10 fps
  • 300% speed in Premiere with frame blending
  • VirtualDub cropped, compressed and bumped fps to 40.
filur
S2 licensed
Quote from The Very End :You are not going to pass that limit, IF YOU don`t have the auto skin downloader on.. ..but you can try to turn of automatically skin download in options, if you are affraight to cross it

Skins aren't really that big a deal, are they?

My skins_x since patch s/t/u has 1002 files, ~64mb, so if your average skin weighs in around 65kb, that'll be about 16,000 skins to reach 1 gb.
filur
S2 licensed
How about this one? -> YouTube
filur
S2 licensed
Less work to let your dad google a bit for network security.
filur
S2 licensed
Hello.
filur
S2 licensed
Only some of the (older) socket functions are in the extension, the newer stream_ functions are built in (compile opt on linux?) as of PHP 5.
filur
S2 licensed
Quote from Spudster :filefront is very good

Filefront has never managed to make use of more then 5% of my downstream capacity, so i'd say they're not very good.
filur
S2 licensed
stream_socket stuff is PHP 5, which i think i've already mentioned.

stream_socket_server()

Quote from php.net :stream_socket_server

(PHP 5)
stream_socket_server -- Create an Internet or Unix domain server socket

filur
S2 licensed
Quote from Jakg :I would like to distribute 1.84 Gb's worth of files on a cd, so i zipped it with WinRAR, after that it was 1.83 Gb! What do you recomend i use for the task? If it helps they are all exe's (office 2007)

You can't magically compress data, if there's 1.83gb of unique data, any form of lossless compression will result in an 1.83gb file. If the exe's you're trying to compress are installation files, they're probably already compressed.

7-zip is very good for compressing multiple files with very similar contents, other then that it's pretty much the same, a bit more aggressive compression at the cost of alot longer time to compress.
filur
S2 licensed
Quote from St4Lk3R :what pack-type should I use when I want to pack/unpack an int value?.. ..(I assume the server ignores bad-encoded packages, because I do not get any answer on my listening socket).

Use i to pack/unpack an int, the server does not ignore bad packets if you don't tell it to ignore packet warnings: ..
#define ISF_NO_WARNINGS 8 // bit 3 : turns off packet warnings

.. but it only displays the warning in the server console, it doesn't send anything.
filur
S2 licensed
Really good.
filur
S2 licensed
Quote from Guber-X :okay... so how do i run the script.. haha, dont think ive ever used PHP for application wise...


c:\windows\php>php -f myfile.php

gruber@linux:~/php$ php -f myfile.php

PHP: Using PHP from the command line.
filur
S2 licensed
Quote from Guber-X :i get a time out error

set_time_limit()
Quote :If seconds is set to zero, no time limit is imposed.

Don't run a neverending script under a webserver.
filur
S2 licensed
Quote from Noxi :I use Putty to log on to the server, but when I have started LFSLapper and closes Putty I also close LFSLapper?

Screen
filur
S2 licensed

<?php 
php
   
/**
   * insim_mst()
   *
   * @param string Destination IP.
   * @param int Destination port.
   * @param int Source port.
   * @param string Admin password.
   * @param string MST message.
   */
  
function insim_mst($ip$port$fromport$admin$msg) {
    
$socket fsockopen("udp://" $ip$port);
    
fwrite($socket"ISI\0" pack("Scc"$fromport00) . str_pad($admin16"\0"));
    
fwrite($socket"MST\0" str_pad(substr($msg064), 64"\0"));
    
fwrite($socket"ISC\0" pack("i"0));
    
fclose($socket);
  }
  
insim_mst("127.0.0.1""29999""30000""adminpass""/welcome=file.txt");
?>

A bit of dibloink i guess, maybe some flibble too, but it does work.
filur
S2 licensed
Quote from SamH :Any advice/guidance would be greatly appreciated!

Install PHP.
filur
S2 licensed
After you press calibrate, turn the wheel lock-to-lock several times and push the pedals from fully off to fully on several times.
filur
S2 licensed
Great.
filur
S2 licensed
Quote from St4Lk3R :... I incremented it after trying to open a listening socket and when the "listener" is at port 30000, LFS will send replys to port 30001 and so on. thanks all for your help anyway.

I don't get it, did you stop incrementing it or did you get it working with the exact port you specified? Because LFS will respond to the exact port as sent in the packet.

Quote from Dygear :I hope so, I'm making quite a few plugins for it.

Dumped my code already?

J/k, i think you're confusing St4Lk3R's class with my stuff.
filur
S2 licensed
You might have to accept the connection or something, i moved to PHP 5 rather quickly when i started writing insim stuff.

Check out socket_accept()
filur
S2 licensed
Quote from St4Lk3R :It is a dedicated box for me alone, but why shouldn't I run this under apache?

Because it has nothing to do with webserving, talking to insim is not a 1-second-operation thing - you want the script to run for hours.

You'd probably want a console for printing debug messages, you'd probaby want to be able to stop a script without having to wait for apache to finally kill the thread after x amount of time, etc.
filur
S2 licensed
Quote from Dygear :No middle man needed.

.. equals no username / license check.
filur
S2 licensed
Quote from St4Lk3R :I have a confixx-Installation on my Rootserver and can not setup a php5-package for this purpose because php is running as an apache module and not as CGI-version.

Which is kind of exactly why you should install a separate setup for this, you really don't want to run this under apache.
FGED GREDG RDFGDR GSFDG