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 d816b6846d Add nearby players list 8 years ago
nbproject Move weather fetching and cache handling to weather_inc.php 8 years ago
.gitignore Move weather fetching and cache handling to weather_inc.php 8 years ago
.htaccess First Commit 8 years ago
Dockerfile Move weather fetching and cache handling to weather_inc.php 8 years ago
README.md Update readme 8 years ago
attackplace.php Add crazy fancy damage/exp formulas 8 years ago
buyitem.php Add in-app purchases 8 years ago
capturemunzee.php Make Munzees work 8 years ago
chat.php Fix a few bugs with the chat, the code will now work perfectly with the latest TerranQuest client 8 years ago
claimplace.php Add crazy fancy damage/exp formulas 8 years ago
code2item.php Make Munzees work 8 years ago
composer.json Add GeoLocation library 8 years ago
composer.lock Add GeoLocation library 8 years ago
database.mwb Add weather data with db cache (issue #4) 8 years ago
dbsettings.php Tons of changes, enforce valid login for some API actions 8 years ago
deletesession.php Add deletesession.php 8 years ago
favicon.ico First Commit 8 years ago
geocaches.php Tons of changes, enforce valid login for some API actions 8 years ago
getbadges.php Tons of changes, enforce valid login for some API actions 8 years ago
getstats.php Send more data to the client, auto-reset dead places 8 years ago
getterrain.php getterrain.php output variable names now same as GIS API output. (issue #3) 8 years ago
getweather.php Move weather fetching and cache handling to weather_inc.php 8 years ago
index.php Change stuff, add Dockerfile (not ready yet) 8 years ago
inventory.php Add item/inventory code 8 years ago
latlong_validate.php Move lat/long validation to seperate file, add terrain data from gis 8 years ago
login.php Automatically reward beta tester badge and some credits. 8 years ago
maptileurl.php Stuff 8 years ago
minclientversion.php Add minimum client version check code 8 years ago
munzee.php More Munzee stuff. It still doesn't capture though :\ 8 years ago
nearby.php Add nearby players list 8 years ago
onlyloggedin.php Tons of changes, enforce valid login for some API actions 8 years ago
ping.php Tons of changes, enforce valid login for some API actions 8 years ago
pinglogin.php Issue #2: Merge chat code into main game server, add nickname storage. 8 years ago
places.php Send owner name with place info 8 years ago
placestats.php Send owner name with place info 8 years ago
processiap.php codacy 8 years ago
required.php Fix a few bugs with the chat, the code will now work perfectly with the latest TerranQuest client 8 years ago
response.php Move lat/long validation to seperate file, add terrain data from gis 8 years ago
robots.txt Tons of changes, enforce valid login for some API actions 8 years ago
setteam.php Add setteam script 8 years ago
settings.template.php Move lat/long validation to seperate file, add terrain data from gis 8 years ago
shopitems.php Add in-app purchases 8 years ago
type_grid.php Add type damage multipliers 8 years ago
useitem.php Add handling for items with multiple uses 8 years ago
weather_inc.php Move lat/long validation to seperate file, add terrain data from gis 8 years ago

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 database settings to settings.php.
  7. Add API keys for third-party services to settings.php. You'll probably have to disable Munzee in the code2item.php file, as they don't give everyone capture permissions for their API. The Geocaching key isn't used for anything right now, leave it blank.
  8. Package the TerranQuest app with the URL of your server (see https://github.com/Netsyms/TerranQuest/issues/3).

Codacy Badge