Skip to content

Bug: unknown option "-Dsoftreset" #14

Open
@davidmartin

Description

Describe the bug

I'm playing with some friends and we want to reset the loot, but when I add -Dsoftreset to the start.sh file, I encounter the following error in the console:

unknown option "-Dsoftreset"

The parameter is added in the start.sh script as follows:

LogAction "Starting server"
./start-server.sh \
    -cachedir="$CONFIG_DIR" \
    -adminusername "$ADMIN_USERNAME" \
    -adminpassword "$ADMIN_PASSWORD" \
    -port "$DEFAULT_PORT" \
    -servername "$SERVER_NAME" \
    -steamvac "$STEAM_VAC" "$USE_STEAM" \
    -Dsoftreset

Is there another way to reset loot and vehicles without losing player inventories, containers, or character-built constructions?

Thanks !!

To Reproduce

Steps to reproduce the behavior:

  1. Go to ./scripts/start.sh
  2. Add on -Dsoftreset
  3. Start the server
  4. Observe the error message: unknown option "-Dsoftreset".

Expected behavior

Loot and vehicles should reset on the server.

Actual behavior

The server fails to recognize the -Dsoftreset parameter, displaying an error message.

OS information (IMPORTANT)

  • OS: Ubuntu
  • Branch: main

docker-compose.yml contents (IMPORTANT)

No modifications have been made to docker-compose.yml.

Container/Host Logs (IMPORTANT)

Logs
====Starting server====
64-bit java detected
ERROR: ld.so: object 'libjsig.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libjsig.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
pzexe: looking for PZXInitThreads.so
pzexe: libPZXInitThreads64.so was not found. This is ok for a server, but multi-core rendering won't work on a client without it.
pzexe: about to run java hack to locate libjvm.so...
pzexe: executing "java -classpath pzexe.jar -Djava.library.path=. zombie.pzexe"
pzexe.java: loading shared li
brary "pzexe_jni64"
JVM=/project-zomboid/jre64/lib/server/libjvm.so
pxexe: /proc/self/exe=/project-zomboid/ProjectZomboid64
pzexe config file: /project-zomboid/ProjectZomboid64.json
pzexe: mainClass: zombie/network/GameServer
pzexe: classpath: -Djava.class.path=java/.:java/istack-commons-runtime.jar:java/jassimp.jar:java/javacord-2.0.17-shaded.jar:java/javax.activation-api.jar:java/jaxb-api.jar:java/jaxb-runtime.jar:java/lwjgl.jar:java/lwjgl-natives-linux.jar:java/lwjgl-glfw.jar:java/lwjgl-glfw-natives-linux.jar:java/lwjgl-jemalloc.jar:java/lwjgl-jemalloc-natives-linux.jar:java/lwjgl-opengl.jar:java/lwjgl-opengl-natives-linux.jar:java/lwjgl_util.jar:java/sqlite-jdbc-3.27.2.1.jar:java/trove-3.0.3.jar:java/uncommons-maths-1.2.3.jar:java/commons-compress-1.18.jar
pzexe: vmArg (json) 1: -Djava.awt.headless=true
pzexe: vmArg (json) 2: -Xmx6g
pzexe: vmArg (json) 3: -Dzomboid.steam=1
pzexe: vmArg (json) 4: -Dzomboid.znetlog=1
pzexe: vmArg (json) 5: -Djava.library.path=linux64/:natives/
pzexe: vmArg (json) 6: -Djava.security.egd=file:/dev/urandom
pzexe: vmArg (json) 7: -XX:+UseZGC
pzexe: vmArg (json) 8: -XX:-OmitStackTraceInFastThrow
pzexe: using jvm "/project-zomboid/jre64/lib/server/libjvm.so"
pzexe: arg: -cachedir=/project-zomboid-config
pzexe: arg: -port
pzexe: arg: 16271
pzexe: arg: -steamvac
pzexe: arg: true
pzexe: arg: true
pzexe: arg: -Dsoftreset
DEBUG: General     , 1728885020706> 1,928,046,175> LoggerManager.init                  > Initializing...
LOG  : General     , 1728885020770> 1,928,046,223> cachedir set to "/project-zomboid-config"
LOG  : General     , 1728885020876> 1,928,046,329> version=41.78.16 demo=false
LOG  : General     , 1728885020877> 1,928,046,330> revision= date= time=
LOG  : General     , 1728885020881> 1,928,046,334> unknown option "true"
LOG  : General     , 1728885020882> 1,928,046,334> unknown option "-Dsoftreset"

Bug Report Checklist

  • I searched for my issue in the Closed issues
  • I have included all relevant information required above.
  • I am willing to fix this bug

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions