16
Mods & Development / Re: Improving Warlat
« on: November 14, 2019, 11:12:32 AM »
@Lambchops
Can you modify your plugin so that on init it does nothing, but rather on create game/join game it checks if game has for example "#L1" through "#L255" at the end (is that the max?), then for example if game name ends in "#L3" it sets the latency value to 3, if game name does not contain the special code then it resets the latency back to default. So this way you'd be able to play game with special latency, then join another game with normal latency and it would work on both. Also, when you create/join game with the code on it, make it say the message "Latency patch enabled!" to everyone in the lobby screen before game starts. So if someone doesn't say the message, we know we should kick this person for not having the patch so that the game works. You could do that with simulated keystrokes perhaps, I suppose it should be easy.
So for example join "old ef#L4" --> latency value is auto set to 4. After that join "nwtr" --> latency patch is disabled.
And could you also make it turn the Warlat "extra low" latency setting on automatically in all games so user doesn't need to go to menu? Both regular Warlat and this new patch can be combined for better effects (just tried, it works).
Lambchops, if you're gonna do it, please say so now, if you don't, then I might develop a program which does it myself. I'm just saying this so we can coordinate better.
Additional idea: Enable only if it detects everyone has said the message so it means everyone has it? Also, commands in lobby screen like "!lat 3" so you can change it depending on lag (latency bars? time it takes to change from Orc to Human?) or "!lat off" to disable the patch. Another advantage is you'd be able to turn it on if you see everyone has it, so you don't need to create a special game with limited player pool, but rather everyone joins your game and then you turn on if everyone has it. Maybe even in game commands to change while in game?
@fois
@Lambchops
What do you think about the ping idea? Doable with modifying wsock32 or if iL supplies us with IP addresses from PHP script?
@iL
Once patch development finishes so that it does what I stated above, are you putting it in new War2Combat? And could you make everyone auto update to new War2Combat by PVPGN?
Can you modify your plugin so that on init it does nothing, but rather on create game/join game it checks if game has for example "#L1" through "#L255" at the end (is that the max?), then for example if game name ends in "#L3" it sets the latency value to 3, if game name does not contain the special code then it resets the latency back to default. So this way you'd be able to play game with special latency, then join another game with normal latency and it would work on both. Also, when you create/join game with the code on it, make it say the message "Latency patch enabled!" to everyone in the lobby screen before game starts. So if someone doesn't say the message, we know we should kick this person for not having the patch so that the game works. You could do that with simulated keystrokes perhaps, I suppose it should be easy.
So for example join "old ef#L4" --> latency value is auto set to 4. After that join "nwtr" --> latency patch is disabled.
And could you also make it turn the Warlat "extra low" latency setting on automatically in all games so user doesn't need to go to menu? Both regular Warlat and this new patch can be combined for better effects (just tried, it works).
Lambchops, if you're gonna do it, please say so now, if you don't, then I might develop a program which does it myself. I'm just saying this so we can coordinate better.
Additional idea: Enable only if it detects everyone has said the message so it means everyone has it? Also, commands in lobby screen like "!lat 3" so you can change it depending on lag (latency bars? time it takes to change from Orc to Human?) or "!lat off" to disable the patch. Another advantage is you'd be able to turn it on if you see everyone has it, so you don't need to create a special game with limited player pool, but rather everyone joins your game and then you turn on if everyone has it. Maybe even in game commands to change while in game?
@fois
@Lambchops
What do you think about the ping idea? Doable with modifying wsock32 or if iL supplies us with IP addresses from PHP script?
@iL
Once patch development finishes so that it does what I stated above, are you putting it in new War2Combat? And could you make everyone auto update to new War2Combat by PVPGN?