Problem with Manaserv maps.xml

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
Mpa4Hu
Peon
Peon
Posts: 58
Joined: 18 Jul 2009, 13:26

Problem with Manaserv maps.xml

Post by Mpa4Hu » 14 Feb 2011, 12:36

Hello, i don't think that my problem needs to open new thread so i'll post it here (if it's right place)

http://doc.manasource.org/git_repository
there in your repositories, is no server data.
so i downloaded it from
http://wiki.themanaworld.org/index.php/Git_repository
TMW server data
I placed everything except manaserv.xml into the "data" folder (manaserv.xml i placed into the root folder)

when I start gameserver.exe the log file says:

Code: Select all

[16:15:28] [INF] Using log file: ./manaserv-game.log
[16:15:28] [ERR] (XML::Document) Error parsing XML file: data/maps.xml
[16:15:28] [ERR] Item Manager: Error while parsing map database (data/maps.xml)!
[16:15:28] [FTL] The Game Server can't find any valid/available maps.
I searched at forum, but nothing interesting >_>

P.S. i forgot, I placed manaclient maps folder into the data
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Problem with Manaserv maps.xml

Post by Crush » 14 Feb 2011, 13:14

Manaserv needs both a client data and a server data directory. You can find an example for both in the example directory of the Manaserv git repository. The manaserv.xml points to these by default. When you have your client- and server data somewhere else, you need to configure these paths in the manaserv.xml. Putting both the client data and the server data into one directory is no longer recommended.

Also what operating system are you using? When I use Windows I sometimes encounter the problem that the newlines in XML files are converted from UNIX newlines to Windows newlines which can not be handled by the xml parser and cause the weirdest error messages from it when parsed.
  • 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
Mpa4Hu
Peon
Peon
Posts: 58
Joined: 18 Jul 2009, 13:26

Re: Problem with Manaserv maps.xml

Post by Mpa4Hu » 14 Feb 2011, 14:37

I did this.

I put client data (clientdata) and server data (serverdata) in to the root directory

manaserv.xml

Code: Select all

<option name="serverPath" value="." />
 <option name="clientDataPath" value="clientdata" />
 <option name="serverDataPath" value="serverdata" />
clientdata:

Code: Select all

14.02.2011  06:29PM    <DIR>          .
14.02.2011  06:29PM    <DIR>          ..
13.02.2011  08:23PM               127 .mailmap
13.02.2011  08:23PM            18 349 COPYING
13.02.2011  08:23PM             1 517 ea-skills.xml
13.02.2011  08:23PM             4 128 effects.xml
13.02.2011  08:23PM             3 556 emotes.xml
14.02.2011  06:29PM    <DIR>          graphics
13.02.2011  08:23PM               836 hair.xml
13.02.2011  08:23PM           205 728 items.xml
13.02.2011  08:23PM             1 460 items.xsd
13.02.2011  08:23PM             1 643 items.xsl
14.02.2011  06:29PM    <DIR>          maps
13.02.2011  08:23PM            50 003 monsters.xml
13.02.2011  08:23PM            12 930 npcs.xml
13.02.2011  08:23PM             2 077 paths.xml
14.02.2011  06:29PM    <DIR>          rules
14.02.2011  06:29PM    <DIR>          sfx
13.02.2011  08:23PM               966 skills.xml
13.02.2011  08:23PM             2 594 status-effects.xml
13.02.2011  08:23PM               219 units.xml
              15 File(s)        306 133 bytes
               6 Dir(s)  138 960 039 936 bytes free
serverdata:

Code: Select all

14.02.2011  04:36PM    <DIR>          .
14.02.2011  04:36PM    <DIR>          ..
14.02.2011  04:30PM            18 349 COPYING
14.02.2011  04:30PM             2 649 items.xsd
14.02.2011  04:30PM             1 408 maps.xml
14.02.2011  04:30PM               934 permissions.xml
14.02.2011  04:30PM             6 161 runes.xml
14.02.2011  04:36PM    <DIR>          scripts
               5 File(s)         29 501 bytes
               3 Dir(s)  138 960 039 936 bytes free
I'm using windows, so, what do you do when this error occurs ?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Problem with Manaserv maps.xml

Post by Crush » 14 Feb 2011, 15:42

I am using this console-based tool to convert the line endings:
http://www.thefreecountry.com/tofrodos/index.shtml
  • 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
Mpa4Hu
Peon
Peon
Posts: 58
Joined: 18 Jul 2009, 13:26

Re: Problem with Manaserv maps.xml

Post by Mpa4Hu » 14 Feb 2011, 16:08

todos not helping.
i also coped all content from maps.xml and made new one but i have same error. don't know why
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Problem with Manaserv maps.xml

Post by Crush » 14 Feb 2011, 16:32

Todos isn't supposed to help here. You have to convert the lines fromdos or tounix.
i also coped all content from maps.xml and made new one but i have same error.
Are you using a text editor which shows line-ending characters? Notepad++ can do this, for example. When you switch on the display of line ending characters, it should only show a small [LF] at the end of each line. When it shows [CR][LF] it will break the XML parser. Unfortunately Notepad++ can't convert the line ending style of a file (or at least I couldn't find out how).
  • 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
