Author Topic: patch: non modal "server has to many xxx players"  (Read 9281 times)

rasz_pl

  • Guest
patch: non modal "server has to many xxx players"
« on: July 19, 2006, 01:36:44 pm »
follow up tp http://tremulous.net/phpBB2/viewtopic.php?p=12345#12345

if cg_disableWarningDialogs=1 shows only small info in chat window without modal popup forcing you to press OK.
It looks like someone forgot to add few lines, fixed now :

--- cg_servercmds.c   2006-07-17 19:03:53.000000000 +0200
+++ cg_servercmds.c  2006-07-19 14:31:35.000000000 +0200
@@ -584,15 +584,27 @@
     case MN_H_ARMOURY:  trap_SendConsoleCommand( "menu tremulous_humanarmoury\n" ); break;

     case MN_A_TEAMFULL:
-      trap_Cvar_Set( "ui_dialog", "The alien team has too many players. Please wait until "
+      if( !cg_disableWarningDialogs.integer )
+      {
+       trap_Cvar_Set( "ui_dialog", "The alien team has too many players. Please wait until "
                                   "slots become available or join the human team." );
-      trap_SendConsoleCommand( "menu tremulous_alien_dialog\n" );
+       trap_SendConsoleCommand( "menu tremulous_alien_dialog\n" );
+      }
+      else
+        CG_Printf( "The alien team has too many players\n" );
+
       break;

     case MN_H_TEAMFULL:
-      trap_Cvar_Set( "ui_dialog", "The human team has too many players. Please wait until "
+      if( !cg_disableWarningDialogs.integer )
+      {
+       trap_Cvar_Set( "ui_dialog", "The human team has too many players. Please wait until "
                                   "slots become available or join the alien team." );
-      trap_SendConsoleCommand( "menu tremulous_human_dialog\n" );
+       trap_SendConsoleCommand( "menu tremulous_human_dialog\n" );
+      }
+      else
+        CG_Printf( "The human team has too many players\n" );
+
       break;

     case MN_H_NOROOM:

tjw

  • Posts: 210
  • Turrets: +10/-0
patch: non modal "server has to many xxx players"
« Reply #1 on: July 19, 2006, 02:15:39 pm »
You should probably create a bug report for this and attach your patch to it:

http://bugzilla.icculus.org/

The patch should be 'svn diff' from the top of the source tree.


tjw

  • Posts: 210
  • Turrets: +10/-0
patch: non modal "server has to many xxx players"
« Reply #3 on: July 19, 2006, 06:36:56 pm »
Quote from: "rasz_pl"
https://bugzilla.icculus.org/show_bug.cgi?id=2786
https://bugzilla.icculus.org/show_bug.cgi?id=2787

is it ok ?


Sorry, I meant from inside of trunk/ when I said "the top of the source tree".

Also, it works better to click on "Create a New Attachement" and upload the patch as an attachment.  That way Timbo doesn't have to copy/paste from HTML and if you need to update your patch for the same bug, it's easy to upload a new attachment and there's a checkbox for each existing attachment that lets you idicate that the new one is a replacement.

For an example, see one of of the other bugs which has attachements:
https://bugzilla.icculus.org/show_bug.cgi?id=2758

rasz_pl

  • Guest
patch: non modal "server has to many xxx players"
« Reply #4 on: July 19, 2006, 07:33:06 pm »
ok, better now?
BTW diff view looks distorted  in Opera
http://img529.imageshack.us/my.php?image=screenshotpa8.png
how does it look in other browsers?

next_ghost

  • Posts: 892
  • Turrets: +3/-6
patch: non modal "server has to many xxx players"
« Reply #5 on: July 20, 2006, 08:20:08 am »
Quote from: "rasz_pl"
BTW diff view looks distorted  in Opera
http://img529.imageshack.us/my.php?image=screenshotpa8.png
how does it look in other browsers?


No problem in Firefox. Report bug to Bugzilla Bugzilla :)
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

rasz_pl

  • Guest
patch: non modal "server has to many xxx players"
« Reply #6 on: July 20, 2006, 12:00:50 pm »
Quote from: "next_ghost"

No problem in Firefox. Report bug to Bugzilla Bugzilla :)


haha funny, i'l try in Opera forums first

dispater

  • Posts: 24
  • Turrets: +0/-0
Re: patch: non modal "server has to many xxx players&qu
« Reply #7 on: September 09, 2006, 07:00:46 am »
Quote from: "rasz_pl"
follow up tp http://tremulous.net/phpBB2/viewtopic.php?p=12345#12345

if cg_disableWarningDialogs=1 shows only small info in chat window without modal popup forcing you to press OK.
It looks like someone forgot to add few lines, fixed now :

--- cg_servercmds.c   2006-07-17 19:03:53.000000000 +0200
+++ cg_servercmds.c  2006-07-19 14:31:35.000000000 +0200
@@ -584,15 +584,27 @@
     case MN_H_ARMOURY:  trap_SendConsoleCommand( "menu tremulous_humanarmoury\n" ); break;

     case MN_A_TEAMFULL:
