wendall911 / BetterDays

A Minecraft 1.15.2+ mod to designed to extend the length of the crazy short minecraft day.
Other
3 stars 2 forks source link

Day not progressing on Minecraft 1.21.1 server #14

Closed basilm4r0 closed 2 months ago

basilm4r0 commented 2 months ago

This mod unfortunately causes time of day to not progress on my server. In a local world on the other hand, time does progress normally. I'm not sure if it caused by a mod incompatibility, misconfiguration, or an issue with the mod itself. Running /time query daytime returns The time is 2071 continuously.

Server mod list:

collective-1.21.1-7.84
configurable-beacons-4.0.0
fabric-api-0.103.0+1.21.1
fixedanvilrepaircost-1.21.1-3.4
lithium-fabric-mc1.21.1-0.13.0
YetAnotherConfigLib-3.5.0+1.21-fabric

Client mod list:

indium-1.0.35+mc1.21
sodium-fabric-0.6.0-beta.1+mc1.21
entityculling-fabric-1.7.0-mc1.21
iris-fabric-1.8.0-beta.3+mc1.21.1
fabric-api-0.103.0+1.21.1
lithium-fabric-mc1.21.1-0.13.0

betterdays-common.toml:

    #The speed at which time passes during the day.
    #Day is defined as any time between dayStart (see below) and nightStart (see below) the next day.
    #Vanilla speed: 1.0
    #Range: 0.0 ~ 24000.0
    daySpeed = 0.5
    #The speed at which time passes during the night.
    #Night is defined as any time between dayStart (see below) and nightStart (see below).
    #Vanilla speed: 1.0
    #Range: 0.0 ~ 24000.0
    nightSpeed = 0.5
    #The time to start day. This is configurable within the time the sun appears and day starts.
    #Default: 23500
    #Range: 22300.0 ~ 24000.0
    dayStart = 23500.0
    #The time to start night. This is configurable within the time sunset starts and night starts.
    #Default: 12500
    #Range: 12000.0 ~ 13000.0
    nightStart = 12500.0

    [time.effects]
        #When applied, this effect syncs the passage of weather with the current speed of time.
        #I.e., as time moves faster, rain stops faster. Clear weather is not affected.
        #When set to SLEEPING, this effect only applies when at least one player is sleeping in a dimension.
        #Note: This setting is not applicable if game rule doWeatherCycle is false.
        #Allowed Values: NEVER, ALWAYS, SLEEPING
        weatherEffect = "SLEEPING"
        #When applied, this effect syncs the random tick speed with the current speed of time, forcing
        #crop, tree, and grass growth to occur at baseRandomTickSpeed multiplied by the current time-speed.
        #When set to SLEEPING, randomTickSpeed is set to baseRandomTickSpeed unless at least one player is sleeping in a dimension.
        #More information on the effects of random tick speed can be found here: https://minecraft.fandom.com/wiki/Tick#Random_tick
        #WARNING: This setting overwrites the randomTickSpeed game rule. To modify the base random tick speed,
        #use the baseRandomTickSpeed setting instead of changing the game rule directly.
        #Allowed Values: NEVER, ALWAYS, SLEEPING
        randomTickEffect = "NEVER"
        #The base random tick speed used by the randomTickEffect time effect.
        #Range: > 0
        baseRandomTickSpeed = 3
        #When applied, this effect progresses potion effects to match the rate of the current time-speed.
        #This effect does not apply if time speed is 1.0 or less.
        #THIS MAY HAVE A NEGATIVE IMPACT ON PERFORMANCE IN SERVERS WITH MANY PLAYERS.
        #When set to ALWAYS, this effect applies to all players in the dimension, day or night.
        #When set to SLEEPING, this effect only applies to players who are sleeping.
        #Allowed Values: NEVER, ALWAYS, SLEEPING
        potionEffect = "NEVER"
        #When applied, this effect progresses player hunger effects to match the rate of the current time-speed.
        #This results in faster healing when food level is full, and faster harm when food level is too low.
        #This effect does not apply if time speed is 1.0 or less.
        #When set to ALWAYS, this effect applies to all players in the dimension, day or night. Not recommended on higher difficulty settings
        #When set to SLEEPING, this effect only applies to players who are sleeping.
        #Allowed Values: NEVER, ALWAYS, SLEEPING
        hungerEffect = "NEVER"
        #When applied, this effect progresses block entities like furnaces, hoppers, and spawners to match the rate of the current time-speed.
        #WARNING: This time-effect has a significant impact on performance.
        #This effect does not apply if time speed is 1.0 or less.
        #When set to SLEEPING, this effect only applies when at least one player is sleeping in a dimension.
        #Allowed Values: NEVER, ALWAYS, SLEEPING
        blockEntityEffect = "NEVER"

