PHP game server for TerranQuest. https://terranquest.net
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Skylar Ittner 23d2728449 Set Medoo version (TODO: refactor server for new version) 1 год назад
admin Add admin panel system alert chat broadcasts 2 лет назад
lang Add place artifacts (See issue TerranQuest/1) 2 лет назад
nbproject Add private messaging (closes #8), add more formatting options to chat names, add multi-server list for clients to choose from 2 лет назад
.gitignore places.php now has owner data, players can be kicked with a message 2 лет назад
.htaccess Add i18n 2 лет назад
README.md Update readme 2 лет назад
artifactplace.php Add place artifacts (See issue TerranQuest/1) 2 лет назад
attackplace.php Add "levelup" boolean to output of *place.php 2 лет назад
buyitem.php Add i18n 2 лет назад
capturemunzee.php Fix bug where we didn't actually save the new token after a Munzee refresh. 2 лет назад
chat.php Forgot to remove some debug output 2 лет назад
claimplace.php Add "levelup" boolean to output of *place.php 2 лет назад
cluster.php Add private messaging (closes #8), add more formatting options to chat names, add multi-server list for clients to choose from 2 лет назад
code2item.php Add artifacts to database 1 год назад
composer.json Set Medoo version (TODO: refactor server for new version) 1 год назад
composer.lock Add private messaging (closes #8), add more formatting options to chat names, add multi-server list for clients to choose from 2 лет назад
database.mwb Add artifacts to database 1 год назад
dbsettings.php Tons of changes, enforce valid login for some API actions 2 лет назад
deletesession.php Add deletesession.php 2 лет назад
favicon.ico First Commit 2 лет назад
geocaches.php Tons of changes, enforce valid login for some API actions 2 лет назад
getbadges.php Tons of changes, enforce valid login for some API actions 2 лет назад
getstats.php Add kick code to getstats.php 2 лет назад
getterrain.php getterrain.php output variable names now same as GIS API output. (issue #3) 2 лет назад
getweather.php Move weather fetching and cache handling to weather_inc.php 2 лет назад
giveitem.php Add i18n 2 лет назад
index.php Change stuff, add Dockerfile (not ready yet) 2 лет назад
inventory.php Add place artifacts (See issue TerranQuest/1) 2 лет назад
latlong_validate.php Move lat/long validation to seperate file, add terrain data from gis 2 лет назад
login.php Add place artifacts (See issue TerranQuest/1) 2 лет назад
maptileurl.php Stuff 2 лет назад
minclientversion.php Add minimum client version check code 2 лет назад
munzee.php Remove munzee.log debugging 2 лет назад
nearby.php Add nearby players list 2 лет назад
onlyloggedin.php Add i18n 2 лет назад
ping.php Add i18n 2 лет назад
places.php places.php now has owner data, players can be kicked with a message 2 лет назад
placestats.php Fix artifact count bug 1 год назад
privmsgs.php Add sending private messages without appearing in global chat 2 лет назад
processiap.php Add i18n 2 лет назад
refillplace.php Add place artifacts (See issue TerranQuest/1) 2 лет назад
required.php Add case for "en-US" 2 лет назад
response.php Move lat/long validation to seperate file, add terrain data from gis 2 лет назад
robots.txt Tons of changes, enforce valid login for some API actions 2 лет назад
setteam.php Add i18n 2 лет назад
settings.template.php Add private messaging (closes #8), add more formatting options to chat names, add multi-server list for clients to choose from 2 лет назад
shopitems.php Add in-app purchases 2 лет назад
type_grid.php Attack strength now decreases far away from a location (closes #6) 2 лет назад
useitem.php Add i18n 2 лет назад
weather_inc.php Attack strength now decreases far away from a location (closes #6) 2 лет назад

README.md

TerranQuest Game Server

This is the server code for TerranQuest. See the TerranQuest game code for examples on how to interact with this server.

The server runs on a standard LAMP server. MariaDB is recommended.

To work with the database, download MySQL Workbench and open the database.mwb file. You can export the SQL create code from there.

Setup

  1. Have a standard LAMP server.
  2. Clone this repo into the webroot.
  3. Run PHP composer to make sure all the dependencies are installed.
  4. Create a SQL database.
  5. Copy settings.template.php to settings.php.
  6. Add the correct settings to settings.php:
    • Plug in your database settings.
    • Contact us for an API key for the GIS API. The GIS server has a global database of places and terrain. You could roll your own, but it’s a lot to work with (30GB database and counting).
    • Add API keys for third-party services. You’ll probably have to disable Munzee in the code2item.php file, as they don’t give everyone capture permissions for their API. The DarkSky weather API is free for 1000 queries a day at darksky.net/dev (no credit card needed). The MapQuest key is for adding location search on the admin panel, if you don’t need that don’t use it. Ignore the Geocache key, it’s not doing anything. Same for the Google Play key, that’s only for validating Android in-app purchases.
    • Set an admin username and password, otherwise the admin interface won’t work.
  7. Go to yourserver.com/admin and login. If everything works, you should be good to go.
  8. On the login screen of the app, tap the gear and type your server URL.

Codacy Badge