-      trap_Cvar_Set( "ui_dialog", "The alien team has too many players. Please wait until "
+      if( !cg_disableWarningDialogs.integer )
+      {
+       trap_Cvar_Set( "ui_dialog", "The alien team has too many players. Please wait until "
                                   "slots become available or join the human team." );
-      trap_SendConsoleCommand( "menu tremulous_alien_dialog\n" );
+       trap_SendConsoleCommand( "menu tremulous_alien_dialog\n" );
+      }
+      else
+        CG_Printf( "The alien team has too many players\n" );
+
       break;

     case MN_H_TEAMFULL:
-      trap_Cvar_Set( "ui_dialog", "The human team has too many players. Please wait until "
+      if( !cg_disableWarningDialogs.integer )
+      {
+       trap_Cvar_Set( "ui_dialog", "The human team has too many players. Please wait until "
                                   "slots become available or join the alien team." );
-      trap_SendConsoleCommand( "menu tremulous_human_dialog\n" );
+       trap_SendConsoleCommand( "menu tremulous_human_dialog\n" );
+      }
+      else
+        CG_Printf( "The human team has too many players\n" );
+
       break;


     case MN_H_NOROOM:


ok this lok snice but ihave a question where do i place this?
URL=www.tremulous.net][/URL]

stahlsau

  • Posts: 160
  • Turrets: +1/-1
patch: non modal "server has to many xxx players"
« Reply #8 on: September 09, 2006, 07:28:18 am »
Sry to say but...if you don't know it, you don't need it ;)

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Re: patch: non modal "server has to many xxx players&am
« Reply #9 on: September 09, 2006, 10:04:47 am »
Quote from: "dispater"
ok this lok snice but ihave a question where do i place this?

Code: [Select]
$ svn checkout svn://svn.icculus.org/tremulous/trunk/
$ cd trunk/src/game
$ patch <rasz.patch
$ cd ../..
$ make


If you don't know how to do that or why each line contains '$', you don't need this.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

PHREAK

  • Posts: 344
  • Turrets: +3/-2
patch: non modal "server has to many xxx players"
« Reply #10 on: September 09, 2006, 10:20:38 am »
Nice one razs!
Yelling at team mates since 2006!

dispater

  • Posts: 24
  • Turrets: +0/-0
patch: non modal "server has to many xxx players"
« Reply #11 on: September 13, 2006, 05:37:38 am »
iknow its a svn patch but the thing is ikant find ur and im a noob of course but could u actually help me install it? idi went to the site and looked for it but its not there
URL=www.tremulous.net][/URL]

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
patch: non modal "server has to many xxx players"
« Reply #12 on: September 13, 2006, 05:56:06 am »
Quote from: "dispater"
iknow its a svn patch but the thing is ikant find ur and im a noob of course but could u actually help me install it? idi went to the site and looked for it but its not there
the instructions next_ghost gave you are as simple as they can get (this doesn't mean that they are simple), if you don't understand them as they are, we won't be able to make it any clearer to you.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

err

  • Posts: 26
  • Turrets: +0/-0
patch: non modal "server has to many xxx players"
« Reply #13 on: September 13, 2006, 06:16:36 am »
nice rasz, cant wait till this patch makes it into codebase. imho all modal dialogs should be disabled by default.
img]http://wilhelmrahn.googlepages.com/trapper-not-floor.png[/img]

Stof

  • Posts: 1343
  • Turrets: +1/-1
patch: non modal "server has to many xxx players"
« Reply #14 on: September 13, 2006, 09:32:58 am »
Quote from: "err"
nice rasz, cant wait till this patch makes it into codebase. imho all modal dialogs should be disabled by default.

All modal dialogs should be removed forever.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

dispater

  • Posts: 24
  • Turrets: +0/-0
patch: non modal "server has to many xxx players"
« Reply #15 on: September 21, 2006, 07:33:21 am »
ohh srry iforgot to mention my Os. my Os is windows Xp. is that why i kant get the thing to work?
URL=www.tremulous.net][/URL]

next_ghost

  • Posts: 892
  • Turrets: +3/-6
patch: non modal "server has to many xxx players"
« Reply #16 on: September 21, 2006, 08:21:07 am »
Quote from: "dispater"
ohh srry iforgot to mention my Os. my Os is windows Xp. is that why i kant get the thing to work?


Yes, that's one of the causes. Get a real OS or at least Cygwin
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

dispater

  • Posts: 24
  • Turrets: +0/-0
patch: non modal "server has to many xxx players"
« Reply #17 on: September 21, 2006, 10:24:51 am »
ohh ok well no thnkx not here to start a OS war...so its a lunix file for svn...ok well well thnkx 4 da help
URL=www.tremulous.net][/URL]

rasz_pl

  • Guest
patch: non modal "server has to many xxx players"
« Reply #18 on: September 21, 2006, 01:03:43 pm »
Quote from: "dispater"
ohh ok well no thnkx not here to start a OS war...so its a lunix file for svn...ok well well thnkx 4 da help


its the patch for qvm file, it should be in next version .. but its not even in SVN .. so ...