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
60 Replies
A mod relying on Distant Horizons' distance generation? That is something I never see before.
is that what that message means?
From what I assume, yes. It only happens when you turned it off right?
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
I’ve had this happen when disabling DH render distant terrain as well. Not sure what causes it.
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
whats the full mods list?
oh boy, 1 sec, i'll get it all
i dont see anything that is known to be incompatible unfortunally
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
could be, although you seem to have the correct versions for DH+shader stuff, so i dont know why that would brake it
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?
gimme the /logs
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
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...
.rarYou know 7z is actually free not just perpetual demo? Anyway I'll take a look later.
I know, its just preference and makes no difference in my usage, so I just use winrar
and thanks! appreciate it!
/slowgen
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)do the second paragraph
I'll try that once i get home, thanks for the tip
If it does solve my problem i'll be veeery thankful
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
it showed me some weird purple boxes for like a split second when i got farther away from them...
the border doesnt show the blue/red boxes?
purple should be like updating/downsampling lods within LoD distance when moving around i think
no
take a pic from DH config main page, and f3 screenshot ig
log above doesnt say anything
these two?
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
200 is like, ok?
anything to raise it
ok
1024 is fine tbh
we just need to test if world gens working or not
ok, the blue boxes started to appear
yeah, world gen tasks added
Solution
ig you can increase CPU load settings for faster lod gen
but trade-off's more stuttering and lag spike if you play while generating
ig this is solved?
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
I haven't been there yet, so i doesn't load
but once i go and come back, it loads as a "lod"
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
Some are, some are not, even waiting a bit
as long as red boxes fly up
But i guess it might be memory
since when i change it to "chunk"
it loads
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
yup
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
prob cause i have old gen memory cards
and only 16gb
instead of 32
your best bet is pregen 1024 chunks overnight
the ram's not affecting lod gen speed
it's fine memory
unless you have 1 stick of it only
2 of 8gb
then no bottleneck
Meh, i guess i'll see, cause there are alot of lag spikes
so i might remove it for now
alr
But thanks!
helped alot
np