[Freeciv-Dev] (PR#40752) [Patch] Make cazfi.net the default metaserver

2009-03-23 Thread Madeline Book

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40752 

 [book - Mon Mar 23 01:14:03 2009]:
 
 Sorry for the double post, I forgot to change out of the
 update page and refreshed it by mistake.
 
 On 22/03/2009, Daniel Markstedt markst...@gmail.com wrote:
  Same here, the old metaserver data was the fault.
 
  Isn't this bound to affect everyone who updates to 2.1.9?
 
 Yes. Here's a somewhat hackish patch that automatically
 updates the default metaserver if it reads the old value
 from the civclientrc.

Here is version 2 that works for trunk and with corrected
formatting.


---
なんて手落ち。
diff --git a/client/client_main.c b/client/client_main.c
index 32f9c1c..6334a8e 100644
--- a/client/client_main.c
+++ b/client/client_main.c
@@ -403,8 +403,18 @@ int client_main(int argc, char *argv[])
 sz_strlcpy(server_host, default_server_host); 
   if (user_name[0] == '\0')
 sz_strlcpy(user_name, default_user_name); 
-  if (metaserver[0] == '\0')
-sz_strlcpy(metaserver, default_metaserver); 
+  if (metaserver[0] == '\0') {
+/* FIXME: Find a cleaner way to achieve this. */
+const char *oldaddr = http://meta.freeciv.org/metaserver.phtml;;
+if (0 == strcmp(default_metaserver, oldaddr)) {
+  freelog(LOG_NORMAL, _(Updating old metaserver address \%s\.),
+  oldaddr);
+  sz_strlcpy(default_metaserver, META_URL);
+  freelog(LOG_NORMAL, _(Default metaserver has been set to \%s\.),
+  META_URL);
+}
+sz_strlcpy(metaserver, default_metaserver);
+  }
   if (server_port == -1) server_port = default_server_port;
 
   /* This seed is not saved anywhere; randoms in the client should
diff --git a/client/civclient.c b/client/civclient.c
index d0c26ed..f56ab3d 100644
--- a/client/civclient.c
+++ b/client/civclient.c
@@ -72,6 +72,7 @@
 #include pages_g.h
 #include plrdlg_g.h
 #include repodlgs_g.h
+#include servers.h
 #include tilespec.h
 #include themes_common.h
 
@@ -383,8 +384,18 @@ int main(int argc, char *argv[])
 sz_strlcpy(server_host, default_server_host); 
   if (user_name[0] == '\0')
 sz_strlcpy(user_name, default_user_name); 
-  if (metaserver[0] == '\0')
-sz_strlcpy(metaserver, default_metaserver); 
+  if (metaserver[0] == '\0') {
+/* FIXME: Find a cleaner way to achieve this. */
+const char *oldaddr = http://meta.freeciv.org/metaserver.phtml;;
+if (0 == strcmp(default_metaserver, oldaddr)) {
+  freelog(LOG_NORMAL, _(Updating old metaserver address \%s\.),
+  oldaddr);
+  sz_strlcpy(default_metaserver, METALIST_ADDR);
+  freelog(LOG_NORMAL, _(Default metaserver has been set to \%s\.),
+  METALIST_ADDR);
+}
+sz_strlcpy(metaserver, default_metaserver);
+  }
   if (server_port == -1) server_port = default_server_port;
 
   /* This seed is not saved anywhere; randoms in the client should
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40753) Playing Freeciv online

2009-03-23 Thread Josef Garvi

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40753 

This transaction appears to have no content




Madeline Book wrote:

  URL: http://bugs.freeciv.org/Ticket/Display.html?id=40753 

  
  
[jo...@edenfoundation.org - Mon Mar 23 00:06:38 2009]:

Hi,

Was looking at this page:
http://bugs.freeciv.org/Ticket/Display.html?id=40274

and wondering what I should do if I want to play Freeciv online.
Is there a public freeciv server here, and how should I proceed
to log in?

If I type in guest as username when connecting to the server,
I get the reply that "Guests are not allowed on this server".

  
  
For your first login, just type in the username that you want.
If nobody else is using that name already, it will prompt you
to enter a new password, and to confirm the same password again.
If you are unlucky and someone else already has that name, you
will just get a password prompt. In that case you will have to
pick a different name.


---
簡単ね。
  

Thanks for the reply.
I have tried your suggestion, but when I enter a random username, I get
the message "You were rejected from the server. This game only accepts
preregistered players." The only three games I can find through the
cazfi.net metaserver are the games #4533, #4535 and #4534.


             Josef

-- 
Josef Garvi
Eden Foundation, BP 174, Zinder, Niger Republic
Tel:+227-20510601, Fax:+227-20510263
E-Mail: jo...@edenfoundation.org
http://www.edenfoundation.org/




___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] (PR#40754) S2_1 ko.po error

2009-03-23 Thread Marko Lindqvist

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40754 

../../../src.patched/po/ko.po:9162: number of format specifications in
'msgid' and 'msgstr[0]' does not match
/usr/bin/msgfmt: found 1 fatal error


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40753) Playing Freeciv online

2009-03-23 Thread Marko Lindqvist

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40753 

2009/3/23 Josef Garvi jo...@edenfoundation.org:
 I have tried your suggestion, but when I enter a random username, I get the 
 message You were rejected from the server. This game only accepts 
 preregistered players. The only three games I can find through the cazfi.net 
 metaserver are the games #4533, #4535 and #4534.

 My mistake. cazfi.net servers were set to not to accept new players.
Now this should be fixed. Thanks for reporting.


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40753) Playing Freeciv online

2009-03-23 Thread Josef Garvi

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40753 

Marko Lindqvist wrote:
 URL: http://bugs.freeciv.org/Ticket/Display.html?id=40753 

 2009/3/23 Josef Garvi jo...@edenfoundation.org:
   
 I have tried your suggestion, but when I enter a random username, I get the 
 message You were rejected from the server. This game only accepts 
 preregistered players. The only three games I can find through the 
 cazfi.net metaserver are the games #4533, #4535 and #4534.
 

  My mistake. cazfi.net servers were set to not to accept new players.
 Now this should be fixed. Thanks for reporting.


  - ML

   
Thanks, this is great!


Best regards,


 Josef

-- 
Josef Garvi
Eden Foundation, BP 174, Zinder, Niger Republic
Tel:+227-20510601, Fax:+227-20510263
E-Mail: jo...@edenfoundation.org
http://www.edenfoundation.org/






Marko Lindqvist wrote:

  URL: http://bugs.freeciv.org/Ticket/Display.html?id=40753 

2009/3/23 Josef Garvi jo...@edenfoundation.org:
  
  
I have tried your suggestion, but when I enter a random username, I get the message "You were rejected from the server. This game only accepts preregistered players." The only three games I can find through the cazfi.net metaserver are the games #4533, #4535 and #4534.

  
  
 My mistake. cazfi.net servers were set to not to accept new players.
Now this should be fixed. Thanks for reporting.


 - ML

  

Thanks, this is great!


Best regards,


             Josef

-- 
Josef Garvi
Eden Foundation, BP 174, Zinder, Niger Republic
Tel:+227-20510601, Fax:+227-20510263
E-Mail: jo...@edenfoundation.org
http://www.edenfoundation.org/



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev