(mark as outdated) |
m (Text replacement - "git://" to "https://") |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Last updated By DJDrift2222 on 3/3/2012 | |||
==The Setup== | |||
This article describes how to set up eAthena on a Windows system. There is also an article about [[setting up eAthena on Linux]]. | This article describes how to set up eAthena on a Windows system. There is also an article about [[setting up eAthena on Linux]]. | ||
Line 9: | Line 8: | ||
# Install Cygwin. Select "install from Internet" as download source. When you are on the component select screen make sure the component category "devel" is installed. You technically need not everything from this group but a lot. So just install the whole group. | # Install Cygwin. Select "install from Internet" as download source. When you are on the component select screen make sure the component category "devel" is installed. You technically need not everything from this group but a lot. So just install the whole group. | ||
# Start Cygwin | # Start Cygwin | ||
# Enter '''ln -s flex /usr/bin/lex''' This is to get the Flex commands ready for use they are not active at first... | |||
# Browse to the directory where you would like to have eAthena. When you want it in c:/tmw, for example, the command would be '''cd /cygdrive/c/tmw/''' (directory must exist. when it does not you can create it with '''mkdir /cygdrive/c/tmw/''') | # Browse to the directory where you would like to have eAthena. When you want it in c:/tmw, for example, the command would be '''cd /cygdrive/c/tmw/''' (directory must exist. when it does not you can create it with '''mkdir /cygdrive/c/tmw/''') | ||
# Enter '''git clone | # Enter '''git clone https://github.com/themanaworld/tmwa.git eathena''' to download the most recent sourcecode of the server. | ||
# Enter '''git clone | [http://i95.photobucket.com/albums/l122/silentdimes/step1.jpg What you should have so far] | ||
# Enter '''git clone --recursive https://github.com/themanaworld/tmwa-server-data.git eathena-data''' to download the most recent game content for the server. | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step2.jpg Image for this step] | |||
# Enter '''cd eathena''' to browse into the newly created eathena directory | # Enter '''cd eathena''' to browse into the newly created eathena directory | ||
# Enter '''make''' to compile the sourcecode. | # Enter '''make''' to compile the sourcecode. | ||
# | [http://i95.photobucket.com/albums/l122/silentdimes/step3.jpg Step 1 of Make] | ||
[http://i95.photobucket.com/albums/l122/silentdimes/step4.jpg Step 2 of Make] | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step5.jpg Step 3 of Make] | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step6.jpg Step 4 of Make] | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step7.jpg Step 5 of Make] | |||
# Enter '''cp login-server char-server map-server ladmin /usr/local/bin/''' | |||
# Enter '''cd ../eathena-data''' | |||
# Enter '''ln -s ../../git/hooks/post-merge .git/hooks/''' | |||
# Enter '''ln -s ../../../git/hooks/post-merge client-data/.git/hooks/''' | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step8.jpg Up to this point] | |||
# Enter '''make conf''' | |||
# Enter '''cd client-data''' | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step9.jpg what you should have up to this point] | |||
# Enter '''git checkout master''' | |||
# Enter '''cd music''' | |||
# Enter '''git checkout master''' | |||
[http://i95.photobucket.com/albums/l122/silentdimes/step10.jpg Last Image for these Steps] | |||
# Copy cygwin1.dll and cygz.dll into the eathena directory. You find them in the subdirectory /bin of your cygwin installation. | # Copy cygwin1.dll and cygz.dll into the eathena directory. You find them in the subdirectory /bin of your cygwin installation. | ||
==Testing your server== | |||
Now you can close that terminal and open a new one | |||
# Open a terminal | |||
# | # Enter '''cd ~/tmw-ea/eathena-data/''' | ||
# | # Enter '''./char-server& ./login-server& ./map-server&''' | ||
When one of them closes immediately after you start it you should try to start it from the command prompt to see the error messages before the window closes. | |||
You should now be able to connect to your server by starting your TMW client and entering "127.0.0.1" as server. Before you announce your server publically for others to play on you should change the server account passwords in accounts.txt, conf/char_local.conf and conf/map_local.conf to avoid abuse. Register a new character through your client to confirm if everything is working properly. | You should now be able to connect to your server by starting your TMW client and entering "127.0.0.1" as server. Before you announce your server publically for others to play on you should change the server account passwords in accounts.txt, conf/char_local.conf and conf/map_local.conf to avoid abuse. Register a new character through your client to confirm if everything is working properly. |
Latest revision as of 01:03, 13 June 2022
Last updated By DJDrift2222 on 3/3/2012
The Setup
This article describes how to set up eAthena on a Windows system. There is also an article about setting up eAthena on Linux.
- Download Cygwin from http://www.cygwin.com/
- Find something to keep you busy, because the next step will take a while
- Install Cygwin. Select "install from Internet" as download source. When you are on the component select screen make sure the component category "devel" is installed. You technically need not everything from this group but a lot. So just install the whole group.
- Start Cygwin
- Enter ln -s flex /usr/bin/lex This is to get the Flex commands ready for use they are not active at first...
- Browse to the directory where you would like to have eAthena. When you want it in c:/tmw, for example, the command would be cd /cygdrive/c/tmw/ (directory must exist. when it does not you can create it with mkdir /cygdrive/c/tmw/)
- Enter git clone https://github.com/themanaworld/tmwa.git eathena to download the most recent sourcecode of the server.
- Enter git clone --recursive https://github.com/themanaworld/tmwa-server-data.git eathena-data to download the most recent game content for the server.
- Enter cd eathena to browse into the newly created eathena directory
- Enter make to compile the sourcecode.
Step 1 of Make Step 2 of Make Step 3 of Make Step 4 of Make Step 5 of Make
- Enter cp login-server char-server map-server ladmin /usr/local/bin/
- Enter cd ../eathena-data
- Enter ln -s ../../git/hooks/post-merge .git/hooks/
- Enter ln -s ../../../git/hooks/post-merge client-data/.git/hooks/
- Enter make conf
- Enter cd client-data
what you should have up to this point
- Enter git checkout master
- Enter cd music
- Enter git checkout master
- Copy cygwin1.dll and cygz.dll into the eathena directory. You find them in the subdirectory /bin of your cygwin installation.
Testing your server
Now you can close that terminal and open a new one
- Open a terminal
- Enter cd ~/tmw-ea/eathena-data/
- Enter ./char-server& ./login-server& ./map-server&
When one of them closes immediately after you start it you should try to start it from the command prompt to see the error messages before the window closes.
You should now be able to connect to your server by starting your TMW client and entering "127.0.0.1" as server. Before you announce your server publically for others to play on you should change the server account passwords in accounts.txt, conf/char_local.conf and conf/map_local.conf to avoid abuse. Register a new character through your client to confirm if everything is working properly.