Giter Site home page Giter Site logo

davue / paradoxspeedsync Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 214 KB

A cross-platform compatible tool to overcome the limitations of the speed controls of Clausewitz Engine games in multiplayer.

License: GNU General Public License v3.0

Java 94.77% CSS 5.23%
paradox-interactive-games paradox hearts-of-iron-4 heartsofiron4 hearts-of-iron-iv crusader-kings-ii crusader-kings-2 crusaderkings stellaris clausewitzengine

paradoxspeedsync's Introduction

ParadoxSpeedSync Jenkins

A cross-platform compatible tool to overcome the limitations of the speed controls of Clausewitz Engine games in multiplayer.

What

In games like Crusader Kings II / III and Hearts of Iron IV, only the host of a multiplayer session is able to control the game speed and I always thought that it would be a nice idea to simply run the game at the speed of the slowest player. That way, you don't have to ask for permission all the time if you want to adjust the game speed.

How

This small overlay keeps track of the desired game speed of each player and then simulates the key presses needed to achieve the slowest speed of all players on the host. The protocol is totally not secure as everything is sent in plaintext over TCP including the server password. So you should not use any passwords you are using anywhere else. But why would you do that anyways?

Usage

When you start the application you first have to setup the key bindings. You can still edit those later by clicking the settings button on top.

The first two are the buttons you will press to change your speed suggestion. If you are not hosting, you can click on Save now.

If you are hosting:

The last two are the keys of the speed controls in-game. On the bottom you can choose one of the Presets used to determine the maximum speed and default speed or choose "Custom" and set your own values.

Then you can either connect to an already running server or host one yourself.
Important: At the moment, the player which hosts the in-game session also has to host the speed sync server.

After connecting, it will look like this:

Your own speed is on top while all other clients are below. A red client shows you that this client is running slower than you.

Download

You can either:

  • Get the latest master build directly from Jenkins.
  • Or get the latest release here from GitHub.

Troubleshooting

  • Make sure that your server is reachable through the given port, you might need to set up port forwarding in your router settings. (Default port: 15188 / TCP)
  • The overlay will not be visible in fullscreen mode. You have to run your game in windowed or borderless windowed mode or move the overlay to another screen.
  • If you're hosting, do not use the in-game speed controls. Only use the speed controls you have set in the overlay settings.

Known Issues

  • Stellaris somehow does not support keybound speed controls in multiplayer, so this will not work until they fix it.
  • LINUX (Tested on Ubuntu 20.04): The global key listener does not seem to work and the text scaling is a bit off.
  • Clients sometimes seem to shadow disconnect (client thinks its still connected while it actually isn't)

Planned Features

  • Different speed agreement strategies

Additional Information

To be able to listen to global key events I used the jnativehook library.

paradoxspeedsync's People

Contributors

davue avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mbeckt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.