console only outputting /dhs

Anyone know what's going on here? I'm on the DHS-0.9.0-SNAPSHOT_for_MC-1.21.4 nightly build for DH plugin and this is what the console looks like. I've folllowed the wiki too to the best of my knowledge.
> dhs pregen start Spawn_nether -53 -202 4000
[10:22:48 INFO]: /dhs
> dhs pregen Spawn_nether -53 -202 4000
[10:23:01 INFO]: Generating LODs for view distance of 4000 chunks in world Spawn_nether starting at center -53 x -202...
[10:24:17 INFO]: [dynmap] Loading default resource pack
> dhs pregen status Spawn_nether
[10:43:24 INFO]: /dhs
[10:45:08 INFO]: /dhs
> dhs pregen Spawn_the_end 0 0 4000
[10:49:39 INFO]: Generating LODs for view distance of 4000 chunks in world Spawn_the_end starting at center 0 x 0...
> dhs pregen status Spawn_the_end
[10:49:50 INFO]: /dhs
> dhs pregen start Spawn_nether -53 -202 4000
[10:22:48 INFO]: /dhs
> dhs pregen Spawn_nether -53 -202 4000
[10:23:01 INFO]: Generating LODs for view distance of 4000 chunks in world Spawn_nether starting at center -53 x -202...
[10:24:17 INFO]: [dynmap] Loading default resource pack
> dhs pregen status Spawn_nether
[10:43:24 INFO]: /dhs
[10:45:08 INFO]: /dhs
> dhs pregen Spawn_the_end 0 0 4000
[10:49:39 INFO]: Generating LODs for view distance of 4000 chunks in world Spawn_the_end starting at center 0 x 0...
> dhs pregen status Spawn_the_end
[10:49:50 INFO]: /dhs
Solution:
I think i have made a deadlock condition when the number of scheduler threads is too low
Jump to solution
69 Replies
Jckf
Jckf2mo ago
Update to the latest nightly. Command format and feedback has changed earlier this week.
Miggy
MiggyOP2mo ago
ah alright, i see the outputs now
> dhs pregen start Spawn_nether -53 -202 512
[11:48:30 INFO]: Generating LODs for view distance of 512 chunks in world Spawn_nether starting at center -53 x -202...
> dhs pregen status
[11:48:40 INFO]: No world specified.
> dhs pregen status Spawn_nether
[11:48:53 INFO]: Generation progress: 0.00%
[11:48:53 INFO]: Processed LODs: 0 / 65536
[11:48:53 INFO]: Time estimate: Infinity hours.
> dhs pregen status Spawn_nether
[11:49:10 INFO]: Generation progress: 0.00%
[11:49:10 INFO]: Processed LODs: 0 / 65536
[11:49:10 INFO]: Time estimate: Infinity hours.
> dhs pregen status Spawn_nether
[11:49:40 INFO]: Generation progress: 0.00%
[11:49:40 INFO]: Processed LODs: 0 / 65536
[11:49:40 INFO]: Time estimate: Infinity hours.
>
> dhs pregen start Spawn_nether -53 -202 512
[11:48:30 INFO]: Generating LODs for view distance of 512 chunks in world Spawn_nether starting at center -53 x -202...
> dhs pregen status
[11:48:40 INFO]: No world specified.
> dhs pregen status Spawn_nether
[11:48:53 INFO]: Generation progress: 0.00%
[11:48:53 INFO]: Processed LODs: 0 / 65536
[11:48:53 INFO]: Time estimate: Infinity hours.
> dhs pregen status Spawn_nether
[11:49:10 INFO]: Generation progress: 0.00%
[11:49:10 INFO]: Processed LODs: 0 / 65536
[11:49:10 INFO]: Time estimate: Infinity hours.
> dhs pregen status Spawn_nether
[11:49:40 INFO]: Generation progress: 0.00%
[11:49:40 INFO]: Processed LODs: 0 / 65536
[11:49:40 INFO]: Time estimate: Infinity hours.
>
and the output of infinity time is expected too?
Jckf
Jckf2mo ago
Lol That's not something I added The value might be overflowing the data type I'm using
Miggy
MiggyOP2mo ago
oh LOL alright 🤔 interesting though that the server doesn't seem to be doing anything
No description
Jckf
Jckf2mo ago
Well, then at least the estimate is correct
Miggy
MiggyOP2mo ago
in the case that the server is just on idle, is that expected then? 😂
Jckf
Jckf2mo ago
Have you changed anything in the plugin config file?
Miggy
MiggyOP2mo ago
I did, but I didn't think it would affect it in this way, here:
Miggy
MiggyOP2mo ago
im specifically trying to pregen the nether right now btw
Jckf
Jckf2mo ago
Ah
Solution
Jckf
Jckf2mo ago
I think i have made a deadlock condition when the number of scheduler threads is too low
Jckf
Jckf2mo ago
Try increasing it
Miggy
MiggyOP2mo ago
oh 😮 okay will try it out ill put it back to the default and see what happens beautiful, that did the trick 👌
> dhs pregen start Spawn_nether -53 -202 512
[12:02:28 INFO]: Generating LODs for view distance of 512 chunks in world Spawn_nether starting at center -53 x -202...
> dhs pregen status Spawn_nether
[12:02:45 INFO]: Generation progress: 0.03%
[12:02:45 INFO]: Processed LODs: 20 / 65536
[12:02:45 INFO]: Time estimate: 16.50 hours.
>
> dhs pregen start Spawn_nether -53 -202 512
[12:02:28 INFO]: Generating LODs for view distance of 512 chunks in world Spawn_nether starting at center -53 x -202...
> dhs pregen status Spawn_nether
[12:02:45 INFO]: Generation progress: 0.03%
[12:02:45 INFO]: Processed LODs: 20 / 65536
[12:02:45 INFO]: Time estimate: 16.50 hours.
>
Jckf
Jckf2mo ago
Alright nice
Miggy
MiggyOP2mo ago
thanks a ton!
Jckf
Jckf2mo ago
I'm out right now, but will attempt a fix from the phone. Should be an easy one
Miggy
MiggyOP2mo ago
sounds good 🙂
Jckf
Jckf2mo ago
No description
Jckf
Jckf2mo ago
This should fix it. Feel free to test that build when it completes With 1 thread that is
Miggy
MiggyOP2mo ago
sounds good 🙂 ill take a look tomorrow if that's okay!
Miggy
MiggyOP2mo ago
I'll put this comment in the same thread since it's somewhat related this is the output so far for the command /dhs pregen start Spawn_nether -53 -202 512 The coordinate -53 -202 is found inside the L shape render. Interestingly, there's a huge block up there with a radius of approx -3617 - (-8977) = 5360, centered at approx -3617, -12853 I find where's it's centered a bit strange 🤔 any ideas here?
No description
Miggy
MiggyOP2mo ago
For better guestimates on the coordinates of the square it's x is between -8928 to 2207 z is between -18465 to -7265
Jckf
Jckf2mo ago
Hm. I have probably only been testing with a center of 0x0, so any weirdness in the math would have been hidden Let's see
Miggy
MiggyOP2mo ago
yeah i wonder if it being the nether too further messes things up, thanks for looking into it so quick 🙂
Jckf
Jckf2mo ago
We pass the coordinates from the pregen command directly through to the pregen class, which deals with section positions, not block positions. This means the coordinates are scaled incorrectly by a factor of 64
Miggy
MiggyOP2mo ago
Ah, so it is a bug?
Jckf
Jckf2mo ago
Very much so :)
Miggy
MiggyOP2mo ago
Gotcha xD
Jckf
Jckf2mo ago
I am working on a different feature rn, but I'll fix that real quick
Miggy
MiggyOP2mo ago
Sounds good! Thanks!
Jckf
Jckf2mo ago
Try this one when it completes
No description
Miggy
MiggyOP2mo ago
Okok will do!
Jckf
Jckf2mo ago
It also adds the config option to disable chunk generation, so you'll only get LODs for pre-existing areas
Miggy
MiggyOP2mo ago
Alright! Out of curiosity, can I technically delete the pregen'd lods I loaded up as above running some sql command/query? I'm guessing it's not as easy as that LOl no clue what the structure of the db looks like xD I only bring it up because nobody will probs be going to those lods I pregenerated LOL it's okay if there's nothing I can do though!
Jckf
Jckf2mo ago
You absolutely can :) There are tools to browse and manipulate SQLite files
No description
Jckf
Jckf2mo ago
The data looks like this
No description
Jckf
Jckf2mo ago
Coordinates are section positions, which is just block coordinates divided by 64 Someone asked for a "trim" command before, and I guess this would be a use-case for that as well
Miggy
MiggyOP2mo ago
Yeah I use db browser on my own stuff haha. I can probably make a query someone can run if I think about it 🤔 I'll touch it later then
Jckf
Jckf2mo ago
If you're asking for a specific query, I guess it would be something like this:
DELETE FROM lods WHERE abs(x) > 1024 / 4 OR abs(z) > 1024 / 4
DELETE FROM lods WHERE abs(x) > 1024 / 4 OR abs(z) > 1024 / 4
That would delete anything outside of a 1024 chunk distance from 0x0 You would probably define other ranges that fit your server
Miggy
MiggyOP2mo ago
Ah I guess that's a simpler query yeah, I was thinking more of a query that has 4 numbers that define the coordinates of a rectangle, but yeah this works too for my case 🙂
Jckf
Jckf2mo ago
If your center is somewhere at least close to 0x0, sure
Miggy
MiggyOP2mo ago
Indeed hmm, is there a way to determine what world is attached to the worldId? i want to be seletive of what world im touching before i delete
Jckf
Jckf2mo ago
Good question
Miggy
MiggyOP2mo ago
im thinking timestamp is probs just the best guestimate 🤷‍♂️
Jckf
Jckf2mo ago
Or count the number of LODs per world I'm guessing your nether will have the most
Miggy
MiggyOP2mo ago
oh, the overworld definitely has a lot right now LOL
Jckf
Jckf2mo ago
lol
Miggy
MiggyOP2mo ago
trying this out, but i think the db is too big at this point select * from lods order by timestamp DESC limit 100;
Jckf
Jckf2mo ago
I can slap together a command that shows all worlds and their IDs pretty quickly, if that helps
Miggy
MiggyOP2mo ago
oh, i've got that already, there's 3 worldIds i have but idk which is which, i think ill try again and just find the latest change 🤔 latest record*
Jckf
Jckf2mo ago
That's what I mean; show the names and IDs together
Miggy
MiggyOP2mo ago
oh, that'd be amazing 😮 alright, i have a hunch of what i should set the worldId as, but ill wait for your sql command just in case
Jckf
Jckf2mo ago
Ah sorry, I was thinking plugin command
No description
Miggy
MiggyOP2mo ago
oh LOL yeah that helps in the long run too 🙂 alright, ill try out a delete, hopefully it wont crash midway 😄
Jckf
Jckf2mo ago
🤞
Miggy
MiggyOP2mo ago
running DELETE FROM lods WHERE worldId='8ffc2ad2-e6de-405a-b660-f495fb11722f' AND ( abs(x) > 1024 / 4 OR abs(z) > 1024 / 4) oh, looks like it did something Execution finished without errors. Result: query executed successfully. Took 671ms, 5536 rows affected At line 1: DELETE FROM lods WHERE worldId='8ffc2ad2-e6de-405a-b660-f495fb11722f' AND ( abs(x) > 1024 / 4 OR abs(z) > 1024 / 4); potentially good i guess
Jckf
Jckf2mo ago
Nice I'm gonna head to bed. Past 5 am here 🙈 Maybe I'll make that trim command tomrrow
Miggy
MiggyOP2mo ago
yeah i guess this is about correct
No description
Miggy
MiggyOP2mo ago
sounds good 🙂 thanks again!
Jckf
Jckf2mo ago
Likewise :) That center coordinate bug was a nice find Let's hope I actually fixed it, and not just made it different
Miggy
MiggyOP2mo ago
HAHAH yup that's how it always is 🤣
Miggy
MiggyOP2mo ago
it looks like it's already doing a good job doing the correct LODs will check a bit later and tomorrow to see if this is indeed the case also, /dhs worlds works and the worldId I suspected is the correct one too 🥳
No description
Miggy
MiggyOP2mo ago
as for the 2 scheduler thread stuff, ill check this after the LODs finish
Miggy
MiggyOP2mo ago
here's the results top most z cooridnate: -8417 second top most z coordinate: -7392 bottom most z coordinate: 8031 left most x cooridnate: -8225 right most x coordinate: 8223
No description
Miggy
MiggyOP2mo ago
also, it's for sure done the pregen
Jckf
Jckf2mo ago
If it has completed, then "/dhs pregen status" will tell you there are no tasks running. If you've restarted the server while pregen was running, it will not have started back up automatically. You can run pregen again, and it will not regenerate LODs that already exist; only ones that are missing.
Miggy
MiggyOP2mo ago
i've been running it all night, so it should've completed normally 🤷‍♂️ and yes i checked the status for this world and it seemed like it was done when i took this picture. I can try again later 😛
Jckf
Jckf2mo ago
Could also be more issues with my math ofc 😅
Miggy
MiggyOP2mo ago
yup could be xD but I think it's at least functionable for now

Did you find this page helpful?