GNL.tv

GNL.tv is an open source racecast system for Papyrus Nascar Racing 2003. It allows thousands of people to watch a NR2003 race live on the internet. This is the first step to providing the online racing community a true live experience watching other racers competing in their leagues.

GNL.tv standings screen

A small server application connects to a NR2003 installation on the same computer and collects standings data and all car positions during the race. A PHP based webpage connects to the server application and displays the results. There is also a java applet that displays the car positions on a track map.

Originally developed for the german Virtual Racing e.V. league, GNL.tv has now been released as open source software. The goal behind this step is to provide a solid framework for building a sophisticated TV application with the help of the racing community that addresses all requirements for a unique watching experience.

GNL.tv Racecast applet

GNL.tv features:

  • Very streamlined server with no impact on the performance of the hosting system
  • Server may monitor a dedicated NR2003 server or run on a NR2003 client connecting to a dedicated server
  • Communication with GNL.tv server is done via standardized XmlRpc interface
  • Car Position updates are distributed using a custom streaming protocol
  • Compressed communication leads to very low network bandwidth requirements
  • Services up to thousands of viewers by caching the standing results and using proxy servers to distribute the load
  • Easy to setup
  • Works with all addon tracks

Running GNL.tv with PHP5

Please take a look at my blog entry to read how to enable PHP5 support in GNL.tv.

Downloads

For installation instructions, please consult the included readme-files. All files are released under the GPL license.

Download GNL.tv Version 1.4 (latest version)

Download GNL.tv Version 1.4 Source (source code for latest version)

GNL.tv uses the SVG file format to render track overviews. You can create these SVG files automatically based on the NR2003 track files with the utility PtfConverter. You only need this utility if you plan to convert new tracks yourself.

Download PtfConverter Version 1.0 (latest version)

Download PtfConverter Version 1.0 Source (source code for latest version)

138 thoughts on “GNL.tv

  1. Hello

    The problem is that started places are not displayed on the page racestats.php when a race is on…

  2. Hiya Peter.
    Wondering if you have a sec to explain how to have the tracks and session shown on the marquee? I’ve seen some sites where the marquee will read the what track is loaded along with how many laps they are into it.
    I’ve been looking into the gnltv.inc.php and the marqueestats.php to see what lines are needed to be added. Nothing I’m trying is working.
    Is this something you can help me on?
    Thanks in advance.

    Duck

  3. You need to add the following line to marquestats before the line for ($i = 0; $i < $size; $i++) {:

    $content .= getTrackName();

    Take a lookat all the methods in gnltv.inc.php. There is a method for each kind of information you get from the server.

  4. Wow! Now that’s a quick response and thanks! That did it. =) Another question.. LOL in regards to the same thing. Without the track actually being loaded, is there a way to show what track is selected? Thinking for those who see the site, they know what the server is prepared for.

  5. It can only display the currently loaded track. It is not possible to detect which track is selected ingame when the event has not been started.

  6. GNLtv is still used by various leagues. The installation instructions are included in a readme file. There are also a lot of installation hints in the comments on this web page.

  7. hey i would like some help meand other admins at my league could not figure how we can get this GNL TV to work…We race race by IP

    email me bcracing02@hotmail.com with some directions or even some tip how to get this to work thank you

  8. Peter,

    Thank you for a fantastic program in GNL.tv. We use the leaderboard at our racing league in conjunction with live online broadcasts; it’s very popular!

    Have you created or released any other NR2003 programs or tools?

    Regards,
    Steve Luvender
    VidaneRacing.com

  9. is there a switch or something that I can use to make gnltv work with the nr2005 mod? currently it only works with 2003

  10. Hi Peter!

    Congratulations by the GNLtv. It’s really a fantastic tool for NR2003.

    I need your help to solve the issue below.

    How Mathias sad in this comment page, the option Started in racestats.php isn’t working.

    I see on gnltv.inc.php in line 237, this function responsible to get the Qualy position…

    function getQualiPosition($standings) {
    if ($standings["started"] != -1) {
    return “$standings[started]“;
    } else {
    return “ ”;
    }
    }

    So, For me the code it’s ok, but I try a lot of changes in the code
    and I can’t solve this.

    In top of this page, I see that the picture of GNLtv doesn’t have this collumm “Started”.

    Can you help me?

    Best Regards!

    Fabricio Silveira
    msn:fabricio.fapa@bol.com.br

  11. ohhhhh, I made a mistake…

    There is the collum Started in the picture on the top of this page, but for me it is another order, in 3rd collum :D

    But, I wait by your comment about my issue.

    Thanks again

    Fabricio Silveira

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">