How can I compile the TMW Server in Win32 System?

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
owlcn
Peon
Peon
Posts: 6
Joined: 12 Aug 2008, 15:46

How can I compile the TMW Server in Win32 System?

Post by owlcn » 12 Aug 2008, 15:52

I wang to compile the tmw server in win32 with VS2008,What dependencies should I download first?
who can tell me how to compile the source in VS2008,I got a lot of error info:

1>netcomputer.cpp
1>D:\Src\ServerCode\TheManaWorld\server\src\utils/logger.h(81) : error C2143: syntax error : missing '}' before 'constant'
1>D:\Src\ServerCode\TheManaWorld\server\src\utils/logger.h(81) : error C2059: syntax error : 'constant'
1>D:\Src\ServerCode\TheManaWorld\server\src\utils/logger.h(85) : error C2143: syntax error : missing ';' before '}'
1>D:\Src\ServerCode\TheManaWorld\server\src\utils/logger.h(85) : error C2238: unexpected token(s) preceding ';'

Help me,please~~
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: How can I compile the TMW Server in Win32 System?

Post by Jaxad0127 » 12 Aug 2008, 18:59

There are prebuilt executables for it: http://nightly.themanaworld.org/
Image
owlcn
Peon
Peon
Posts: 6
Joined: 12 Aug 2008, 15:46

Re: How can I compile the TMW Server in Win32 System?

Post by owlcn » 13 Aug 2008, 11:43

But how can i build it by myself?
I want to debug the svr to learn how does it run~~~
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: How can I compile the TMW Server in Win32 System?

Post by Crush » 13 Aug 2008, 13:18

I would suggest you to use Code::Blocks with MinGW (the compiler which comes with it). It is the development environment which is used by most (if not all) TMW developers who use windows and we provide (almost) up to date project files for it (the project files for other IDEs you find in some repositories are extremely outdated).

Also note: http://wiki.themanaworld.org/index.php/ ... on_Windows
  • 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.
owlcn
Peon
Peon
Posts: 6
Joined: 12 Aug 2008, 15:46

Re: How can I compile the TMW Server in Win32 System?

Post by owlcn » 13 Aug 2008, 16:04

ok,i have compiled the svr and the client in C::B,thx~~~
can you tell me where can i get the data for svr? i copy client data to svr/data,but i get a lot of warning info:

[22:39:27] [WRN] items.xml: Unknown item type "" for item #1 - treating it as "generic"
[22:39:27] [WRN] Item Manager: Missing max-per-slot property for item 1 in items.xml.
[22:39:27] [WRN] Item Manager: Missing weight for item 1 in items.xml.
[22:39:27] [WRN] items.xml: Unknown item type "" for item #2 - treating it as "generic"
[22:39:27] [WRN] Item Manager: Missing max-per-slot property for item 2 in items.xml.
[22:39:27] [WRN] Item Manager: Missing weight for item 2 in items.xml.

[22:39:28] [WRN] Item Manager: Missing max-per-slot property for item 119 in items.xml.
[22:39:28] [WRN] Item Manager: Missing weight for item 119 in items.xml.
[22:39:28] [WRN] Item Manager: Missing max-per-slot property for item 512 in items.xml.
[22:39:28] [WRN] Item Manager: Missing max-per-slot property for item 513 in items.xml.
[22:39:28] [WRN] Item Manager: Missing max-per-slot property for item 514 in items.xml.
[22:39:28] [WRN] Item Manager: Missing max-per-slot property for item 515 in items.xml.
[22:39:28] [WRN] Item Manager: Missing max-per-slot property for item 516 in items.xml.

[22:39:28] [WRN] Monster Manager: There is a monster (Maggot) without ID in monsters.xml! It has been ignored.
[22:39:28] [WRN] monsters.xml: No attributes defined for monster #4 (Giant Maggot)
[22:39:28] [WRN] monsters.xml: No behavior defined for monster #4 (Giant Maggot)
[22:39:28] [WRN] monsters.xml: No experience defined for monster #4 (Giant Maggot)
[22:39:28] [WRN] monsters.xml: No attributes defined for monster #5 (Yellow Slime)
[22:39:28] [WRN] monsters.xml: No behavior defined for monster #5 (Yellow Slime)
[22:39:28] [WRN] monsters.xml: No experience defined for monster #5 (Yellow Slime)

[22:39:46] [WRN] Unable to find a free spawn location for monster 5 on map new_5-1 (0,0,4096,4096)
[22:40:22] [WRN] Unable to find a free spawn location for monster 10 on map new_5-1 (0,0,4096,4096)
[22:41:34] [WRN] Unable to find a free spawn location for monster 10 on map new_5-1 (0,0,4096,4096)

...

i can't see any monster in any map,what's wrong?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: How can I compile the TMW Server in Win32 System?

Post by Crush » 13 Aug 2008, 16:11

All the warnings you posted are normal.

When you want some monsters for testing you can find an NPC which spawns monsters in front of the Tulimshar city gate ("Scorpion Tamer").
Last edited by Crush on 13 Aug 2008, 16:17, edited 1 time in total.
  • 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.
owlcn
Peon
Peon
Posts: 6
Joined: 12 Aug 2008, 15:46

Re: How can I compile the TMW Server in Win32 System?

Post by owlcn » 13 Aug 2008, 16:15

yes,i know,thanks~

i find that when i in map 1,click on a far point in map,sometime the player didn't move to the point but transport to that point,why that?

in map 2 or 3,it will be better~
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: How can I compile the TMW Server in Win32 System?

Post by Crush » 13 Aug 2008, 16:17

The whole movement code is currently very buggy and in a redesign phase.
  • 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.
owlcn
Peon
Peon
Posts: 6
Joined: 12 Aug 2008, 15:46

Re: How can I compile the TMW Server in Win32 System?

Post by owlcn » 13 Aug 2008, 16:27

o,i see.
i hope the new redesigned code will be perfect~~
i will go on to study and debug the program,thx very much~~~
Post Reply