Screenshots:
Map:
You must be registered to see links
Main Screen:
You must be registered to see links
UPDATE 2013.06.13:
updated files: added fixed zanda fleet.
updated Master code:
- Added War Simulator(csataszim folder) to source code(it has a database too in MYSQL)
- Changed:Install documentary and mysql folder.
- Added to the guide the Zanda, and Zanda_nemlog database's table name translations
Notice: you have to make a mysql database for the war simulator, and setup config phph too, cuz thats uses separate database for the calculations.
NOTE: Portable version not avaliable anymore.
Zandagort is a turn based and real time combined massively online multiplayer web browser based script, wroten by a hungarian programmer, who now (becouse he dont want to maintain his server anymore) is sharing his source with us under MIT licence for FREE(its also on github) but i share this with you now here too(without ads or any crap its just a mirror i dont claim anything) it is a continously updated script since 4 years...
Zandagort is a free online sci-fi strategy indie game. Reasons for you to play with it:
- complex gameplay: ecology, economy, trade, research, warfare, diplomacy
- map where you can really control your spaceships, not just start countdowns, with the possibility of tactical maneuvers
- finite servers, common enemy: Zandagort arrives at the end of each server to destroy mankind, and players who were enemies before have to collaborate to prevail
- strong community support: in-game chat, forum, private messages
- strong community nurturing noobs and creating the world and story of the game
Be warned though it has english interface language, but the script is wroten in purely hungarian variable names, so YOU WILL NEED SOME KIND OF AN HUNGARIAN-ENGLISH TRANSLATOR PROGRAM!!!! ALL VARIABLE AND TABLES IN HUNGARIAN!!! (BUT IT HAS ENGLISH INTERFACE!!!)
I recommend you to put the install and admin documents into google translator it is makeing a very understandable translation (its one of the rare cases i tryed it.)
Source from mediafire:
You must be registered to see links
Source form GitHUB:
N/A Anymore
Source from sourceforge:
You must be registered to see links
OTHER MIRRORS:
You must be registered to see links
You must be registered to see links
You must be registered to see links
You must be registered to see links
What you will need:
- WAMP/LAMP Envrionment
- Dictionary
- Patience, it not that easy to use and setup...
- Set the MEMORY tables to MYISAM (it is slower but the system wont forget everything what u and your players did on during play if the server restarts...)
- Always backup mysql tables!!!
- In your php.ini set the CORRECT timezone(dont rely on system zone settings) or your server wont work at all!!!!!!! Essential(among other things)
For "demo" or brief description look for:
You must be registered to see links
or for hungarian lang:
You must be registered to see links
Quick Install Tutorial:
Zandagort Installation Guide THIS QUICK VERSION ARE NOT INCLUDE ALL THINGS!!!!
=============================
# # 0 Apache-MySQL-PHP
It works with LAMP or Wamp envrionment, your choice(BUT KNOW THIS: THIS THING WILL NOT WORK WITH Portable WAMPSERVER, OR XAMPP SERVERS!!!!!! Dont even bother... YE BE WARNED!! YOU HAVE TO MAKE A CORRECT INSTALLED LOCALHOST APACHE+MYSQL+PHP SERVER!!! ESSENTIAL!! not som portable crap.)(Only portable thing was worked was the mowes portable server's)
# # 1 Files and Directories
# # # Unpacking
After Extract you will found:
* `Www`: this should be set to be published on the web server (see section 6)
* `Szim`: This contains the cron script of the windows WAMP version
* `Mysql`: Here is the initial database dump (see section 2)
Arial # # #
you have to use arial.ttf in this game so on your server's www folder copy from your windows arial.ttf to the webserver www/img folder.
# # # Make Linux/Windows directory permissions
Make some directorys and set this permissions for them:
Lets be clear(as for few of you is not so clear.. YES, YOU HAVE TO MAKE THIS FOLDERS WITH YOUR OWN HANDS AND SETUP THE PERMISSIONS! Without them the game will NOT work as is should.)
chmod 733 www/img/cimerek
chmod 733 www/img/minicimerek
chmod 733 www/img/okoszim
chmod 733 www/img/user_avatarok
chmod 733 www/img/user_nagy_avatarok
this two folders ARE EXISTS you just have to set permissions to:
chmod 777 /jskod_vustygbkforjfdjp
chmod 777 www/jskod_vustygbkforjfdjp_v2
# # 2 MySQL
# # # User and databases
Run theese in MYSQL
where you see [yourdatabase] make your database name there.
[yourdatabase] create database;
[yourdatabase]_nemlog create database;
GRANT ALL on applies. * to '[yourdatabaseuser]' @ '%' IDENTIFIED BY '[yourpassword]';
GRANT ALL on zanda_nemlog. * to '[yourdatabaseuser]' @ '%' IDENTIFIED BY '[yourpassword]';
flush privileges;
_nemlog are NOT optional suffixes it has to be a database called [yourdatabase]_nemlog with the last string '_nemlog'.
After you make a Database, chenge the values in`config.php`:
$ Zanda_db_name = 'yourdatabasename';
$ Zanda_db_user = 'username';
$ Zanda_db_password = 'yourpassword';
Dont leave as it is, you MUST change from "password" the last one
LANGUAGE!!!
$zanda_game_url['hu']='http://youdomain.com'; ->its for hungarian language
$zanda_game_url['en']='http://youdomain.com'; -> Its for english.
Just setup that domain you want to be your language, if u want english then leave the upper one blank. IT CANNOT OPERATE FROM THE SAME DOMAIN!!! IF U SETUP BOTH THE SAME THE INTERFACE WILL REMAIN IN HUNGARIAN LANGUAGE!!!! USE JUST ONE SETTING, LEAVE THE OTHER BLANK!
# # # Important Settings
All of the following apply to the `my.cnf`(Located in mysql binaries) file.
Since the game has a large `MEMORY' tables (the largest is about 120 megabytes of hexa_bolygo `table`), increase the max_heap_table_size `em (default 16M only):
max_heap_table_size = 256M
Other:
character-set-server = utf8
collation-server = utf8_hungarian_ci
Less important settings # # # [optional]
Disable the query cache, if available:
query_cache_type = OFF
query_cache_size = 0
because it is not efficient.
If you activate the binary statistics logging, you can add this two lines:
binlog_ignore_db = zanda_nemlog
because this is a log database and we are not logging the logging procedure (Inception XDXD)
Other:
skip-name-resolve
This could be that you do not always specify the DNA that makes you totally can slow down the browser and access to external queries.
make a MySQL restart
# # # Database Load
import the two database in to your two corresponding database:
zanda_install_dump.sql - For the main suffixless database
zanda_nemlog_install_dump.sql - For the _nemlog Suffixed database
# # 3 PHP
All of the following apply to the `php.ini` file ESSANTIAL ALL LAST ONE OF THEM!! you cannot leave out not even one.
short_open_tag = On
extension = gd.so
post_max_size = 8M
upload_max_filesize = 7M
date.timezone = "[YOURTIMEZONE]" - Write in your own timezone!!! IF U MISS THIS PART, THE GAME WILL CRASH BUG SMOKE AND EXPLODE
CRON:
### Linux
Under linux the following crontab must have been set:
crontab -e
* * * * * php -f PATH_TO_ZANDA/www/szim.php $zanda_private_key >> PATH_TO_ZANDA/szim/szim_log
### Windows
Make file: `szim.bat`and paste this into it:
php -f PATH_TO_ZANDA/www/szim.php $zanda_private_key >> PATH_TO_ZANDA/szim/szim_log
Edit `$zanda_private_key`and `PATH_TO_ZANDA`:
then open command line and type in:
schtasks /create /ru "System" /tn "ZandaSzim" /sc minute /tr "PATH_TO_ZANDA/szim/szim.bat"
Next open and setup: config.php
## 5. Configuring Zandagort
`$zanda_db_password`
Generate a random character string (Like `csatlak.php` on that youll found a `randomgen()` syntax), it has to be unique this is the master SALT for all password encryption ect for the site
`$zanda_private_key`
It has to be random and secret too.(Imortant to secure things like the cron script)
`$rendszer_so`
Its a twisted thing it an other salt for the passwords(so they double salted ergo cannot decompiled by anyone
In basic config the basic admin password is 'password' so change that... you can do it by logging in and change in the profiles, or you can do it by doing`admin/reset_admin_pw.php (Where is the `$zanda_private_key` there you should write your upper generated rendom zanada key ):
php -f reset_admin_pw.php $zanda_private_key
`$szerver_prefix`
Its not essential but if u feel you can change it It gives a name to the server.(Like Zandagord 'My Own Game')
`$no_mailserver`
If u are not willing to use the mail activation or ANY mail sending on the server set this to true.
`$zanda_admin_email`
Its the administrator email adress.
`$zanda_game_url`, `$zanda_homepage_url`, `$zanda_facebook_url`, `$zanda_tutorial_url`, `$zanda_wiki_url`, `$zanda_forum_url`, `$zanda_ingame_msg_ps`
Its URLs to other sites what you have to connect or make for them forum, facebook encyclopaedia ect...
`$szerver_indulasa`
Its the server starting date. If you try to connect before the starting date only admins can access the site. Useful for maintenance mode.
`$szerver_varhato_vege` - >The time when the endgame starts(The date when you will start zandagort and his army)
`$szerver_amikortol_mindenki_premium` ->The time when everyone will be preimum(Its usually happens when zandagort is started, like the last 4-5 days.) By the way the MIT licence make you possible to make this a paying site and make money from the premium membership.
`$zelota_mikortol_valaszthato` - >The date when is the zaelot class is avaliable for specialisation (Its usually few days, or 1-2 weeks before the endgame starts)
`$zelota_meddig_valaszthato` - >The time UNTIL zaelot class is choosable
## 6. Webserver
Make the `www` or 'htdocs' folder accessible from outside. Before that check in the `config.php`the correct server starting date at `$szerver_indulasa` variable.
All other things are Basic(beside the mentioned ones earlyer)
## 7. Setup the cron script as mentioned before in this posts(or alternatly you can make under a windows a task, where firefox will run the script for you... its depending on you)
## 8. Fun and laughing.
Login with admin or register a new player(The only admin advantage, that is tthe admin has no fog of war, and sees all fleet npc, ect... as i mentioned there is NO admin panel if u ant to modify something you have to modify the database)! Play! Invite others! Meddle with the database and cheat! Modify the code, and be freightened when the whole system is falling apart in a moment XD
## 9. Starting the ENDGAME(Bring Zandagort and his army into your galaxy to destroy planets civilisations and players. you can even set the mto attack probes and or kill just one of the players fleet or an alliance)
Know that if u dont want to add Zandagort to your server then you dont have to, if you set an extremely large date, the server will run continous indefinetly. its just an alternative. But if U use them know, that zandagort WILL ultimately destroy everything what is comes in to his way...
Howto:
Note that the zandagort attacks is usually happens when your server time reaches the Zero time when the galaxy getting attacked. Well this method is not automated. Not yet anyway. You (the admin) has to start the fleets with installing them...
First, in the config.php set the $vegjatek=0; to $vegjatek=1; and save(alternately if the andgame is over you can set to $vegjatek=2; that is for an indefinetly game mode, with no price.)
In the admin directory you will find a file called:'zanda_indito.php ' in this file you can install zanda and his army to your database, but i really cant help with that... i do not know yet how to do that, in first part you should run and then Translate the // marked comments, those are writing down how to make things...
## 10. After game or new server
After a new game you dont have to restart the current galaxy you can generate a galaxy even from a picture... You have to (In the admin directory)
1. Generate A New galaxy
2. Install Economy
3. Install Npc-s
4. install Other things(Wormholes ect)
5. Make a blank user install
Thats the part what u have to figure out yourself too... With a good dictionary. i just wrote down the basics.
I hope i helped! Have fun and enjoy!
This concludes my tutorial.
For those who have language problems, there is some Database ntable name mirror translation, i will add more soon(as i will reupload the new portable server.)
Theese are the table names for the main Zandagort Database
HUN > ENG
aktivitas_megosztas > Activity Sharing
badgek > Badges
bolygok > Planets
bolygolimitek > Planet Limits
bolygo_ember > Planet Human
bolygo_eroforras > Planet Resources
bolygo_faj_celszam > Planet Species goal number
bolygo_gyar > Planet Factory
bolygo_gyartipus_szabotazs > Planet Factory type sabotage
bolygo_gyar_eroforras > Planet Factory Resource
cimzettek > Adresses send to recipients (i think for the mailing)
cron_tabla > Cron table
cron_tabla_eroforras_transzfer > Cron Table Resource Transfer
csatak > Battles
csata_flotta > Battle Fleets
csata_flottamatrix > Battle Fleetmatrix
csata_flotta_hajo > Battle Fleet Ship
csata_sebzesek > Battle Injuries
csata_user -> Battle User
cset_hozzaszolasok - > chat comments
cset_szobak - > Chat Rooms
cset_szoba_meghivok - > Chat Room Invitations
cset_szoba_user - > Chat Room Users
diplomacia_ajanlatok - > Diplomatic Offers
diplomacia_leendo_statuszok - > Diplomatic Future Statuses
diplomacia_statuszok - > Diplomatic Statuses
diplomacia_szovegek - >Diplomatic Texts
eroforrasok - > Resources
faj_faj - > Species_Species
feregjaratok - > Wormholes
flottak - > Fleets
flotta_hajo - > Fleet Ships
gyarak - > Factorys
gyartipusok - >Factory Types
gyar_epitesi_ido - > Factory Building Time
gyar_epitesi_koltseg - > Factory Building Costs
gyar_eroforras - > Factory Resources
gyar_kutatasi_szint - > Factory Resource levels
hajok - > Ships
hajo_hajo - > Ship_Ship
hexak - > Hexa Fields
hexa_bolygo - > Hexa Planets
hexa_flotta - > Hexa Fleets
hexa_kor - > Hexa Turns
ideiglenes_kitiltasok - > Temporal bans
ido - > Time
jegyzetek - > Notes
kutatasi_feltetelek - > Research Conditions
kutatasi_temak - > Reserch Topics
lat_szov_flotta - > See_alliance_fleet
lat_user_flotta - > See_user_fleet
leirasok - > Descriptions
levelek -> Mails
queue_epitkezesek -> buildings Queue
regiok -> Regions
resz_flotta_aux -> Part Fleet Auxillary
resz_flotta_hajo - > Part Fleet Ship
szabadpiaci_ajanlatok - > Freemarket Offers
szabadpiaci_arfolyamok -> Freemarket Prices
szovetsegek ->Alliances
szovetseg_meghivas_kerelmek -> Alliances Invitation Requests
szovetseg_meghivok -> Alliance Invitations
szovetseg_szabalyzatok - > Alliance Rules
szovetseg_tisztsegek - > Alliance Ranks
szovetseg_vendegek - > Alliance Guests
szov_forum_kommentek - > Text_forum_comments
szov_forum_temak - > Text_forum_topics
szov_forum_tema_olv - > text_forum_topics_readed
torlendo_userek - > Users To Delete
tozsdei_arfolyamok - > Stock Exchange
ugynokcsoportok -> Agent Groups
userek - > Users
user_badge - > User badges(If u prefer: Avatars)
user_beallitasok - > User Settings
user_kutatasi_szint - > User Research levels
user_tagek - > User Tags
user_veteli_limit -> User Buying Limit
The next Database is the _nemlog suffix table names:
HU > EN
aktivitasi_mintak > Activity Patterns
aktivitasok > activities
akt_stat > Activity Stats
aux_tizpercek > Auxillary ten minutes
aux_transzfer_tabla > Auxillary Transfer Table
aux_userek > Auxillary Users
aux_user_aramlasok > Ausillary User Waves
aux_zandakiller > Auxillary Zandagort Killer
bolygok_exim > Planets Exim(Dunno what is this 'exim')
bolygo_transzfer_log > Planet Transfer Log
cset_hozzaszolasok_hist > Chat Comments History
email_kitiltasok > Email Bans
hajo_transzfer_log > Ship Transfer Logs
helyettesitesek > Sitter Accounts
hist_bolygok > History Planets
hist_csatak > History Battles
hist_csata_flotta > History Battle Fleet
hist_csata_flottamatrix > History Battle Fleet Matrix
hist_csata_flotta_hajo > History Battle Fleet Ship
hist_csata_lelottek > History Battle Shot Downs
hist_csata_sebzesek > history Battle injuries
hist_csata_tpk > History Battle Teleports (I guess... but i am not sure TPK is mayba Teleportok... that means Teleports)
hist_diplomacia_statuszok > History Diplomatic Statuses
hist_eroforrasok > History Resources
hist_flottak > History Fleets
hist_gyarak > History Factorys
hist_hajok > History Ships
hist_idopontok > History Times/Agenda
hist_szovetsegek > History Alliances
hist_termelesek > History Productions
hist_tp_szerzesek > History Teleport Aquirations
hist_userek > History Users
kapcsak > History Captchas
kemriportok > Spy Reports
kod_aktivitas_log > Fog Activity Log
kp_transzfer_log > Money(kp Means: Kézpénz, that means 'Money') Transfers
loginek > Logins
loginek_osszes > Logins All
loginek_osszes_10p > Logins 10p (10P means 10 Minutes)
loginek_osszes_ora > Logins All 1 Hour
multi_matrix > Multi Matrix XD
multi_matrix_v2 > Multi Matrix V2
nagy_szovi_toplista > Big Alliance Toplist
nagy_toplista > big toplist
ostromok >Sieges
penz_transzfer_log > Money Transfer Log
php_debug_log >
premium_elofizetesek > Premium Subscriptions
smsek > SMS Phone Texts(For premium memberships, Mobile SMS texts)
szabadpiaci_kotesek > Freemarket Bondings
szim_log > Simulator Log
terulet_valtozasok > Area Changes
tozsdei_gyertyak > Stock Exchange Candles(Some kind of timing script part)
tozsdei_kotesek > Stock Exchange bondings
transzfer_log > Transfer log
transzfer_log_szurt > Transfer log filtered
userek_ossz > All Users
user_szovi_valtasok > User Alliance Changes
Last edited: