- Joined
- Feb 2, 2006
- Messages
- 1,595
Hey,
I've been thinking about a way to allow players to join a game which has already started.
Actually the game would have to be saved then and rehosted. The joining player would need the save game, too.
The problem is that if he wants to join, another slot must be open in the save game which has not been used before or has been used by a computer player.
Do you think this is possible somehow? It would be really annoying to reload the game everytime this happens and you could not exceed the limit of players.
I am thinking about a situation where you started a map with 3 of 6 players and the remaining two are computer controlled.
Suddenly someone wants to join for a computer player.
The game would need a recognition event, maybe something like SharpCraft or any network API would do this if they work in multiplayer.
For example a hostbot hosts a dummy game. Whenever someone joins this game the event is triggered in the running game. The game master or team then may accept or reject the join.
If it is accepted the game is saved for all players, modified for a new free slot and hosted but how could you give it to another player?
The whole purpose would be that one can join in the late game instead of waiting for a restart.
edit:
Level changes would be possible too using this method. For level changes you would not need a modification of player slots but the host bot must somehow get all the savegames and events, so again some communication between the hostbot and the running game is required.
I've been thinking about a way to allow players to join a game which has already started.
Actually the game would have to be saved then and rehosted. The joining player would need the save game, too.
The problem is that if he wants to join, another slot must be open in the save game which has not been used before or has been used by a computer player.
Do you think this is possible somehow? It would be really annoying to reload the game everytime this happens and you could not exceed the limit of players.
I am thinking about a situation where you started a map with 3 of 6 players and the remaining two are computer controlled.
Suddenly someone wants to join for a computer player.
The game would need a recognition event, maybe something like SharpCraft or any network API would do this if they work in multiplayer.
For example a hostbot hosts a dummy game. Whenever someone joins this game the event is triggered in the running game. The game master or team then may accept or reject the join.
If it is accepted the game is saved for all players, modified for a new free slot and hosted but how could you give it to another player?
The whole purpose would be that one can join in the late game instead of waiting for a restart.
edit:
Level changes would be possible too using this method. For level changes you would not need a modification of player slots but the host bot must somehow get all the savegames and events, so again some communication between the hostbot and the running game is required.