[sleep]
    #Enables or disables the sleep feature of this mod. Enabling this setting will modify the vanilla sleep functionality
    #and may conflict with other sleep mods. If disabled, all settings in the sleep section will not apply.
    enableSleepFeature = true
    ### THIS SETTING DEFINES THE SLEEP TIME-SPEED IN SINGLE-PLAYER GAMES ###
    #The maximum speed at which time passes when all players are sleeping.
    #A value of 110 is nearly equal to the time it takes to sleep in vanilla.
    #Range: 0.0 ~ 24000.0
    sleepSpeedMax = 110.0
    #The minimum speed at which time passes when only 1 player is sleeping in a full server.
    #Range: 0.0 ~ 24000.0
    sleepSpeedMin = 1.0
    #The speed at which time passes when all players are sleeping.
    #Set to -1 to disable this feature (sleepSpeedMax will be used when all players are sleeping).
    #Range: -1.0 ~ 24000.0
    sleepSpeedAll = -1.0
    #This parameter defines the curvature of the interpolation function that translates the sleeping player percentage into time-speed.
    #The function used is a Normalized Tunable Sigmoid Function.
    #A value of 0.5 represents a linear relationship.
    #Smaller values bend the curve toward the X axis, while greater values bend it toward the Y axis.
    #This graph may be used as a reference for tuning the curve: https://www.desmos.com/calculator/w8gntxzfow
    #Credit to Dino Dini for the function: https://dinodini.wordpress.com/2010/04/05/normalized-tunable-sigmoid-functions/
    #Credit to SmoothSleep for the idea: https://www.spigotmc.org/resources/smoothsleep.32043/
    #Range: 0.0 ~ 1.0
    sleepSpeedCurve = 0.3
    #Set to 'true' for the weather to clear when players wake up in the morning as it does in vanilla.
    #Set to 'false' to force weather to pass naturally. Adds realism when accelerateWeather is enabled.
    #Note: This setting is ignored if game rule doWeatherCycle is false.
    clearWeatherOnWake = true
    #When true, players are allowed to sleep at all times of day in dimensions controlled by Better Days.
    #Note: Other mods may override this ability.
    allowDaySleep = false
    #When true, a clock is displayed in the sleep interface.
    displayBedClock = true

    #This section defines settings for notification messages.
    #All messages support Minecraft formatting codes (https://minecraft.fandom.com/wiki/Formatting_codes).
    #All messages have variables that can be inserted using the following format: ${variableName}
    #The type option controls where the message appears:
    #   SYSTEM: Appears as a message in the chat. (e.g., "Respawn point set")
    #   GAME_INFO: Game information that appears above the hotbar (e.g., "You may not rest now, the bed is too far away").
    #The target option controls to whom the message is sent:
    #   ALL: Sends the message to all players on the server.
    #   DIMENSION: Sends the message to all players in the current dimension.
    #   SLEEPING: Sends the message to all players in the current dimension who are sleeping.
    [sleep.messages]

        #This message is sent after a sleep cycle has completed.
        [sleep.messages.morning]
            #Available variables:
            #sleepingPlayers -> the number of players in the current dimension who were sleeping.
            #totalPlayers -> the number of players in the current dimension (spectators are not counted).
            #sleepingPercentage -> the percentage of players in the current dimension who were sleeping (does not include % symbol).
            message = "§e§oTempus fugit!"
            #Sets where this message appears.
            #Allowed Values: SYSTEM, GAME_INFO
            type = "GAME_INFO"
            #Sets to whom this message is sent.
            #A target of 'SLEEPING' will send the message to all players who just woke up.
            #Allowed Values: ALL, DIMENSION, SLEEPING
            target = "DIMENSION"

        #This message is sent when a player enters their bed.
        [sleep.messages.enterBed]
            #Available variables:
            #player -> the player who started sleeping.
            #sleepingPlayers -> the number of players in the current dimension who are sleeping.
            #totalPlayers -> the number of players in the current dimension (spectators are not counted).
            #sleepingPercentage -> the percentage of players in the current dimension who are sleeping (does not include % symbol).
            message = "${player} is now sleeping. [${sleepingPlayers}/${totalPlayers}]"
            #Sets where this message appears.
            #Allowed Values: SYSTEM, GAME_INFO
            type = "GAME_INFO"
            #Sets to whom this message is sent.
            #Allowed Values: ALL, DIMENSION, SLEEPING
            target = "DIMENSION"

        #This message is sent when a player leaves their bed (without being woken up naturally by morning).
        [sleep.messages.leaveBed]
            #Available variables:
            #player -> the player who left their bed.
            #sleepingPlayers -> the number of players in the current dimension who are sleeping.
            #totalPlayers -> the number of players in the current dimension (spectators are not counted).
            #sleepingPercentage -> the percentage of players in the current dimension who are sleeping (does not include % symbol).
            message = "${player} has left their bed. [${sleepingPlayers}/${totalPlayers}]"
            #Sets where this message appears.
            #Allowed Values: SYSTEM, GAME_INFO
            type = "GAME_INFO"
            #Sets to whom this message is sent. 
            #Allowed Values: ALL, DIMENSION, SLEEPING
            target = "DIMENSION"

betterdays-client.toml

    #Sets the screen alignment of the bed clock.
    #Allowed Values: TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT, CENTER_CENTER, CENTER_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT
    clockAlignment = "TOP_RIGHT"
    #Sets the scale of the bed clock.
    #Range: > 1
    clockScale = 64
    #Sets the distance between the clock and the edge of the screen.
    #Unused if clockAlignment is CENTER_CENTER.
    #Range: > 0
    clockMargin = 16
    #This setting prevents clock wobble when getting in bed by updating the clock's position every tick.
    #As a side-effect, the clock won't wobble when first viewed as it does in vanilla. This setting is
    #unused if displayBedClock is false.
    preventClockWobble = true
wendall911 commented 2 months ago

I can't reproduce this. I loaded the mods you listed in the server, and the config and it loads and runs normally. Maybe try without any of the other mods. I have no idea what the issue might be. I don't see a log, so I have no way to look if there are any errors.

I'll leave this open for now, but it looks like something else is causing the issue. We run this on multiple servers across many versions with 150+ mods. I'm not sure how another mod could conflict. We do not run anything on windows, so might be a java issue? I have no ideas. Let me know if you can provide a log or more information. I'm not able to help at this point.

wendall911 commented 2 months ago

From the log for my test for reference:

[08:31:06] [main/INFO] (FabricLoader) Loading 49 mods:
        - betterdays 3.1.0.7
        - collective 7.84
        - configurable-beacons 4.0.0
        - fabric-api 0.103.0+1.21.1
        - fabric-api-base 0.4.42+6573ed8c19
        - fabric-api-lookup-api-v1 1.6.68+b559734419
        - fabric-biome-api-v1 13.0.29+5bd9f1bc19
        - fabric-block-api-v1 1.0.22+0af3f5a719
        - fabric-block-view-api-v2 1.0.10+6573ed8c19
        - fabric-command-api-v1 1.2.49+f71b366f19
        - fabric-command-api-v2 2.2.28+6ced4dd919
        - fabric-commands-v0 0.2.66+df3654b319
        - fabric-content-registries-v0 8.0.16+b559734419
        - fabric-convention-tags-v1 2.0.21+7f945d5b19
        - fabric-convention-tags-v2 2.6.1+9b16164119
        - fabric-crash-report-info-v1 0.2.29+0af3f5a719
        - fabric-data-attachment-api-v1 1.1.28+1daea21519
        - fabric-data-generation-api-v1 20.2.18+16c4ae2519
        - fabric-dimensions-v1 4.0.0+6fc22b9919
        - fabric-entity-events-v1 1.7.0+2122d82819
        - fabric-events-interaction-v0 0.7.12+ba9dae0619
        - fabric-game-rule-api-v1 1.0.53+6ced4dd919
        - fabric-gametest-api-v1 2.0.4+6fc22b9919
        - fabric-item-api-v1 11.0.0+afdfc92119
        - fabric-item-group-api-v1 4.1.5+3fc0e55219
        - fabric-lifecycle-events-v1 2.3.12+6c1df36019
        - fabric-loot-api-v2 3.0.14+3f89f5a519
        - fabric-loot-api-v3 1.0.2+3f89f5a519
        - fabric-message-api-v1 6.0.13+6573ed8c19
        - fabric-networking-api-v1 4.2.2+60c3209b19
        - fabric-object-builder-api-v1 15.2.0+40875a9319
        - fabric-particles-v1 4.0.2+6573ed8c19
        - fabric-recipe-api-v1 5.0.12+6508971219
        - fabric-registry-sync-v0 5.1.2+60c3209b19
        - fabric-rendering-data-attachment-v1 0.3.48+73761d2e19
        - fabric-rendering-fluids-v1 3.1.6+1daea21519
        - fabric-resource-conditions-api-v1 4.3.0+8dc279b119
        - fabric-resource-loader-v0 1.3.0+5659912919
        - fabric-screen-handler-api-v1 1.3.86+b559734419
        - fabric-transfer-api-v1 5.1.17+1db1cc1f19
        - fabric-transitive-access-wideners-v1 6.1.0+1daea21519
        - fabricloader 0.15.11
        - fixedanvilrepaircost 3.4
        - java 21
        - lithium 0.13.0
        - minecraft 1.21.1
        - mixinextras 0.3.5
        - spectrelib 0.17.2+1.21
        - yet_another_config_lib_v3 3.5.0+1.21-fabric

[08:31:15] [Server thread/INFO] (Minecraft) [STDOUT]: World data loaded successfully.

<<=[08:31:34] [Server thread/INFO] (Minecraft) The time is 3946
> :Fabric:runServer
<=<[08:31:42] [Server thread/INFO] (Minecraft) The time is 4026
basilm4r0 commented 2 months ago

Ah of course, I forgot to include logs. I'm also running on linux (fedora 40).

[20:02:15] [main/INFO]: Loading Minecraft 1.21.1 with Fabric Loader 0.16.2
[20:02:15] [main/INFO]: Loading 58 mods:
    - betterdays 3.1.0.7
      \-- spectrelib 0.17.2+1.21
           |-- com_electronwill_night-config_core 3.8.0
           \-- com_electronwill_night-config_toml 3.8.0
    - collective 7.84
    - configurable-beacons 4.0.0
    - fabric-api 0.103.0+1.21.1
      |-- fabric-api-base 0.4.42+6573ed8c19
      |-- fabric-api-lookup-api-v1 1.6.68+b559734419
      |-- fabric-biome-api-v1 13.0.29+5bd9f1bc19
      |-- fabric-block-api-v1 1.0.22+0af3f5a719
      |-- fabric-block-view-api-v2 1.0.10+6573ed8c19
      |-- fabric-blockrenderlayer-v1 1.1.52+0af3f5a719
      |-- fabric-client-tags-api-v1 1.1.15+6573ed8c19
      |-- fabric-command-api-v1 1.2.49+f71b366f19
      |-- fabric-command-api-v2 2.2.28+6ced4dd919
      |-- fabric-commands-v0 0.2.66+df3654b319
      |-- fabric-content-registries-v0 8.0.16+b559734419
      |-- fabric-convention-tags-v1 2.0.21+7f945d5b19
      |-- fabric-convention-tags-v2 2.6.1+9b16164119
      |-- fabric-crash-report-info-v1 0.2.29+0af3f5a719
      |-- fabric-data-attachment-api-v1 1.1.28+1daea21519
      |-- fabric-data-generation-api-v1 20.2.18+16c4ae2519
      |-- fabric-dimensions-v1 4.0.0+6fc22b9919
      |-- fabric-entity-events-v1 1.7.0+2122d82819
      |-- fabric-events-interaction-v0 0.7.12+ba9dae0619
      |-- fabric-game-rule-api-v1 1.0.53+6ced4dd919
      |-- fabric-item-api-v1 11.0.0+afdfc92119
      |-- fabric-item-group-api-v1 4.1.5+3fc0e55219
      |-- fabric-key-binding-api-v1 1.0.47+0af3f5a719
      |-- fabric-keybindings-v0 0.2.45+df3654b319
      |-- fabric-lifecycle-events-v1 2.3.12+6c1df36019
      |-- fabric-loot-api-v2 3.0.14+3f89f5a519
      |-- fabric-loot-api-v3 1.0.2+3f89f5a519
      |-- fabric-message-api-v1 6.0.13+6573ed8c19
      |-- fabric-model-loading-api-v1 2.0.0+fe474d6b19
      |-- fabric-networking-api-v1 4.2.2+60c3209b19
      |-- fabric-object-builder-api-v1 15.2.0+40875a9319
      |-- fabric-particles-v1 4.0.2+6573ed8c19
      |-- fabric-recipe-api-v1 5.0.12+6508971219
      |-- fabric-registry-sync-v0 5.1.2+60c3209b19
      |-- fabric-renderer-api-v1 3.4.0+c705a49c19
      |-- fabric-renderer-indigo 1.7.0+c705a49c19
      |-- fabric-renderer-registries-v1 3.2.68+df3654b319
      |-- fabric-rendering-data-attachment-v1 0.3.48+73761d2e19
      |-- fabric-rendering-fluids-v1 3.1.6+1daea21519
      |-- fabric-rendering-v0 1.1.71+df3654b319
      |-- fabric-rendering-v1 5.0.5+df16efd019
      |-- fabric-resource-conditions-api-v1 4.3.0+8dc279b119
      |-- fabric-resource-loader-v0 1.3.0+5659912919
      |-- fabric-screen-api-v1 2.0.25+8b68f1c719
      |-- fabric-screen-handler-api-v1 1.3.86+b559734419
      |-- fabric-sound-api-v1 1.0.23+6573ed8c19
      |-- fabric-transfer-api-v1 5.1.17+1db1cc1f19
      \-- fabric-transitive-access-wideners-v1 6.1.0+1daea21519
    - fabricloader 0.16.2
      \-- mixinextras 0.4.1
    - fixedanvilrepaircost 3.4
    - java 21
    - lithium 0.13.0
    - minecraft 1.21.1
    - yet_another_config_lib_v3 3.5.0+1.21-fabric
      |-- com_twelvemonkeys_common_common-image 3.10.0
      |-- com_twelvemonkeys_common_common-io 3.10.0
      |-- com_twelvemonkeys_common_common-lang 3.10.0
      |-- com_twelvemonkeys_imageio_imageio-core 3.10.0
      |-- com_twelvemonkeys_imageio_imageio-metadata 3.10.0
      |-- com_twelvemonkeys_imageio_imageio-webp 3.10.0
      |-- org_quiltmc_parsers_gson 0.2.1
      \-- org_quiltmc_parsers_json 0.2.1
[20:02:15] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.7 Source=file:/home/basilmari/minecraft/libraries/net/fabricmc/sponge-mixin/0.15.2+mixin.0.8.7/sponge-mixin-0.15.2+mixin.0.8.7.jar Service=Knot/Fabric Env=SERVER
[20:02:15] [main/INFO]: Compatibility level set to JAVA_17
[20:02:15] [main/INFO]: Compatibility level set to JAVA_21
[20:02:15] [main/INFO]: Loaded configuration file for Lithium: 144 options available, 0 override(s) found
[20:02:16] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1).
[20:02:19] [main/INFO]: Loading Collective version 7.84.
[20:02:19] [main/INFO]: Deserializing ConfigurableBeaconsConfig from './config/ConfigurableBeaconsConfig.json'
[20:02:19] [main/INFO]: Let there be beams!
[20:02:19] [main/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[20:02:20] [main/INFO]: Loaded 1290 recipes
[20:02:20] [main/INFO]: Loaded 1399 advancements
[20:02:21] [main/INFO]: Applied 0 biome modifications to 0 of 64 new biomes in 814.1 μs
[20:02:21] [Server thread/INFO]: Starting minecraft server version 1.21.1
[20:02:21] [Server thread/INFO]: Loading properties
[20:02:21] [Server thread/INFO]: Default game type: SURVIVAL
[20:02:21] [Server thread/INFO]: Generating keypair
[20:02:21] [Server thread/INFO]: Starting Minecraft server on *:56552
[20:02:21] [Server thread/INFO]: Using epoll channel type
[20:02:21] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[20:02:21] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[20:02:21] [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.
[20:02:21] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[20:02:21] [Server thread/INFO]: Preparing level "world"
[20:02:22] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[20:02:22] [Worker-Main-11/INFO]: Preparing spawn area: 0%
[20:02:22] [Server thread/INFO]: Time elapsed: 298 ms
[20:02:22] [Server thread/INFO]: Done (1.007s)! For help, type "help"
[20:02:22] [Server thread/INFO]: [STDOUT]: World data loaded successfully.
/time query daytime
[20:03:06] [Server thread/INFO]: The time is 2071

I can't see any errors though.

wendall911 commented 2 months ago

Ok, I have an identical setup on Fedora 39 and cannot reproduce. Can you try resetting the world? I have no idea how Better Days could even cause this ...

basilm4r0 commented 2 months ago

/gamerule doDaylightCycle true fixed it! I wonder what could've changed that setting. Weird.