Commit Graph

243 Commits

Author SHA1 Message Date
Lukas Rieger (Blue)
81e8da3b70
Fix storage performance 2024-02-08 13:18:49 +01:00
Lukas Rieger
16981f2797
Refactor World-Management and Region/Chunk-Loading (#496)
* Implement PackedIntArrayAccess

* First working render with BlueNBT

* Progress converting chunkloaders

* Core rewrite done

* WIP - Restructuring configs and world-map mapping

* WIP - Compiling and starting without exceptions :)

* Fix cave detection

* Ensure configuration backwards compatibility (resolve dimension from configured world if missing)

* Implement support for 1.16+ chunks

* Implement support for 1.15+ chunks

* Implement support for 1.13+ chunks and some fixes

* Also find worlds based on their id again in BlueMapAPI

* Improve autogenerated config names

* Implement equals for all ServerWorld implementations

* Get rid of var usage
2024-02-07 20:43:37 +01:00
Lukas Rieger (Blue)
61f883b134
Add -m option to cli, which allows to filter the maps that should be loaded and rendered 2024-01-23 19:35:25 +01:00
Lukas Rieger (Blue)
a703a92357
Remove pretty-printing from settings.json 2024-01-17 18:27:44 +01:00
TechnicJelle
7c3485363e
Fix grammar in BlueMapService.java (#494) 2023-12-14 16:26:31 +01:00
Lukas Rieger (Blue)
77c1e42009
Change default nether and end configs to have a better void color 2023-11-19 11:22:43 +01:00
TechnicJelle
48445db7b5
Add map config for having a different void colour (#477)
* Added global webapp option for not having a void

* Fix for non-default lighting conditions

* Replace `isVoid` with whole `voidColor` feature!

* Default void colour should be black

* And now the default sky colour can also be set back to what it was

* Fix the low-res void colour

* Add config option for the new void colour setting!

(I hope I haven't forgotten any place to add it, but it does work, so I don't think so..?)
2023-09-30 23:42:37 +02:00
TechnicJelle
7047df73d0
Made webserver binding logging less confusing (#474)
People often think "0.0.0.0" is the IP they should connect to when BlueMap logs `WebServer bound to: /0.0.0.0:8100`
Or they see the IPv6 address being logged, and think BlueMap is only running on IPv6.
2023-09-07 08:41:50 +02:00
Lukas Rieger (Blue)
7156993323
Make webserver resource-closing more watertight against potential leaks 2023-09-05 14:22:30 +02:00
Lukas Rieger (Blue)
4aadaeb2e0
Fix indentation of frozen status on map list 2023-08-10 16:09:57 +02:00
Lukas Rieger (Blue)
1f7f51c1e1
Add webapp option to default to flat-view 2023-07-04 14:42:12 +02:00
Lukas Rieger (Blue)
1b2dc45b4b
Add debug-log, improve logging in general and fix weblogger not closing correctly 2023-07-01 09:44:19 +02:00
Lukas Rieger (Blue)
15f5e8fd00
Fix default log file name 2023-06-29 13:51:41 +02:00
Lukas Rieger (Blue)
0ebea9982f
Apply Spotless fixes for BlueMapCommon 2023-06-29 13:42:56 +02:00
Lukas Rieger (Blue)
d570884def
Add advanced webserver logging + settings 2023-06-29 13:37:31 +02:00
Lukas Rieger (Blue)
8f97b08eb5
Use string-builder in verbose logger 2023-06-29 08:38:46 +02:00
Lukas Rieger (Blue)
4141d21a70
Add support for xff header in verbose web logger 2023-06-29 08:29:53 +02:00
Lukas Rieger (Blue)
0ac939a644
Always initialize PlayerSkinUpdater to be available to API 2023-06-22 08:21:36 +02:00
Lukas Rieger (Blue)
fdd4713dfb
Fix command permission for deleting a map from a storage 2023-06-20 22:05:24 +02:00
Lukas Rieger (Blue)
b4b3e72d51
Make configs generate paths with forwardslashes whenever possible 2023-06-19 15:44:57 +02:00
Lukas Rieger (Blue)
85f4735050
Fix hours in AM/PM format instead of 24 2023-06-18 13:51:07 +02:00
Lukas Rieger (Blue)
2e572ddb11
Fix status command formatting and add last render times to status and maps commands 2023-06-18 13:46:41 +02:00
MrSolarius
f149b823a7
Add support for postgres databases (#443)
* Refactor : wrap every single SQL query inside an interface

* Feat : create every SQL request for postgres

* Refactor : rename SQLQueryAbstractFactory to SQLQueryFactory

* Feat : add dialect settings to blue map !

* Feat : Create two new storageClass for different storage approche

* Feat : add read BYTEA support

* Fix : remove unuseful println

* Fix : remove edited sql.conf

* Refactor / Feat : support for mysql

* Lots of tiny tweaks

---------

Co-authored-by: Lukas Rieger (Blue) <TBlueF@users.noreply.github.com>
2023-06-12 22:55:44 +02:00
TechnicJelle
c807699c7c
Add port-in-use check (#440)
* Add port-in-use check to plugin

* Add port-in-use check to CLI
2023-06-08 23:12:20 +02:00
Lukas Rieger (Blue)
e2037e9698
Run status-command in separate thread 2023-05-15 17:40:47 +02:00
Lukas Rieger (Blue)
083c6c06c2
Improve progressEstimation function 2023-05-15 17:18:25 +02:00
Lukas Rieger (Blue)
f1f2336dff
Remove syncronization from estimateProgress() function 2023-05-15 17:01:10 +02:00
Lukas Rieger (Blue)
659fb99eb6
Avoid NPE if accessing the API while bluemap is unloaded 2023-05-14 02:18:31 +02:00
Lukas Rieger (Blue)
92e5300c1e
Clear chunks from cache when starting a render-task for them 2023-05-09 22:09:18 +02:00
Antti Ellilä
f467220400
Start rendering after everything else is loaded (#425)
To attempt to fix the weirdness with tile filters not working at startup
2023-05-07 19:24:43 +02:00
Lukas Rieger (Blue)
94dbd372dc
Fix typo 2023-05-01 20:43:16 +02:00
Lukas Rieger (Blue)
004f296b5e
Add storages command 2023-05-01 20:41:30 +02:00
Lukas Rieger (Blue)
5e17df6b2a
Fix locking on the same lock that is used for loading causes the server to freeze 2023-03-13 19:30:31 +01:00
Lukas Rieger (Blue)
1be7dd5746
Implement abillity to handle Http-Requests asyncrounously 2023-03-06 20:38:38 +01:00
Lukas Rieger (Blue)
f3f609c573
Generalize purge task for all storages 2023-03-04 12:40:12 +01:00
Lukas Rieger (Blue)
c2499df3a7
Change image response to 204 and always save an empty players.json 2023-03-02 16:30:28 +01:00
Lukas Rieger (Blue)
0f58b7409b
Revert "Fix PR #395 ^^"
This reverts commit 7612998bda.
2023-02-25 22:42:45 +01:00
Lukas Rieger (Blue)
7612998bda
Fix PR #395 ^^ 2023-02-25 22:03:31 +01:00
nlog
b9a3c2849a
Modify setFrozen behavior (#395) 2023-02-25 21:59:04 +01:00
Lukas Rieger (Blue)
631c409f79
Keep webserver running if bluemap disables due to no active maps being configured 2023-02-25 12:28:07 +01:00
Lukas Rieger (Blue)
892506f2f9
Remove uneccesary lock, fix double server header, organize packages and class-names 2023-02-24 13:55:21 +01:00
Lukas Rieger (Blue)
0123041925
Fix webserver only working after plugin reload 2023-02-23 10:54:17 +01:00
Lukas Rieger (Blue)
f4c6adc685
Rewrite integrated webserver to be non-blocking 2023-02-22 16:19:34 +01:00
Lukas Rieger (Blue)
a0f34d3d96
Prevent the integrated webserver from sending raw php files 2023-02-15 21:10:23 +01:00
Lukas Rieger (Blue)
e5729a767c
Fix bug that updates the settings.json if the webapp is being disabled 2023-01-15 11:43:22 +01:00
Lukas Rieger (Blue)
45331b8103
Still start sorting-index with 0 :) 2023-01-06 19:10:41 +01:00
Lukas Rieger (Blue)
3defd493d2
Improve default map config generation if there are more than one dimensions of the same type 2023-01-06 19:04:01 +01:00
Lukas Rieger (Blue)
1fa8bb5e4c
Add light-reload command to reload bluemap without reloading all block-resources 2023-01-03 16:03:07 +01:00
Lukas Rieger (Blue)
3b37be432c
Tentative fix for webserver not closing for 10 seconds when bluemap unloads 2023-01-03 16:01:24 +01:00
Lukas Rieger (Blue)
eeabc2135c
Move assets out of the live folder because it makes absolutely no sense for them to be there 2022-12-29 17:54:17 +01:00