MP Spectator Web Overlay

Discussion in 'Community Workshop' started by mape, Jul 7, 2015.

Thread Status:
Not open for further replies.
  1. ::SKRO::

    ::SKRO:: Well-Known Member

    Joined:
    Jan 29, 2015
    Ratings:
    +972 / 0 / -0
    1:45 > ...and the engine flies away. Gone with the wind.
     
    • Like Like x 1
  2. shardshunt

    shardshunt Well-Known Member

    Joined:
    Jan 29, 2015
    Ratings:
    +490 / 0 / -0
    yeah Im sure they will change this eventually
     
    • Like Like x 2
  3. Karl360x

    Karl360x Member

    Joined:
    Jul 25, 2015
    Ratings:
    +19 / 0 / -0
    Hey,
    first off all, I love the Broadcast overlay. Its just perfect. But I have one question.
    May it be able to use this overlay also on replayfiles? Is it able to implementate that?
    Thanks :)
     
  4. shardshunt

    shardshunt Well-Known Member

    Joined:
    Jan 29, 2015
    Ratings:
    +490 / 0 / -0
     
    • Like Like x 2
  5. mape

    mape KW Studios Developer Beta tester

    Joined:
    Jan 14, 2015
    Ratings:
    +132 / 0 / -0
    New update attached.
    • Added the ability to dump all data into a JSON file by pressing "d" for debugging.
    • Fixed some jerkiness in current standings (still some issues though with game sending strange data when people leave/join/lag).
    • Hopefully fixed the global delta issue, can't be 100% sure as it was hard to reproduce.
    • Added some fallback to track map overlay if it fails to load SVG. Also added start/finish line and a darkened background.
    • On the controller track map a "speed trap" was added
    • Added hotkeys to change cameras, pressing 1-5 will trigger the corresponding cameras: 1=nosecam, 2=cockpit, 3=swingman, 4=onboard, 5=trackside
    • Added some locks to socket.io server so only one person can click around at the same time.

    We also tested having multiple people connected to the same server, so 2 or more broadcasters point both their game clients to one server so they can see the same view. This seems to work fine (used in last Virtual DTM Championship stream) but that meant having to disable auto hide of driver info when activating "compare next car" so that has to be done manually now.

    e6b712269c651efca0d5a171c7d8f183.jpg Screen Shot 2015-07-30 at 10.17.09.png
     

    Attached Files:

    • Like Like x 5
  6. shardshunt

    shardshunt Well-Known Member

    Joined:
    Jan 29, 2015
    Ratings:
    +490 / 0 / -0
    for the replay implementation (long term) I think it should be possible to create action replays while the race is being broadcast then the ability ton play them back during the broadcast would make much better streams and could make r3e very popular with leagues. the biggest thing that tends to make iracing streams look unprofessional and choppy is the very long screens they display while finding the point in the race that a incident happened. ideally a tool powerful enough to create a highlights reel during the race would mean much more professional easy to watch races.
     
  7. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    Is there any documentation how i can adjust the overlay?
     
  8. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    little adjustments make that overlay more sexy ;)
     

    Attached Files:

    • Like Like x 1
    Last edited: Aug 12, 2015
  9. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    Some DTM92 impressions with adjusted overlay.
     

    Attached Files:

    • Like Like x 1
  10. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    I have created a dedicated server named "spectator overlay test", feel free to join. Im testing live the overlay. i hope some players join ;)

    thanks mates.

    When the overlay is ready i will post the adjusted code.
     
  11. Flavourlicious

    Flavourlicious Well-Known Member

    Joined:
    Mar 31, 2015
    Ratings:
    +148 / 0 / -0
    @Tarik Userli Ooh offline now. I'm ready to do some random laps as long as it's is not Paul Ricard, Shanghai or Salzburgring as I don't have those tracks. :p

    Lol nevermind I was blind! :p
     
    • Winner Winner x 1
  12. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
  13. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    I need one more to edit the compare module ;)
     
  14. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    Here are the 1st code:
    put it in:
    spectator\assets\components\widgets\focusedDriver\focusedDriver.generic.less

    Code:
    .driverInfoFocusedDriverGeneric()  {
        text-align: center;
        font-family: Oswald;
        color: #fff;
        .onCreation(-webkit-transform, translate(0, 120px), translate(0, 0), 0.5s);
        .inner {
            height: 65px;
            display: inline-block;
            position: relative;
        }
        .extra-info {
            position: absolute;
            top: 90%;
            left: 125px;
            z-index: -1;
            margin-top: -0px;
            font-family: Hel;
            ul {
                margin: 0;
                padding: 0;
                li {
                    font-size: 20px;
                    float: left;
                    background: #000;
                    padding: 7px 10px;
                    margin-right: 10px;
                    .gradient(#fff, lighten(#000, 20%), lighten(#000, 10%));
                    border-radius: 0 0 10px 10px;
                    color: #fff;
                    height: 20px;
                    position: relative;
                    top: -42px;
                    -webkit-transition: top 0.5s;
                    &.active {
                        top: 0;
                    }
                    &.finished {
                        color: rgba(255, 255, 255, 1);
    
                        &.personal-best {
                            color: #00ff00;
                        }
                        &.global-best {
                            color: #f500f5;
                        }
                    }
                }
            }
        }
        .best-time {
            font-size: 18px;
            background: #000;
            padding: 10px 10px;
            margin-right: 10px;
            .gradient(#fff, lighten(#000, 20%), lighten(#000, 10%));
            border-radius: 10px 10px 0 0;
            color: rgba(255, 255, 255, 0.5);
            height: 35px;
            font-family: Hel;
            z-index: 2;
            margin-bottom: -5px;
            position: absolute;
            color: #00ff00;
            right: 51px;
            bottom: 100%;
            -webkit-transition: top 0.5s;
        }
        .position, .name, .manufacturer, .flag-container {
            background: url(/focusedDriver/generic/bg.png);
            vertical-align: top;
            display: inline-block;
            height: 60px;
            line-height: 75px;
        }
        .position {
            width: 65px;
            font-size: 30px;
            text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
            text-align: center;
            padding-left: 10px;
            line-height: 65px;
            &:after {
                content: '.';
            }
        }
        .name {
            background: url(/focusedDriver/generic/name-repeat.png);
            font-size: 30px;
            padding: 0 25px;
            min-width: 370px;
            color: #ffd700;
            line-height: 70px;
        }
        .manufacturer {
            background-position: -442px 0;
            width: 82px;
            position: relative;
            img {
                position: absolute;
                top: 12px;
                left: 25px;
                height: 40px;
            }
        }
        .flag-container {
            width: 55px;
            height: 55px;
            background-position: -55px 0;
            position: relative;
            .flag {
                width: 61px;
                height: 55px;
                background: #000;
                position: absolute;
                top: 5px;
                left: 0px;
            }
            &:after {
                display: block;
                content: '';
                width: 55px;
                height: 55px;
                background: #000;
                position: absolute;
                top: 5px;
                left: 0px;
                background: url(/focusedDriver/generic/bg.png) no-repeat -66px -5px;
            }
        }
    }
    .generic .focused-driver-info {
        .driverInfoFocusedDriverGeneric;
        position: fixed;
        bottom: 55px;
        left: 0;
        right: 0;
    }
     

    Attached Files:

  15. Flavourlicious

    Flavourlicious Well-Known Member

    Joined:
    Mar 31, 2015
    Ratings:
    +148 / 0 / -0
    Maybe some GT action on another track? :)
     
  16. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    ok, tell me what u want ;)
     
  17. Flavourlicious

    Flavourlicious Well-Known Member

    Joined:
    Mar 31, 2015
    Ratings:
    +148 / 0 / -0
    ADAC GT on SPA! lol :p

    But ADAC GT on Suzuka is a combo I've never really tried out so that would be fun. Maybe longer quali so people can see the server and join in. :)
     
  18. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
  19. Flavourlicious

    Flavourlicious Well-Known Member

    Joined:
    Mar 31, 2015
    Ratings:
    +148 / 0 / -0
    Joined, will be driving in a few minutes.
     
  20. Tarik Userli

    Tarik Userli Well-Known Member

    Joined:
    Mar 7, 2015
    Ratings:
    +578 / 0 / -0
    ok but i need to go in 30 mins :( Dedicated server still online.

    This GT Cars looks awesome <3
     
    Last edited: Aug 13, 2015
Thread Status:
Not open for further replies.