Coder Social home page Coder Social logo

etstats's Introduction

etstats

an Enemy Territory: Legacy Script

POST stats to a web server which also serves a webpage which is a viewer and search engine for stats. Organized into LAN parties, which contain matches and player data. See example screenshot below.

Requires a JSON module, ie. https://github.com/rxi/json.lua

TODO: POST data instead of outputting a file.

Creates output JSON file matches/starttime_mapname.json at end of match, eg.:

{
	"mapname": "radar",
	"endtime": "ISO",
	"starttime": "ISO",
	"players": {
		"guid": {
			"team": 2,
			"teamKills": 0,
			"skillPointsLightWeapons": 0,
			"rank": 0,
			"kills": 0,
			"skillPointsFieldOps": 0,
			"teamGibs": 0,
			"playerType": 0,
			"deaths": 0,
			"medals": 0,
			"teamDamageDealt": 0,
			"weaponStats": [ 0, 0, 0, 0, 0 ],
			"skillPointsCovertOps": 0,
			"teamDamageTaken": 0,
			"gibs": 0,
			"damageTaken": 0,
			"damageDealt": 0,
			"suicides": 0,
			"name": "playername",
			"skillPointsEngineering": 0,
			"skill": 0,
			"skillPointsMedic": 0,
			"skillPointsHeavyWeapons": 0,
			"skillPointsBattleSense": 0
		}
	}
}

Example screenshot from viewer:

etstats's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.