Page 1 of 1

Problem with testing server...

Posted: 13 Mar 2008, 21:48
by And1
Account-Server is running... but...

Code: Select all

and1@fubox ~/server >> src/tmwserv-game 
[22:46:17] [INF] The Mana World Game Server v0.0.1
[22:46:17] [INF] Using config file: /home/and1/.tmwserv.xml
[22:46:17] [INF] Using log file: /home/and1/.tmwserv-game.log
[22:46:17] [INF] Loading map reference...
[22:46:17] [WRN] Failed to load 'items.xml': No such file or directory
[22:46:17] [ERR] Item Manager: Could not find items.xml!
[22:46:17] [WRN] Failed to load 'monsters.xml': No such file or directory
[22:46:17] [ERR] Monster Manager: Could not find monsters.xml!
[22:46:17] [INF] Connection established to the account server.
[22:46:17] [INF] Game handler started:
[22:46:17] [INF] Listening on port 9604...
[22:46:17] [WRN] Failed to load 'maps/new_1-1.tmx.gz': No such file or directory
[22:46:17] [ERR] Error: Map file not found (maps/new_1-1.tmx.gz)
[22:46:17] [INF] Activated map "maps/new_1-1.tmx.gz" (id 1)
tmwserv-game: game-server/testing.cpp:17: void dropItem(MapComposite*, int, int, int): Assertion `ic' failed.
Aborted
Thanks for your help...

Re: Problem with testing server...

Posted: 13 Mar 2008, 21:50
by Crush
Copy the directory data/maps and the files data/monsters.xml and data/items.xml from the client into the data directory of the server.

Re: Problem with testing server...

Posted: 13 Mar 2008, 21:56
by And1
Thank you, Crush. =)

Re: Problem with testing server...

Posted: 01 Apr 2008, 07:05
by Bjørn
On Linux it is usually better to create a symlink, since then you don't need to copy updated files over after running 'svn update' in the client checkout. Something like:

Code: Select all

cd tmwserver/trunk/data
ln -s ../../../tmw/trunk/data/items.xml
However, we recently created a "tmwdata" module that will be used instead of the "data" subdirectory of the client for most files. So then any created symlinks will need to be updated of course.

Re: Problem with testing server...

Posted: 26 Aug 2008, 07:53
by Holunda
Hi,

I have the same problem as And1 above, but additionally there are no *.xml files in the client's data dir. I had checked out `twm' and `twmserv' from svn.

Thanks for your help.

EDIT:

Aha, as stated here http://forums.themanaworld.org/viewtopi ... 112#p23112, one can check out the data from another svn repos: https://themanaworld.svn.sourceforge.ne ... ata/trunk/

Ok, symlinked them into tmw-serv/data, server now starts, but still whines about missing XMLs

Code: Select all

[10:20:01] [INF] The Mana World Game Server v0.0.1
[10:20:01] [INF] Using config file: /home/dm/.tmwserv.xml
[10:20:01] [INF] Using log file: /home/dm/.tmwserv-game.log
[10:20:01] [WRN] Failed to load 'maps.xml': No such entry in search path
[10:20:01] [ERR] Map Manager: Could not find maps.xml!
[10:20:01] [WRN] Failed to load 'items.xml': No such entry in search path
[10:20:01] [ERR] Item Manager: Could not find items.xml!
[10:20:01] [WRN] Failed to load 'monsters.xml': No such entry in search path
[10:20:01] [ERR] Monster Manager: Could not find monsters.xml!
[10:20:01] [INF] Connection established to the account server.
[10:20:01] [INF] Game handler started:
[10:20:01] [INF] Listening on port 9604...
And when I try to begin a new game with a newly registered char, the account server complains

Code: Select all

[10:12:53] [INF] A new client connected from 127.0.0.1:41876 to port 9601
[10:13:00] [ERR] Character Selection: No game server for the map.
What's missing now?

Re: Problem with testing server...

Posted: 26 Aug 2008, 09:14
by ElvenProgrammer
Probably tmwserv is misconfigured, try to read the documentation included, there should be written somewhere how to configure it.

Re: Problem with testing server...

Posted: 26 Aug 2008, 11:04
by Holunda
tmwserv/README states that those XML files should reside in a mysterious "data" directory. Fine, but where should *that directory* be located?

Compiling and installing (--prefix ~/tmw) the client creates such a dir here: "~/tmw/share/tmw/data". Cool, I thought, and hacked in a script that symlinks all files from tmw-data to here (cf. attachment).

But the errors remained.

After browsing the code and inserting some LOG_INFOs I found (to my miserable surprise) that ResourceManager::initialize() determines the data-path from the current working dir, and that *is hardcoded*. :(

Ok, another symlink from "~/tmw/share/tmw/data" to "~/tmw/data" and restart the server: Hooray, all XMLs are found, but now I got clubbed to death by other warnings (cf. attach#2).

Is this why it's called 'bleeding edge'? Should I file some Mantis tickets?

Agh, wanted to attach these, but all extensions seem forbidden.

AGH, maxlen 60000 chars, could not enclose the data.

EDIT:

So, after much labour, these are the results:
- Server starts, uses symlinked data
- Client starts, must use "-d ~/tmw/share/tmw/data", must patch main.cpp with PHYSFS_permitSymbolicLinks(1);
- Can register, create new char

But server and client both write errors to their log files. Running through the map is slow, and each click produces a particle explosion. Does not look correct to me. Is there any description about how far the "tmwserv" development is?

The script and the logs are now here: http://netload.in/datei09643d8be8/script_n_logs.tgz.htm