The DEMO is in Poland language, but the script is in English !
How to set up the Tribalwars Game on a webserver?
To run the source i suggest you to get a webhost. If you already got one, then it should be okay and no problem to run the Tribalwars source.
1. Lets begin to create the databases. You will need to create 2! databases, since this source comes with a world system.
tribalwars_main < Here upload the tribalwars_main.sql file.
tribalwars_world < Here upload the tribalwars_worlds.sql file.
2. When done go to the tribalwars_main database, and go to the worlds table. There you should change the db column to what you named your world database to.
change the the name to whatever you like.
3. Upload all the files to your webserver.
4. Go to the include/config.php file, and change the details to the details of the MAIN database.
5. Open the 'wereld1' folder, and go to include, then open up config.php and add the database tribalwars_world
6. We need to set up the cronjob!
It depends on what host you are using on how to set the cronjob, check the hosts cronjob information. The file in the source is a working cronjob, which needs to be fired every minute and will run for 60 seconds / 1 minute.
You can find the cronjob in: \wereld1\daemons\event.php chmod the folder to 777
Beware! Daemons(cronjob) run in the background as a permanent process, most free hosting(even paid shared hosting) won't allow that.
You need a dedicated server or at least a VPS to run it.
Without cronjob your buildings will never build, your troops will never train, you can't do nothing!
Đăng nhận xét