TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 8 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]


Scraps v0.5.6.1

Changelog


0.5.6.1 - Revamped the code that shows other player's vehicles in multiplayer. Their movement is now smoother, while not being any more delayed - Much improved vehicle collisions between laggy players as well. No more flying across the map! - Reduced some unnecessary network traffic - Added option to have a radar in melee games - Minor GUI adjustments Bug Fixes: - Hover effect no longer shows on Melee mode button while an overlay is up - Fixed real-time shadows not matching up with baked shadows at low graphics settings on the Test Map - Fixed a timing bug on joining multiplayer games that could get you disconnected with a vehicle build error

Radar in Melee games


I said in a previous update that I wouldn't add the radar I designed for Gauntlet mode into melee mode, because you should be able to hide from other players. But I figured it may as well be a custom option. Tick it at the lobby to enable it for everyone in the game (except AI - they still need line-of-sight to see you).

No more inadvertently flying across the map


This week I managed to fix an issue that's been plaguing Scraps multiplayer since it was first released, and that I actually I thought might be impossible to fix. Something that might not seem very important at the moment while Internet multiplayer is quiet, but still a relief to conquer. Scraps has always had an issue where sometimes, if you collided with another player and the latency between you was high, you could end up flying across the map. Like at 1:43 in this video where I'm playing from New Zealand on a US-based server: https://www.youtube.com/watch?v=ZGKtSYu71t0 It was... "fun", sometimes, with quotes as necessary around "fun". It was definitely not how things should work, particularly since you could end up taking mega collision damage as well. To set the scene:
  • In Scraps, each client PC is in charge of the physics for their own vehicle.
  • The server also runs its own physics, but for movement it's just checking what the client said (for most other things it's the authority).
  • Other vehicles you see are sending you their positions - they're not running their own movement physics on your machine.
  • Having said that, they still need collision boxes and momentum so that you can collide with them.
So each vehicle is doing their movement physics on their own machine, and getting sent the positions of everyone else. Since the "fly across the map" problem got worse as your latency got worse, I theorised that the problem was as follows:
  • 1. You and an enemy vehicle collide.
  • 2. Latency means that although your vehicle bounces back right away, they keep moving forward for a moment because both of you are seeing each other a little in the past, and you're only doing physics locally for yourself.
  • 3. They therefore clip their vehicle's collision boxes into your vehicle further than they should, sending you flying across the map due to the physics engine's repulsion force that tries to keep things apart.
Basically their ghost invades your personal space and your vehicle tries to get away. And that would be potentially impossible to fix. But it turned out that wasn't the problem!

The Real Problem part 1: How games show other players


Let's look at how a game shows other players' positions first.
The above applies to any real-time multiplayer game. You simply cannot know where other players are right now, because there's always some latency between your computers. There are two typical ways to handle this: Extrapolation and Interpolation.
With extrapolation, you say OK they were here half a second ago and going this fast in this direction, so they're probably here now. But extrapolation sucks: In Scraps and especially in FPS games where players can change direction even faster. If players always ran in a straight line at the same speed extrapolation would be great, but it's just a guess and often it turns out to be a bad one -meaning once the next real position update comes through, you'll see things rapidly correct themselves to a new position. So usually interpolation is the way to go, in Scraps and in other games. You show the other player a little in the past (1s in the diagram above is a big exaggeration just for easy numbers. Quake 3 used 0.1s for instance), so that you can have real data on both their past and future positions, and then show a smooth movement between them. No more guessing. There can still be some issues like the "bouncing ball problem", but that's getting picky. Fun fact: Scraps actually dynamically modifies the interpolation delay to compensate for the latency of each player, so I can keep things smooth while also having as little delay on other players as possible. Scraps can also extrapolate a little bit, but only if it has to.

The Real Problem part 2: The real problem


Anyway, that's all fine and good. But in your average FPS game the other players are just a set of colliders that have no actual velocity or momentum. I mean, they "move" around, but it's more like they teleport each frame to a new position. Whereas in Scraps if an enemy vehicle collides with you they should be able to knock your vehicle away - not just keeping you out of their collision boxes but really pushing you with force based on their current velocity. They need to be actual physics objects working with the physics engine, while also just being data fed in from other PCs. Scraps uses a networking library called uLink, and along with uLink came an example script for just this sort of thing. They had an interesting system, and I used the same sort of system for Scraps. It worked like this:
It only looked at the most recent data coming in from the other player, and it set their vehicle up with a velocity that would get it to that point at the right time. Therefore you had a vehicle with real physics that nevertheless always moved exactly where it was told to. But what I noticed last week, and what I should really have thought about in the past, was that unreliable data could cause big velocity variations (of course this is also a lesson in trusting other people's code...). For instance if you didn't get any data from the other player for a bit, their vehicle would keep moving wherever it had been going for a bit and then suddenly have to do a big correction, giving it a big velocity - whether or not it actually had a big velocity on the other player's PC (although really big corrections would just teleport instead, it wasn't that dumb). I noticed that the velocity actually fluctuated all the time, and I wondered why I hadn't just tried doing what a normal FPS would do, but interpolating the velocity as well as the position, like so:
So I did that - and it works really well! Why didn't I try that in the first place? Velocity is now interpolated along with position, rotation etc. The vehicles have real physics but still go where they are told to go, and the flying-across-the-map problem ended up fixed as well. And there's no additional delay in where you see the enemy - the interpolation is set the same amount in the past as it was before. Turns out it must have been velocity fluctuations that were causing it, and what I thought was a problem with higher latency was actually a problem with less reliable connections. You will still see a delay on high-latency connections in the other player getting pushed back in a collision. You hit them, you bounce back, they seem to stay still for a moment, then they bounce back too. That's just because you're only doing physics for yourself, so you're waiting for the new collision to get sent out and then some back to you. The good thing is, everyone gets pushed back the right amount! The bad thing is... no more exciting unplanned flights into orbit?