Mpa4Hu
Peon
Peon
Posts: 58
Joined: 18 Jul 2009, 13:26

Re: Problem with Manaserv maps.xml

Post by Mpa4Hu » 14 Feb 2011, 16:49

Crush wrote:Todos isn't supposed to help here. You have to convert the lines fromdos or tounix.

thx you, it helped
User avatar
Mpa4Hu
Peon
Peon
Posts: 58
Joined: 18 Jul 2009, 13:26

Re: Problem with Manaserv maps.xml

Post by Mpa4Hu » 14 Feb 2011, 17:04

yes i'm using notepad++, and it helps a lot, thx

---
last question (i think)

Code: Select all

[20:52:27] [INF] Loading monster reference: clientdata/monsters.xml
[20:52:27] [WRN] Monster Manager: There is a monster (Maggot) without Id in mons
ters.xml! It has been ignored.
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:4 (Giant Maggo
t)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:4 (Giant Mag
got)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:5 (Yellow Slim
e)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:5 (Yellow Sl
ime)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:6 (Red Slime)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:6 (Red Slime
)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:7 (Black Scorp
ion)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:7 (Black Sco
rpion)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:8 (Snake)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:8 (Snake)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:10 (Spider)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:10 (Spider)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:11 (Evil Mushr
oom)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:11 (Evil Mus
hroom)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:13 (Santa Slim
e)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:13 (Santa Sl
ime)
[20:52:27] [WRN] monsters.xml: No behavior defined for monster Id:14 (Rudolph Sl
ime)
[20:52:27] [WRN] monsters.xml: No experience defined for monster Id:14 (Rudolph
Slime)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:15 (Bat)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:15 (Bat)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:16 (Pinkie)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:16 (Pinkie)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:17 (Spiky Mush
room)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:17 (Spiky Mu
shroom)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:18 (Fluffy)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:18 (Fluffy)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:19 (Cave Snake
)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:19 (Cave Sna
ke)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:20 (Jack O)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:20 (Jack O)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:21 (Fire Skull
)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:21 (Fire Sku
ll)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:22 (Poison Sku
ll)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:22 (Poison S
kull)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:23 (Log Head)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:23 (Log Head
)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:24 (Mountain S
nake)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:24 (Mountain
 Snake)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:25 (Easter Flu
ffy)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:25 (Easter F
luffy)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:26 (Mouboo)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:26 (Mouboo)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:27 (Mauve Plan
t)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:27 (Mauve Pl
ant)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:28 (Cobalt Pla
nt)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:28 (Cobalt P
lant)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:29 (Gamboge Pl
ant)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:29 (Gamboge
Plant)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:30 (Alizarin P
lant)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:30 (Alizarin
 Plant)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:31 (Sea Slime)

[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:31 (Sea Slim
e)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:32 (Grass Snak
e)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:32 (Grass Sn
ake)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:33 (Silkworm)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:33 (Silkworm
)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:34 (Zombie)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:34 (Zombie)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:35 (Clover Pat
ch)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:35 (Clover P
atch)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:36 (Squirrel)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:36 (Squirrel
)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:37 (Fire Lizar
d)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:37 (Fire Liz
ard)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:39 (Snail)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:41 (Skeleton)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:41 (Skeleton
)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:42 (Lady Skele
ton)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:42 (Lady Ske
leton)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:43 (Fallen)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:43 (Fallen)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:47 (Bee)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:47 (Bee)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:47 (Bee)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:53 (Butterfl
y)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:53 (Butterfly)

[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:53 (Butterfl
y)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:54 (Cave Mag
got)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:54 (Cave Maggo
t)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:54 (Cave Mag
got)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:55 (Angry Sc
orpion)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:55 (Angry Scor
pion)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:55 (Angry Sc
orpion)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:56 (Ice Gobl
in)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:56 (Ice Goblin
)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:56 (Ice Gobl
in)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:57 (Giant Ca
ve Maggot)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:57 (Giant Cave
 Maggot)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:57 (Giant Ca
ve Maggot)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:58 (Archant)

[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:58 (Archant)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:58 (Archant)

[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:59 (Moggun)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:59 (Moggun)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:59 (Moggun)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:60 (Terranit
e)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:60 (Terranite)

[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:60 (Terranit
e)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:61 (Pumpkin)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:61 (Pumpkin)

[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:62 (Bandit)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:62 (Bandit)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:62 (Bandit)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:63 (Bandit L
ord)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:63 (Bandit Lor
d)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:63 (Bandit L
ord)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:64 (Vampire Ba
t)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:64 (Vampire
Bat)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:65 (Reaper)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:65 (Reaper)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:65 (Reaper)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:66 (Reaper)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:66 (Reaper)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:66 (Reaper)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:67 (Scythe)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:67 (Scythe)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:67 (Scythe)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:68 (Ball Lig
htning)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:68 (Ball Light
ning)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:68 (Ball Lig
htning)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:69 (Ice Elem
ent)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:69 (Ice Elemen
t)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:69 (Ice Elem
ent)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:70 (Yeti)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:70 (Yeti)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:70 (Yeti)
[20:52:28] [WRN] monsters.xml: No attributes defined for monster Id:71 (The Lost
)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:71 (The Lost)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:71 (The Lost
)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:75 (Drunken Sk
eleton)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:75 (Drunken
Skeleton)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:76 (Tipsy Skel
eton)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:76 (Tipsy Sk
eleton)
[20:52:28] [WRN] monsters.xml: No behavior defined for monster Id:77 (Drunken La
dy Skeleton)
[20:52:28] [WRN] monsters.xml: No experience defined for monster Id:77 (Drunken
Lady Skeleton)
[20:52:28] [INF] Loaded 68 monsters from monsters.xml.
[20:52:28] [INF] Loading status reference: serverdata/mana-status-effect.xml
[20:52:28] [INF] Loading status script: scripts/status/plague.lua
[20:52:28] [INF] Loading status script: scripts/status/jump.lua
[20:52:28] [INF] Loading permission reference...
[20:52:28] [INF] The Mana Game Server v2nd milestone
[20:52:28] [INF] Manaserv Protocol version 1, Enet version 1.3.0

there is warnings about monsters, do i need to remake monster.xml (add behaviors and <exp>) to make mobs work?






-_________________________________________________-

http://forums.themanaworld.org/viewtopic.php?f=3&t=1679
i found this, thx for attention ^_^
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Problem with Manaserv maps.xml

Post by Crush » 14 Feb 2011, 17:57

You are obviously using the monsters.xml from tmwAthena. This one is of course missing the monster attributes needed for Manaserv. The one from the example data has working example monsters.
  • 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.
Post Reply