Commit Graph

1540 Commits

Author SHA1 Message Date
coolGi ce3a06e410 fix to commit c5041de5 2023-07-16 23:57:27 +09:30
coolGi 8727cd09af Allowd option for values to go out of range 2023-07-16 23:40:35 +09:30
coolGi c5041de5d4 Added proper clamping so values don't get out of range 2023-07-16 23:07:14 +09:30
James Seibel 060dca1574 Fix infinitely writing/creating FullDatafiles 2023-07-15 18:21:40 -05:00
James Seibel cb23b1ee55 Fix RenderSourceFileHandler thread pools not closing if files don't need saving 2023-07-15 12:31:34 -05:00
James Seibel fce04b419d Fix ChunkToLodBuilder creating multiple thread pools 2023-07-15 12:30:43 -05:00
James Seibel 7a5e1b5726 Fix RenderSourceFileHandler threadPools not closing
Closes #543 (slowdown when moving between dimensions)
2023-07-15 11:50:46 -05:00
James Seibel 2ead289ade Make ThreadUtil return ThreadPoolExecutor's instead of ExecutorService's
This was what was already being done by the Executors.newFixedThreadPool() method we were using; but this change means we don't have to cast the executors if we need additional functionality and we don't have to worry about Java changing Executors.newFixedThreadPool()'s implementation.
2023-07-15 11:34:55 -05:00
James Seibel f3414ed73d Abstract file and File handler refactor 2023-07-15 10:26:46 -05:00
James Seibel 693df3f88a Make render data saves async 2023-07-15 10:25:11 -05:00
James Seibel 187c15ddb4 Fix ChunkToLodBuilder never clearing impossible tasks 2023-07-15 08:51:23 -05:00
James Seibel 4a069b42d8 Bandaid fix to holes in previously generated LOD sections 2023-07-15 08:48:33 -05:00
James Seibel 80f9bcb148 Fix debug Renderer Mode localization 2023-07-14 07:03:06 -05:00
James Seibel 973e106882 Merge branch 'distant-horizons-core-main' 2023-07-11 18:50:47 -05:00
James Seibel ed9cccccea refactoring 2023-07-11 08:49:08 -05:00
James Seibel 5fb79325ce Fix option and changelog button missing backgrounds 2023-07-10 20:43:15 -05:00
James Seibel 96edfcb065 Add a shadowed library check 2023-07-08 11:54:57 -05:00
James Seibel 581ac02472 remove unused imports 2023-07-08 11:32:44 -05:00
s809 730216b761 Fix log string 2023-07-08 16:22:54 +05:00
s809 7d5b3c8917 Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core 2023-07-08 12:26:12 +05:00
s809 83ab7e46b3 Base is pretty much finished 2023-07-08 12:25:20 +05:00
James Seibel 5a014f163d Add experimental Seamless Overdraw option 2023-07-06 22:16:59 -05:00
s809 62ff9606c1 Outline what interaction should somewhat look like
(not an actual interaction)
Fix client repeatedly registering handlers on reconnects
2023-07-06 21:57:02 +05:00
James Seibel f07973a1ce Refactor, remove unused class, add API docs 2023-07-04 15:41:08 -05:00
James Seibel 2fc74914b4 Merge branch 'distant-horizons-core-serverSupport' 2023-07-04 13:39:49 -05:00
James Seibel 2b0ee29a8c refactor and rename 2023-07-04 10:29:32 -05:00
James Seibel b50c2cf9a9 Add missing API Config javadocs 2023-07-03 06:50:12 -05:00
Cailin Smith 55f39996cb Rename class 2023-07-02 22:34:47 +02:00
Cailin Smith 44a66a3d93 Add ability for servers to communicate with the client to set the world.
This prevents the client from accidentally selected the wrong world
folder to load LODs from, since levels of the same dimension can't
naturally be distinguished from each other. With level similarity
detection, this can sometimes work, but in general is not reliable. This
mechanism instead allows servers to send a packet to the client on load,
enabling the override system, and then a second packet on world change,
which specifically sets the world key, based on knowledge that only the
server has, leading to a reliable way of detecting the correct world.
2023-07-02 21:44:54 +02:00
Cailin Smith 649cd5bbe8 Add ability for servers to communicate with the client to set the world.
This prevents the client from accidentally selected the wrong world
folder to load LODs from, since levels of the same dimension can't
naturally be distinguished from each other. With level similarity
detection, this can sometimes work, but in general is not reliable. This
mechanism instead allows servers to send a packet to the client on load,
enabling the override system, and then a second packet on world change,
which specifically sets the world key, based on knowledge that only the
server has, leading to a reliable way of detecting the correct world.
2023-07-02 21:41:14 +02:00
s809 748b484377 The real server side
(not tested)
2023-06-30 22:05:02 +05:00
James Seibel ea40006023 Add SSAO to the quick quality presets 2023-06-30 07:47:29 -05:00
James Seibel 52edbd7c18 Update javadocs for API enums
and move one core enum out of the API
2023-06-30 07:46:00 -05:00
James Seibel 10b9161188 update DhApiWorldGen javadoc 2023-06-30 07:30:40 -05:00
James Seibel 77b8b973dc Fix API fabric.mod.json crashing the game 2023-06-30 07:30:18 -05:00
James Seibel b9cfe535d1 Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core 2023-06-29 20:56:45 -05:00
James Seibel 77bc3bd3c2 add package-info files for api and coreapi package documentation 2023-06-29 20:56:14 -05:00
James Seibel 81ac90feb4 Add a build.gradle for API building with source files 2023-06-29 20:52:30 -05:00
James Seibel 48ef896e06 set the api version in ModInfo to 1.0.0 and add patch version to the API 2023-06-29 20:46:33 -05:00
s809 e288302bfa Merge branch 'main' of https://gitlab.com/s809/distant-horizons-core 2023-06-29 21:21:09 +05:00
s809 2fc76e2842 Minimal ping-pong but less rigid impl
DhClientWorld#close is never fired smh
2023-06-29 20:58:43 +05:00
s809 e660c466f8 Remove unused param 2023-06-29 20:43:37 +05:00
s809 1f9aa2f70b Minimal working client-server
No cleanup logic yet
2023-06-29 20:41:08 +05:00
s809 8378b1f09a Add encoder 2023-06-29 20:38:50 +05:00
s809 8bae038612 Move everything to core 2023-06-29 20:38:38 +05:00
TomTheFurry 114d3210fb Prob fix the gl error? (might add mem leak tho.) & fix 1.18.2 build 2023-06-29 16:27:42 +08:00
James Seibel e2a3f23e91 Merge branch 'main' into 'main'
Fix small bugs + make level map concurrent to prevent exceptions

See merge request jeseibel/distant-horizons-core!9
2023-06-28 23:18:26 +00:00
Cailin Smith 98634e2a0b Fix small bugs + make level map concurrent to prevent exceptions 2023-06-28 18:16:33 -05:00
s809 2358797a82 Minimal working client-server
No cleanup logic yet
2023-06-28 22:46:49 +05:00
James Seibel d91cde2319 Remove unused GitLab CI file 2023-06-26 19:23:30 -05:00