codeluaeveryday Posted March 29, 2013 Posted March 29, 2013 (edited) ATTENTION!!! If anyone experienced a bug which froze the server, please read the instructions down the bottom. Hey guys! I am back with another awesome tutorial! Today I will be showing all you people how to update the 'Admin' resource's country list. Some of you may have noticed my other tutorial, well if you had problems with that one, go ahead and use this one! I have a special treat here! Lets begin. Automatic: The fastest way known to man! Steps Replace your 'server/admin_ip2c.lua' file with this pastebin document Restart admin, and simple type /updateadmin, then it will begin downloading and installing it, it will say its done, then you need to restart the resource. Manual: The long way of everything! Steps Firstly you will need to download the updated database from HERE Once you've completed that step you will now need to open your admin folder and navigate to: ':admin/config' folder Now you want to extract the 'IpToCountry.csv' from the zip file to the ':admin/config' folder You will now need to change a setting in admin to allow this feature, open up the ':admin/server/admin_ip2c.lua' file, now search for the 'makeAndTestCompactCsv' variable and set it to true Now you are ready to begin installing it! Go ahead and restart admin panel In the server type the command: 'makecsv' and wait for 'makeCompactCsv done' to appear in the console Now it is essential that you set the 'makeAndTestCompactCsv' variable back to false so people don't mess around with it It's time for the very last part! All you have to do is restart the 'admin' resource Congratulations kids, you've officially upgraded your 'admin' resource, remember to do this on a regular basis, this IP database is updated every few hours. I wish you all the best Easter, suck chocolate for as long as you can, peace out! EDIT: Working on a new update to help out all the new kids. Edited July 2, 2013 by Guest
codeluaeveryday Posted March 31, 2013 Author Posted March 31, 2013 I love you guys, being the first to comment, i have to know which one are you using? Manual or Automatic, I love automatic, it saves me a lot of time. New tutorial comming, your all gonna love it.
PaiN^ Posted April 4, 2013 Posted April 4, 2013 Nice Tut, put i don't why any one will use the manual way instead of the automatic ..
codeluaeveryday Posted April 8, 2013 Author Posted April 8, 2013 The reason I said both was so incase my automatic code was to become outdated it would not work anymore, people would be able to use the manual. NOTE: PLEASE REPORT ANY BUGS WITH AUTOMATIC DOWNLOADER, THIS WAY I CAN WORK ON AN UPDATE FOR IT.
codeluaeveryday Posted June 19, 2013 Author Posted June 19, 2013 No problem, I was bored so I wanted to make it easier for myself to update it, so I decided I should share it with others.
codeluaeveryday Posted June 23, 2013 Author Posted June 23, 2013 Thank you to all the positive comments, I am going to release the php file required for this update. This is so you can create your own mirror. Currently it is downloading from a web server of mine. Download link: http://www.mediafire.com/download/78xhr ... update.php Just change line 19 of the lua code to your php file.
Sex* Posted July 1, 2013 Posted July 1, 2013 Tried automatic mode...after doing these stuff and restarting: stack overflow
codeluaeveryday Posted July 2, 2013 Author Posted July 2, 2013 Yeah it fucked up my server too, fixing it. ATTENTION: STEPS TO FIX: 1) Make sure admin is stopped 2) Open the admin meta.xml and set: "*useip2c" value="true" friendlyname="useip2c" group="_Advanced" accept="true,false" desc="Displays country flags next to players, set to false to save about 3MB of server RAM." /> to false: "*useip2c" value="false" friendlyname="useip2c" group="_Advanced" accept="true,false" desc="Displays country flags next to players, set to false to save about 3MB of server RAM." /> 2) Replace the 'server/admin_ip2c.lua' file to: http://pastebin.com/BbvtMvgV 3) Now go to conf folder and delete IpToCountryCompact.csv. 4) Start admin and use the /updateadmin command. I am currently working on a stronger and more efficient version. ALL USERS WHICH GOT BUGGED NEED TO DO THE MANUAL UPDATE THEIR 'server/admin_ip2c.lua' file to this: The host i use actually fucked up, so I'm going to be making a legitimate mirror system while you guys use this, that way we will never have a problem like this again.
'LinKin Posted January 7, 2014 Posted January 7, 2014 Guys, when I restart the admin, in the console it says: Cannot read conf/IpToCountryCompact.csv Is it a bad signal or something? I did what csmit195 said ("3) Now go to conf folder and delete IpToCountryCompact.csv.") It seems to be working, but I just wanted to ask. EDIT: Now I understand. When you type 'makecvs' into console, it creates this file: IpToCountryCompact.csv
codeluaeveryday Posted January 8, 2014 Author Posted January 8, 2014 It's just because of the hosting, it was having issues... I can try to setup something else.
codeluaeveryday Posted July 6, 2016 Author Posted July 6, 2016 Who wants an updated version of this? I have progressed a lot since developing this and could easily setup an automatic updater for it.
Recommended Posts