News:

Come Chat with us live! Learn how HERE!

Main Menu

patch: non modal "server has to many xxx players"

Started by rasz_pl, July 19, 2006, 01:36:44 PM

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:

tjw

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

Quote from: rasz_plhttps://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

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

Quote from: rasz_plBTW 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

Quote from: next_ghost
No problem in Firefox. Report bug to Bugzilla Bugzilla :)

haha funny, i'l try in Opera forums first

dispater

Quote from: rasz_plfollow 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

Sry to say but...if you don't know it, you don't need it ;)

next_ghost

Quote from: dispaterok this lok snice but ihave a question where do i place this?
$ 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

Yelling at team mates since 2006!

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
URL=www.tremulous.net][/URL]

kevlarman

Quote from: dispateriknow 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#msg169333Ok 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

nice rasz, cant wait till this patch makes it into codebase. imho all modal dialogs should be disabled by default.

Stof

Quote from: errnice 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

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

Quote from: dispaterohh 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

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

Quote from: dispaterohh 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 ...