Create account / Log in

setup own server

Topics related to the main Vassal engine.

Moderators: Tim M, uckelman

Re: setup own server

Postby Filip » October 31st, 2012, 4:38 pm

uckelman wrote:Grep over the code (which you've modified?). Do you find any instances
of vassalengine.org there?


Quite a lot of those, in fact.

Code: Select all
src/VASSAL/i18n/VASSAL_it.properties:ModuleManager.quickstart=<html><center><h2>Per iniziare a giocare</h2>Scarica un modulo ed aprilo con il menu File.<br>Si possono trovare molti moduli sul sito <a href\="http\://www.vassalengine.org">http\://www.vassalengine.org</a>.</center></html>
src/VASSAL/i18n/VASSAL_it.properties:BugDialog.connection_failed_instructions=<html>VASSAL non e' stato in grado di inviare la vostra segnalazione di errore. Per cortesia inserite il file <a href\="file\://%1$s">%1$s</a> ed una descrizione di cosa stavate facendo al momento dell'errore nella sezione di <a href\="http\://www.vassalengine.org/forums/viewforum.php?f\=3">Supporto Tecnico &amp; Bugs</a> del Forum di VASSAL .</html>
src/VASSAL/i18n/VASSAL_es.properties:BugDialog.connection_failed_instructions=<html>VASSAL fue incapaz de enviar su reporte de errores. Por favor publique el archivo <a href\="file\://%1$s">%1$s</a> y una descripcion de qu\u00E9 estaba haciendo cuando el error ocurri\u00F3, en la secci\u00F3n <a href\="http\://www.vassalengine.org/forums/viewforum.php?f\=3">Technical Support &amp; Bugs</a> del foro de VASSAL.</html>
src/VASSAL/i18n/VASSAL_es.properties:ModuleManager.quickstart=<html><center><h2>Para empezar a jugar</h2>Descargue un m\u00F3dulo y abralo usando el men\u00FA Archivo.<br>Se pueden encontrar muchos m\u00F3dulos en <a href\="http\://www.vassalengine.org">http\://www.vassalengine.org</a>.</center></html>
src/VASSAL/i18n/VASSAL_nl.properties:ModuleManager.quickstart=<html><center><h2>Om te spelen</h2>Download een module vanuit het bestand menu.<br>Vele modules kunnen gevonden worden op <a href\="http\://www.vassalengine.org">http\://www.vassalengine.org</a>.</center></html>
src/VASSAL/i18n/VASSAL.properties:BugDialog.connection_failed_instructions=<html>VASSAL was unable to submit your bug report. Please post the file <a href="file://%1$s">%1$s</a> and a description of what you were doing when the bug occurred in the <a href="http://www.vassalengine.org/forums/viewforum.php?f=3">Technical Support &amp; Bugs</a> section of the VASSAL Forum.</html>
src/VASSAL/i18n/VASSAL.properties:ModuleManager.quickstart=<html><center><h2>To start playing</h2>Download a module and open it using the File menu.<br>Many modules can be found at <a href="http://www.vassalengine.org">http://www.vassalengine.org</a>.</center></html>
src/VASSAL/i18n/VASSAL_fr.properties:ModuleManager.quickstart=<html><center><h2>Pour jouer</h2>T\u00E9l\u00E9chargez un module et ouvrez le \u00E0 partir du menu Fichier.<br>Les modules peuvent \u00EAtre t\u00E9l\u00E9charg\u00E9s dans la section Modules du site Vassal \: <a href\="http\://www.vassalengine.org">http\://www.vassalengine.org</a>.</center></html>
src/VASSAL/i18n/VASSAL_fr.properties:BugDialog.connection_failed_instructions=<html>VASSAL n'a pas pu soumettre votre rapport d'erreur. Merci de joindre le fichier <a href\="file\://%1$s">%1$s</a> et la description de la s\u00E9quence de vos manipulations qui a conduit \u00E0 l'apparition de ce probl\u00E8me dans <a href\="http\://www.vassalengine.org/forums/viewforum.php?f\=3">Technical Support &amp; Bugs</a> section d\u00E9di\u00E9e du Forum VASSAL.</html>
src/VASSAL/i18n/VASSAL_ja.properties:BugDialog.connection_failed_instructions=<html>VASSAL \u306F\u3042\u306A\u305F\u306E\u30D0\u30B0\u30EC\u30DD\u30FC\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30A1\u30A4\u30EB <a href\="file\://%1$s">%1$s</a> \u3068\u30D0\u30B0\u304C\u8D77\u304D\u305F\u3068\u304D\u3042\u306A\u305F\u304C\u4F55\u3092\u3057\u3066\u3044\u305F\u306E\u304B\u306E\u8AAC\u660E\u3092 VASSAL \u30D5\u30A9\u30FC\u30E9\u30E0\u306E <a href\="http\://www.vassalengine.org/forums/viewforum.php?f\=3">Technical Support &amp; Bugs</a> \u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u6295\u7A3F\u3057\u3066\u4E0B\u3055\u3044\u3002</html>
src/VASSAL/i18n/VASSAL_ja.properties:ModuleManager.quickstart=<html><center><h2>\u30D7\u30EC\u30FC\u3092\u59CB\u3081\u308B\u306B\u306F</h2>\u30E2\u30B8\u30E5\u30FC\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u30D5\u30A1\u30A4\u30EB\u30E1\u30CB\u30E5\u30FC\u304B\u3089\u958B\u3044\u3066\u4E0B\u3055\u3044\u3002<br>\u305F\u304F\u3055\u3093\u306E\u30E2\u30B8\u30E5\u30FC\u30EB\u304C <a href\="http\://www.vassalengine.org">http\://www.vassalengine.org</a> \u306B\u3042\u308A\u307E\u3059\u3002</center></html>


These appear harmless. Are they?

Code: Select all
src/VASSAL/build/module/WizardSupport.java:      help = new ShowHelpAction(new URL("http://www.vassalengine.org/wiki/doku.php?id=getting_started:getting_started"), null);


Looks harmless as well.

Code: Select all
src/VASSAL/chat/DynamicClient.java: * Determines server implementation at run-time by downloading properties from the vassalengine.org site. Refreshes


Clearly harmless.

Code: Select all
src/VASSAL/tools/BugUtils.java:      final String url = "http://www.vassalengine.org/util/bug.php";


Not sure about this one. Doesn't seem like it should be causing the problem.

Code: Select all
src/VASSAL/chat/HttpMessageServer.java:      "http://www.vassalengine.org/util/getMessages", //$NON-NLS-1$
src/VASSAL/chat/HttpMessageServer.java:      "http://www.vassalengine.org/util/postMessage", //$NON-NLS-1$
src/VASSAL/chat/HttpMessageServer.java:      "http://www.vassalengine.org/util/motd",        //$NON-NLS-1$
src/VASSAL/chat/peer2peer/DirectPeerPool.java:    HttpRequestWrapper r = new HttpRequestWrapper("http://www.vassalengine.org/util/getMyAddress"); //$NON-NLS-1$


Not sure what exactly this class does, but it looks like it might be causing some issues. Is it possible to safely disable this completely? Otherwise, how to handle those getMessages, postMessage, motd and getMyAddress files for my own server? Does Vassal only read them, or is something actually send there? If the latter, I have a problem, as I'm currently using dropbox for my server configuration files, so it won't accept incoming traffic.

Code: Select all
src/VASSAL/chat/peer2peer/P2PClient.java:    }, "http://www.vassalengine.org/util/"));
src/VASSAL/chat/peer2peer/TextClient.java:        pool = new CgiPeerPool(info, "http://www.vassalengine.org/util/");
src/VASSAL/chat/CgiServerStatus.java:    request = new HttpRequestWrapper("http://www.vassalengine.org/util/"); //$NON-NLS-1$
src/VASSAL/tools/version/VersionUtils.java:  private static final String baseURL = "http://www.vassalengine.org/util/";


