Skip to content

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

License

Notifications You must be signed in to change notification settings

davue/ParadoxSpeedSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.