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
Jckf5d ago
Update to the latest nightly. Command format and feedback has changed earlier this week.
Miggy
MiggyOP5d 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
Jckf5d ago
Lol That's not something I added The value might be overflowing the data type I'm using
Miggy
MiggyOP5d ago
oh LOL alright 🤔 interesting though that the server doesn't seem to be doing anything
No description
Jckf
Jckf5d ago
Well, then at least the estimate is correct
Miggy
MiggyOP5d ago
in the case that the server is just on idle, is that expected then? 😂
Jckf
Jckf5d ago
Have you changed anything in the plugin config file?
Miggy
MiggyOP5d ago
I did, but I didn't think it would affect it in this way, here:
Miggy
MiggyOP5d ago
im specifically trying to pregen the nether right now btw
Jckf
Jckf5d ago
Ah
Solution
Jckf
Jckf5d ago
I think i have made a deadlock condition when the number of scheduler threads is too low
Jckf
Jckf5d ago
Try increasing it
Miggy
MiggyOP5d 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
Jckf5d ago
Alright nice
Miggy
MiggyOP5d ago
thanks a ton!
Jckf
Jckf5d ago
I'm out right now, but will attempt a fix from the phone. Should be an easy one
Miggy
MiggyOP5d ago
sounds good 🙂
Jckf
Jckf5d ago
No description
Jckf
Jckf5d ago
This should fix it. Feel free to test that build when it completes With 1 thread that is
Miggy
MiggyOP4d ago
sounds good 🙂 ill take a look tomorrow if that's okay!
Miggy
MiggyOP4d 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
MiggyOP4d 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
Jckf4d 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
MiggyOP4d ago
yeah i wonder if it being the nether too further messes things up, thanks for looking into it so quick 🙂
Jckf
Jckf4d 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
MiggyOP4d ago
Ah, so it is a bug?
Jckf
Jckf4d ago
Very much so :)
Miggy
MiggyOP4d ago
Gotcha xD
Jckf
Jckf4d ago
I am working on a different feature rn, but I'll fix that real quick
Miggy
MiggyOP4d ago
Sounds good! Thanks!
Jckf
Jckf4d ago
Try this one when it completes
No description
Miggy
MiggyOP4d ago
Okok will do!
Jckf
Jckf4d ago
It also adds the config option to disable chunk generation, so you'll only get LODs for pre-existing areas
Miggy
MiggyOP4d 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
Jckf4d ago
You absolutely can :) There are tools to browse and manipulate SQLite files
No description
Jckf
Jckf4d ago
The data looks like this
No description
Jckf
Jckf4d 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
MiggyOP4d 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
Jckf4d 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
MiggyOP4d 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
Jckf4d ago
If your center is somewhere at least close to 0x0, sure
Miggy
MiggyOP4d 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
Jckf4d ago
Good question
Miggy
MiggyOP4d ago
im thinking timestamp is probs just the best guestimate 🤷‍♂️
Jckf
Jckf4d ago
Or count the number of LODs per world I'm guessing your nether will have the most
Miggy
MiggyOP4d ago
oh, the overworld definitely has a lot right now LOL
Jckf
Jckf4d ago
lol
Miggy
MiggyOP4d 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
Jckf4d ago
I can slap together a command that shows all worlds and their IDs pretty quickly, if that helps
Miggy
MiggyOP4d 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
Jckf4d ago
That's what I mean; show the names and IDs together
Miggy
MiggyOP4d 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
Jckf4d ago
Ah sorry, I was thinking plugin command
No description
Miggy
MiggyOP4d ago
oh LOL yeah that helps in the long run too 🙂 alright, ill try out a delete, hopefully it wont crash midway 😄
Jckf
Jckf4d ago
🤞
Miggy
MiggyOP4d 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
Jckf4d ago
Nice I'm gonna head to bed. Past 5 am here 🙈 Maybe I'll make that trim command tomrrow
Miggy
MiggyOP4d ago
yeah i guess this is about correct
No description
Miggy
MiggyOP4d ago
sounds good 🙂 thanks again!
Jckf
Jckf4d ago
Likewise :) That center coordinate bug was a nice find Let's hope I actually fixed it, and not just made it different
Miggy
MiggyOP4d ago
HAHAH yup that's how it always is 🤣
Miggy
MiggyOP4d 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
MiggyOP4d ago
as for the 2 scheduler thread stuff, ill check this after the LODs finish
Miggy
MiggyOP4d 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
MiggyOP4d ago
also, it's for sure done the pregen
Jckf
Jckf4d 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
MiggyOP4d 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
Jckf4d ago
Could also be more issues with my math ofc 😅
Miggy
MiggyOP4d ago
yup could be xD but I think it's at least functionable for now

Did you find this page helpful?