Skidamek / AutoModpack

Enjoy a seamless modpack installation process and effortless updates with a user-friendly solution that simplifies management, making your gaming experience a breeze.
https://modrinth.com/mod/automodpack
GNU Lesser General Public License v3.0
90 stars 29 forks source link

syncedFiles is rewriten on server startup #217

Closed Y5R closed 3 months ago

Y5R commented 3 months ago

Bug description

automodpack-server.json is been rewriten on server startup

automodpack-server.json before server start: image

automodpack-server.json after server start: image

Steps to reproduce

  1. Stop server.
  2. Make changes to syncedFiles section
  3. Save file
  4. Start server

Expected behavior

Changes saved and applied

Actual behavior

syncedFiles section reverts itself to initial values

Relevant logs

No response

Minecraft & Mod Loader versions

1.20.1 Forge 47.1.3

Minecraft launcher

Modrinth App

Operating system

Windows 11

AutoModpack version

automodpack-forge-4.0.0-beta1-1.20.1

Other information

No response

Check list

Skidamek commented 3 months ago

Works perfectly fine for me, can't reproduce. Could you upload relevant logs from server?

Skidamek commented 3 months ago

image I see you have , on last entry, json doesn't like that, try without , on last one

Y5R commented 3 months ago

Removing , does not helped.

Here logs: https://dropmefiles.com/Q66ko

Y5R commented 3 months ago

Found what was the problem!

You was right it because of missed , but after default lines.

All works as intended.

Thanks for help)