Infinidoge / nix-minecraft

An attempt to better support Minecraft-related content for the Nix ecosystem
MIT License
172 stars 18 forks source link

[Support] I cannot get the create mod (nor betterEnd or anything to run) #69

Closed HannesGitH closed 3 weeks ago

HannesGitH commented 3 weeks ago

my current config:

# minecraft servers
  services.minecraft-servers = {
    enable = true;
    eula = true;
    openFirewall = true;
    servers = {
      THISONEWONTWORK = {
        enable = true;
        autoStart = false; #systemctl start minecraft-server-testvan
        jvmOpts = "-Xmx512M";
        package = pkgs.fabricServers.fabric-1_20_1.override {
          # loaderVersion = "0.92.2";
          jre_headless = pkgs.jdk17;#pkgs.temurin-jre-bin-17; #wont change anything
        };
        serverProperties = {
          server-port = 25565;
          max-players = 10;
          motd = "Flieht ihr Narren!";
          enable-rcon = true;
          "rcon.port" = 25575;
          "rcon.password" = "-----";
          online-mode = false;
        };
        symlinks = {
          mods = with pkgs; linkFarmFromDrvs "mods"  (builtins.attrValues{
            FabricAPI = fetchurl { url = "https://github.com/FabricMC/fabric/releases/download/0.92.2%2B1.20.1/fabric-api-0.92.2+1.20.1.jar"; sha256 = "sha256-RQD4RMRVc9A51o05Y8mIWqnedxJnAhbgrT5d8WxncPw="; };
            # BetterEnd = fetchurl { url = "https://cdn.modrinth.com/data/gc8OEnCC/versions/7QwyTILr/better-end-4.0.11.jar"; sha256="sha256-KF/u5KJgKsZve02S8NlyrIcq7FE8K2Go9vRHyj3AhCA=";};
            Create = fetchurl { url = "https://cdn.modrinth.com/data/Xbc0uyRg/versions/h2HgGyvA/create-fabric-0.5.1-f-build.1417%2Bmc1.20.1.jar"; sha256="sha256-EahQ02ibR3HV+nBf+n3XEYJ8abcQgpVll+XQUUccwe4=";};
          });
        };
      };
    };
  };

The server seems to start reasonably fine with this log:

