Created a modpack, and everything is perfect except...

Hai! I created a modpack recently with 50+ mods, the thing is, the modpack works perfectly, however whenever i try and disable Distant Horizons generation this error appears in chat
'Exception detail: java.lang.NullPointerException: Cannot invoke "com.seibel.distanthorizons.coreapi.util.math.Mat4f.store(java.nio.FloatBuffer)" because "value" is null'
And the options, inventory, every menu becomes invisible (except blocks and text) [screenshot as exemple]. Does someone know how to fix? Obs: I'm on 1.20.1 using DistantHorizons-fabric-2.0.3-a-dev-1.20.1
No description
Solution:
ig you can increase CPU load settings for faster lod gen
Jump to solution
60 Replies
hardester
hardester7mo ago
A mod relying on Distant Horizons' distance generation? That is something I never see before.
Sarah
SarahOP7mo ago
is that what that message means?
hardester
hardester7mo ago
From what I assume, yes. It only happens when you turned it off right?
Sarah
SarahOP7mo ago
Yes, and i discovered that it's related to shaders, even tho i'm using bsl recomended version for this. Also, the terrain generation on DH only loads at the start of the world, so... i'm not quite undestanding hahaha
Dexter307
Dexter3077mo ago
I’ve had this happen when disabling DH render distant terrain as well. Not sure what causes it.
Sarah
SarahOP7mo ago
Yeah, wanted to fix it bcs i wanted to use it but... seems like i'll have to remove it, since its bugging so much
Puhpine
Puhpine7mo ago
whats the full mods list?
Sarah
SarahOP7mo ago
oh boy, 1 sec, i'll get it all
Sarah
SarahOP7mo ago
No description
No description
No description
No description
No description
No description
No description
No description
No description
Puhpine
Puhpine7mo ago
i dont see anything that is known to be incompatible unfortunally
Sarah
SarahOP7mo ago
My high guess is that it's a shaders problem, since when i deactivate it, the options comes back to normal, but then, DH stops working totally
Puhpine
Puhpine7mo ago
could be, although you seem to have the correct versions for DH+shader stuff, so i dont know why that would brake it
Sarah
SarahOP7mo ago
Neither do I, i'm really trying to correct it since this modpack i made is for like, creating huge flying machines and exploring with friends, would be cool if it worked properly! DH doesn't have any problems with world gen mods..... right?
cola98765
cola987657mo ago
gimme the /logs
YAGPDB.xyz
YAGPDB.xyz7mo ago
You should send your latest.log file to provide additional useful information. Logs are located in the .minecraft/logs directory. On Windows: %appdata%\.minecraft\logs On Linux: ~/.minecraft/logs
Sarah
SarahOP7mo ago
I discovered another 2 things. 1 - Deleting the config file of distant horizons made it work again, even tho I didn't even change it (except the disable option that i enabled again). 2 - DH is "working", but the problem is that it only lets me see the chunks that i've already loaded before...
Sarah
SarahOP7mo ago
i'm sending the full logs so you can see
cola98765
cola987657mo ago
.rar
You know 7z is actually free not just perpetual demo? Anyway I'll take a look later.
Sarah
SarahOP7mo ago
I know, its just preference and makes no difference in my usage, so I just use winrar and thanks! appreciate it!
MayBike
MayBike7mo ago
/slowgen
YAGPDB.xyz
YAGPDB.xyz7mo ago
If it feels like LoD generation with Distant Generator is too slow: Try increasing CPU Load in Distant Horizons settings for faster generation, but you will experience more lag spikes and stuttering due to heavier workload on CPU. To see if Distant Generator is really working or not: 1) Check CPU usage while in-game, using Aggressive settings of CPU Load. If CPU usage's hovering around 80-100%, the LoDs are generating in the background. 2) Go to DH settings > Advanced Options > Debug > Wireframe, set Enable Debug Wireframe Rendering and Show World Gen Queue to True. Enabling both settings will show you the visualization of world gen tasks queued and working on the map (blue boxes for queued tasks, red boxes for working tasks)
MayBike
MayBike7mo ago
do the second paragraph
Sarah
SarahOP7mo ago
I'll try that once i get home, thanks for the tip If it does solve my problem i'll be veeery thankful
MayBike
MayBike7mo ago
it'll just show if the world gen's working or not if it renders those boxes, at least DH backends working in the background
Sarah
SarahOP7mo ago
it showed me some weird purple boxes for like a split second when i got farther away from them...
MayBike
MayBike7mo ago
the border doesnt show the blue/red boxes? purple should be like updating/downsampling lods within LoD distance when moving around i think
Sarah
SarahOP7mo ago
no
MayBike
MayBike7mo ago
take a pic from DH config main page, and f3 screenshot ig log above doesnt say anything
Sarah
SarahOP7mo ago
No description
No description
Sarah
SarahOP7mo ago
these two?
MayBike
MayBike7mo ago
raise LoD rd then check World Gen Tasks in f3 info you can boost cpu load if you like if no world gen tasks added to f3, test in new world other than that, i hit the wall atm
Sarah
SarahOP7mo ago
200 is like, ok?
MayBike
MayBike7mo ago
anything to raise it
Sarah
SarahOP7mo ago
ok
MayBike
MayBike7mo ago
1024 is fine tbh we just need to test if world gens working or not
Sarah
SarahOP7mo ago
ok, the blue boxes started to appear
No description
Sarah
SarahOP7mo ago
No description
MayBike
MayBike7mo ago
yeah, world gen tasks added
Solution
MayBike
MayBike7mo ago
ig you can increase CPU load settings for faster lod gen
MayBike
MayBike7mo ago
but trade-off's more stuttering and lag spike if you play while generating ig this is solved?
Sarah
SarahOP7mo ago
not yet, it only loads where i've been... if i didn't see the chunk it doesn't load, even with the "aggressive" cpu load
Sarah
SarahOP7mo ago
I haven't been there yet, so i doesn't load
No description
Sarah
SarahOP7mo ago
but once i go and come back, it loads as a "lod"
MayBike
MayBike7mo ago
does the blue boxes still running if you're expecting it to generate where you're looking at first, no it generates in diamond pattern
Sarah
SarahOP7mo ago
Some are, some are not, even waiting a bit
MayBike
MayBike7mo ago
as long as red boxes fly up
Sarah
SarahOP7mo ago
But i guess it might be memory since when i change it to "chunk" it loads
MayBike
MayBike7mo ago
the block resolution? what did you change and there are a lot of cases where LoDs are already generated by the CPU cant keep up and will not display LoDs until reloading the DH render by changing quality-related settings
Sarah
SarahOP7mo ago
yup
MayBike
MayBike7mo ago
the world gen's fixed then just seems like your pc cant keep up with some of lod process while generating but it does work, just need to like 'refresh' dh settings
Sarah
SarahOP7mo ago
prob cause i have old gen memory cards and only 16gb instead of 32
MayBike
MayBike7mo ago
your best bet is pregen 1024 chunks overnight the ram's not affecting lod gen speed
Mati
Mati7mo ago
it's fine memory
MayBike
MayBike7mo ago
unless you have 1 stick of it only
Sarah
SarahOP7mo ago
2 of 8gb
MayBike
MayBike7mo ago
then no bottleneck
Sarah
SarahOP7mo ago
Meh, i guess i'll see, cause there are alot of lag spikes so i might remove it for now
MayBike
MayBike7mo ago
alr
Sarah
SarahOP7mo ago
But thanks! helped alot
MayBike
MayBike7mo ago
np
Want results from more Discord servers?
Add your server