PHP game server for TerranQuest (version 1) https://terranquest.net
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
Skylar Ittner 23d2728449 Set Medoo version (TODO: refactor server for new version) преди 7 години
admin Add admin panel system alert chat broadcasts преди 7 години
lang Add place artifacts (See issue TerranQuest/1) преди 7 години
nbproject Add private messaging (closes #8), add more formatting options to chat преди 7 години
.gitignore places.php now has owner data, players can be kicked with a message преди 8 години
.htaccess Add i18n преди 7 години
README.md Update readme преди 8 години
artifactplace.php Add place artifacts (See issue TerranQuest/1) преди 7 години
attackplace.php Add "levelup" boolean to output of *place.php преди 7 години
buyitem.php Add i18n преди 7 години
capturemunzee.php Fix bug where we didn't actually save the new token after a Munzee преди 8 години
chat.php Forgot to remove some debug output преди 7 години
claimplace.php Add "levelup" boolean to output of *place.php преди 7 години
cluster.php Add private messaging (closes #8), add more formatting options to chat преди 7 години
code2item.php Add artifacts to database преди 7 години
composer.json Set Medoo version (TODO: refactor server for new version) преди 7 години
composer.lock Add private messaging (closes #8), add more formatting options to chat преди 7 години
database.mwb Add artifacts to database преди 7 години
dbsettings.php Tons of changes, enforce valid login for some API actions преди 8 години
deletesession.php Add deletesession.php преди 8 години
favicon.ico First Commit преди 8 години
geocaches.php Tons of changes, enforce valid login for some API actions преди 8 години
getbadges.php Tons of changes, enforce valid login for some API actions преди 8 години
getstats.php Add kick code to getstats.php преди 7 години
getterrain.php getterrain.php output variable names now same as GIS API output. (issue #3) преди 8 години
getweather.php Move weather fetching and cache handling to weather_inc.php преди 8 години
giveitem.php Add i18n преди 7 години
index.php Change stuff, add Dockerfile (not ready yet) преди 8 години
inventory.php Add place artifacts (See issue TerranQuest/1) преди 7 години
latlong_validate.php Move lat/long validation to seperate file, add terrain data from gis преди 8 години
login.php Add place artifacts (See issue TerranQuest/1) преди 7 години
maptileurl.php Stuff преди 8 години
minclientversion.php Add minimum client version check code преди 8 години
munzee.php Remove munzee.log debugging преди 7 години
nearby.php Add nearby players list преди 8 години
onlyloggedin.php Add i18n преди 7 години
ping.php Add i18n преди 7 години
places.php places.php now has owner data, players can be kicked with a message преди 8 години
placestats.php Fix artifact count bug преди 7 години
privmsgs.php Add sending private messages without appearing in global chat преди 7 години
processiap.php Add i18n преди 7 години
refillplace.php Add place artifacts (See issue TerranQuest/1) преди 7 години
required.php Add case for "en-US" преди 7 години
response.php Move lat/long validation to seperate file, add terrain data from gis преди 8 години
robots.txt Tons of changes, enforce valid login for some API actions преди 8 години
setteam.php Add i18n преди 7 години
settings.template.php Add private messaging (closes #8), add more formatting options to chat преди 7 години
shopitems.php Add in-app purchases преди 8 години
type_grid.php Attack strength now decreases far away from a location (closes #6) преди 8 години
useitem.php Add i18n преди 7 години
weather_inc.php Attack strength now decreases far away from a location (closes #6) преди 8 години

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.
  1. Go to yourserver.com/admin and login. If everything works, you should be good to go.
  2. On the login screen of the app, tap the gear and type your server URL.

Codacy Badge