Jump to content

Recommended Posts

Posted

In one of my projects, I have a simple procedurally generating dungeon algorithm which generates the mod's dungeons. I've recently decided to rewrite to be more complex and accommodate more features than before. Before I do this though, I wanted to generate it in a way that it won't cause cascading world generation, which the current algorithm doesn't prevent. Right now it works kind of like this: I'll generate a structure on the surface somewhere, which will spawn staircases underneath it. From there, rooms can branch off of these staircases, and each room can generate new rooms off of it and so on until it reaches the maximum amount of "tries". This is done through recursion which is simple enough to do.

 

So I've been trying to come up with a way to prevent the cascading generation from happening because it's not as simple as just adding an offset. I won't know how many chunks the dungeon will take up until after I generate it. I'm wondering about what the easiest solution to this would be. Could I generate all of the parts of the structure that are in loaded chunks only and then generate the others once those chunks have been loaded? I think that's the fundamental solution but how would you go about knowing/storing where a structure should be, and then generating that structure when the chunk is loaded? Maybe this isn't entirely right and there is another way around it, I'm not sure. Anyways, any help on solving this issue would be much appreciated.

Developer of Levels and Lost Eclipse

Posted

In theory, when an event is fired to which your generator is subscribed to, you should be able to get chunk's X an Y. Then while you generate the structure, you have to continuously check whether the next generated block will trigger generation of new chunk. If the blockpos is within current chunk, proceed generation; if not, then store this blockpos and maybe chunkpos in a map, perhaps. Then on next event you check whether the new chunkpos corresponds to any of the stored chunk positions and proceed generation if it does.

You can also find a way to track current chunkpos of player and based on it, pick chunks from the loaded ones and do your thing more safely - still, will have to start checking once the chunk positions are close to the border.

Posted (edited)
3 hours ago, Alexiy said:

In theory, when an event is fired to which your generator is subscribed to, you should be able to get chunk's X an Y. Then while you generate the structure, you have to continuously check whether the next generated block will trigger generation of new chunk.

Actually....

You want [inside the current chunk] + (8,8)

Due to the way Minecraft generates chunks, you want to always offset by 8 blocks in the positive X and positive Z directions. The next chunk in that direction are guaranteed to already exist. 

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

I don't think that's the best solution, at least in terms of what I'm trying to do.

 

I've been digging around in vanilla world generation (Stronghold/Village generation) to figure out how they generate structures without causing runaway chunk generation. It looks like vanilla generation (say a Stronghold) will generate the positions of the Stronghold and store them somehow (MapGenStronghold#generatePositions looks like it does this, but I don't see how this works fully). Somehow the Stronghold's StructureStart gets a list of components to be generated and builds them out. Anyways, I think my conclusion is vanilla world generation is a mess and is hard to trace and track down how everything works.

 

As for how to fix this, I'm thinking the easiest thing is to generate a "virtual" dungeon through the algorithm, but not to build anything during this time and storing each structure in a map. Then I would generate it when chunks are loaded and everything is ok for it to generate. The problem is, how would I go about generating it this way? Is it even possible?

Developer of Levels and Lost Eclipse

Posted

Potential solution: When I go to generate the dungeon, instead of building each individual room during generation, I'm thinking I can just generate the positions of each individual structure and store the position and template into a map. If the bounding box of the structure intersects with the current chunk (which has an offset), generate the corresponding room. If it's outside of the currently generated chunks, it won't generate. As new chunks are generated through the WorldGenerator, I'm thinking about looping through all the pending structures, checking to see if the bounding box of the structure intersects with the current chunk and if it does, generate it and remove it from the map.

 

I'm not sure if this will work properly, so if anyone happens to find a flaw in it, I'd like to hear it before I try and implement it. If it sounds good, I'll work on implementing it.

Developer of Levels and Lost Eclipse

Posted

Have you looked at mineshaft code? Might give some hints, too.

It's kind of difficult to abstractly imagine how your algorithm would work, so just do it and we'll see how it goes.

Posted (edited)
7 hours ago, Alexiy said:

Have you looked at mineshaft code? Might give some hints, too.

It's kind of difficult to abstractly imagine how your algorithm would work, so just do it and we'll see how it goes.

Well it is pretty easy actually. You do everything the algorithm normally would but you don't place any blocks and you store the position and individual structure into a map or whatever. Whenever new chunks are generated, you check to see if your positions of the structures are in it and you generate if so.

 

Seems to make since to me, so I'll try and implement this soon.

 

I think Minecraft does this by checking if a given structure is inside of the bounding box of the chunk, and if so, it generates. So that's the kinda check you would need.

Edited by TheXFactor117

Developer of Levels and Lost Eclipse

Posted

If you don't mind having your world depend on the order of player exploration, then you could limit your code to generating only one complex at any given time (e.g. use a static field in one of your classes as a latch). Initialize it to "ready",  then check it before starting one of these structures. if "busy", then exit without starting a new complex. If "ready", then set it to "busy" and commence generation. Do the whole structure, loading as many chunks as it needs; any further would-be structures triggered would be suppressed by the field being set to "busy". When done, clear the field back to "ready".

 

Of course, if you're willing to do the work to map overlapping structures, then that's probably better (and repeatable).

 

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

I think it would be easier to do what what I mentioned above, considering these structures should be fairly common. I'm going to try and implement it and see what kind of results I get. I need to finish re-writing portions of it first, however.

Developer of Levels and Lost Eclipse

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 有人可以帮我吗? JVM 信息: Oracle Corporation - 1.8.0_431 - 25.431-b10java.net.preferIPv4Stack=true当前时间:15/01/2025 17:45:17主机:files.minecraftforge.net [104.21.58.163, 172.67.161.211]主机:maven.minecraftforge.net [172.67.161.211, 104.21.58.163]主机:libraries.minecraft.net [127.0.0.1]主机:launchermeta.mojang.com [127.0.0.1]主机:piston-meta.mojang.com [127.0.0.1]主机:sessionserver.mojang.com [127.0.0.1]主机:authserver.mojang.com [未知]错误检查 sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到指向请求目标的有效认证路径的数据由 CreeperHost 在 <b1 上友好镜像12>https://www.creeperhost.net/ 考虑 minecraft 服务器 jar下载库找到 1 个额外的库目录考虑库 cpw.mods:securejarhandler:2.1.10 从 下载库 下载完成:校验和验证。JVM 信息:Oracle Corporation - 1.8.0_431 - 25.431-b10 java.net.preferIPv4Stack=true 当前时间:15/01/2025 17:45:17 主机:files.minecraftforge.net [104.21.58.163, 172.67.161.211] 主机: maven.minecraftforge.net [172.67.161.211, 104.21.58.163] 主机: libraries.minecraft.net [127.0.0.1] 主机: launchermeta.mojang.com [127.0.0.1] 主机: piston-meta.mojang.com [127.0.0.1] 主机: sessionserver.mojang.com [127.0.0.1] 主机:authserver.mojang.com [未知] 错误检查 https://launchermeta.mojang.com/:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到指向请求目标 的有效认证路径数据由 CreeperHost 在 https://www.creeperhost.net/ 考虑 minecraft 服务器 jar 时进行镜像wnloading libraries 找到 1 个额外的库目录 考虑库 cpw.mods:securejarhandler:2.1.10 从 https://maven.creeperhost.net/cpw/mods/securejarhandler/2.1.10/securejar 下载库handler-2.1.10.jar https://maven.creeperhost.net/org/ow2/asm/asm-analysis/9.7.1/asm-analysis-9.7.1.jar 下载完成:校验和验证。 考虑到库 org.ow2.asm:asm:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.7.1/asm-9.7.1.jar 下载库 https://maven.creeperhost.net/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar 下载完成:校验和已验证。 考虑库 org.ow2.asm:asm-commons:9.7.1 从库 org.ow2.asm:asm-commons:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.7.1/asm-tree-9.7.1.jar https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.7.1/asm-commons-9.7.1.jar https://maven.creeperhost.net/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar 下载库 下载已完成:校验 https://maven.creeperhost.net/net/minecraftforge/eventbus/6.0.5/eventbus-6.0.5.jar和已验证。 考虑库 org.ow2.asm:asm-util:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm-util/9.7.1/asm-util-9.7.1.jar 下载库 https://maven.creeperhost.net/net/minecraftforge/forgespi/7.0.1/forgespi-7.0.1.jar 下载完成:勾选pleted:校验和验证。 考虑库 net.minecraftforge:coremods:5.2.1 从 https://maven.creeperhost.net/net/minecraftforge/coremods/5.2.1/coremods-5.2.1.jar 下载库 下载完成:校验和验证。 考虑库 cpw.mods:modlauncher:10.0.9 从 https://maven.creeperhost.net/cpw/mods/modlauncher/10.0.9/modlauncher-10.0.9.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:unsafe:0.2.0 从 https://maven.creeperhost.net/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:mergetool:1.1.5:api 从 https://maven.creeperhost.net/net/minecraftforge/mergetool/1.1.5/mergetool-1.1.5-api.jar 下载库 下载完成:校验和验证。 考虑到库 com.electronwill.night-config:core:3.6.4 从 https://maven.creeperhost.net/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar 下载库 下载完成:校验和验证。 考虑到库 com.electronwill.night-config:toml:3.6.4 从 https://maven.creeperhost.net/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar 下载库 下载完成:校验和验证。 考虑库 org.apache.maven:maven-artifact:3.8.5 从 https://maven.creeperhost.net/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar 下载完成:校验和验证。 考虑库 net.jodah:typetools:0.6.3 从 https://maven.creeperhost.net/net/jodah/typetools/0.6.3/typetools-0.6.3.jar 下载库 下载完成:校验和验证。 考虑库 net.minecrell:terminalconsoleappender:1.2.0 从 https://maven.creeperhost.net/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar 下载库 下载完成:校验和验证。 考虑库 org.jline:jline-reader:3.12.1 从 https://maven.creeperhost.net/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar 下载库 下载完成:校验和验证。 考虑库 org.jline:jline-terminal:3.12.1 从 https://maven.creeperhost.net/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar 下载库 下载完成:校验和验证。 考虑库 org.spongepowered:mixin:0.8.5 从 https://maven.creeperhost.net/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar 下载库 下载完成:校验和验证。 考虑库 org.openjdk.nashorn:nashorn-core:15.4 从库下载库 https://maven.creeperhost.net/org/openjdk/nashorn/nashorn-core/15.4/nashorn-core-15.4.jar 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarSelector:0.3.19 从https://maven.creeperhost.net/net/minecraftforge/JarJarSelector/0.3.19/JarJarSelector-0.3.19.jar 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarMetadata:0.3.19 从 https://maven.creeperhost.net/net/minecraftforge/JarJarMetadata/0.3.19/JarJarMetadata-0.3.19.jar 下载库下载完成:校验和验证。 考虑库 cpw.mods:bootstraplauncher:1.1.2 从 https://maven.creeperhost.net/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarFileSystems:0.3.19 从 https://maven.creeperhost.net/net/minecraftforge/JarJarFileSystems/0.3.19/JarJarFileSystems-0.3.19.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:fmlloader:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlloader/1.20.1-47.3.12/fmlloader-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑到库 net.minecraftforge:fmlearlydisplay:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlearlydisplay/1.20.1-47.3.12/fmlearlydisplay-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 com.github.jponge:lzma-java:1.3 从 https://maven.creeperhost.net/com/github/jponge/lzma-java/1.3/lzma-java-1.3.jar 下载库 下载已完成:校验和已验证。 考虑到库 com.google.code.findbugs:jsr305:3.0.2 从 https://libraries.minecraft.net/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar 下载库无法建立与 https://libraries.minecraft.net/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar 主机的连接:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标 的有效认证路径 在 sun.security.ssl.Alert.createSSLException(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) .security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) at sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.SSLTransport.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 位于 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) 在 java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) 在net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到请求目标 a 的有效证书路径t sun.security.validator.PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(未知来源 ) ...ecode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) https://libraries.minecraft.net/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar在 java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) https://libraries.minecraft.net/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 nlderException: 无法找到指向请求目标 的有效证书路径 sun.security.ssl.Alert.createSSLException(未知源) 在 sun.security.ssl.TransportContext.fatal(未知源) 在 sun.security.ssl.TransportContext.fatal(未知源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Un已知来源) 位于 sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) 位于 sun.security.ssl.SSLHandshake.consume(未知来源) 位于 sun.security.ssl.HandshakeContext.dispatch(未知来源) 位于 sun.security.ssl.HandshakeContext.dispatch(未知来源) 位于 sun.security.ssl.TransportContext.dispatch(未知来源) 位于 sun.security.ssl.SSLTransport.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源)。 security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) at sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 在 sun.net.www.protocol.https.Https.HttpsClient.afterConnect(未知来源) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) 在 net.minecraftforge.installer.Installer.InstallerPanel.run(InstallerPanel.java:271) 在 net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) 在 net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security。provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 sun.security.validator.PKIXValidator.doBuild(未知来源) 在 sun.security.validator.PKIXValidator.engineValidate(未知来源) 在 sun.security.validator.Validator.validate(未知来源) 在 sun.security.ssl.X509TrustManagerImpl.validate(未知来源) 在 sun.security.ssl.X509TrustManagerImpl.checkServerTrus ted(未知来源) ...27 更多 原因: sun.security.provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 在 sun.security.provider.certpath.SunCertPathBuilder.build(未知来源) 在 sun.security.provider.certpath.sunCertPathBuilder.engineBuild(未知来源) 在 java.security.cert.CertPathBuilder.build(未知来源) ...另外 33 个考虑库 com.google.errorprone:error_prone_annotations:2.1.3 从 https://maven.creeperhost.net/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar 下载库 下载已完成:校验和验证。 考虑到库 com.google.guava:guava:25.1-jre 从 https://maven.creeperhost.net/com/google/guava/guava/25.1-jre/guava-25.1-jre.jar 下载库下载已完成:校验和已验证。 考虑到库 com.google.j2objc:j2objc-annotations:1.1 从 https://maven.creeperhost.net/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar 下载库 下载已完成:校验和已验证。 考虑库 com.nothome:javaxdelta:2.0.1 从 https://maven.creeperhost.net/com/nothome/javaxdelta/2.0.1/javaxdelta-2.0.1.jar 下载库下载已完成:校验和已验证。 考虑库 commons-io:commons-io:2.4 从 https://libraries.minecraft.net/commons-io/commons-io/2.4/commons-io-2.4.jar 下载库 无法建立与 https://libraries.minecraft.net/commons-io/commons-io/2.4/commons-io-2.4.jar 主机的连接:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 在 sun.security.ssl.Alert.createSSLException(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) at sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) 在 sun.security.ssl.TransportContext.dispatch(未知来源) 在 sun.security.ssl.SSLTransport.decode(未知来源) 在 sun.security.ssl.SSLSocketImpl.decode(未知来源) 在 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 在 sun.security.ssl.SSLSocketImpl.st artHandshake(未知来源) at sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) at java.net.HttpURLConnection.getResponseCode(未知来源) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) at net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) at net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) at net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) at net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) at net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) at net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certifica请求目标 的路径 at sun.security.validator.PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted( 未知来源) ...artHandshake(未知来源) 在 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 java.net。HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.Https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) https://maven.creeperhost.net/de/oceanlabs/mcp/mcp_config/1.20.1-20230612.114412/mcp_config-1.20.1-20230612.114412.zip 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraft.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) https://maven.creeperhost.net/de/siegmar/fastcsv/2.2.2/fastcsv-2.2.2.jar 在 net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) 在 net.minecraftforge.installer.SimpleInstaller.launchG1317>考虑库 net.minecraftforge:binarypatcher:1.1.1 从 https://maven.creeperhost.net/net/minecraftforge/binarypatcher/1.1.1/binarypatcher-1.1.1.jar 下载库 下载已完成:校验和已验证。 考虑到库 net.minecraftforge:fmlcore:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlcore/1.20.1-47.3.12/fmlcore-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑到库 net.minecraftforge:fmlearlydisplay:1.20.1-47.3.12 文件存在:校验和验证。 考虑到库 net.minecraftforge:fmlloader:1.20.1-47.3.12 文件存在:校验和已验证。 考虑到库 net.minecraftforge:forge:1.20.1-47.3.12:universal 从 https://maven.creeperhost.net/net/minecraftforge/forge/1.20.1-47.3.12/forge-1.20.1-47.3.12-universal.jar 下载库下载完成:校验和验证。 考虑库 net.minecraftforge:installertools:1.4.1 从 https://maven.creeperhost.net/net/minecraftforge/installertools/1.4.1/installertools-1.4.1.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:jarsplitter:1.1.4 从 https://maven.creeperhost.net/net/minecraftforge/jarsplitter/1.1.4/jarsplitter-1.1.4.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:javafmllanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/javafmllanguage/1.20.1-47.3.12/javafmllanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:lowcodelanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/lowcodelanguage/1.20.1-47.3.12/lowcodelanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:mclanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/mclanguage/1.20.1-47.3.12/mclanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.4.3 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.4.3/srgutils-0.4.3.jar 下载库 下载已完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.4.9 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.4.9/srgutils-0.4.9.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.5.6 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.5.6/srgutils-0.5.6.jar 下载库 下载完成:校验和验证。 考虑库 net.sf.jopt-simple:jopt-simple:5.0.4 从 https://libraries.minecraft.n 下载库et/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar 无法建立与主机的连接 https://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar 主机:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法在 sun.security.ssl.Alert.createSSLException(U 上找到指向请求目标 的有效证书路径)未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) 在 sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) on sun.security.ssl.HandshakeContext.dispatch(未知来源) sun.security.ssl.TransportContext.dispatch(未知来源) sun.security.ssl.SSLTransport.decode(未知来源) on sun.security.ssl.SSLSocketImpl.decode(未知来源) sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) ource) 在 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 在 sun.net.www.protocol.https.Https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法在 sun.security 中找到指向请求目标 的有效证书路径。验证器。PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(未知来源 ) ...27 更多 原因:sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标 的有效认证路径 在 sun.security.provider.certpath.SunCertPathBuilder.build(未知源) 在 sun.security.provider.certpath.sunCertPathBuilder.engineBuild(未知源) 在 java.security.cert.CertPathBuilder.build(未知源) ...另外 33 个考虑库 net.sf.jopt-simple:jopt-simple:6.0-alpha-3 从 https://maven.creeperhost.net/net/sf/jopt-simple/jopt-simple/6.0-alpha-3/jopt-simple-6.0-alpha-3.jar 下载库 下载完成:校验和验证。 考虑到库 org.checkerframework:checker-qual:2.0.0 从 https://maven.creeperhost.net/org/checkerframework/checker-qual/2.0.0/checker-qual-2.0.0.jar 下载库 下载已完成:校验和已验证。 考虑库 org.codehaus.mojo:animal-sniffer-annotations:1.14 从 https://maven.creeperhost.net/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar 下载库下载完成:校验和验证。 考虑库 org.ow2.asm:asm-analysis:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar 库 org.ow2.asm:asm-analysis:9.2 从库 org.ow2.asm:asm-commons:9.2 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-commons:9.6 从库 org.ow2.asm:asm-commons:9.6 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.6/asm-commons-9.6.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-tree:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar 库 org.ow2.asm:asm-commons:9.2 下载库 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-tree:9.6 从库 org.ow2.asm:asm-tree:9.6 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.2/asm-9.2.jar 库 org.ow2.asm:asm:9.2 下载完成:校验和验证。 考虑库 org.ow2.asm:asm:9.6 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.6/asm-9.6.jar 下载库下载已完成:校验和已验证。 考虑库 trove:trove:1.0.2 从 https://maven.creeperhost.net/trove/trove/1.0.2/trove-1.0.2.jar 下载库下载已完成:校验和已验证。 这些库下载失败。 再试一次。 com.google.code.findbugs:jsr305:3.0.2 com.google.code.gson:gson:2.10.1 commons-io:commons-io:2.4 net.sf.jopt-simple:jopt-simple:5.0.4 There was an error during installation  
    • Maybe some kind of bug with Pixelmon - something with Raids   Report it to the Creators
    • Did you make changes at the paper-global.yml file?   If not, delete this file and restart the server
    • My friends and I are playing a modified version of BMC4 and we're noticing stuff like passive mobs. (I think) like creatures/animals from Alex mobs, naturalist, let's do nature and even vanilla MC (sheep, cow, pigs, chickens, horses, donkeys) don't really spawn in, unlike the sea creatures and hostile monsters spawn in just fine and normal numbers. Here is a mod list from a crash report: https://pastebin.ubuntu.com/p/K9vJxxx6n4/ Just a quick copy and paste of the mod list from an unrelated crash report If anything please let me know if I should post pics of the mods from my mods folder I want to know how to increase their spawn rate/amount and if there are any mods that are causing the scarce appearances of these mobs
    • I'm locally hosting a server and when Connecting to it Me (and my friends) get disconnected with the Warning:  [00:55:21] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: butterrocker lost connection: Disconnected [00:55:21] [Server thread/INFO] [minecraft/MinecraftServer]: butterrocker left the game [00:55:21] [Server thread/WARN] [minecraft/Connection]: handleDisconnection() called twice Server latest.log Client latest.log This server is hosted locally, Minecraft ver 1.20.1 and forge ver 47.3.22 I can connect the the sever just fine locally, but when connecting to the IP Others and I cannot connect, I've changed "-Dfml.readTimeout=240" from 30 to 240, to no affect.  I've removed the client side config files, to No avail, Checked mod vers by moving around the files, still nothing. I'm at a loss currently. Yesterday 1/13/25 everything worked fine and My friends and I could all connect, but now we cannot. Any assistance would be greatly appreciated.  If any further information is required please let me know, Thanks!
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.