Commit Graph

515 Commits

Author SHA1 Message Date
Lukas Rieger (Blue)
d1aba560da
Fix possible self-supression 2024-02-23 23:55:17 +01:00
Lukas Rieger (Blue)
9e8dc8e5a8
Tentative fix for heightmap data being null 2024-02-23 23:55:01 +01:00
Lukas Rieger (Blue)
2c341fc894
Apply spotless fixes 2024-02-23 21:51:29 +01:00
Lukas Rieger (Blue)
40119127ee
Pack normals into one byte instead of 4 to save space :) 2024-02-23 18:02:29 +01:00
Lukas Rieger (Blue)
6e68a8f0e0
[breaking] Switch hires tile format to prbm (modified prwm) 2024-02-23 17:32:07 +01:00
Lukas Rieger (Blue)
3a1e723a51
Improve linear region efficiency by caching the whole region-file data 2024-02-23 00:55:11 +01:00
Lukas Rieger (Blue)
dbde93c9f5
Reimplement Linear region file format support 2024-02-22 23:23:56 +01:00
Lukas Rieger (Blue)
ff1e38a7e1
Fix Map-Updates not working correctly 2024-02-22 12:58:57 +01:00
Lukas Rieger (Blue)
cc50e05262
Use floats for model-positions instead of doubles 2024-02-09 15:30:23 +01:00
Lukas Rieger (Blue)
73a77e5e0e
Do light/cave testing before face-culling to improve performance 2024-02-08 15:26:45 +01:00
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)
efd45658d5
Fix empty blockstates having the wrong block-properties 2024-02-03 00:59:41 +01:00
Lukas Rieger (Blue)
6ce32c56dc
Fix loading texture self-healing not working if its a json-syntax error 2024-01-04 17:19:34 +01:00
Lukas Rieger (Blue)
a0b47f1bd5
Fix texture-gallery not preserving textures that are missing after a resource(pack) change 2023-12-11 12:35:12 +01:00
Lukas Rieger (Blue)
78904b4051
Add resource-patch to make 1.20.3 resources more backwardscompatible with 1.20.2 2023-12-06 19:24:07 +01:00
Lukas Rieger (Blue)
6307fb1e6b
Add 1.20.3 resources 2023-12-06 17:25:30 +01:00
Lukas Rieger (Blue)
3f82a821a2
Fix keysize issue once more 2023-11-23 21:58:59 +01:00
Lukas Rieger (Blue)
5866cb5766
Add basic support for the resource-changes of the 1.20.3 snapshots 2023-11-21 16:15:54 +01:00
Lukas Rieger (Blue)
5f0942a8ae
Fix error when purging a map but the directory is already deleted. Fixes: #490 2023-11-18 16:32:05 +01:00
Lukas Rieger (Blue)
28c9166030
Define a safe collation for mysql tables. Fixes: #488 2023-11-18 16:26:56 +01:00
Lukas Rieger
665af5583f
Fix BlockProperties being stacked the wrong way around 2023-11-14 21:42:46 +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
Lukas Rieger
01027af969
Update Gradle and 1.20.2 support (#479)
* Update gradle

* Update Fabric-Loom and ForgeGradle

* Add fabric-1.20.2 implementation

* Finalize 1.20.2 update

---------

Co-authored-by: NikitaCartes <nikich98@yandex.ru>
2023-09-27 17:39:47 +02:00
YuRaNnNzZZ
aff64294af
Fix tall non-animated textures getting cut off (#472) 2023-08-23 21:55:51 +02:00
Lukas Rieger (Blue)
4386e35c59
Dont delete the file since we are replacing it anyways, to minimize the risk of deleting the file without a replacement 2023-08-10 16:08:48 +02:00
Lukas Rieger (Blue)
5028161b66
Correct compression naming for deflate compression 2023-07-13 12:27:34 +02:00
Lukas Rieger (Blue)
83b81bcca6
Add support for c2me-uncompressed chunks 2023-07-07 13:15:17 +02:00
Lukas Rieger (Blue)
838b22aa19
Add zlib and zstd to the usable compression formats
(They are available in the dependencies anyways so why not add them here ^^)
2023-07-05 11:02:22 +02:00
Lukas Rieger (Blue)
16c4b281ef
Fix settings.json and markers.json not being written with the correct charset 2023-07-03 13:03:52 +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)
7c56fc49a7
Apply Spotless fixes for BlueMapCore 2023-06-29 13:42:36 +02:00
Lukas Rieger (Blue)
d570884def
Add advanced webserver logging + settings 2023-06-29 13:37:31 +02:00
Lukas Rieger (Blue)
72264a2e86
Add supressed exception for more info 2 2023-06-21 15:13:27 +02:00
Lukas Rieger (Blue)
e66838cdbc
Add supressed exception for more info 2023-06-21 15:11:48 +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
Lukas Rieger (Blue)
7097547301
Add sqlite support. Closes: #322 2023-06-18 01:02:13 +02:00
Lukas Rieger (Blue)
97f346534b
Fix 1.13.2 support 2023-06-16 20:23:28 +02:00
Lukas Rieger (Blue)
82f1e1321d
Rename Dialect interface 2023-06-12 23:09:25 +02:00
Lukas Rieger (Blue)
32f15d6555
Use fallback dialect instead of returning null 2023-06-12 23:07:00 +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
Lukas Rieger
16b1300ced
Minecraft 1.20 (#438)
* Add 1.20 resource link

* Add fabric 1.20 implementation

* Fix publish versions

* 1.20-pre7 (#437)

* Fix chunk status now having a namespace .. yay:)

* Update vite for security-issue fix
(We are not affected, but updating doesnt hurt)

* Remove all but latest 1.19 version

* Final 1.20 updates

---------

Co-authored-by: Aurélien <43724816+Aurelien30000@users.noreply.github.com>
2023-06-07 17:33:27 +02:00
Carey Metcalfe
1eb9982357
Allow the build to work in cases where the current repo has no tags (#434)
When forking the project on GitHub there is an option to only fork the
main repo branch. This means that the forked repo will not have any tags
in it which currently causes the build system to fail.

This change adds a fallback in the case that there are no tags to
building a version named "-dev-dirty".
2023-05-19 12:14:31 +02:00
Lukas Rieger (Blue)
a31785e67e
Swap zstd library and relocate it correctly 2023-05-09 22:52:29 +02:00
Sofiane H. Djerbi
b9dbb100e4
Linear timestamps (#424)
* Preparing for Linear v2

* Support for linear v2
2023-05-07 09:36:01 +02:00
Lukas Rieger (Blue)
004f296b5e
Add storages command 2023-05-01 20:41:30 +02:00
Lukas Rieger
f2355fa99b
feat: Linear region file format support (extended from #415) (#418)
* Linear support

Fix region rendering & bitwise operators

Close streams

* Make mca region-file types extensible

* Fix file-name verification not working

---------

Co-authored-by: Sofiane H. Djerbi <46628754+kugge@users.noreply.github.com>
2023-04-30 11:09:36 +02:00
Lukas Rieger (Blue)
b3875597a4
Generalize MCA implementation a bit more 2023-04-12 18:06:50 +02:00
Lukas Rieger (Blue)
1f8d2464a0
Fix possible NPE if BlockElement is null 2023-03-26 00:32:33 +01:00
Lukas Rieger (Blue)
8af13df3f9
Also remove the cached FK for the map-id when we delete it from the db >_> 2023-03-17 20:29:52 +01:00
Lukas Rieger (Blue)
86a46477ab
Fix error on purge with sql-storage 2023-03-17 20:04:24 +01:00
Lukas Rieger (Blue)
bf243ea204
Fix block-tint-color for cherry-leaves 2023-03-15 17:55:18 +01:00
Lukas Rieger (Blue)
3dae1b1468
Add 1.19.4 client download url and fabric 1.19.4 implementation 2023-03-14 18:28:07 +01:00
Lukas Rieger (Blue)
ec5ca244fd
Fix precision issue which can cause visual artifacts in lowres 2023-03-07 16:42:07 +01:00
Lukas Rieger (Blue)
22ed75c513
Fix bug with variant-rotation not beeing applied correctly for lowres coloring 2023-03-04 18:43:28 +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)
cfa76e6451
Fix resource-parsing issue 2023-02-23 10:18:46 +01:00
Lukas Rieger (Blue)
9917e5dfa5
Fix block-models not being loaded if they are directly in the root models folder 2023-02-19 07:03:43 +01:00
Lukas Rieger (Blue)
310a2e55eb
Fix NullPointerException when trying to load textures from an empty textures.json file 2023-02-10 17:02:15 +01:00
Lukas Rieger (Blue)
6ea755d366
Implement marker and marker-set sorting 2023-02-07 17:09:01 +01:00
Lukas Rieger (Blue)
7d263c8b7f
Use the original value in the error 2023-02-07 11:09:08 +01:00
Lukas Rieger (Blue)
cc99021ca8
Add invalid value to color-format exception 2023-02-07 11:03:54 +01:00
Lukas Rieger (Blue)
12b75f64a1
Dont load the full meta-file only to test if it exists 2023-02-01 21:42:43 +01:00
Lukas Rieger (Blue)
d9b6c526f8
load all model folders except item 2023-01-14 00:15:30 +01:00
Lukas Rieger (Blue)
e659eb63aa
Wrong table name >_> 2023-01-01 12:42:25 +01:00
Lukas Rieger (Blue)
493f0c9bec
Add script to update databases correctly for the new version format 2023-01-01 12:20:55 +01:00
Lukas Rieger (Blue)
045f8e718a
Fix wrong meta-file-path 2022-12-29 16:06:53 +01:00
Lukas Rieger (Blue)
cf93cb56c4
Improve min-inhabited-time calculations and add hidden radius setting 2022-12-17 15:06:18 +01:00
Lukas Rieger (Blue)
6d53bce0dd
Add stuff 2022-12-13 16:54:31 +01:00
Lukas Rieger (Blue)
6e78587d6f
Update fabric-1.19.3 and add forge-1.19.3 implementations 2022-12-08 14:08:26 +01:00
Lukas Rieger (Blue)
11306ec9cf
Test making BlueMapCommon and BlueMapCore available to jitpack 2022-12-04 00:18:45 +01:00
Lukas Rieger (Blue)
1368f86d13
Also reset texture-gallery on map-purge 2022-11-28 20:38:34 +01:00
Lukas Rieger (Blue)
0fc1424021
Make texture-gallery stronger against corrupting 2022-11-28 00:04:09 +01:00
Lukas Rieger (Blue)
1a2d3a6d38
Also replace file on first try 2022-11-13 11:38:36 +01:00
Lukas Rieger (Blue)
f4e2767410
Make ice/glass blocks culling themselves if blocks are identical 2022-11-08 23:45:22 +01:00
Lukas Rieger (Blue)
ddce10f6ab
Replace exisiting on move to avoid random FileAlreadyExistsException 2022-11-02 19:27:57 +01:00
Lukas Rieger (Blue)
5f9716adc5
Fix rendering 1.15-worlds that are higher than y 255 2022-11-02 14:42:01 +01:00
Lukas Rieger (Blue)
6213137894
Also apply variant-rotation to the color-calculation. Fixes: #354 2022-11-01 14:19:04 +01:00
Lukas Rieger (Blue)
44f8f8b5f9
Add color for snow-layers to fix some resourcepacks defining tinted-faces for them 2022-10-27 18:47:51 +02:00
Lukas Rieger (Blue)
ff100e2656
Add option to use ocean-floor-heightmap to improve cave-detection 2022-10-23 00:52:39 +02:00
Lukas Rieger (Blue)
ad4ae53672
Fix render-issue if section it fully made of air 2022-10-21 21:41:47 +02:00
Lukas Rieger (Blue)
faa6965df3
Fix reading the wrong block if palette only has one entry 2022-10-21 20:18:25 +02:00
Lukas Rieger (Blue)
9efeaedf18
Move the sorting out of the save() method 2022-10-21 18:46:31 +02:00
Lukas Rieger (Blue)
685a7bf85e
Remove unneded commented-out code 2022-10-19 23:04:07 +02:00
Lukas Rieger (Blue)
a5c6f5a31f
Fix sorting not working properly 2022-10-19 23:02:27 +02:00
Lukas Rieger (Blue)
cc1e2197f0
Remove uneccessary line 2022-10-19 19:18:11 +02:00
Lukas Rieger (Blue)
d1ab1c6ca0
Switch face-sorting to merge-sort 2022-10-19 19:16:34 +02:00
Lukas Rieger (Blue)
63a003b13e
Switch to arrays to improve object-allocation 2022-10-19 17:20:36 +02:00
Lukas Rieger (Blue)
c6019c722d
Little improvements here and there 2022-10-19 16:25:25 +02:00
Lukas Rieger (Blue)
c5a91431cd
Improve chunk palette-reading if the palette has only one entry 2022-10-17 12:01:58 +02:00
Lukas Rieger (Blue)
9bc77c7257
Fix bits per biome if there is only one biome in the palette 2022-10-17 09:18:13 +02:00
Lukas Rieger (Blue)
81f309b0be
Create directories with symlinks in mind, fixes #349 2022-10-14 10:24:19 +02:00
Lukas Rieger (Blue)
4534202c75
Refactor color parse method to remove barely used ConfigUtils class 2022-10-14 10:00:51 +02:00
Lukas Rieger (Blue)
5a109b42c6
Always load MISSIN_TEXTURE texture 2022-10-13 20:33:03 +02:00
Lukas Rieger (Blue)
06c97b74c1
Fix missing block resource having the wrong path 2022-10-13 20:11:50 +02:00
Lukas Rieger (Blue)
550b52d503
Fix cullface calculation for model-faces, fixes #347 2022-10-13 19:29:08 +02:00
Lukas Rieger (Blue)
201b8c9e77
Push configurate-version to fix #339 2022-10-10 18:00:03 +02:00
Lukas Rieger (Blue)
8c675bc4f7
Fix lowres block color calculation with multipart-blocks 2022-09-18 21:28:08 +02:00
Lukas Rieger (Blue)
e8f8317d52
Fix/improve handling of two exceptions 2022-09-08 12:29:11 +02:00