Commit graph

42 commits

Author SHA1 Message Date
Lucas Nicodemus
569b350cea Update to Pryaxis, 2018 part 2
If there's one thing I learned in this exercise, it's that letting
people add random python scripts to the repo like gpltext.py that
promise to be easier than find and replace is a bad idea.
2018-01-01 02:20:56 -07:00
Lucas Nicodemus
8d934ef08f Update to 2018 2018-01-01 02:17:21 -07:00
Lucas Nicodemus
df4da817b6 Rename Utils.ActivePlayers to something better.
Issues related to ICollections being null led to reverting migrating
this to TSPlayer until a better solution is uncovered.
2017-12-31 01:30:13 -07:00
Lucas Nicodemus
a5cad284a8 Revert "Remove Utils.ActivePlayers"
This reverts commit b613fdcda6.
2017-12-31 01:28:21 -07:00
Lucas Nicodemus
43ddb73112 Revert "Migrate calls from Players.Length to ActivePlayers"
This reverts commit 521283c36b.
2017-12-31 01:24:54 -07:00
Lucas Nicodemus
521283c36b Migrate calls from Players.Length to ActivePlayers
As pointed out by @QuiCM, TShock.Players is actually an array and not a
smarter collection, so length will return the total collection size and
not the active players. An earlier commit was added that gives TSPlayer
an ICollection<TSPlayer> that contains only active players. This is now
the basis of determining the number of active players on the server.
2017-12-31 01:13:33 -07:00
Lucas Nicodemus
b613fdcda6 Remove Utils.ActivePlayers
Duplicated what an array already stored and told us, but added code and
was obscure. It predated TSPlayers existing.
2017-12-26 21:14:16 -07:00
quake1337
7d5a74330a Ate one newline. 2017-09-20 17:42:32 +02:00
quake1337
4aa81a3d30 Add changes requested by @hakusaro 2017-09-20 17:39:38 +02:00
quake1337
e6ec63a90e Add @ijwu's changes + add /proc/meminfo trick for linux 2017-09-20 09:27:28 +02:00
quake1337
68437f0a22 Add "less than 2gb ram" warning 2017-08-14 14:39:22 +02:00
Lucas Nicodemus
156ce52845 Closes #1478
This addresses code feedback in the previously deleted pull request
2017-07-20 18:10:16 -06:00
Jordan Coulam
1cdd33a78a Added ignoreVersion and loaded plugin list to StatTracking for issue #1444 (#1445) 2017-07-16 20:56:56 -06:00
White
c4a3a9fb67 Updated Copyright for 2017 2017-03-13 12:17:16 +10:30
White
b3a2b24daa Updated the Stat Tracker to use System.Net.Http types.
Very similar to the previous Update Manager changes. The stat tracker now uses asynchronous threaded calls and manages exceptions better
2017-03-06 21:35:14 +10:30
Adilson Carvalho
ad03215986 Added GPL header on all code files when missing 2016-10-16 17:33:19 -02:00
Tyler Watson
4eca66a024 Removed ThreadPool threads in favour of plain threads.
See
NyxStudios/TerrariaAPI-Server@b1d62b6cbd
for details.
2016-05-10 23:46:44 +10:00
George
29abcaf612 Reworked the StatTracker client-side
Reworked the StatTracker client side stuff to match the new server side
changes. Also fixed the memory tracking, plus added a 'providerid' for
certain server hosting providers
2015-12-28 20:47:04 +00:00
Enerdy
597322217d Fix more broken calls. 2015-07-04 16:17:31 +01:00
Lucas Nicodemus
6e0de64f18 Remove more broken/obsolete/dead code 2015-02-28 19:15:19 -07:00
Lucas Nicodemus
4cb36c4e37 Re-enable stat tracker 2015-02-28 16:27:38 -07:00
Zack Piispanen
444af6cf57 Update to latest TSAPI. Changed update manager to use same code as stat tracker, which hopefully doesnt break on mono. Also changed it to not check every update to see if time has passed. Made packetbufferer async for windows and if specified for mono. Fixed maxspawns error message to explain range. Ticked version. 2014-09-09 03:49:57 -04:00
Zack
18138afd1d Update ServerAPI to latest. Added command to reset the completed angler quests. Verified that angler quests are working as intended. Set value in db to 9, completed quest, received fuzzy carrot, shut down server, set to saw it was set to 10, set to 19, started server, completed quest, received his hat. Please stop reporting this as broken. 2014-08-02 10:18:47 -04:00
Zack Piispanen
f4c332ab2f Only Initialize the stat tracker once, and explicitly set timeout to 5 seconds. 2013-11-08 02:20:38 -05:00
Zack Piispanen
2e510aa5ba Add more info to the stat tracker. 2013-11-07 21:27:13 -05:00
Zack Piispanen
9c3cffb4b8 Enable Stat Tracker every 15 minutes for maximum stat mining. 2013-11-07 02:39:36 -05:00
Zack Piispanen
bd2f98c203 Re-add Stat Tracker. Disabled while we set up the backend. 2013-11-06 23:41:50 -05:00
Lucas Nicodemus
8fb046f5b3 Removed old, crusty stat tracker. 2013-08-22 22:50:59 -06:00
Lucas Nicodemus
ae7ab5f234 Updated copyright information to point to 2013. 2013-08-22 21:51:17 -06:00
Lucas Nicodemus
7eab1b55d3 Added an option to hide stat tracker debug messages 2012-05-29 20:24:17 -06:00
Lucas Nicodemus
8d5cdf04a8 Update copyright to reflect actual year date. 2012-04-24 12:45:46 -06:00
Lucas Nicodemus
c45291eb6b Basic Lua loading prep.
TSHOCKPLUGINS-4
2012-01-03 16:54:38 -07:00
Lucas Nicodemus
ff84198e32 Minor changes 2012-01-01 13:21:23 -07:00
Lucas Nicodemus
bf9d0137f1 Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Lucas Nicodemus
c6abbfe4d2 ReSharper code reformat to match naming conventions and stuff 2011-12-30 14:38:04 -07:00
Lucas Nicodemus
1147788154 ReSharper redundant code cleanup 2011-12-30 14:32:05 -07:00
Zidonuke
34efba9c1f Changed hack detection to allow future permissions overrides, now prevents hack clients modding max hp while online. 2011-12-28 21:03:29 -05:00
Zidonuke
37c550c167 Server passwords are disabled, moving this to TShock handling soon.
Change stat tracker mono detection
Fixed collision check to ignore tileSolidTop
2011-12-28 10:56:45 -05:00
Zidonuke
23ddd4e891 Add OS and Mono tracking to statistics system. 2011-12-27 14:31:07 -05:00
Zidonuke
8cf298ad85 Save player data on backups
Server Side Inventory security improvements, blocking trashcan and "banks" items
CovertCorruption is now more thorough.
PvP Modes, normal, always, disabled now configurable
Initial group prefix/suffix implementation
Range checks reworked, Killing ice blocks now ignored for ice rod.
Adding a NPC name to item banlist will block it from spawning
Added configs to disable snowballs and clown bombs from npcs.
2011-12-22 17:32:51 -05:00
Zidonuke
fc735ba829 Player count stuffs 2011-12-22 15:25:40 -05:00
Lucas Nicodemus
ba5a7d1cc6 StatTracker.cs 2011-12-22 03:59:57 -07:00