linktree Atrinik.org - Multiplayer Online Role Playing Game  >  Development  >  Tutorials
linktree Topic: Atrinik development environment on Windows
Pages: [1]   Go Down
  Print  
Author Topic: Atrinik development environment on Windows  (Read 2098 times)
0 Members and 1 Guest are viewing this topic. Bookmarked by 0 members.
Offline Mamoru
Developer
Edwin Miltenburg

Posts: 623
Gender: Male
« on: August 15, 2015, 11:30:34 pm »

This guide will help you set up a complete development environment for Atrinik on Windows.

SmartGit can be used to clone the Atrinik repository from GitHub.
Media files: Clone the atrinik-sound repository into the client/sound folder.
Atrinik Editor: Download the weekly Gridarta build and put it into the editor folder.

Required tools:
  • Java SE 8 JDK
  • Python 3
  • MinGW
    • In the installation manager mark mingw-developer-toolkit and mingw32-base for installation.
    • Select All Packages and mark mingw32-libz (dev), mingw32-pthreads-w32 (dev) and msys-libcrypt (dev) for installation.
    • Apply Changes in the Installation menu.
  • CMake for Windows (Win32 Installer)
  • Make sure you have the following paths in your PATH environment variable, in
     this order (adjust accordingly if you installed MinGW or CMake somewhere else):
     C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\Program Files (x86)\CMake\bin
  • Microsoft Visual C++ Redistributables 2008 (required for OpenSSL)
  • Win32 OpenSSL (latest non-Light version)
        The installer will ask where to copy OpenSSL DLL files. Make sure this is set to the system directory.
  • cURL (Win32 - Generic, Win32 2000/XP zip libcurl)
        Extract the archive and copy "lib" and "include" directories into C:/MinGW (or where you installed MinGW).
  • SDL
        Atrinik requires SDL, SDL_image and SDL_ttf. SDL_mixer is also necessary to
         play music and sounds. Either compile these yourself, or download
         pre-compiled libraries and binaries
        Extract the archive and copy "lib" and "include" directories into
         C:/MinGW (or where you installed MinGW). Then copy the contents of the "bin"
         directory to the client's directory.
  • Timidity
        You need to install Timidity GUS patches in order to play MIDI files correctly.
        Extract the archive and copy "timidity" directory into the client's directory.
        Download this Timidity config file and put it into the client directory as well.
  • NetBeans C/C++ bundle
        Go to Tools -> Options -> C/C++ -> Build Tools and click the Add button. Enter
         C:\MinGW\bin (or where you installed MinGW) into the "base directory" box.
        Go to File -> New Project -> C/C++ Project with Existing Sources and select the
         server directory. Click "Finish" and the project should build automatically.

In case of questions, please ask :)

M.
« Last Edit: August 16, 2015, 03:10:15 am by Mamoru »  Logged
Offline Mamoru
Developer
Edwin Miltenburg

Posts: 623
Gender: Male
« Reply #1 on: August 15, 2015, 11:38:47 pm »

Optional:
- PyQt 5 (check project page for latest Windows 32 bit installer)
    Needed to run Map checker, a tool to check your maps, located in tools/map-checker-qt.

- GD Graphics Library (recommended):
    If you want to generate client maps you will need to install this library.
    Download libpng sources (check project page for latest version *.tar.gz)
    Extract to C:/MinGW/msys/1.0/home/<your username> and use Win+R to open bash. Go to the
     extracted directory (cd ~/libpng-<version>/) and run the following (adjust the prefix if necessary):
Code: [Select]
export PATH=/usr/bin:$PATH
./configure --prefix=/c/MinGW
make && make install
    Download GD sources (check project page for latest version *.tar.gz)
    Extract to C:/MinGW/msys/1.0/home/<your username> and use Win+R to open bash. Go to the
     extracted directory (cd ~/libgd-<version>/) and run the following (adjust the prefix if necessary):
Code: [Select]
export PATH=/usr/bin:$PATH
./configure --prefix=/c/MinGW --with-png=/c/MinGW
make && make install

- Check
    This is only needed if you want to do code development and is used to run unit tests.
    Extract to C:/MinGW/msys/1.0/home/<your username> and use Win+R to open bash. Go to the
     extracted directory (cd ~/check-<version>/) and run the following (adjust the prefix if necessary):
Code: [Select]
export PATH=/usr/bin:$PATH
export CFLAGS="-DPTW32_STATIC_LIB"
./configure --prefix=/c/MinGW
make && make check && make install


If for any reason building libpng/libgd/check fails, precompiled versions have been attached. Extract these to your MinGW folder.

M.

* libpng-1.6.18-compiled.zip (505.83 KB - downloaded 79 times.)
* libgd-2.1.1-compiled.zip (532.34 KB - downloaded 82 times.)
* check-0.10.0-compiled.zip (217.59 KB - downloaded 76 times.)
« Last Edit: August 16, 2015, 02:59:24 am by Mamoru »  Logged
Pages: [1]   Go Up
  Print  
 
Jump to: