onlyaguy Posted July 2, 2012 Posted July 2, 2012 the game im working on works fine apart from the install.php so is there a different way i can do the crons? when i go to the install page its just a blank white page still new to coding so any help is appreciated greatly:) Quote
Seker Posted July 2, 2012 Posted July 2, 2012 the game im working on works fine apart from the install.php so is there a different way i can do the crons? when i go to the install page its just a blank white page still new to coding so any help is appreciated greatly:) Not too sure how you got the game up without the install working, but to add the crons, you have to go to your cPanel and then Cron Jobs and input them, manually. It's like that even if your install was working. If you need the crons, just look in the install file. Quote
onlyaguy Posted July 2, 2012 Author Posted July 2, 2012 i do need the crons but the install file doesnt work at all so how can i get them? and i tried inputting them manually but it wouldnt work but i might have been doing it wrong so can you clarify howw to input them for me thanks Quote
lucky3809 Posted July 2, 2012 Posted July 2, 2012 i do need the crons but the install file doesnt work at all so how can i get them? and i tried inputting them manually but it wouldnt work but i might have been doing it wrong so can you clarify howw to input them for me thanks I may be wrong as to i have not use mccodes in a long time, but if i remember correctly the CODE part was rand such as rand(1,100000000000) so I doubt you would really need the Code end unless you want to use it, then modify it in config.php add any code between 1 and 100000000000. Quote
Unreal Posted July 2, 2012 Posted July 2, 2012 How did you set your game up without the installer. For installer to work you need to go to your site http://www.yourgame.com/installer.php And go from there Quote
bineye Posted July 2, 2012 Posted July 2, 2012 Yes, for someone that's new to coding, I too would love to see how you got it to work without installing...are you sure it is working? Have you gone into the game and done crimes and trained at the gym, for example? Because just the login page appears fine before installing. Quote
Unreal Posted July 2, 2012 Posted July 2, 2012 Yes, for someone that's new to coding, I too would love to see how you got it to work without installing...are you sure it is working? Have you gone into the game and done crimes and trained at the gym, for example? Because just the login page appears fine before installing. Seems quite hard to believe that all the tables are in the database and its connected to it.. All without using installer.php Quote
Dominion Posted July 2, 2012 Posted July 2, 2012 (edited) why are people shocked someone could set it up without it being done for them? Maybe his version of being new doesn't mean he has never used a basic program before. That or he has not tested it fully, but sooner or later he will figure out if it's broken. Anyway in answer to your question there is a free modification on here that uses timestamps rather then crons. If you would like to continue using the crons get the $_CONFIG['code'] (may be a different name, but will be at the top of the cron files) code out of the cron files (just echo/print it), and set it up as you would any other cron. If you're not sure how to do this search watch this - it's based on mccodes LITE but the principle is the same. Edited July 2, 2012 by Dominion Quote
onlyaguy Posted July 2, 2012 Author Posted July 2, 2012 why are people shocked someone could set it up without it being done for them? Maybe his version of being new doesn't mean he has never used a basic program before. That or he has not tested it fully, but sooner or later he will figure out if it's broken . maybe new isnt the best way of describing it, iv coded my own mods and edited other people to suit my needs but i didnt use the install.php i uploaded the files directly then the sqls and changed the neccesary lines of code in config.php and the scrips run fine. iv recoded my own gym which works and making items also works iv tested nearly everything and it works how it should. i dont see how not using the installer is so hard to cmprehend but i didnt even know about it till i searched how to do the crons :) Quote
sniko Posted July 2, 2012 Posted July 2, 2012 @onlyaguy You can very easily install McCodes without the aid of the installer. Here's how; Upload all the files to your server/localserver (www) Create a mysql user, and database (If you're on a server, not localserver (IE Wamp) Add the user to the database (Don't click `ALL PRIVILEGES`, think about it) Edit `config.php` with the relevant details Open up dbdata.(txt/sql) and copy and paste that into your database (PHPMYADMIN) Delete installer.php Quote
onlyaguy Posted July 2, 2012 Author Posted July 2, 2012 thats what iv done its just getting the crons done that im confused about i dont know what i need to put in the command box for it to work Quote
Unreal Posted July 2, 2012 Posted July 2, 2012 (edited) curl http://www.yourgame.com ?code=your config code And if its a 5 minutes cron you set it to run every 5 mins and same with 1hr and 1 day Note I'm not on a pc so I can't give exact. But its curl http://www.yourgame.com/cron file.php? code= random code you get Edited July 2, 2012 by Unreal Quote
bineye Posted July 2, 2012 Posted July 2, 2012 why are people shocked someone could set it up without it being done for them? i dont see how not using the installer is so hard to cmprehend I was "shocked", no, more thrown off by this line: still new to coding so any help is appreciated greatly:) Quote
onlyaguy Posted July 2, 2012 Author Posted July 2, 2012 I was "shocked", no, more thrown off by this line: why where you thrown off by it? Quote
bineye Posted July 3, 2012 Posted July 3, 2012 One who is new to coding often has difficulties with that, nothing against you or anyone, just past experiences have shown that people just don't know how to display their name on a web page, never mind take the initiative to install the game manually. Well done then to you, at least what you lack in experience, you make up for in common sense and intelligence. It's refreshing to see that here. Quote
rulerofzu Posted July 3, 2012 Posted July 3, 2012 @onlyaguy You can very easily install McCodes without the aid of the installer. Here's how; Upload all the files to your server/localserver (www) Create a mysql user, and database (If you're on a server, not localserver (IE Wamp) Add the user to the database (Don't click `ALL PRIVILEGES`, think about it) Edit `config.php` with the relevant details Open up dbdata.(txt/sql) and copy and paste that into your database (PHPMYADMIN) Delete installer.php No.3 Is going to mean nothing to someone who knows very little about mysql and will click all privs anyway. No.5 May or may not work. Phpmyadmin often throws an error when trying to run multiple queries. Be prepared to cut and paste! If your login page appears without throwing a error cannot connect to database message then you have manually set up just fine. As for the crons. The code is just there to stop people running them manually. They shouldnt be there anyway which Ive stated numerous times before. Take them out of the www and set the real path to the class,config and global_func files. Comment out the line if($_GET['code'].... Set up a cron job to run them from out of the www Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.