```log [18:35:31] [main/INFO]: Loading Minecraft 1.20.1 with Fabric Loader 0.15.11 [18:35:31] [main/INFO]: Loading 78 mods: - create 0.5.1-f-build.1417+mc1.20.1 |-- com_electronwill_night-config_core 3.6.6 |-- com_electronwill_night-config_toml 3.6.6 |-- com_google_code_findbugs_jsr305 3.0.2 |-- flywheel 0.6.10-2 |-- forgeconfigapiport 8.0.0 |-- milk 1.2.60 | \-- dripstone_fluid_lib 3.0.2 |-- porting_lib_accessors 2.3.2+1.20.1 | \-- porting_lib_core 2.3.2+1.20.1 |-- porting_lib_base 2.3.2+1.20.1 | |-- com_electronwill_night-config_core 3.6.6 | |-- com_electronwill_night-config_toml 3.6.6 | |-- porting_lib_attributes 2.3.2+1.20.1 | |-- porting_lib_common 2.3.2+1.20.1 | |-- porting_lib_config 2.3.2+1.20.1 | |-- porting_lib_core 2.3.2+1.20.1 | |-- porting_lib_fluids 2.3.2+1.20.1 | |-- porting_lib_lazy_registration 2.3.2+1.20.1 | |-- porting_lib_mixin_extensions 2.3.2+1.20.1 | |-- porting_lib_utility 2.3.2+1.20.1 | \-- reach-entity-attributes 2.4.0 |-- porting_lib_brewing 2.3.2+1.20.1 | \-- porting_lib_core 2.3.2+1.20.1 |-- porting_lib_client_events 2.3.2+1.20.1 | \-- porting_lib_core 2.3.2+1.20.1 |-- porting_lib_entity 2.3.2+1.20.1 | |-- porting_lib_core 2.3.2+1.20.1 | \-- porting_lib_mixin_extensions 2.3.2+1.20.1 |-- porting_lib_extensions 2.3.2+1.20.1 | |-- porting_lib_attributes 2.3.2+1.20.1 | |-- porting_lib_common 2.3.2+1.20.1 | |-- porting_lib_core 2.3.2+1.20.1 | \-- reach-entity-attributes 2.4.0 |-- porting_lib_models 2.3.2+1.20.1 | |-- porting_lib_core 2.3.2+1.20.1 | |-- porting_lib_fluids 2.3.2+1.20.1 | \-- porting_lib_model_loader 2.3.2+1.20.1 |-- porting_lib_networking 2.3.2+1.20.1 | \-- porting_lib_core 2.3.2+1.20.1 |-- porting_lib_obj_loader 2.3.2+1.20.1 | |-- porting_lib_core 2.3.2+1.20.1 | \-- porting_lib_model_loader 2.3.2+1.20.1 |-- porting_lib_tags 3.0 | \-- porting_lib_core 2.3.2+1.20.1 |-- porting_lib_tool_actions 2.3.2+1.20.1 | \-- porting_lib_core 2.3.2+1.20.1 |-- porting_lib_transfer 2.3.2+1.20.1 | |-- porting_lib_core 2.3.2+1.20.1 | \-- porting_lib_fluids 2.3.2+1.20.1 |-- reach-entity-attributes 2.4.0 \-- registrate-fabric 1.3.62-MC1.20.1 |-- porting_lib_data 2.1.1090+1.20 | \-- porting_lib_gametest 2.1.1090+1.20 \-- porting_lib_model_generators 2.1.1090+1.20 |-- porting_lib_gametest 2.1.1090+1.20 \-- porting_lib_model_materials 2.1.1090+1.20 - fabric-api 0.92.2+1.20.1 |-- fabric-api-base 0.4.31+1802ada577 |-- fabric-api-lookup-api-v1 1.6.36+1802ada577 |-- fabric-biome-api-v1 13.0.13+1802ada577 |-- fabric-block-api-v1 1.0.11+1802ada577 |-- fabric-block-view-api-v2 1.0.1+1802ada577 |-- fabric-blockrenderlayer-v1 1.1.41+1802ada577 |-- fabric-client-tags-api-v1 1.1.2+1802ada577 |-- fabric-command-api-v1 1.2.34+f71b366f77 |-- fabric-command-api-v2 2.2.13+1802ada577 |-- fabric-commands-v0 0.2.51+df3654b377 |-- fabric-containers-v0 0.1.64+df3654b377 |-- fabric-content-registries-v0 4.0.11+1802ada577 |-- fabric-convention-tags-v1 1.5.5+1802ada577 |-- fabric-crash-report-info-v1 0.2.19+1802ada577 |-- fabric-data-attachment-api-v1 1.0.0+de0fd6d177 |-- fabric-data-generation-api-v1 12.3.4+1802ada577 |-- fabric-dimensions-v1 2.1.54+1802ada577 |-- fabric-entity-events-v1 1.6.0+1c78457f77 |-- fabric-events-interaction-v0 0.6.2+1802ada577 |-- fabric-events-lifecycle-v0 0.2.63+df3654b377 |-- fabric-game-rule-api-v1 1.0.40+1802ada577 |-- fabric-item-api-v1 2.1.28+1802ada577 |-- fabric-item-group-api-v1 4.0.12+1802ada577 |-- fabric-key-binding-api-v1 1.0.37+1802ada577 |-- fabric-keybindings-v0 0.2.35+df3654b377 |-- fabric-lifecycle-events-v1 2.2.22+1802ada577 |-- fabric-loot-api-v2 1.2.1+1802ada577 |-- fabric-loot-tables-v1 1.1.45+9e7660c677 |-- fabric-message-api-v1 5.1.9+1802ada577 |-- fabric-mining-level-api-v1 2.1.50+1802ada577 |-- fabric-model-loading-api-v1 1.0.3+1802ada577 |-- fabric-models-v0 0.4.2+9386d8a777 |-- fabric-networking-api-v1 1.3.11+1802ada577 |-- fabric-networking-v0 0.3.51+df3654b377 |-- fabric-object-builder-api-v1 11.1.3+1802ada577 |-- fabric-particles-v1 1.1.2+1802ada577 |-- fabric-recipe-api-v1 1.0.21+1802ada577 |-- fabric-registry-sync-v0 2.3.3+1802ada577 |-- fabric-renderer-api-v1 3.2.1+1802ada577 |-- fabric-renderer-indigo 1.5.2+85287f9f77 |-- fabric-renderer-registries-v1 3.2.46+df3654b377 |-- fabric-rendering-data-attachment-v1 0.3.37+92a0d36777 |-- fabric-rendering-fluids-v1 3.0.28+1802ada577 |-- fabric-rendering-v0 1.1.49+df3654b377 |-- fabric-rendering-v1 3.0.8+1802ada577 |-- fabric-resource-conditions-api-v1 2.3.8+1802ada577 |-- fabric-resource-loader-v0 0.11.10+1802ada577 |-- fabric-screen-api-v1 2.0.8+1802ada577 |-- fabric-screen-handler-api-v1 1.3.30+1802ada577 |-- fabric-sound-api-v1 1.0.13+1802ada577 |-- fabric-transfer-api-v1 3.3.5+8dd72ea377 \-- fabric-transitive-access-wideners-v1 4.3.1+1802ada577 - fabricloader 0.15.11 \-- mixinextras 0.3.5 - java 17 - minecraft 1.20.1 [18:35:31] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/nix/store/rqfaqxk5hvzmbb4whw4b6fi5dzpxwniv-fabric-server-launch.jar-fabric-0.15.11-1.20.1 Service=Knot/Fabric Env=SERVER [18:35:31] [main/INFO]: Compatibility level set to JAVA_17 [18:35:31] [main/WARN]: Error loading class: net/minecraft/class_906 (java.lang.ClassNotFoundException: net/minecraft/class_906) [18:35:31] [main/WARN]: @Mixin target net.minecraft.class_906 was not found porting_lib_tool_actions.mixins.json:FishingHookRendererMixin from mod porting_lib_tool_actions [18:35:31] [main/WARN]: Error loading class: net/minecraft/class_5616 (java.lang.ClassNotFoundException: net/minecraft/class_5616) [18:35:31] [main/WARN]: @Mixin target net.minecraft.class_5616 was not found registrate-fabric.mixins.json:accessor.BlockEntityRenderersAccessor from mod registrate-fabric [18:35:31] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5). [18:35:33] [main/WARN]: @Inject(@At("INVOKE")) Shift.BY=2 on porting_lib_entity.mixins.json:common.LivingEntityMixin from mod porting_lib_entity::handler$znj000$porting_lib_entity$port_lib$onFinishUsing exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning. [18:35:37] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [18:35:38] [main/INFO]: [fabric-registry-sync] Loaded registry data [file 1/4] [18:35:38] [main/INFO]: Loaded 22 recipes [18:35:38] [main/INFO]: Loaded 2260 advancements [18:35:39] [main/INFO]: Applied 106 biome modifications to 53 of 64 new biomes in 9.912 ms [18:35:39] [Server thread/INFO]: Starting minecraft server version 1.20.1 [18:35:39] [Server thread/INFO]: Loading properties [18:35:39] [Server thread/INFO]: Default game type: SURVIVAL [18:35:39] [Server thread/INFO]: Generating keypair [18:35:39] [Server thread/INFO]: Starting Minecraft server on *:25565 [18:35:39] [Server thread/INFO]: Using epoll channel type [18:35:39] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! [18:35:39] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware. [18:35:39] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. [18:35:39] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file. [18:35:39] [Server thread/INFO]: Preparing level "world" [18:35:39] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld ```

but pinging the server or joining results in a timeout. Removing the create mod makes it work

HannesGitH commented 3 weeks ago

seems like deleting world folder works..

Infinidoge commented 3 weeks ago

Hmm. I can't see anything that seems to be an issue with nix-minecraft here. Still weird though. Do you have any other logs?

HannesGitH commented 3 weeks ago

kinda embarrassing, i just copied the -Xnx flag from your tests, so the server didnt have enough ram by a lot, increased it to a few gigs, now everything works like a charm

Infinidoge commented 3 weeks ago

Ah yeah that would do it, the examples and tests are setup to be RAM-cheap since they're vanilla. Create and other large mods can get RAM hungry. Glad you figured it out ^^