gnembon / carpetmod112

GNU Lesser General Public License v3.0
120 stars 65 forks source link

Can't build v19_08_11 #186

Open Cnastret opened 2 months ago

Cnastret commented 2 months ago

I know this version is old but I don't think it is a issue with the program. I am just doing it wrong. I think I need this version because it doesn't seem to be for 1.12.2, but for 1.12.0. I try to run ./gradlew setupCarpetmod in the terminal but it doesn't work because I am not using java 1.8. I don't know how. I have it installed but I can seem to figure out how to use it instead of java 17 or 21.

$ ./gradlew setupCarpetmod


FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

I tried to build it with intellij idea. I changed the java version to 1.8 but it said:


A problem occurred configuring root project 'carpetmod'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve gradle.plugin.com.dorongold.plugins:task-tree:1.3.
     Required by:
         project :
      > Could not resolve gradle.plugin.com.dorongold.plugins:task-tree:1.3.
         > Could not get resource 'http://plugins.gradle.org/m2/gradle/plugin/com/dorongold/plugins/task-tree/1.3/task-tree-1.3.pom'.
            > Could not GET 'http://plugins.gradle.org/m2/gradle/plugin/com/dorongold/plugins/task-tree/1.3/task-tree-1.3.pom'. Received status code 403 from server: Forbidden

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Cnastret commented 2 months ago

I tried to instead manually splice the server.jar and the v19_08_11 patches. Now I am able to generate what I think are all of the files, but only by using this command: java -Xmx1024M -Xms1024M -jar server.jar nogui I am not able to just double click the jar file. I have tried with both oracle and adoptium. The server.properties file and the eula.txt are generated with these messages:

[21:50:38] [main/ERROR]: Errors with built-in recipes!
[21:50:38] [Server thread/INFO]: Starting minecraft server version 1.12
[21:50:38] [Server thread/INFO]: Loading properties
[21:50:38] [Server thread/WARN]: server.properties does not exist
[21:50:38] [Server thread/INFO]: Generating new properties file
[21:50:38] [Server thread/WARN]: Failed to load eula.txt
[21:50:38] [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
[21:50:38] [Server thread/INFO]: Stopping server
[21:50:38] [Server Shutdown Thread/INFO]: Stopping server

Then I run the jar again and the rest is generated but the server doesn't start running:

[21:51:54] [main/ERROR]: Errors with built-in recipes!
[21:51:54] [Server thread/INFO]: Starting minecraft server version 1.12
[21:51:54] [Server thread/INFO]: Loading properties
[21:51:54] [Server thread/INFO]: Default game type: SURVIVAL
[21:51:54] [Server thread/INFO]: Generating keypair
[21:51:54] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:51:54] [Server thread/INFO]: Using default channel type
[21:51:54] [Server thread/INFO]: Preparing level "world"
[21:51:54] [Thread-2/INFO]: [STDERR]: java.io.FileNotFoundException: carpet\joined.srg (The system cannot find the file specified)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.io.FileInputStream.open0(Native Method)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.io.FileInputStream.open(FileInputStream.java:195)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.io.FileInputStream.<init>(FileInputStream.java:138)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at carpet.helpers.StackTraceDeobfuscator.lambda$loadMappings$0(StackTraceDeobfuscator.java:168)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.lang.Thread.run(Thread.java:750)
[21:51:54] [Thread-2/INFO]: [STDERR]: java.lang.NullPointerException: in is null
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.util.zip.ZipInputStream.<init>(ZipInputStream.java:101)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.util.zip.ZipInputStream.<init>(ZipInputStream.java:80)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at carpet.helpers.StackTraceDeobfuscator.lambda$loadMappings$0(StackTraceDeobfuscator.java:173)
[21:51:54] [Thread-2/INFO]: [STDERR]:   at java.lang.Thread.run(Thread.java:750)
[21:51:54] [Server thread/INFO]: Loaded 488 advancements

It is missing the joined.srg file. What is that? Do you know why this is happening?