Commit Graph

114 Commits

Author SHA1 Message Date
Sascha L. Teichmann
c87ce03dbe send empty players array if no player is online any more. 2022-03-03 20:22:37 +01:00
Sascha L. Teichmann
f533ed71e7 Fixed mapping of color in configuration. 2022-03-02 00:15:30 +01:00
Sascha L. Teichmann
c17bca9c94 Deserialize duration from config toml 2022-03-01 23:45:25 +01:00
Sascha L. Teichmann
1155930bc9 Dont define c flag twice 2022-03-01 23:39:01 +01:00
Sascha L. Teichmann
e6ea8fe3d1 Support for configuration file in webmapper 2022-03-01 23:30:31 +01:00
Sascha L. Teichmann
25e62b3a8b Use more modern function channel approach in websocket forwarder. 2022-03-01 22:29:56 +01:00
Sascha L. Teichmann
da2b327985 Wait until all tiles are written out or are cancelled. 2022-03-01 21:02:08 +01:00
Sascha L. Teichmann
c507663826 Use a more general db client factory approach. 2022-03-01 14:47:14 +01:00
Sascha L. Teichmann
68ce57aa75 Fixed command line parameter. 2022-03-01 13:50:18 +01:00
Sascha L. Teichmann
6fb338dbb8 Another try to fix not removing last player. 2022-02-28 21:26:04 +01:00
Sascha L. Teichmann
6ffa0e1001 Name players correctly. 2022-02-28 16:21:26 +01:00
Sascha L. Teichmann
db45013f4e Simplified player forwarding. Forward empty player list 2022-02-28 15:49:14 +01:00
Sascha L. Teichmann
1ec9d8916b select players position from database. 2022-02-28 13:37:00 +01:00
Sascha L. Teichmann
8c6ab34e6a Fetch player pos from postgres 2022-02-28 13:21:28 +01:00
Sascha L. Teichmann
d98df1c1cd WIP: add tile updating in in web mapper with pg listen/notify 2022-02-28 11:07:50 +01:00
Sascha L. Teichmann
ae230d5abf Use db abstraction in webmapper. 2022-02-27 21:31:55 +01:00
Sascha L. Teichmann
6a1356f0eb When an tile is rendered the writing to disk can be done in background
concurrently to the rendering of the next tile.
2017-03-06 15:43:30 +01:00
Sascha L. Teichmann
e68e762322 Support unix domain sockets in redis clients, too. 2017-03-05 14:38:30 +01:00
Sascha L. Teichmann
3e3413566b Only do expensive area coverage calculation if there where blocks loaded from database.
If there are not, nothing changed, so nothing to recalculate.
Takes a good deal from the clock.
2017-02-26 12:57:38 +01:00
Sascha L. Teichmann
bae7e7c3e6 Made size of hashes LRU cache a parameter set by the webmapper. 2016-05-10 21:02:16 +02:00
Sascha L. Teichmann
7cbe2e516c Revert enabling websockets by default. Slipped in by accident. 2016-05-10 20:53:58 +02:00
Sascha L. Teichmann
69ee5af388 Implemented a simple LRU cache with max 256 entries for base tile hasing. TODO: Improve test. 2016-05-10 18:57:14 +02:00
Sascha L. Teichmann
5d1be98ae5 Cosmetics. 2016-05-08 23:27:11 +02:00
Sascha L. Teichmann
4c24a01607 Use empty structs instead of bools in changes. 2016-05-08 23:20:51 +02:00
Sascha L. Teichmann
da309c73d8 Removed obsolete comment. 2016-05-08 23:12:29 +02:00
Sascha L. Teichmann
496a60aa29 Simplified mask embedding in parent calculation of pyramid tiles. 2016-05-08 23:07:19 +02:00
Sascha L. Teichmann
da2a6a82d4 Simplified tiles update processing and forwarding. 2016-05-08 22:30:00 +02:00
Sascha L. Teichmann
0900bd16ce Finished logic to supress pyramid regeneration in mtwebmapper. Untested. 2016-05-08 15:38:50 +02:00
Sascha L. Teichmann
4bed73d9e3 Prepare tiles updater in webmapper to have unupdated base tiles. 2016-05-08 15:13:40 +02:00
Sascha L. Teichmann
607b4de9ec Dedup code. 2016-04-23 21:09:23 +02:00
Sascha L. Teichmann
0db9b519a6 Implement fetaure request issue #17
mtseeder and mtwebmapper got an option to set the background color where no nodes are generated, yet.
2016-04-23 16:45:33 +02:00
Sascha L. Teichmann
58a44c2d40 Be more careful with host IPs which call /update. They are potentially IPv6. Fixes Issue #16. 2016-04-06 11:44:51 +02:00
Sascha L. Teichmann
f658d12641 Use github.com/bamiaux/rez instead of github.com/nfnt/resize for resampling the pyramid tiles. It is much faster but needs some testing. 2015-12-25 22:07:54 +01:00
Sascha L. Teichmann
e606e2700f Fixes #14. mtseeder and mtwebmapper now have command line flags -ymin=block and -ymax=block to limit the y range of mapping. Defaults to full range. 2015-07-27 19:03:47 +02:00
Sascha L. Teichmann
62a53dc26b Unified handling of printing versions of programs (--version). Setting version to 0.5 2015-07-26 22:04:16 +02:00
Sascha L. Teichmann
8817094001 Added missing copyright headers and updated dates on others. 2015-07-26 16:33:29 +02:00
Sascha L. Teichmann
becf017edc Small cleanup. Moved min to common/math. 2015-07-26 12:32:59 +02:00
Sascha L. Teichmann
e1eb03813f Add a -transparent-dim=percent flag to set the extra dimming of transparent materials each depth meter. 2015-07-26 11:55:38 +02:00
Sascha L. Teichmann
fed5b32469 Small nit. 2015-07-25 20:39:05 +02:00
Sascha L. Teichmann
ecd599e44d Terminate all log.Printf with a new line. 2015-07-20 14:19:41 +02:00
Sascha L. Teichmann
5172e02380 Some minor code cleanups in mtwebmapper. 2015-05-27 18:36:03 +02:00
Sascha L. Teichmann
7a6d0a0d31 Fixed none vanishing manual update control when switching to auto update. 2015-03-13 17:06:50 +01:00
Sascha L. Teichmann
f71db790e7 Replace string.contains() with string.indexOf() which is better supported. 2015-03-13 16:25:19 +01:00
Sascha L. Teichmann
b54b2b6b91 Fixed vanishing players whem refreshing after switching back from auto-update. 2015-03-13 16:06:06 +01:00
Sascha L. Teichmann
4b4c620c35 Removed pointless logging. 2015-03-13 15:46:33 +01:00
Sascha L. Teichmann
c3b634669a Simplified auto update code. Removed pointless tile updating when there are only player updates. Removed redundant JSON parsing. 2015-03-13 15:43:59 +01:00
Sascha L. Teichmann
71636a5b4c Fix state switching auto-update/manual refresh. 2015-03-13 15:03:10 +01:00
Sascha L. Teichmann
dda0716053 To keep websockets alive send every eight seconds a ping to the server. 2015-03-13 12:29:55 +01:00
Sascha L. Teichmann
d2b6ff4fbb Orange is the new red. 2015-03-10 14:29:55 +01:00
Raimund Renkert
fa3c39297f Use leaflet awesome marker as icon for players. 2015-03-10 14:10:03 +01:00