Page 1 of 1

How to change Update Path or News Path

Posted: 05 Aug 2007, 20:10
by eXcite
Hi all,

ive got a few questions. Hoe i can change the default update path? i found some entry in the config.xml i my private folders. but if i change the news or update path the game said that theire is an error etc. hoe i can add my own news or change that the updates are put in the main folder of TMW? :cry:

Posted: 05 Aug 2007, 20:24
by Crush
When you change the updatehost and the updater isn't working it is most likely because your new updatehost isn't set up correctly. The directory where the updatehost points to must contain:

-news.txt: the newstext
-resources2.txt: a text file listing all updates and their adler32 checksums (we use a php script to auto-generate this)
-all the updates as zip archives

When you post your update URL I could take a look at it and try to find out what you did wrong.

Posted: 05 Aug 2007, 22:12
by Bjørn
Crush wrote:-resources2.txt: a text file listing all updates and their adler32 checksums (we use a php script to auto-generate this)
We do not use PHP to auto-generate this, but instead rely on errors in the client log to show us the values they should be, and then enter this in the resources2.txt file (one at a time). Nice idea about the PHP script though.

Posted: 06 Aug 2007, 00:46
by Crush
then what is the resource2.php doing in the updatehost folder?

Posted: 06 Aug 2007, 06:16
by eXcite
ok it is working but how can i change that the game did not generate a news Folder outside the root TMW Folder where the exe was?
I dont want a seperate folder in my private Documents.

And how can i change that the Installation made a right config.xml File with my update or new path?

Posted: 07 Aug 2007, 08:05
by eXcite
hmm. i think nobody understand what i want :-)

The Installation of TMW creates a folder in my privtae dokuments where the updates and the config.xml where placed in.

I dont want that the TMW Installation do this. i want a Update folder in the main installation folder of TMW where the exe was.

How can i do such things?

Posted: 07 Aug 2007, 08:40
by ElvenProgrammer
The only way is modifying the source code.

Posted: 07 Aug 2007, 08:58
by eXcite
hmm and thats my problem :(

Posted: 07 Aug 2007, 09:08
by eXcite
Antother question,

can anybody compile me the tmserver? i dont want to usw athena.

Please

Posted: 07 Aug 2007, 11:39
by Crush
For what do you need a compiled tmwserv?

It isn't developed far enough to host a game worth playing. When you want to help with the development you should be able to compile it yourself. When you don't want to help with the development tmwserv has no use for you yet.

We will provide precompiled packages of tmwserv as soon as it becomes useful.

Posted: 15 Aug 2007, 05:46
by eXcite
Sorry for the question. i have to learn to look at first than ask questions :-)

Posted: 17 Aug 2007, 12:03
by Bjørn
Crush wrote:then what is the resource2.php doing in the updatehost folder?
Sending a set of headers to make sure the thing isn't cached by evil proxies:

Code: Select all

$ cat resources2.php 
[?php
header("Content-type: text/plain");
header("Cache-Control: no-store, no-cache, must-revalidate"); 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

print file_get_contents ("resources2.txt");
?]