These have the same address in common. There was the same address in VASSAL.chat.node.Server.java, and I've already changed it to the location of getServerImpl. Should that be enough to fix these?

Code: Select all
src/VASSAL/chat/node/NodeClientFactory.java:    final String host = param.getProperty(NODE_HOST,"game.vassalengine.org");  //$NON-NLS-1$


Uh. This isn't URL. Is this interfacing directly with the main server in some way? What should I do with this?
Filip
 
Posts: 95
Joined: September 11th, 2009, 12:46 am

Re: setup own server

Postby Filip » November 4th, 2012, 8:51 pm

Ok, I've been experimenting today.

Am I right that classes in VASSAL.chat.peer2peer are only for direct peer to peer games and have nothing to do with main server games? It appears to me that the only purpose of http://www.vassalengine.org/util/getMyAddress in VASSAL.chat.peer2peer.DirectPeerPool.java is reading player's IP for such games. Is that how it knows what to display in the p2p connection window? Is there more to it?

Instances of vassalengine.org in other VASSAL.chat.peer2peer classes are in inactive parts of the code. My current guess is that leaving http://www.vassalengine.org/util/getMyAddress alone should be safe.

My actual suspects are:

src/VASSAL/chat/HttpMessageServer.java: "http://www.vassalengine.org/util/getMessages", //$NON-NLS-1$
src/VASSAL/chat/HttpMessageServer.java: "http://www.vassalengine.org/util/postMessage", //$NON-NLS-1$
src/VASSAL/chat/HttpMessageServer.java: "http://www.vassalengine.org/util/motd", //$NON-NLS-1$