[ 2016-08-16 06:37:32 CET ] [ Original post ]



Scraps: Modular Vehicle Combat
Moment Studio
  • Developer

  • Moment Studio
  • Publisher

  • 2020-12-18
  • Release

  • Action Indie Singleplayer Multiplayer
  • Tags

  • Game News Posts 61  
    🎹🖱️Keyboard + Mouse
    🕹️ Partial Controller Support
  • Controls

  • Mostly Positive

    (156 reviews)


  • Review Score

  • http://www.scrapsgame.com
  • Website

  • https://store.steampowered.com/app/350150 
  • Steam Store

  • The Game includes VR Support



    Scraps Linux [960.68 M]

  • Public Linux depots

  • Scraps: Modular Vehicle Combat is a vehicle combat game where you build your vehicle from parts, and where success lies just as much in designing a well-crafted vehicle as in your combat skills. Design from the chassis up, then pit your creation against humans or AI in a combat arena. When you take out other players, scavenge from their wreckage to repair or upgrade your own vehicle in-game.

    Scraps lets you create a vehicle that’s great or a vehicle that sucks. Maybe your vehicle falls over when it corners or doesn't have enough power to fire its weapons – that’s okay. Maybe it doesn't need an engine because it moves by firing its cannons backwards. You decide what you drive.

    Your design choices aren't just cosmetic - they're truly functional and at the very least affect the weight and balance of your vehicle. Battle in single-player against the AI, on LAN, or over the Internet. Easily host your own LAN or Internet games. Using the Scraps demo version, your friends can join a LAN game even if they don't own the full game.

    language Note:

    The only complete language at this time is English, but partial in-game translations are selectable for Russian, Danish, Dutch, Norwegian, Romanian, French, and Swedish.
    MINIMAL SETUP
    • OS: Tested on UbuntuGraphics: Radeon HD 6570 / Mobility Radeon HD 5850. Shader model 3.0.Network: Broadband Internet connectionStorage: 1 GB available spaceAdditional Notes: Broadband is only required for Internet play.
    • Graphics: Radeon HD 6570 / Mobility Radeon HD 5850. Shader model 3.0.Network: Broadband Internet connection
    • Storage: 1 GB available spaceAdditional Notes: Broadband is only required for Internet play.
    RECOMMENDED SETUP
    • OS: Tested on UbuntuGraphics: Radeon HD 5750 / Radeon HD 6750MNetwork: Broadband Internet connectionStorage: 1 GB available spaceAdditional Notes: Broadband is only required for Internet play.
    • Graphics: Radeon HD 5750 / Radeon HD 6750MNetwork: Broadband Internet connection
    • Storage: 1 GB available spaceAdditional Notes: Broadband is only required for Internet play.
    GAMEBILLET

    [ 5951 ]

    2.69$ (84%)
    2.00$ (90%)
    23.87$ (20%)
    33.99$ (15%)
    4.95$ (17%)
    11.34$ (62%)
    0.75$ (85%)
    24.87$ (17%)
    3.00$ (80%)
    1.06$ (65%)
    8.29$ (17%)
    12.44$ (17%)
    13.33$ (78%)
    8.25$ (17%)
    4.44$ (78%)
    6.79$ (15%)
    12.74$ (15%)
    3.78$ (68%)
    4.72$ (69%)
    20.65$ (17%)
    4.59$ (8%)
    4.14$ (17%)
    21.24$ (15%)
    13.27$ (17%)
    2.22$ (78%)
    12.42$ (17%)
    6.75$ (55%)
    16.97$ (15%)
    12.95$ (19%)
    5.28$ (74%)
    GAMERSGATE

    [ 1903 ]

    0.48$ (52%)
    0.75$ (85%)
    2.25$ (89%)
    2.93$ (77%)
    2.36$ (66%)
    0.75$ (81%)
    3.0$ (70%)
    3.4$ (83%)
    0.6$ (85%)
    1.13$ (89%)
    0.68$ (89%)
    2.63$ (92%)
    0.68$ (89%)
    0.79$ (74%)
    3.75$ (62%)
    0.53$ (92%)
    3.0$ (92%)
    6.74$ (55%)
    0.6$ (85%)
    2.03$ (86%)
    4.5$ (70%)
    5.63$ (62%)
    7.5$ (70%)
    0.89$ (87%)
    2.25$ (89%)
    1.05$ (85%)
    7.99$ (20%)
    28.68$ (36%)
    5.39$ (55%)
    1.05$ (85%)

    FANATICAL BUNDLES

    Time left:

    3 days, 10 hours, 38 minutes


    Time left:

    26 days, 10 hours, 38 minutes


    Time left:

    8 days, 10 hours, 38 minutes


    Time left:

    39 days, 10 hours, 38 minutes


    Time left:

    45 days, 10 hours, 38 minutes


    HUMBLE BUNDLES

    Time left:

    6 days, 4 hours, 38 minutes


    Time left:

    6 days, 4 hours, 38 minutes


    Time left:

    15 days, 4 hours, 38 minutes

    by buying games/dlcs from affiliate links you are supporting tuxDB
    🔴 LIVE