{"action":"created","issue":{"url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/564","repository_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited","labels_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/564/comments","events_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/564/events","html_url":"https://github.com/AJS-development/Ogar-unlimited/issues/564","id":154705889,"number":564,"title":"[Tutorial] How to host your own client in Cloud9 IDE","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":95,"created_at":"2016-05-13T12:58:26Z","updated_at":"2016-05-16T07:54:56Z","closed_at":null,"body":"# How to host your own client in Cloud9 IDE\r\n#### Links:\r\n- [Configure your client](https://github.com/AJS-development/Ogar-unlimited/issues/564#issuecomment-219035524)\r\n- [Obtaining you server's IP address](https://github.com/AJS-development/Ogar-unlimited/issues/564#issuecomment-219035587)\r\n\r\n#### Note:\r\n- If you feel lazy to do this, just use official OgarUL client here: #551\r\n- This method is good if you feel lazy to port forward to your router _(even though thats ez to do)_\r\n- Performance? Probably not better than your computer\r\n- Server 24/7? Don't ever doing that...\r\n\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._(skip this if you have done this!)_\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    _Sometimes it takes too long to install, so be patient, again :)_\r\n\r\n9. Find the file called \"advConfig.ini\" under \"src/settings\" folder in the file manager _(see the image below)_.\r\n![image](https://cloud.githubusercontent.com/assets/17120382/15244202/90e03b70-1932-11e6-8a14-98c03fb6bbcf.png)\r\nThen change these lines: `serverPort = 8081` and `serverStatsPort = 8082`\r\nNow save it. _(just press Ctrl + S)_\r\n\r\n~~10 . Now, to start the server:\r\nfind index.js in the src folder and double click it. then click the `run` button on the top~~(lol who edit dis?)\r\n10.To start the server, find the \"index.js\" under \"src\" folder in the file manager, then double click that. After that, click the \"Run\" button on the top _(soon there will be a picture. sry. but you should know where the \"Run\" button is located :D)_\r\n\r\n11.Now, type this: `plugin install Client` _(case sensitive, should be \"Client\" not \"client\")_\r\n![image](https://cloud.githubusercontent.com/assets/17120382/15244434/c53f8122-1933-11e6-9836-78e824323802.png)\r\nNow it should be install it and should be automatically exit with no problem.\r\n\r\n* **Important**: Sometimes you have permission issues for the \"client\" folder. To do that, in terminal, type:\r\n```\r\nsudo chmod 777 client\r\n```\r\nNow, you should be able to proceed to the next step!\r\n\r\n12.Now, Download this file called Agarioclient.zip (you can get it from andrews)\r\nExtract it somewhere in your computer.\r\n\r\n13.**Click the \"client\" folder once**, then in \"File\" tab, click \"Upload Local Files...\"\r\n![image](https://cloud.githubusercontent.com/assets/17120382/15245747/1bf5e702-193b-11e6-82b1-4713750e6543.png)\r\nThen, go to your file that is extracted before and drag n drop all the files to c9.io _(see the image below)_\r\n![image](https://cloud.githubusercontent.com/assets/17120382/15246167/52e28156-193d-11e6-9fcb-b785b410bc24.png)\r\n**Make sure it says \"Upload to folder: ./src/client\" not the other directory!**\r\n\r\nIt should be upload all the files into you \"client\" folder with no problem."},"comment":{"url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/comments/219369509","html_url":"https://github.com/AJS-development/Ogar-unlimited/issues/564#issuecomment-219369509","issue_url":"https://api.github.com/repos/AJS-development/Ogar-unlimited/issues/564","id":219369509,"user":{"login":"mastkilxp","id":13708727,"avatar_url":"https://avatars.githubusercontent.com/u/13708727?v=3","gravatar_id":"","url":"https://api.github.com/users/mastkilxp","html_url":"https://github.com/mastkilxp","followers_url":"https://api.github.com/users/mastkilxp/followers","following_url":"https://api.github.com/users/mastkilxp/following{/other_user}","gists_url":"https://api.github.com/users/mastkilxp/gists{/gist_id}","starred_url":"https://api.github.com/users/mastkilxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastkilxp/subscriptions","organizations_url":"https://api.github.com/users/mastkilxp/orgs","repos_url":"https://api.github.com/users/mastkilxp/repos","events_url":"https://api.github.com/users/mastkilxp/events{/privacy}","received_events_url":"https://api.github.com/users/mastkilxp/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T07:54:56Z","updated_at":"2016-05-16T07:54:56Z","body":"@firelightning13 fixed the bug on my own was probs caused by me. i probs was a bit to harsh on that commen, im sorry. overall its a very good tutorial. it helped me really far out. thx anyway.\r\n\r\n@Megabyte918 if u need any help contact me on skype:mastkilxp i help you"}}