[patch] Quit and Resign options

[patch] Quit and Resign options

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

[patch] Quit and Resign options

Post by colorblind »

http://teake.home.fmf.nl/temp/quitAndRe ... ions.patch

Image

Are you sick and tired of people leaving games without self-destructing? Well I was! That's why I've written this patch, and it does the following:
  • When you're the sole active player of a team that has units left, you cannot quit the game without resigning.
  • Instead, a dialog (see the image above) comes up when you hit SHIFT-ESC. From that dialog you can either:
    • Resign and quit (the user quits and the units self-d instantly)
    • Resign (user remains in the game, units self-d instantly)
    • Give away everything to another team and remain in the game as a spectator
    • Be a sissy and leavy without resigning (which might be usefull if you still have allies left).
  • If your team is dead or when your a spectator, you can instantly leave with SHIFT-ESC
Get the patch, apply it, compile, and tell me you if like it 8) .

:edit:
I forgot to mention that the the patch adds two files (a header and a source file). The VS7/8 projects files won't be updated by the patch, as I do not have those suites. So you'll have to add them manually.

:edit2:
The VS8 project file will be updated now (thanks to patmo), the VS7 not. And I also corrected some blatent errors in the patch ...

:update:
There's now an extra 'quit' option, and the units self-d instantly instead of 5 seconds after the 'resign' command.
Last edited by colorblind on 29 May 2006, 14:33, edited 3 times in total.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

cool, sounds like a nice and useful addition :)
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

its cool, however, you should turn resign (when in teamgames) to give to random ally. Teammates selfdestructing when they leave is a pain in the ass.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Maybe you should work with jouninkomiko on the new GUI
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

AF wrote:Maybe you should work with jouninkomiko on the new GUI
Fresh meat :twisted:
(I shouldn't have said that, should i)
User avatar
cyclerboy
Posts: 156
Joined: 04 May 2005, 06:38

Post by cyclerboy »

if you just type .take you will get all of your allies units if they have left
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

but they will self destruct...

I think that if the player just resigns they should be given to a random teammate, however if it is left so that the other team gets them then maybe ppl won't be so quick to resign
Egarwaen
Posts: 1207
Joined: 27 Feb 2006, 21:19

Post by Egarwaen »

Forboding Angel wrote:I think that if the player just resigns they should be given to a random teammate, however if it is left so that the other team gets them then maybe ppl won't be so quick to resign
Or even better - split the units between the player's remaining teammates. That way one teammate doesn't suddenly have to start working with a whole bunch of new stuff.
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

Forboding Angel wrote:but they will self destruct...

I think that if the player just resigns they should be given to a random teammate, however if it is left so that the other team gets them then maybe ppl won't be so quick to resign
Wont have any effect.. The noobs who selfdestruct aren't interested in the outcome of the game. They just act like asses and leave. Your suggestion would imo make it worse. The horror of half my defenceline suddenly firing on the other half. :(

(i havent seen this emoticon here before... :mrgreen: :mrgreen: :mrgreen:)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

wasn't a suggestion, it was just me musing.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Looks great!


I hope they implent it.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

What's wrong with leaving the unit of the leaving player on the game until their teammate type .take?

If such a menu appear, people hurry to leave will just click the first choice. Which is the worse.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

This solution is more clear to new players IMO

Also in 1v1's it's really annoying if the other player leaves and you don't noticed it. Then you play along for 10 minutes or something and then you realise he just left...
User avatar
Deathblane
Posts: 505
Joined: 01 Feb 2006, 01:22

Post by Deathblane »

Done that before. It was a good game as well but the 10 minutes of inactivity from when my (2) allies left killed me off.

This is definately a good idea, though (if it's not to hard to code) wouldn't it be better to disallow the 'self-d and leave' option if you've still got an ally left?
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

Yey! I would love to see this in the next release.

I think you should still be able to resign when you have allies allive.
Though there is strategicly no reason to do it.
(but would we disable tech 2 with +2 metal and empty storage?)
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Good stuff :)
patmo98
Posts: 188
Joined: 09 Jan 2006, 17:51

Re: [patch] Quit and Resign options

Post by patmo98 »

colorblind wrote:The VS7/8 projects files won't be updated by the patch.
Here is a copy of the VS8 patch. Sorry my internet space is down.

Code: Select all

Index: rts.vcproj
===================================================================
--- rts.vcproj	(revision 1362)
+++ rts.vcproj	(working copy)
@@ -458,6 +458,14 @@
 					>
 				</File>
 				<File
+					RelativePath="..\..\Game\UI\QuitBox.cpp"
+					>
+				</File>
+				<File
+					RelativePath="..\..\Game\UI\QuitBox.h"
+					>
+				</File>
+				<File
 					RelativePath="..\..\Game\Ui\ResourceBar.cpp"
 					>
 				</File>
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

Thanks for the feedback guys.

About the case when your ally is still alive: in all fairness, a player should be able to quit the game then (because, as said, allies can .take). However, you can give all your units to your ally via my new menu. And because some players may not know that you can .take, I think my current solution is best.
But it doesn't matter much.

And thank you Patmo, I'll append your patch to mine.
Spectre
Posts: 42
Joined: 03 May 2005, 16:57

Post by Spectre »

I hate it when my enemy self-ds.... I want to kill his base even when he leaves...
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Post by genblood »

Good solution to the problem. I hope it makes it in the next release.
Post Reply

Return to “Engine”