Problem with testing server...

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
And1
Peon
Peon
Posts: 45
Joined: 12 Mar 2008, 10:24
Location: Germany

Problem with testing server...

Post by And1 » 13 Mar 2008, 22:48

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...
And1 <3 Mana
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Problem with testing server...

Post by Crush » 13 Mar 2008, 22:50

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.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
And1
Peon
Peon
Posts: 45
Joined: 12 Mar 2008, 10:24
Location: Germany

Re: Problem with testing server...

Post by And1 » 13 Mar 2008, 22:56

Thank you, Crush. =)
And1 <3 Mana
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: Problem with testing server...

Post by Bjørn » 01 Apr 2008, 08:05

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.
Holunda
Peon
Peon
Posts: 2
Joined: 26 Aug 2008, 07:50

Re: Problem with testing server...

Post by Holunda » 26 Aug 2008, 08:53

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?
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Re: Problem with testing server...

Post by ElvenProgrammer » 26 Aug 2008, 10:14

Probably tmwserv is misconfigured, try to read the documentation included, there should be written somewhere how to configure it.
Holunda
Peon
Peon
Posts: 2
Joined: 26 Aug 2008, 07:50

Re: Problem with testing server...

Post by Holunda » 26 Aug 2008, 12:04

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
Post Reply