PHP game server for TerranQuest (version 1) https://terranquest.net
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.
 
 
 
 
Skylar Ittner 23d2728449 Set Medoo version (TODO: refactor server for new version) il y a 7 ans
admin Add admin panel system alert chat broadcasts il y a 7 ans
lang Add place artifacts (See issue TerranQuest/1) il y a 7 ans
nbproject Add private messaging (closes #8), add more formatting options to chat il y a 8 ans
.gitignore places.php now has owner data, players can be kicked with a message il y a 8 ans
.htaccess Add i18n il y a 8 ans
README.md Update readme il y a 8 ans
artifactplace.php Add place artifacts (See issue TerranQuest/1) il y a 7 ans
attackplace.php Add "levelup" boolean to output of *place.php il y a 7 ans
buyitem.php Add i18n il y a 8 ans
capturemunzee.php Fix bug where we didn't actually save the new token after a Munzee il y a 8 ans
chat.php Forgot to remove some debug output il y a 8 ans
claimplace.php Add "levelup" boolean to output of *place.php il y a 7 ans
cluster.php Add private messaging (closes #8), add more formatting options to chat il y a 8 ans
code2item.php Add artifacts to database il y a 7 ans
composer.json Set Medoo version (TODO: refactor server for new version) il y a 7 ans
composer.lock Add private messaging (closes #8), add more formatting options to chat il y a 8 ans
database.mwb Add artifacts to database il y a 7 ans
dbsettings.php Tons of changes, enforce valid login for some API actions il y a 8 ans
deletesession.php Add deletesession.php il y a 8 ans
favicon.ico First Commit il y a 8 ans
geocaches.php Tons of changes, enforce valid login for some API actions il y a 8 ans
getbadges.php Tons of changes, enforce valid login for some API actions il y a 8 ans
getstats.php Add kick code to getstats.php il y a 7 ans
getterrain.php getterrain.php output variable names now same as GIS API output. (issue #3) il y a 8 ans
getweather.php Move weather fetching and cache handling to weather_inc.php il y a 8 ans
giveitem.php Add i18n il y a 8 ans
index.php Change stuff, add Dockerfile (not ready yet) il y a 8 ans
inventory.php Add place artifacts (See issue TerranQuest/1) il y a 7 ans
latlong_validate.php Move lat/long validation to seperate file, add terrain data from gis il y a 8 ans
login.php Add place artifacts (See issue TerranQuest/1) il y a 7 ans
maptileurl.php Stuff il y a 8 ans
minclientversion.php Add minimum client version check code il y a 8 ans
munzee.php Remove munzee.log debugging il y a 7 ans
nearby.php Add nearby players list il y a 8 ans
onlyloggedin.php Add i18n il y a 8 ans
ping.php Add i18n il y a 8 ans
places.php places.php now has owner data, players can be kicked with a message il y a 8 ans
placestats.php Fix artifact count bug il y a 7 ans
privmsgs.php Add sending private messages without appearing in global chat il y a 8 ans
processiap.php Add i18n il y a 8 ans
refillplace.php Add place artifacts (See issue TerranQuest/1) il y a 7 ans
required.php Add case for "en-US" il y a 7 ans
response.php Move lat/long validation to seperate file, add terrain data from gis il y a 8 ans
robots.txt Tons of changes, enforce valid login for some API actions il y a 8 ans
setteam.php Add i18n il y a 8 ans
settings.template.php Add private messaging (closes #8), add more formatting options to chat il y a 8 ans
shopitems.php Add in-app purchases il y a 8 ans
type_grid.php Attack strength now decreases far away from a location (closes #6) il y a 8 ans
useitem.php Add i18n il y a 8 ans
weather_inc.php Attack strength now decreases far away from a location (closes #6) il y a 8 ans

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