Hello wormux developers,
this small patch set address fix all network related bugs I know off.
The first two patches, which add key combo support, have nothing to do
with the other patches except that they are required.
I haven't tested the patches in a real network game, but only in local ones.
---
src/game/game.cpp |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 4935674..64d7325 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -581,7 +581,8 @@ bool Game::NewBox()
// Type of box : 1 = MedKit, 2 = Bonus Box
---
src/game/game.cpp |2 --
src/include/action_handler.cpp |4
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 065b129..480a5da 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -651,8 +651,6 @@ void Game
---
src/character/character.cpp |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/character/character.cpp b/src/character/character.cpp
index f6ffdb8..37aac08 100644
--- a/src/character/character.cpp
+++ b/src/character/character.cpp
@@ -94,7 +94,8 @@ void Character::S
---
src/interface/keyboard.cpp | 193 +--
src/interface/keyboard.h|6 +
src/interface/man_machine_interface.cpp | 179 +++--
src/interface/man_machine_interface.h | 55 +++--
4 files changed, 299 inserti
---
src/game/game.cpp |7 ---
src/game/game_blitz.cpp |2 +-
src/game/game_classic.cpp |2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 480a5da..4935674 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
Those help to find out what request the random numbers and if you know that
then you know where the differences are between turn master and non turn master.
---
src/ai/ai_shoot_module.cpp |2 ++
src/graphic/polygon.cpp | 10 --
src/network/randomsync.cpp |7 +++
src/ob
When receiving a ping a non turn master knows that there were no further
actions and can continue the game.
---
src/game/game.cpp | 10 +-
src/game/game.h |3 +++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 70df1d8..e
Why is it necessary?
Extreme example: The game time is 59,9 seconds and the turn master orders the
character to jump in oder to save him from the water which will increase in 0.1
seconds.
It's important that the non turn master does not continue the game to the 60th
game second, if it hasn't re
---
lib/wormux/include/WORMUX_action.h |7 --
src/ai/ai_movement_module.cpp |2 +-
src/character/character.cpp | 169 +--
src/character/character.h | 10 --
src/game/game.cpp | 31 +-
src/in
The aim of this patch is to reduce the time difference between players.
Additionally it should make it possible to remove the switch team notification.
The patch increase the network traffic, however it's not the bad as it looks at
the first glance:
Previously at least every 100ms an action was s
---
src/game/game_blitz.cpp |3 +--
src/game/game_classic.cpp |3 +--
src/map/wind.cpp |4 +++-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/game/game_blitz.cpp b/src/game/game_blitz.cpp
index ff146b3..71a0321 100644
--- a/src/game/game_blitz.cpp
+++ b/
---
src/object/bonus_box.cpp |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/object/bonus_box.cpp b/src/object/bonus_box.cpp
index 320bac0..29317b5 100644
--- a/src/object/bonus_box.cpp
+++ b/src/object/bonus_box.cpp
@@ -60,7 +60,8 @@ void BonusBox::PickRandomWeapon(
---
src/particles/body_member.cpp |9 ++---
src/particles/explosion_smoke.cpp |5 +++--
src/particles/fire.cpp| 10 --
src/particles/ill_bubble.cpp |6 --
src/particles/magic_star.cpp |5 +++--
src/particles/particle.cpp| 21 +++
---
src/game/game.cpp |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 64d7325..1151dee 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -591,7 +591,7 @@ bool Game::NewBox()
}
// Randomize container
box->Randomi
Previous to this patch remote characters don't drop dynamites and grenades.
This bug occurred from time to time previous to the last patch and occurred
constantly since the last patch.
Additionally this patch makes the code simpler and reduce the network traffic.
---
lib/wormux/include/WORMUX_ac
---
lib/wormux/include/WORMUX_action.h |4 +
src/character/character.cpp| 116 ++--
src/character/character.h | 21 +--
src/include/action_handler.cpp | 32 ++
4 files changed, 149 insertions(+), 24 deletions(-)
diff --git
This patch fix the issue that characters continue to walk for one player when
the character was walking at the end of the turn.
It also reduces network traffic and makes the code simpler.
---
lib/wormux/include/WORMUX_action.h |1 -
src/game/game_blitz.cpp| 16 ++--
---
lib/wormux/include/WORMUX_action.h |9 +
src/include/action_handler.cpp | 48 ++
src/weapon/weapon.cpp | 65
src/weapon/weapon.h| 24 +
4 files changed, 146 insertions(+), 0
---
lib/wormux/include/WORMUX_action.h |1 -
src/include/action_handler.cpp | 40
src/weapon/grapple.cpp | 32 +---
3 files changed, 2 insertions(+), 71 deletions(-)
diff --git a/lib/wormux/include/WORMUX_action.
---
src/weapon/grapple.cpp | 100 ++--
src/weapon/grapple.h | 16
2 files changed, 96 insertions(+), 20 deletions(-)
diff --git a/src/weapon/grapple.cpp b/src/weapon/grapple.cpp
index 6d0c73e..e2e952b 100644
--- a/src/weapon/grapple.cpp
++
Games could get out of sync at footbomb and grapple usage.
It looks like these weapons require that all network participants draw after
the same physic frames.
A better physics engine may fix the issues with these weapons and make this
workaround superfluous.
---
src/game/game.cpp | 31 ++
This patch fix issues the jetpack had with the new way characters are moving.
This patch also makes jetpack working over the network and improves the way how
jetpack works.
You can now for example release the left and right arrow key without stop
flying upwards.
---
src/character/character.cpp |
---
src/weapon/parachute.cpp | 66 +++---
src/weapon/parachute.h |8 -
2 files changed, 10 insertions(+), 64 deletions(-)
diff --git a/src/weapon/parachute.cpp b/src/weapon/parachute.cpp
index 304fb23..2cbfe52 100644
--- a/src/weapon/parachute.c
Previous this patch the character got moved by the HandleKeyRefreshed_Move*
methods.
Sending a character movement notification every frame would cause a lot of
network traffic.
This patch let the turn master only send two actions for a simple movement:
One which starts the movement and one which
This is important as the time when the character shoots depend on the shoot
animation.
---
src/character/body.cpp |5 +-
src/character/character.cpp | 97 +++---
2 files changed, 56 insertions(+), 46 deletions(-)
diff --git a/src/character/body.cpp
Hi,
thanks for all your patches!
I will make a detailed review, I hope in the next few days!
Of course, since the changes are heavy, they will *not* be included in
Wormux 0.8.5 that is to be released in a little bit more than one week.
Thanks again,
Matt (gentildemon)
Florian Köberle a écri
27 matches
Mail list logo