src/VASSAL/tools/version/VersionUtils.java: private static final String baseURL = "http://www.vassalengine.org/util/";

src/VASSAL/chat/CgiServerStatus.java: request = new HttpRequestWrapper("http://www.vassalengine.org/util/"); //$NON-NLS-1$

I tried creating empty files with those names to the server config folder, and changed all URLs as appropriate. This build shows no games in server stats. I'm not sure if that fixed the problem, but at least it didn't break anything - I'm still able to connect to my server. I need to test it with other players, but I guess we'll just have to wait for the next main server failure to know for sure. Unless you can immediately point out something that I ignored.
Filip
 
Posts: 95
Joined: September 11th, 2009, 12:46 am

Re: setup own server

Postby Filip » November 5th, 2012, 5:29 pm

Tested with other people and works. For now, as I have no way to check if this solution actually fixed the problem.
Filip
 
Posts: 95
Joined: September 11th, 2009, 12:46 am

Re: setup own server

Postby uckelman » November 8th, 2012, 8:14 pm

Thus spake Filip:
> Ok, I've been experimenting today.
>
> Am I right that classes in VASSAL.chat.peer2peer are only for direct
> peer to peer games and have nothing to do with main server games? It
> appears to me that the only purpose of
> http://www.vassalengine.org/util/getMyAddress[1] in
> VASSAL.chat.peer2peer.DirectPeerPool.java is reading player's IP for
> such games. Is that how it knows what to display in the p2p connection
> window? Is there more to it?

I can't say. I've never looked at that code before.

> Instances of vassalengine.org in other VASSAL.chat.peer2peer classes are
> in inactive parts of the code. My current guess is that leaving
> http://www.vassalengine.org/util/getMyAddress[2] alone should be safe.
>
> My actual suspects are:
>
> src/VASSAL/chat/HttpMessageServer.java:
> "http://www.vassalengine.org/util/getMessages", //$NON-NLS-1$
> src/VASSAL/chat/HttpMessageServer.java:
> "http://www.vassalengine.org/util/postMessage", //$NON-NLS-1$
> src/VASSAL/chat/HttpMessageServer.java:
> "http://www.vassalengine.org/util/motd", //$NON-NLS-1$
>
> src/VASSAL/chat/CgiServerStatus.java: request = new
> HttpRequestWrapper("http://www.vassalengine.org/util/"); //$NON-NLS-1$
>
> I tried creating empty files with those names to the server config
> folder, and changed all URLs as appropriate. This build shows no games
> in server stats. I'm not sure if that fixed the problem, but at least it
> didn't break anything - I'm still able to connect to my server. I need
> to test it with other players, but I guess we'll just have to wait for
> the next main server failure to know for sure. Unless you can point out
> something that I ignored.

It's likely these that are the problem. I'm glad you got it to work.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Previous

Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest