How do I make ~/.tmw/serverlist.xml read only?

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
bigglesworth
Novice
Novice
Posts: 211
Joined: 11 Nov 2007, 04:23
Location: Land of Ooo

How do I make ~/.tmw/serverlist.xml read only?

Post by bigglesworth » 26 Oct 2009, 06:53

I'd like to have only the official server in the serverlist.xml file, but the eAthena client from Gitorious adds alternates back to the server list after I remove them.

For example,

Code: Select all

milkchan@pc2-jaunty64:~$ cd ~/.tmw
milkchan@pc2-jaunty64:~/.tmw$ rm serverlist.xml
milkchan@pc2-jaunty64:~/.tmw$ touch serverlist.xml
milkchan@pc2-jaunty64:~/.tmw$ chmod u-w serverlist.xml
milkchan@pc2-jaunty64:~/.tmw$ ls -la *.xml
-rw-r--r-- 1 milkchan milkchan 21238 2009-09-26 03:55 config_1024x576.xml
-rw-r--r-- 1 milkchan milkchan 14426 2009-10-26 01:36 config.xml
-r--r--r-- 1 milkchan milkchan     0 2009-10-26 01:40 serverlist.xml
milkchan@pc2-jaunty64:~/.tmw$ cd ~/tmw/bin
milkchan@pc2-jaunty64:~/tmw/bin$ ./tmw
milkchan@pc2-jaunty64:~/tmw/bin$ cd ~/.tmw
milkchan@pc2-jaunty64:~/.tmw$ ls -la *.xml
-rw-r--r-- 1 milkchan milkchan 21238 2009-09-26 03:55 config_1024x576.xml
-rw-r--r-- 1 milkchan milkchan 14426 2009-10-26 01:41 config.xml
-rw-r--r-- 1 milkchan milkchan  2215 2009-10-26 01:41 serverlist.xml
milkchan@pc2-jaunty64:~/.tmw$ 
BTW, I'm not trying to play with an empty server list. :)
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: How do I make ~/.tmw/serverlist.xml read only?

Post by Jaxad0127 » 26 Oct 2009, 14:53

You can set the server list that will be downloaded in the 'onlineServerList' configuration option.
Image
User avatar
bigglesworth
Novice
Novice
Posts: 211
Joined: 11 Nov 2007, 04:23
Location: Land of Ooo

Re: How do I make ~/.tmw/serverlist.xml read only?

Post by bigglesworth » 19 Nov 2009, 05:40

2010-01-31 Edit: add lines to remove from config.xml

The purpose of this late reply is to hopefully add information.

I originally wanted the server list to be read-only for the current git linux eathena client. But, jaxad0127 gave me the information I needed to restrict the server list to have only the official server, which is what I actually wanted to do. So, here is what I did.

Add this line to config.xml:

Code: Select all

<option name="onlineServerList" value="myServerList.xml"/>
Remove these lines from config.xml:

Code: Select all

<option name="MostUsedServerName0" value="server.themanaworld.org"/>
 <option name="MostUsedServerName1" value="server.themanaworld.org"/>
 <option name="MostUsedServerName2" value="yvansoftware.be"/>
 <option name="MostUsedServerName3" value="neo644lap.dyndns.org"/>
 <option name="MostUsedServerName4" value="tmw.servegame.org"/>
 <option name="MostUsedServerPort0" value="6901"/>
 <option name="MostUsedServerPort1" value="6901"/>
 <option name="MostUsedServerPort2" value="6901"/>
 <option name="MostUsedServerPort3" value="6901"/>
 <option name="MostUsedServerPort4" value="6901"/>
 <option name="MostUsedServerType1" value="eAthena"/>
 <option name="MostUsedServerType2" value="eAthena"/>
 <option name="MostUsedServerType3" value="eAthena"/>
 <option name="MostUsedServerType4" value="eAthena"/>
Cut down serverlist.xml to the following and save it as myServerList.xml:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<serverlist version="1">

  <server name="Official Server" type="EATHENA">
    <connection hostname="server.themanaworld.org" port="6901" protocol="TCP" />
  </server>
  
</serverlist>
Thanks!
Post Reply