ABrandau / Shattered-Paradise-SDK

Shattered Paradise's main repository and installation Kit.
GNU General Public License v3.0
58 stars 9 forks source link

3 second input delay during multiplayer #62

Closed ThomasVinas closed 4 months ago

ThomasVinas commented 4 months ago

Every single input takes 3 seconds to register. This includes building, moving, attacking, and selecting. So you click, wait, and then it does the action. This has only been an issue in the 2024 versions.

dnqbob commented 4 months ago

That is due to order lantency setting used by SP for Jrb server, I think we can solve it later.

dnqbob commented 4 months ago

Fixed by 12af1b9f2fd281e23a7e443e72ba6b92c869dfa0.

And wait, if you are Windows platform or you can enter the game directory, you can fix this bug by yourself.

Open [game directory]/mods/sp/mod.yaml, find following lines:

        slower:
            Name: options-game-speed.slower
            Timestep: 50
            OrderLatency: 15
        default:
            Name: options-game-speed.normal
            Timestep: 40
            OrderLatency: 15
        faster:
            Name: options-game-speed.faster
            Timestep: 30
            OrderLatency: 15
        fastest:
            Name: options-game-speed.fastest
            Timestep: 20
            OrderLatency: 18
        simulationspeed:
            Name: options-game-speed.ludicrous
            Timestep: 1
            OrderLatency: 30

Then change the OrderLatency to:

        slower:
            ...
            OrderLatency:  3
        default:
            ...
            OrderLatency:  3
        faster:
            ...
            OrderLatency:  4 
        fastest:
            ...
            OrderLatency:  5 

OK, you will not encounter the bug when the game room is created by you. This change won't make the game desync.

ThomasVinas commented 4 months ago

That absolutely fixes it! Thank you!