Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Setup Vana Source.

Status
Not open for further replies.
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
PHP:
Hi guys, i've set up Vana source today (C++) language.
Firstly, you will need to go to their official forum

A few notes before using this guide:
(Note that i will be using another guide from Vana forum as reference and to perfect the guide)
its preferably that you do not close the link that i asked you to close, for every steps that you read in Vana forums, you also refer it to this thread here.


Next you will need to register, go and look at your email after that and read.

PHP:
now you're approved, you may view the forums.

anyway to get started, at that forum, go straight to
Support Section -> Requests
then click on "Read-Only SVN Access" thread.
Follow the instructions there and SVN Checkout to your folder
that you like

next,

PHP:
you go to Support Section -> Tutorials
then click on "[Windows] Setting Up Vana on Windows" thread.
install anything that you do not have.
it would be recommended that you Ctrl + F and type "Required Software", then install whatever you do not have.

after that you also need to install
"Install MySQL C Include Files / Lib Files"
(ctrl + F if you can't find)
inside that thread.

PHP:
inside the thread, ignore these steps in that thread: 
-Secure MySQL
-Get the Source

-why? Wamp is now very secure, only localhost can access it
-why do we ignore getting the source? you have already gotten it by the SVN repository :)

PHP:
next you follow on the the next step creating a database, and name it "maplestory" as schema name, DO NOT execute any SQL scripts yet.

next step would be importing latest MCDB, i suggest you to go to
Release Section -> Release, and click on
"Maple Community Database 4.3 [Last Release: 12 DEC 09]" thread.
still on the same step, read and execute the mcdb SQL,
schema name would be MCDB

then you move on with next step.

PHP:
you do not want to change the ports,
just change the IP address from 127.0.0.1 to your WANIP.

also, look at 'external_ip.lua', inside will have
PHP:
external_ip = {}

make it so that it looked like
PHP:
{"127.0.0.1", "255.0.0.0"},
{"192.168.2.1", "255.255.255.0"},
{"your.wan.ip", "0.0.0.0"}
}

then you go to next step.
Note that if you're using VC++ 2010,
you open "Vana_VS2010.sln" file instead of Vana.sln from your VanaSource folder.

PHP:
now you go to next step.
you will see "With Revision 912, you don't have to import the sql files to the database because LoginServer will do it for you.",
that is the reason why i asked you to create schema name "maplestory" without executing any SQL scripts.

then you will see
"Right click on LoginServer -> Debug -> Start new instance",
ignore it. don't even click it.

PHP:
After you compiled, 
go to your VanaSource folder/Debug_VC100/CashServer/,
inside you will see "CashServer.exe", copy it to
your VanaSource Folder, where your "Vana_VS2010.sln" file
are.

do the same steps to
VanaSource folder/Debug_VC100/ChannelServer/ChannelServer.exe
VanaSource folder/Debug_VC100/LoginServer/LoginServer.exe
VanaSource folder/Debug_VC100/WorldServer/WorldServer.exe

After that you create A Batch file, but my way :)
Open notepad, paste the following code in.
PHP:
@echo off
cls
start /b "LoginServer" LoginServer.exe
ping 127.0.0.1 > nul
start /b "World 0" WorldServer.exe
start /b "Channel 1" ChannelServer.exe
start /b "CashServer" CashServer.exe
File -> Save
Go to your VanaSource folder where your "Vana_VS2010.sln" file are.

For File Name: put in start.bat
For Save as Type: change to All Files
Hit save

then next step.

PHP:
and then, Vana source is different from Java's SQL.
they do not have "account" table in SQL, but instead they use
"users" table in SQL.

If you have any problem/trouble, feel free to post it here and i will try to help you.

Here are some SS that should help you if in doubt maybe :p
royalsymbol - Setup Vana Source. - RaGEZONE Forums



NOTE THAT THE LOOPBACK ADAPTER's IP SHOULD BE YOUR WANIP,
FIND YOUR WANIP AT



royalsymbol - Setup Vana Source. - RaGEZONE Forums


NOTE THAT WHAT YOU SEE IN PRIVATE IP IS MY LOCAL IP,
FOUND AT START>RUN>CMD AND TYPE IN "ipconfig"
YOURS MIGHT BE DIFFERENT SO...

->OPS, FORGOTTEN TO ADD IN PORT 8485 :D


royalsymbol - Setup Vana Source. - RaGEZONE Forums


NOTE AGAIN THAT YOU SEE gzc.no-ip.org IS MY WAN IP,
PUT IN YOURS OR GO TO no-ip.com AND GET ONE :), DONT PUT MINE
OR IT WONT WORK. ALSO YOU CAN USE 127.0.0.1 AS THE IP.

royalsymbol - Setup Vana Source. - RaGEZONE Forums


NOTE THAT THIS IS THE FINAL PLACE WHERE YOU PUT YOUR COMPILED FILES
-> CashServer.exe
-> ChannelServer.exe
-> LoginServer.exe
-> WorldServer.exe

and the start.bat
 
Last edited:
Zzzz...
Loyal Member
Joined
Dec 26, 2008
Messages
781
Reaction score
225
Nice, I felt like making a guide 100% separate from their forums but they probably wouldn't allow it. Maybe this will get more people to switch to vana now :D

(My Problem: You DC on login screen after 5 seconds, no 1 knows why so far. I'm using odin now but if anyone knows why it'd be nice so I can play around with vana)
 
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
Nice, I felt like making a guide 100% separate from their forums but they probably wouldn't allow it. Maybe this will get more people to switch to vana now :D

(My Problem: You DC on login screen after 5 seconds, no 1 knows why so far. I'm using odin now but if anyone knows why it'd be nice so I can play around with vana)

