Jump to content

Keith

Members
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Keith

  1. Sorry, didn't realize I missed that

    On 5/31/2016 at 1:51 AM, Zira said:

    yes i did follow the instruction. it worked once on a clean copy. then i get the error upon recompiling.

    * glad the guide has been updated. but it's still missing the log folder.

     

    5. Copying required files

    
    mkdir live
    cp bin/Release/{*.exe,*.dll,*liblua*} live
    cp -r {system,sql,user,lib,log,doc} live

    * need to "mkdir log" inside live folder.

     

     

     

    • Like 1
  2. Debian

    Open your favorite SSH terminal

    Please do not run Melia as root, it's just not recommended... as running Linux, this is one of the most important things to know.

    1. Installation of required software

    sudo apt-get install mono-devel git-core screen

     

    2. Installing either MySQL or MariaDB (I recommend MariaDB)

    sudo apt-get install mysql-server
    OR
    MariaDB:
    https://downloads.mariadb.org/mariadb/repositories/#mirror=digitalocean-nyc&distro=Debian&distro_release=jessie--jessie&version=10.1


    also recommended to run to secure your mysql/mariadb server:

    mysql_secure_installation

     

    3. Cloning Melia repository

     

    git clone https://github.com/aura-project/melia.git

     

    4. Compiling Melia repository

     

    cd melia
    xbuild /p:Configuration=Release Melia.sln

     

    5. Copying required files

     

    mkdir live
    mkdir live/log/
    cp bin/Release/{*.exe,*.dll,*liblua*} live
    cp -r {system,sql,user,lib,log,doc} live

     

    6. Setting up MySQL/MariaDB

     

    mysql -u root -p
    CREATE database melia;
    CREATE USER 'melia'@'localhost' IDENTIFIED BY 'somepassword';
    GRANT CREATE,DELETE,DROP,EXECUTE,INSERT,SELECT,UPDATE ON melia.database TO 'melia'@'localhost';
                                                                      

    then type exit

    mysql -u melia -p passwordyouset -h localhost melia < sql/main.sql

     

    7. Editing config files

     

    nano or vi live/conf/database.conf
    // Melia
    // Configuration file
    //----------------------------------------------------------------------------
    
    host     : 127.0.0.1
    user     : MySQLUSER
    pass     : MySQLPASSWORD
    database : melia
    
    include "/user/conf/database.conf"
    mv user/conf/database-example.conf database.conf
    nano or vi /user/conf/database.conf
    
    // Melia
    // Configuration file
    //----------------------------------------------------------------------------
    
    pass     : MySQLPASSWORD

     

    8. Editing servers.txt

     

    nano or vi /system/db/servers.txt
    // Melia
    // Database file
    //---------------------------------------------------------------------------
    
    [
    { type: "Login", id: 1, ip: "127.0.0.1", port: 2000 },
    { type: "Channel", id: 1, ip: "127.0.0.1", port: 7000, maps: "all" },
    ]

    If you're not doing this locally, edit the 127.0.0.1 IP address to your WAN IP (you can get your WAN IP at http://whatismyip.com OR http://ip4.me

     

    9. Starting Login,Channel,Web server

     

    screen -S 'Login'
    mono LoginServer.exe

    Hold Ctrl+A+D to detach from the screen

    screen -S 'Channel'
    mono ChannelServer.exe

    Hold Ctrl+A+D to detach from the screen

    screen -S 'Web'
    mono WebServer.exe

    Hold Ctrl+A+D to detach from the screen

     

    And you're done! I will make the guide look better later on.

    • Like 3
  3. Hello guys!

     

    My name is Keith, I'm one of the ex eAthena devs from back in the day...I was around when AppleGirl was running just Athena.. :).. I used to script NPC's and stuff... I need to learn more about LUA, but I'm sure I can become useful once again..

    My first MMO was Ragnarok Online, and also my first..well..lets not go there.. And seeing how Tree of Savior is the birth child of RO, and I am in love with it..(currently level 80 on iToS).. I'm here to support you guys, and help whenever I can!

    - Keith :D

    • Like 1
×
×
  • Create New...