PHP game server for TerranQuest (version 1) https://terranquest.net
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Questo repository è archiviato. Puoi vedere i file e clonarli, ma non puoi effettuare richieste di pushj o aprire problemi/richieste di pull.
 
 
 
 
Skylar Ittner 23d2728449 Set Medoo version (TODO: refactor server for new version) 7 anni fa
admin Add admin panel system alert chat broadcasts 7 anni fa
lang Add place artifacts (See issue TerranQuest/1) 7 anni fa
nbproject Add private messaging (closes #8), add more formatting options to chat 8 anni fa
.gitignore places.php now has owner data, players can be kicked with a message 8 anni fa
.htaccess Add i18n 8 anni fa
README.md Update readme 8 anni fa
artifactplace.php Add place artifacts (See issue TerranQuest/1) 7 anni fa
attackplace.php Add "levelup" boolean to output of *place.php 7 anni fa
buyitem.php Add i18n 8 anni fa
capturemunzee.php Fix bug where we didn't actually save the new token after a Munzee 8 anni fa
chat.php Forgot to remove some debug output 8 anni fa
claimplace.php Add "levelup" boolean to output of *place.php 7 anni fa
cluster.php Add private messaging (closes #8), add more formatting options to chat 8 anni fa
code2item.php Add artifacts to database 7 anni fa
composer.json Set Medoo version (TODO: refactor server for new version) 7 anni fa
composer.lock Add private messaging (closes #8), add more formatting options to chat 8 anni fa
database.mwb Add artifacts to database 7 anni fa
dbsettings.php Tons of changes, enforce valid login for some API actions 8 anni fa
deletesession.php Add deletesession.php 8 anni fa
favicon.ico First Commit 8 anni fa
geocaches.php Tons of changes, enforce valid login for some API actions 8 anni fa
getbadges.php Tons of changes, enforce valid login for some API actions 8 anni fa
getstats.php Add kick code to getstats.php 7 anni fa
getterrain.php getterrain.php output variable names now same as GIS API output. (issue #3) 8 anni fa
getweather.php Move weather fetching and cache handling to weather_inc.php 8 anni fa
giveitem.php Add i18n 8 anni fa
index.php Change stuff, add Dockerfile (not ready yet) 8 anni fa
inventory.php Add place artifacts (See issue TerranQuest/1) 7 anni fa
latlong_validate.php Move lat/long validation to seperate file, add terrain data from gis 8 anni fa
login.php Add place artifacts (See issue TerranQuest/1) 7 anni fa
maptileurl.php Stuff 8 anni fa
minclientversion.php Add minimum client version check code 8 anni fa
munzee.php Remove munzee.log debugging 7 anni fa
nearby.php Add nearby players list 8 anni fa
onlyloggedin.php Add i18n 8 anni fa
ping.php Add i18n 8 anni fa
places.php places.php now has owner data, players can be kicked with a message 8 anni fa
placestats.php Fix artifact count bug 7 anni fa
privmsgs.php Add sending private messages without appearing in global chat 8 anni fa
processiap.php Add i18n 8 anni fa
refillplace.php Add place artifacts (See issue TerranQuest/1) 7 anni fa
required.php Add case for "en-US" 7 anni fa
response.php Move lat/long validation to seperate file, add terrain data from gis 8 anni fa
robots.txt Tons of changes, enforce valid login for some API actions 8 anni fa
setteam.php Add i18n 8 anni fa
settings.template.php Add private messaging (closes #8), add more formatting options to chat 8 anni fa
shopitems.php Add in-app purchases 8 anni fa
type_grid.php Attack strength now decreases far away from a location (closes #6) 8 anni fa
useitem.php Add i18n 8 anni fa
weather_inc.php Attack strength now decreases far away from a location (closes #6) 8 anni fa

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