{"action":"created","issue":{"url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/280","repository_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited","labels_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/280/comments","events_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/280/events","html_url":"https://github.com/AJS-development/Ogar-unlimited/issues/280","id":142360228,"number":280,"title":"[Tutorial] How to create and host server using Koding IDE (Alternative for Port Forward/Hamachi)","user":{"login":"firelightning13","id":17120382,"avatar_url":"https://avatars.githubusercontent.com/u/17120382?v=3","gravatar_id":"","url":"https://api.github.com/users/firelightning13","html_url":"https://github.com/firelightning13","followers_url":"https://api.github.com/users/firelightning13/followers","following_url":"https://api.github.com/users/firelightning13/following{/other_user}","gists_url":"https://api.github.com/users/firelightning13/gists{/gist_id}","starred_url":"https://api.github.com/users/firelightning13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firelightning13/subscriptions","organizations_url":"https://api.github.com/users/firelightning13/orgs","repos_url":"https://api.github.com/users/firelightning13/repos","events_url":"https://api.github.com/users/firelightning13/events{/privacy}","received_events_url":"https://api.github.com/users/firelightning13/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/labels/INFO","name":"INFO","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2016-03-21T14:12:53Z","updated_at":"2016-05-17T22:02:28Z","closed_at":null,"body":"# How to create server using Cloud9 IDE\r\n#### For [Koding IDE](https://github.com/AJS-development/Ogar-unlimited/issues/280#issuecomment-199303707), click this.\r\n#### Too lazy to scroll down? [Click here!](https://github.com/AJS-development/Ogar-unlimited/issues/280#event-597212500) (Your welcome ;))\r\n*If you can't see the images, click it.\r\n\r\n1. Go to https://c9.io/\r\n2. Sign in using your Github account or sign up using your e-mail.\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13944774/f84f7b22-f042-11e5-911f-14130ffad442.png)\r\n_*when signing up you may need to follow the instruction on how to activate your email._\r\n\r\n3. After that, create a new workspace.\r\n![image](https://cloud.githubusercontent.com/assets/17120382/14015498/73a445fc-f1f4-11e5-9b7c-e4b39250e661.png)\r\n\r\n4. In this page, you will name your project, descriptions(optional) and Git links.\r\n    Copy this link for OgarUL : https://github.com/AJS-development/Ogar-unlimited.git\r\n    _(To use another ogar, see the bottom of tutorial)_\r\n    Then in \"Choose a template\", choose \"Node.js\".\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945199/682bdab4-f046-11e5-945c-32b098299e3d.png)\r\n\r\n5. Then click *create workspace*.\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945283/011f6830-f047-11e5-97c6-83c4bf8a3942.png)\r\n\r\n6. The C9 will load like this when creating your workspace.\r\n   _Sometimes it takes too long to load, so be patient :)_\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945314/43919ba2-f047-11e5-9fb0-42d08db51da7.png)\r\n\r\n7. After C9 loads, it should be looks like this:\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945468/7e2543bc-f048-11e5-985b-97a96b589c73.png)\r\n\r\n8. In the terminal _(as shown in the above)_, type this:\r\n`npm install`\r\n    This will install node.js modules _(dependencies)_ for the server.\r\n    **_WARNING: If you missed this step, it will not work when starting the server!_**\r\n\r\n9. Find the file called \"gameserver.ini\" under \"src\" folder in the file manager _(see the image below)_.\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945706/6c3a2d6e-f04a-11e5-8383-77a05530815b.png)\r\nThen change these lines: `serverPort = 8080` and `serverStatsPort = 8082`\r\nThen you can change whatever you want in the gameserver.ini for your server.\r\n\r\n10. Save the file. _(or just press Ctrl + S)_\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945777/f1c6e512-f04a-11e5-9903-9b8cd9faaaec.png)\r\n\r\n11. Now, to start the server _(in terminal)_:\r\n - Create directory to \"_src_\" folder like this: `cd src`\r\n - Run Node.js into your server : `sudo node index.js`\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945862/a0b1d884-f04b-11e5-8562-0df43bfb6b86.png)\r\n\r\nThere you go, now the server start. You can control everything in your server by directly using terminal.\r\n\r\n### How to join\r\n\r\nThe link should be like this: `http://agar.io/?ip=<yourprojectname>-<yourusername>.c9users.io`\r\n\r\n#### OR\r\n\r\n- Click \"_Preview Running Application_\" in the preview tab.\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13945901/f74b3938-f04b-11e5-97d0-c19069f55896.png)\r\n\r\n- Now a window appears, and your link will be there. Copy it and paste it in the browser's address like this : `http://agar.io/?ip=<paste your url in here>` .\r\n**Note: DON'T INCLUDE\"https://\" AND \"/\"(the last character in the link) IN THE AGAR.IO'S IP ADDRESS OR ELSE IT MIGHT NOT WORK!**\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13946216/3d39ef5a-f04e-11e5-830b-85ee2e647395.png)\r\n*Ignore the \"_Upgrade Required_\", there's nothing to worry about :P\r\n\r\n#### How to use another version of ogar (instead of OgarUL)\r\nIn step 4, how did I get the Git link?\r\nWell, that was easy to do. Lets say that I want to use Ogar instead of OgarUL.\r\n\r\nIn the main page of the repository, copy the link. _(look at the image below)_\r\n![image](https://cloud.githubusercontent.com/assets/17120382/13946556/3c1bc704-f050-11e5-9b75-2d50a1578bd5.png)\r\nThen you can paste the link like in the Step 4 above.\r\n\r\n## Things you should note when using Cloud9 IDE\r\n- I can't guarantee that this will run in 24/7 _(if you close the tab it only active for couple of hours only...)_\r\nIf you know how to run it 24/7, or probably other than using c9, please comment here.\r\n_(other than leaving a computer for 24/7, no pls I know dat)_\r\n\r\n- Use this if you want to play with your friends _(this is alternative for port forward/hamachi)_"},"comment":{"url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/comments/219867907","html_url":"https://github.com/AJS-development/Ogar-unlimited/issues/280#issuecomment-219867907","issue_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/280","id":219867907,"user":{"login":"LegitSoulja","id":4976824,"avatar_url":"https://avatars.githubusercontent.com/u/4976824?v=3","gravatar_id":"","url":"https://api.github.com/users/LegitSoulja","html_url":"https://github.com/LegitSoulja","followers_url":"https://api.github.com/users/LegitSoulja/followers","following_url":"https://api.github.com/users/LegitSoulja/following{/other_user}","gists_url":"https://api.github.com/users/LegitSoulja/gists{/gist_id}","starred_url":"https://api.github.com/users/LegitSoulja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegitSoulja/subscriptions","organizations_url":"https://api.github.com/users/LegitSoulja/orgs","repos_url":"https://api.github.com/users/LegitSoulja/repos","events_url":"https://api.github.com/users/LegitSoulja/events{/privacy}","received_events_url":"https://api.github.com/users/LegitSoulja/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T22:02:28Z","updated_at":"2016-05-17T22:02:28Z","body":"@HappyRocketwheel I never used koding, but ill make a better update tutorial."}}