[REL] Tv Plugin

Discussion in 'Other' started by Gerald Jacobson, May 12, 2014.

  1. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    No it is not pissible to have this kind of info for other players.
     
  2. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    TV Console v2.1.0.0 available

    - Allow access via HTTP to the console (By starting a self made tiny webserver) : this, will allows people to use mobile/pc device to control the Console, and allow several remote people (broadcasters) to command the console.

    NOTES:
    - The Web HMI is awfull. I don't want to spent time on that, so if someone want to enhance the web HMI, i will be very happy.
    - I created a C# Server Page (CSP) inspired from Java Server Page (JSP). So i use it to build html/json page using C#. It use "<#" instead of "<%". All C# code is executed at server side. (the CSP engine will parse file with ".csp" and ".json" extension)
    ... <# string str = ""; #> // a C# code line
    ... <#=str#> // echo str to the output stream

    Here the code snipped used to build the "Event List" HTML combobox.
    Code:
    <select id="eventType" onchange="refreshList()">
    <# string[] list = Program.EventTypeList;
    for (int i = 0; i < list.Length; i++) { #>
    <option><#=list[i]#></option>
    <# } #>
    </select>
    
    Here the extract of the read me who describe exposed objects of the console
    Code:
    Program.CameraList
    -> return an array of string of camera types.
    
    Program.WidgetList
    -> return an array of string of Widgets.
    
    Program.EventTypeList
    -> return an array of string of event filters.
    
    Program.DriverList
    -> return a System.Collection.Generic.List<GRTVPluginConsole.Entity.DriverRank> : list of drivers
    
    Program.GetEventList()
    -> return a System.Collection.Generic.List<GRTVPluginConsole.Entity.Event> : list of current noticable event
    
    
    Here the structure of :
    
    GRTVPluginConsole.Entity.DriverRank
     - int slotId : rF2 slotId (driver identifier)
     - int place : place (1 based)
     - string name : driver name
     - byte finishStatus : rF2 finish status
     - bool isInPit : is in pit
     - string getStatus() : return a string representation of finishStatus byte
    
    GRTVPluginConsole.Entity.Event
    public double overtakeET;
     - int slotId : driver of the event
     - string uuid : event identifier;
     - string ToString() : string representation of the event
    
     
    Last edited by a moderator: Jun 27, 2014
  3. Ricardo F. Edelmann

    Ricardo F. Edelmann Registered

    Joined:
    Jun 5, 2014
    Messages:
    39
    Likes Received:
    0
    Thank you for this update again Gerald!

    But i have 2 questions:

    First:
    How am i able to access via HTTP? i don't know how that works...

    Second:

    Is it possible to view the realtime Scrollingbanner while in a replay? i think it would look a bit better then just showing the REPLAY logo.


    Cheers
    Rico
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    1) In the TV console, choose an unsued listening port, and click on the start button.
    2) Then you can connect in http, using classical URL via a Web Browser:
    Code:
    http://ipaddress:port/
    - If you want to allow people, who are not in your Local Network, you should need to configure your firewall/NAT



    Ok i will add a parameter in the widget to tell if it is displayed in replay or not.
     
    Last edited by a moderator: Jun 28, 2014
  5. Ricardo F. Edelmann

    Ricardo F. Edelmann Registered

    Joined:
    Jun 5, 2014
    Messages:
    39
    Likes Received:
    0
  6. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    cool, thanks.

    Plugin 2.1.0 available

    - add the possibility to display the Scrolling Banner Widget also during an event replay

    Code:
    [Scrolling Banner]
    // set to 1 to display the scrolling banner in replay
    displayedInReplay=0
    
    EDIT
    Console v2.1.0.1 available
    - fix height size of the Driver table (button was hidden)
     
    Last edited by a moderator: Jun 28, 2014
  7. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    Plugin v2.1.1 available

    - Fix the following bug
    During the Broadcast pointed by "Ricardo F. Edelmann", i see a bug on the CuttingLineGap widget. Indeed the widget stay displayed waiting the next car to cut, even if all next car are DNF/DQ...

    EDIT: Console v2.1.0.2 available
    -Fix bug of when replaying an event from Web interface (camera type was not correctly parsed)

    ------------ Need Advice -----------
    During this broadcast, i see that even if the race is a single Category race (ex: GT3), The category have been used to display several colors (red=ferrari, black=Audi, etc...), but as the Category name is also different (used in display), the Plugin group each category (ferrari together, Audi together,....) .
    So, several behavior focused on each category, will be bad adapted to those kind of usage.

    Two possibilities :
    - In the vehicleClass.ini file, use the same name for cars in a same category (GT3 Ferrari and GT3 Audi should have the same name, ex: GT3) -> Drawback you can't display a Ferrari, Audi as label of category sticker.
    - I add a new field in the vehicleClass.ini, named "category.group.name", and now the car will be grouped using this and no more using "category.name". If "category.group.name" is not set, i autofill it with "category.name"

    What do you think ?
     
    Last edited by a moderator: Jun 29, 2014
  8. Ricardo F. Edelmann

    Ricardo F. Edelmann Registered

    Joined:
    Jun 5, 2014
    Messages:
    39
    Likes Received:
    0
    if i understood that right it sounds really good. atm i would have to change the vehiculeclass ini if it is like this i wouldn't have to :) so i'd really like it! btw. i registered some weird behavior from the console when there are many events... sometims its falshing and you cant click. sometimes it crashes. and the Drivers don't show up correctly sometimes. it's like sometimes there is the same driver listed 4 times or the list from 1-20 and then there is a big gap and somewhere on the bottom there is for example 204

    and sometimes the replays don't work. i have to go to replay manually with "R" then i can review the replay and go back live. til now it was just randomly.

    Cheers
    Rico
     
  9. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    Plugin 2.2.0 & Console 2.2.0.0 available

    Console
    - Fix bug in console display empty line gap in the driver list (need Plugin 2.2.0+) (bug reported by Ricardo F. Edelmann)

    Plugin
    - Add a new category information named "category.group" in the "vehicleClass.ini" mapping file. If not set, it will be equals to "category.name". Now the plugin use "category.group" to segregate cars in category (instead of the category.name who is now only used for displayed).
    So now, for example it is possible to use category sticker color for each menufacturer (ferrari, audi,...) but group those cars in a single category (ex:GT3) for laptime comparaison, best lap info, etc...

    --------------------------------
    For 1) : ok i will try to reproduce it (when you have crash, if possible, please send me the full error message)
    For 2) : have you set your F2 replay duration to its maximum ? (3mn) <- rF2 configuration
     
  10. Ricardo F. Edelmann

    Ricardo F. Edelmann Registered

    Joined:
    Jun 5, 2014
    Messages:
    39
    Likes Received:
    0
    For 1: there were no errormessages unfortunately :( It just closed itself.

    For 2: Yes, i have set my rF2 Replay lenght to 180 seconds.
     
  11. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
  12. SPASKIS

    SPASKIS Registered

    Joined:
    Sep 7, 2011
    Messages:
    3,155
    Likes Received:
    1,420
    Gerald I can confirm that since I uninstalled your plugin in B660 I am able to restore from desktop. I would also say that I stopped having the connection lost problem the first time I joined the server. I wonder also if the same stability I saw with B767 is for not having plugins installed...
    I will do some testing in this way and report here.
     
  13. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    Unfortunatly, until now, i cannot reproduce any bug in my tests. So if anyone can send me crash message (when exists) or a way to reproduce, i will be happy to fix issues.
     
  14. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
  15. Nazirull Safry Paijo

    Nazirull Safry Paijo Registered

    Joined:
    May 28, 2011
    Messages:
    1,417
    Likes Received:
    35
    Hi. This is an osum plugin. However was trying doing a livestreaming of a race, there is a quite a considerable spiking in the latency, like the RD livestream. Any fix?
     
  16. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    Nobody else reported that.

    Is any other user encounting the same issue?
     
  17. Ricardo F. Edelmann

    Ricardo F. Edelmann Registered

    Joined:
    Jun 5, 2014
    Messages:
    39
    Likes Received:
    0
    The plugin has no impact on the latency for me. It's just rFactor that spikes sometimes. some drivers reported that that happened through the races. We don't know if it was the server or the drivers.
     
  18. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    28
    I finally got around to downloading the latest plugin and working on our overlays. I am working on the scrolling banner right now and was curious if there was a way to change the justification of the text. Right now it is all centering so stuff doesn't line up. Maybe this is already possible and I am missing something.

    Here is what I have so far but it looks messy:
    [​IMG]

    Edit: Nevermind, I figured it out: text.alignment=0
     
    Last edited by a moderator: Jul 10, 2014
  19. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    11
    Hi Noel.

    Yes, you can already do that using the "text.alignment" property with the possible values : 0=left, 1=center, 2=right (optional =>1)
     
  20. Nazirull Safry Paijo

    Nazirull Safry Paijo Registered

    Joined:
    May 28, 2011
    Messages:
    1,417
    Likes Received:
    35
    Maybe its just my connection. I was watching the recorded live streaming and didnt really come across it anymore :)
     

Share This Page