LOL. I had similar questions, the only difference being that I went to an LFS server while Filur and Dygear were online to ask them, so that no trace or evidence of my noobness was left on the forums
If you want to webcast to LFS players then you can (should) try the php application that Filur made, as it's functional already (and you'd have to stream audio commentary separately). If the viewers don't have LFS installed then I guess you will have to stick to streaming video itself.
Filur, could you please post some documentation? I am confused on how to use your PHP scripts. The LFSTV mpr is always late. I have one LFS open with the server, and another LFS open playing the mpr. THe one playing the mpr is delayed by a fairly long time. Do I start the server, join a MP server in LFS, start the client app, open another LFS, play the LFSTV MPR in the client app. Like that?
There's not really that much to document, the source isn't meant to be a finished program and i wouldn't know what else to add besides the comments in the configuration files.
The streamed mpr is always late, you can fast forward until you're about 20-30 seconds behind but any closer then that the replay will probably stop. The mpr isn't constantly written to by LFS and thus it's not constantly streamed either, it depends on the amount of action in the race, amount of racers, etc.
First: Do you sort of "cut" the replay so the watcher gets a (of course delayed, but "live") replay or does the Relay host simply send the whole replay to the client from the start of recording?
Second is about the first known problem,
This could be solved using an insim connection with flag "ISF_RACE_TRACKING" and a watching for NCN-Packets, couldn't it?
At the moment i cut the replay, so the watcher has only 1-30sec delay.
But in a further version i will implement a choise how the watcher want the replay. (whole replay or cuttet replay version)
About the problem, i have an idea how it could work, but i need some time to test it. Perhaps next weekend.
i got some problems first it worked (means connected and recieved mpr header)
then i tried to connect on another server and he just said connected and did nothin
so i tried again on the server who worked before with the same result
then deleted the lfstv.mpr the prog generates and it worked again one time,
but atm he just says connected and dosnt do anything anymore no matter if i del lfstv.mpr or not
edit2: now it did work again on a different server, seems a bit random to me ^^
now one server works (without deletin the lfstv.mpr) and one dosnt could be also server side problem then
WOWZ0RZ :bowdown: :elefant: :drink:
Thanks A LOT, this is great!
edit: I'm getting similar problems as described above. Also, I've got a question: what happens if there are no racers on track? Is any replay data sent then?
you should give the LFS-TV client a few seconds (half a minute should be OK) to write the replay file ahead. This is because LFS does some sort of read-ahead when reading replay files, and the caster LFS also caches the replay data a bit before writing it to the temporary MPR file (and it of course can only be broadcasted if the data is in the file).
Tried it again:
Program just sits there with connected message..it sits there for 5 minuts now and i have no "Received a replay header" message...maczo told me that it's not working for him either now.
Earlier when i tried, the message appeared and i was able to watch the replay for couple secs..
EDIT:
there's a new version on that link..working perfectly for me..i just casted some demo action and beside 30-40 secs delay there were no problems. Great work.