1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

KAG How can I setup a server?

Discussion in 'Server Help' started by delankski, May 27, 2013.

  1. delankski

    delankski Horde Gibber

    Messages:
    435
    I know how to setup server on Windows PCs. But I don't know on Mac :(
    Can I setup a server on Mac? and How (if ever)?

    edit: I'm done with the port thingies [port map]. But I don't know how to launch my KAB server on Mac. :(
     
  2. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Run the dedicatedserver.sh - It should basically be the same setup as the linux instructions, Unix/Linux are basically the same thing :D

    Open terminal -> navigate to KAB folder -> use the command: chmod +x dedicatedserver.sh -> Then run command: ./dedicatedserver.sh

    Check out this, how to make your own script files in mac: http://www.askdavetaylor.com/how_do_i_create_a_shell_script_on_a_macintosh.html

    For more instructions on how 2: https://forum.kag2d.com/threads/server-setup.13335/

    If you have any problems let me know - Also I've heard of problems with mac build, some things aren't up to date etc, I guess the devs forget about mac, cause it SUX ))) If your dedicatedserver.sh doesn't run, copy the one form your windows machine (dedidcatedserver.bat) or download the linux version and edit accordingly.

    Hope this helps.
     
    lavalord likes this.
  3. delankski

    delankski Horde Gibber

    Messages:
    435
    :eek: I don't get it :|
     
  4. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    I don't think a Mac server is fully supported. However due to their similarities, the installation instructions for Linux should apply for Macs, though I'm not 100% sure.
    1. Download the Linux dedicated server files: http://dl.kag2d.com/kag-linux32-dedicated-latest.tar.gz
    2. Extract the file.
    3. In the folder you will find a file called: dedicatedserver.sh
    4. Run it. The server should start and it will update.
    5. After the server has finished this update, close the window.
    6. Go back to folder and change the settings to your heart's desire. (I would recommend editing autoconfig.cfg)
    7. Now your ready to start it for real, so when you want your server up, just run dedicatedserver.sh
    Whatever you don't get, name the step so I can explain it better.
     
  5. delankski

    delankski Horde Gibber

    Messages:
    435
    Tried to run but it opens Text edit and this is the thing inside dedicatedserver.sh
    #!/bin/bash
    echo "Running KAG dedicated server"
    chmod +x KAGdedi
    ./KAGdedi autostart Scripts/server_autostart.as autoconfig ../autoconfig.cfg
    Nothing happens :|
     
  6. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    I forgot that y default, *.sh files are opened in a text editor. You need to run it via the console.
    So open it I guess. If you don't know how, look here http://answers.yahoo.com/question/index?qid=20070614190223AAvrC9W
    So once it's open type in these commands:
    cd /insertpathtothekagfolderhere/KAGfoldername/
    chmod +x dedicatedserver.sh
    ./dedicatedserver.sh

    I typed it out how I would for me. If you get any errors like how I did, tell me.
    [​IMG]
     
  7. delankski

    delankski Horde Gibber

    Messages:
    435
    after this command
    it says
    Code:
    Running KAG dedicated server
    ./dedicatedserver.sh: line 4: ./KAGdedi: cannot execute binary file
    
     
  8. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    Try tpying
    chmod +x KAGdedi
    then repeat ./dedicatedserver.sh and see if it runs
     
  9. delankski

    delankski Horde Gibber

    Messages:
    435
    Still,
    Code:
    Running KAG dedicated server
    ./dedicatedserver.sh: line 4: ./KAGdedi: cannot execute binary file
    :|
     
  10. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Could be that:

    - The kagdedi needs to be made executable:

    chmod +x KAGdedi

    - Could be running incorrect architecture

    Are you running the correct architecture type for your mac, 64 bit version for 64 bit mac and 32 bit version for 32 bit mac - Not sure if you need to download libraries or something, I honestly have no idea when it comes to Mac/Unix :D

    Let me know how you go with that.
     
  11. delankski

    delankski Horde Gibber

    Messages:
    435
    Intel Core i7 64-bit :p
     
  12. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Right, they're not as retarded as they used to be - So, are you running the correct version? Are you still having problems?
     
  13. delankski

    delankski Horde Gibber

    Messages:
    435
    I can't find the 64-bit version :\
     
  14. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    I don't think the devs made KAG installs specifically for 64-bit. For 64-bit Linux we have to install a hack to be able to run KAG. However I don't think that is necessary or even possible for mac.
     
  15. delankski

    delankski Horde Gibber

    Messages:
    435
    So this means 64-bit isn't officially supported yet.

    Kailava, thank you very much for the help. Though the problem can't be solved yet.
    I just love you guys for that!

    Anyways, I'll try to find how to run 32-bit thingies on 64-bit archi. mac
    ^If this doesn't work then I'll just wait for the full release. (Or a thing that will make it compatible for 64-bit)
     
    hans_02 and lavalord like this.
  16. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    install the 32bit libraries.
     
  17. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
  18. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    this. :)
     
    kaizokuroof likes this.
  19. delankski

    delankski Horde Gibber

    Messages:
    435
    1. :huh?: Will the devs release a 64-bit support for server setup ?
    2. Also is this ok?
    http://www.viiratech.com/tutorials/software/how-to-run-32-bit-apps-on-64-bit-ubuntu-linux.html
    The following are the simple steps you can follow to install the 32-bit libraries

    Open up the terminal in any way convenient to you though I find it convenient to use the keyboard shortcut CTRL + ALT + T
    Log in as the supper admin by typing sudo -s at the terminal.
    Type the command apt-get install ia32-libs at the terminal to install the 32-bit libraries.
    When the 32-bit libraries are all installed then you can install and run 32-bit programs on your computer which is running 64-bit Ubuntu.
     
  20. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    Yea it works like that on linux. But I have no idea about mac.