Leave = Resign
Moderator: Moderators
Leave = Resign
When somebody leaves the game, be it disconnect or whatever reason, the game keeps going on.
It shouldn't, obviously.
It shouldn't, obviously.
Re: Leave = Resign
The game should not exit when one player disconnects, for obvious reasons.
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: Leave = Resign
Unless obviously they are the last/only player on their team.
Re: Leave = Resign
You're missing the case of FFA. Try again.
Re: Leave = Resign
@ Johannes : What? Are you saying the actual game should stop if one player leaves? I hope I'm misunderstanding you...
Leave =/= Resign. Leaving means you want to leave the game and the window to close. This shouldn't affect the actual hosting of the game at all. Resigning means you cba to play any more and just want to spec.
It makes perfect sense already ... What's the problem?
Leave =/= Resign. Leaving means you want to leave the game and the window to close. This shouldn't affect the actual hosting of the game at all. Resigning means you cba to play any more and just want to spec.
It makes perfect sense already ... What's the problem?
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: Leave = Resign
FFffff ok stop nitpicking jerkzwzsg wrote:You're missing the case of FFA. Try again.

The problem is that if there is one enemy left and they disconnect, the game does not end, and you have to kill all the "aband_units" to end it.
Re: Leave = Resign
It was so obvious I didnt feel the need to explain... Its not about fucking teamgames or ffas
Re: Leave = Resign
It was nebulous and in need of precise explanations.JohannesH wrote:It was so obvious I didnt feel the need to explain...
Yet your proposed changes would ruin them.JohannesH wrote:Its not about fucking teamgames or ffas
No I will not. This is 'Development >> Feature Requests', so that means you're asking for the feature to be hard coded into the engine, impacting every game and every user. If the feature isn't thoroughly analysed before being implemented, then we would introduce bugs. It's because of people like YOU that FAIL to consider consequences of their knee-jerks changes that we keep getting regressions like crash on AI death or game over on start vs AI.luckywaldo7 wrote:FFffff ok stop nitpicking jerk
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Leave = Resign
5 months ago I proposed a patch for that as mod option. Default disabled.
If enabled the game would end if there is only 1 ally left with active players.
If enabled the game would end if there is only 1 ally left with active players.
Re: Leave = Resign
We're getting toward there. But you forgot AIs, so:
"Game should be over when there is only 1 ally left with active players or bots."
Also, there's the case of testing the game alone, and of playing vs gaia, so the proper condition should be:
"Game should be over when there is only 1 ally left with active players or bots, and there were active players or bots in at least two opposite teams when the game started."
Again, that kind of detail should not be overlooked: BA Chicken Defense is quite popular.
"Game should be over when there is only 1 ally left with active players or bots."
Also, there's the case of testing the game alone, and of playing vs gaia, so the proper condition should be:
"Game should be over when there is only 1 ally left with active players or bots, and there were active players or bots in at least two opposite teams when the game started."
Again, that kind of detail should not be overlooked: BA Chicken Defense is quite popular.
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Leave = Resign
Active players and bots are covered.
Alone? Like just 1 team, not even a null ai as opponent? Gaia is not covered if there is not AI player for gaiateam (I never thought gaia is an active part of the game). But again it's a mod option. It will work like as usual if disabled. (suggested default is disabled to prevent such and any other non-considered case)zwzsg wrote:Also, there's the case of testing the game alone, and of playing vs gaia,[...]
Re: Leave = Resign
Yes. Modder sometimes play alone to test stuff. It was a well welcomed commit the one that removed the hassle of moving the game over window away when doing so.SirMaverick wrote:Alone? Like just 1 team, not even a null ai as opponent?
You cannot assign a bot to gaia. So Spring has no way to know if there's a gadget spawning gaia units or not. Though I know of only one game using gaia as an opponent when there are no others, Gundam.SirMaverick wrote:AI player for gaiateam
I'd rather have it done well, and all mod benefit from it without extra work, than having it half-broken and pretending it's okay because it's optional.SirMaverick wrote:But again it's a mod option. It will work like as usual if disabled.
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Leave = Resign
Which commit? How do you setup the game?zwzsg wrote:Yes. Modder sometimes play alone to test stuff. It was a well welcomed commit the one that removed the hassle of moving the game over window away when doing so.SirMaverick wrote:Alone? Like just 1 team, not even a null ai as opponent?
When I test I play against NullAI or start two instances (if interaction is needed).
How does this work? Wouldn't the game end instantly?You cannot assign a bot to gaia. So Spring has no way to know if there's a gadget spawning gaia units or not. Though I know of only one game using gaia as an opponent when there are no others, Gundam.SirMaverick wrote:AI player for gaiateam
At first I suggested to make this a permanent change but that wasn't accepted: people might want to fight till the end/kill all remaining units. That's the reason is was made an option.I'd rather have it done well, and all mod benefit from it without extra work, than having it half-broken and pretending it's okay because it's optional.SirMaverick wrote:But again it's a mod option. It will work like as usual if disabled.
So only two special things left is your modder test setup and gundam. If you tell me the exactly setup (mod + script.txt) I can test if it work's or not.
Re: Leave = Resign
You run SpringLobby or TASClient, do no wait for other players, do not add AIs.SirMaverick wrote:How do you setup the game?
There is also the bizarre case of the hard coded start script that has two teams (so three with gaia), one being the player, the other being neither a player nor a bot.
When the gadget detects there are humans without enemies, it makes chickens spawn in gaiateam.SirMaverick wrote:How does this work?
No, thanks to that commit that suppress game over when it would happen at game start.SirMaverick wrote:Wouldn't the game end instantly?
/godmodeSirMaverick wrote:if interaction is needed
We already have a mod option for linage/kill all commanders/kill all units.SirMaverick wrote:people might want to fight till the end/kill all remaining units
Re: Leave = Resign
Game ends when last player resigns anyway, no?zwzsg wrote:We already have a mod option for linage/kill all commanders/kill all units.SirMaverick wrote:people might want to fight till the end/kill all remaining units
Just make clicking "leave" command also send a resigning signal, then get some way of doing the same when a actual human player disconnects. I didnt include a exact technical explanation of it since I don't know everything there needs to be accounted for, as long as someone who does, understands my point it should serve the exact same purpose.
In a lot of other rts's leaving the game is the customary way to concede defeat after gg'ing... So often you have to teach newbs that this is actually very annoying thing to do for the winner in Spring.
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Leave = Resign
So only the window is not show, but game still counts as over? (Of course it will continue in single player if you don't close.)zwzsg wrote:It was a well welcomed commit the one that removed the hassle of moving the game over window away when doing so.
Tried with CA, KP and Gundam. In SP and hosting a battle. It always ends directly after game start.zwzsg wrote:You run SpringLobby or TASClient, do no wait for other players, do not add AIs.SirMaverick wrote:How do you setup the game?
For units, yes. But if you want to test new lua code you might need (several) real teams./godmodeSirMaverick wrote:if interaction is needed
These are different game modes. "Leave = Resign" will always stop the game if you are the last remaining alliance. No chance to kill all remaining units.We already have a mod option for linage/kill all commanders/kill all units.SirMaverick wrote:people might want to fight till the end/kill all remaining units
Re: Leave = Resign
Thanks for kindly correcting me. Somehow I got confused with that. It's curious I could not remember having to push the game over windows considering how much I play alone.SirMaverick wrote:Tried with CA, KP and Gundam. In SP and hosting a battle. It always ends directly after game start.zwzsg wrote:You run SpringLobby or TASClient, do no wait for other players, do not add AIs.SirMaverick wrote:How do you setup the game?
Oh. And to think that me, to test new multiplayer lua code, I go through the trouble of enlisting real online people!SirMaverick wrote:For units, yes. But if you want to test new lua code you might need (several) real teams.zwzsg wrote:/godmodeSirMaverick wrote:if interaction is needed

Hmm, I see the difference now. An option for people who like to kill units of disconnected people, right?SirMaverick wrote:These are different game modes. "Leave = Resign" will always stop the game if you are the last remaining alliance. No chance to kill all remaining units.zwzsg wrote:We already have a mod option for linage/kill all commanders/kill all units.SirMaverick wrote:people might want to fight till the end/kill all remaining units
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Leave = Resign
Yes. As I said that was the reason why it was not accepted as hard coded change.zwzsg wrote:Hmm, I see the difference now. An option for people who like to kill units of disconnected people, right?
Re: Leave = Resign
That makes no sense, if people really wanted that game wouldnt end at resign either.SirMaverick wrote:Yes. As I said that was the reason why it was not accepted as hard coded change.zwzsg wrote:Hmm, I see the difference now. An option for people who like to kill units of disconnected people, right?
Or could make an option on the game over screen to keep playing, ie. just close the box... Would be useful for testing stuff as well.
Re: Leave = Resign
I just move the game over screen out of the way and keep testing.