well, that seems like you didn't port forward properly o.o?
check well, you should use those .bat files
as you need to start them in order

i'm not sure but i always allow those ports i need to my firewall both TCP and UDP
i've also setup loopback adapter you may try it.
 
Newbie Spellweaver
Joined
Jun 8, 2010
Messages
20
Reaction score
0
I get an error saying
"error MSB8010: Specified platform toolset (v90) requires Visual Studio 2008. Please make sure that Visual Studio 2008 is installed on the machine."

However I clicked on the Vana_VS2010.sln...\

Edit:

Double checked I was using the correct .sln file.

Edit 2:

Same thing, Im using the correct file, I can't think of another reason for it to not work; Unless VC++2010 is dependent on VC++2008? Unlikely.. but I have no clue.

In addition it is all 5 files that give me that error. All asking for 2008.
 
Last edited:
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
I get an error saying
"error MSB8010: Specified platform toolset (v90) requires Visual Studio 2008. Please make sure that Visual Studio 2008 is installed on the machine."

However I clicked on the Vana_VS2010.sln...\

Edit:

Double checked I was using the correct .sln file.

Edit 2:

Same thing, Im using the correct file, I can't think of another reason for it to not work; Unless VC++2010 is dependent on VC++2008? Unlikely.. but I have no clue.

In addition it is all 5 files that give me that error. All asking for 2008.

try this
PHP:
1. Open Visual C++ 2010, and the Vana Solution.
2. Goto solution explorer (On the left side by default, I think)
3. Hold Ctrl then click each project. (Highlighting each ChannelServer, Common, etc.)
4. You can release Ctrl, then Right-Click any one of the projects and click properties.
5. On the Left, goto

    * Configuration Properties
    *
          o General

6. Then on the right under General you should see "Platform Toolset".
7. Change it to v100.
8. Rebuild.
 
Newbie Spellweaver
Joined
Jun 8, 2010
Messages
20
Reaction score
0
Ok, that allowed the build to start working.
Now im getting an error with MySQL?

"2>c:\mysql++\include\common.h(124): fatal error C1083: Cannot open include file: 'mysql_version.h': No such file or directory"

Is this from the MySQL libraries? Im sure I installed them.
Maybe not im, tired. Ill check and repost my findings..

Edit:
haha "Good noob friendly guide"

I think I might be a special kind of noob... :p
 
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
Ok, that allowed the build to start working.
Now im getting an error with MySQL?

"2>c:\mysql++\include\common.h(124): fatal error C1083: Cannot open include file: 'mysql_version.h': No such file or directory"

Is this from the MySQL libraries? Im sure I installed them.
Maybe not im, tired. Ill check and repost my findings..

Edit:
haha "Good noob friendly guide"

I think I might be a special kind of noob... :p

sigh.. seems like you didn't install what i told you to, check out "after that you also need to install
PHP:
"Install MySQL C Include Files / Lib Files"
(ctrl + F if you can't find)
inside that thread."

PLEASE READ WHOLE THING thank you :)

also install LazurBeemz Library Pack
 
Last edited:
Everything is possible~
Loyal Member
Joined
Jan 9, 2008
Messages
818
Reaction score
847
Note that this guide requires you to have Visual Studio/C++ 2010 installed. You can use Visual Studio/C++ 2008 too to compile Vana. :)
 
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
Note that this guide requires you to have Visual Studio/C++ 2010 installed. You can use Visual Studio/C++ 2008 too to compile Vana. :)

supz yea. to get almost no errors try using C++ 2008 if you are having trouble with 2010, i installed both so its fail-proof :)
v83's solution doesn't really work with 2010 because of the LINK library stuff ><
 
Everything is possible~
Loyal Member
Joined
Jan 9, 2008
Messages
818
Reaction score
847
supz yea. to get almost no errors try using C++ 2008 if you are having trouble with 2010, i installed both so its fail-proof :)
v83's solution doesn't really work with 2010 because of the LINK library stuff ><

I can compile fine on 2010 with the V.83 source...
 
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
I can compile fine on 2010 with the V.83 source...

let me try it and i tell you whats my error (if any)
wow theres a very huge svn update XD:D
still compiling.. any tips to make it compile fast? :D

yep.. getting
PHP:
Error	1	error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_41.lib'	C:\Users\Zhi Cai\Documents\maplestory\VanaSource\VanaSourceV83\LINK

whats wrong? i've installed LazurBeemz Library Pack :(

on v75, doesn't have this problem :)
 
Last edited:
Everything is possible~
Loyal Member
Joined
Jan 9, 2008
Messages
818
Reaction score
847
let me try it and i tell you whats my error (if any)
wow theres a very huge svn update XD:D
still compiling.. any tips to make it compile fast? :D

yep.. getting
PHP:
Error    1    error LNK1104: cannot open file  'libboost_system-vc100-mt-gd-1_41.lib'    C:\Users\Zhi  Cai\Documents\maplestory\VanaSource\VanaSourceV83\LINK
whats wrong? i've installed LazurBeemz Library Pack :(

the boost version doesn't has the VC 2010 libs, as it wasn't released yet in the time the Lib pack was released. You need to set the build thing to VC90, as these libs are inside the lib pack.


Btw, did you update your checkout?
 
Junior Spellweaver
Joined
May 21, 2010
Messages
119
Reaction score
20
the boost version doesn't has the VC 2010 libs, as it wasn't released yet in the time the Lib pack was released. You need to set the build thing to VC90, as these libs are inside the lib pack.


Btw, did you update your checkout?

yep i updated, and i checked its on VC One-Hundred i will change it to VC90 and try again :)

my bad, after updating, the solutions -> properties was VC90, i set it to VC One-Hundred :p
 
Last edited:
Status
Not open for further replies.
Back
Top