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: Tue Aug 12, 2008 3:46 pm

How can I compile the TMW Server in Win32 System?

Post by owlcn » Tue Aug 12, 2008 3:52 pm

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: Thu Nov 01, 2007 6:35 pm
Location: Internet

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

Post by Jaxad0127 » Tue Aug 12, 2008 6:59 pm

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

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

Post by owlcn » Wed Aug 13, 2008 11:43 am

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: Thu Aug 25, 2005 5:08 pm
Location: Germany

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

Post by Crush » Wed Aug 13, 2008 1:18 pm

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: Tue Aug 12, 2008 3:46 pm

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

Post by owlcn » Wed Aug 13, 2008 4:04 pm

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: Thu Aug 25, 2005 5:08 pm
Location: Germany

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

Post by Crush » Wed Aug 13, 2008 4:11 pm

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 Wed Aug 13, 2008 4:17 pm, 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: Tue Aug 12, 2008 3:46 pm

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

Post by owlcn » Wed Aug 13, 2008 4:15 pm

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: Thu Aug 25, 2005 5:08 pm
Location: Germany

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

Post by Crush » Wed Aug 13, 2008 4:17 pm

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: Tue Aug 12, 2008 3:46 pm

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

Post by owlcn » Wed Aug 13, 2008 4:27 pm

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