Jump to content
MakeWebGames

Recommended Posts

Posted

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:)

Posted
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.

Posted

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

Posted
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.

Posted

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.

Posted
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

Posted (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 by Dominion
Posted
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 :)

Posted

@onlyaguy

 

You can very easily install McCodes without the aid of the installer. Here's how;
  1. Upload all the files to your server/localserver (www)

  2. Create a mysql user, and database (If you're on a server, not localserver (IE Wamp)

  3. Add the user to the database (Don't click `ALL PRIVILEGES`, think about it)

  4. Edit `config.php` with the relevant details

  5. Open up dbdata.(txt/sql) and copy and paste that into your database (PHPMYADMIN)

  6. Delete installer.php

 

Posted
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:)
Posted

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.

Posted
@onlyaguy
You can very easily install McCodes without the aid of the installer. Here's how;
  1. Upload all the files to your server/localserver (www)

  2. Create a mysql user, and database (If you're on a server, not localserver (IE Wamp)

  3. Add the user to the database (Don't click `ALL PRIVILEGES`, think about it)

  4. Edit `config.php` with the relevant details

  5. Open up dbdata.(txt/sql) and copy and paste that into your database (PHPMYADMIN)

  6. 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...