ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Tribalwars Source code. 100% Open!


  • Please log in to reply
Tribalwars Source code. 100% Open!

#1

robinvp
robinvp
    Offline
    0
    Rep
    81
    Likes

    Addicted

Posts: 173
Threads: 52
Joined: Sep 15, 2015
Credits: 0
Nine years registered
#1

So whats in this Thread? 
1 - Download link 
2 - Tutorial how to set it up on a WebServer
3 - Features / Updates

 

 

 

How to set up the Tribalwars Game on a webserver?
o 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.

First extract the source somewhere on your computer. 
When you extracted everything, lets go on: 

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


Done? Save it and upload the file again. 

5. Open the 'wereld1' folder, and go to include, then open up config.php in this folder. 
Spoiler



Code:
// Configurações do banco de dados
$config['db_host'] = 'localhost'; // Host of the Database
$config['db_user'] = ''; // Database username
$config['db_pw'] = ''; // Database Password
$config['db_name'] = ''; // Database name

// Zona de horário a ser seguido:
date_default_timezone_set("Amsterdam/Europe");

// Configurações especiais:
$config['name'] = 'Tribalwars'; // Game name :) Can be your own ;D
$config['ano'] = '2014'; // Year of server start
$config['cdn'] = '../global_cdn'; // Image / JS directory
$config['forum'] = ''; // Link to your forum
$config['version'] = 'V0.1 '; // Version number
$config['global_db'] = ''; // DATABASE name!
$config['world_name'] = 'Wereld 1'; // Name of the World :)
$config['c_db_name'] = 'tribalwars_world'; // Name of the world database





Change everything to your details. 

6. Check if the website is running without errors (so register, login and check it) 

7. If the website is running and working except the building timer then go on with this step :)... we are almost done. 
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

Hope you guys understand how to set it up. If not, just answer on this topic and i'll try to help you out. 

If you think you set it up, wait one minute to let the cronjob start. then go to the URL of your game, and try to build a building. 

 

 

Hidden Content
You'll be able to see the hidden content once you reply to this topic or

Please Login or Register to see this Hidden Content

.


Edited by robinvp, 13 October 2015 - 11:00 AM.

  • 7

#2

kroz
kroz
    Offline
    0
    Rep
    7
    Likes

    Advanced Member

Posts: 104
Threads: 2
Joined: Aug 27, 2015
Credits: 0
Nine years registered
#2

ty


  • 3

#3

D4rkzen
D4rkzen
    Offline
    2
    Rep
    6
    Likes

    Advanced Member

Posts: 125
Threads: 6
Joined: Aug 25, 2015
Credits: 0

Nine years registered
#3

Thanks!


  • 0

#4

AnyWhereYouAre
AnyWhereYouAre
    Offline
    0
    Rep
    28
    Likes

    Member

Posts: 40
Threads: 0
Joined: Sep 24, 2015
Credits: 0
Nine years registered
#4

thank you because this helps little to me and everyone


  • -1

#5

MrEpic
MrEpic
    Offline
    2
    Rep
    65
    Likes

    Addicted

Posts: 186
Threads: 43
Joined: Apr 25, 2015
Credits: 0
Nine years registered
#5

ty


  • 0

#6

adritis
adritis
    Offline
    0
    Rep
    0
    Likes

    New Member

Posts: 11
Threads: 0
Joined: Sep 24, 2015
Credits: 0
Nine years registered
#6

:v


  • 0

#7

D4rkzen
D4rkzen
    Offline
    2
    Rep
    6
    Likes

    Advanced Member

Posts: 125
Threads: 6
Joined: Aug 25, 2015
Credits: 0

Nine years registered
#7

Can you upload to another host? uploadfans is rekting me.


  • 0

#8

senoxik
senoxik
    Offline
    0
    Rep
    0
    Likes

    Lurker

Posts: 5
Threads: 0
Joined: Sep 24, 2015
Credits: 0
Nine years registered
#8

 ty


  • 0

#9

pruned_28730809
pruned_28730809
    Offline
    0
    Rep
    10
    Likes

    New Member

  • PipPip
Posts: 18
Threads: 0
Joined: Sep 24, 2015
Credits: 0

Nine years registered
#9

Thanks. Nice Leak


  • 0

#10

robinvp
robinvp
    Offline
    0
    Rep
    81
    Likes

    Addicted

Posts: 173
Threads: 52
Joined: Sep 15, 2015
Credits: 0
Nine years registered
#10

Can you upload to another host? uploadfans is rekting me.

added other mirror!


  • 0


 Users browsing this thread: and 2 guests