Closed 1sun12 closed 10 months ago
Edit the “variables.txt” in the start.sh script to include the full path to your variables.txt file.
I’ll look into reporting this to ServerPackCreator or at least updating the readme.
Please try running the script like this ./start.sh
and see whether that works out.
EDIT: Reasoning:
The Linux scripts are bash-scripts, as indicated by the shebang in the first line of them #!/bin/bash
or #!/usr/bin/env bash
(depending on which version of ServerPackCreator was used in the making of the server pack), so explicitly running said script with a regular shell might result in unintended behavior, as indicated by
start.sh: 8: [[: not found
start.sh: 16: source: not found
start.sh: 69: Syntax error: redirection unexpected
Running bash start.sh
could also work. I'm just more used to ./start.sh
myself.
The shebang clearly depicts that the script is meant to be ran by bash
instead of sh
. You should always run scripts using ./script
so that scripts are ran using the interpreted used in the shebang.
^ This is actually not the same error users have been experiencing as described in the ServerPackCreator report, my mistake for skimming over this one and linking it as an example.
Run with bash
or ./
to fix this particular issue.
Thanks a lot for everyone's input. I really appreciate it :).
I had a few servers in the past that only worked with "sh
Appreciate it <3
Describe the Bug
The sh file in the most recent serverpack.zip file doesn't appear to work for "Medieval MC [FORGE] - MMC3".
I retrieved it off curse forge. Which is where I also downloaded the modpack.
The "source not found" appears to be talking about the "variables.txt" file. As if it can't locate it despite it being present in the same folder.
Unsure if this is a super easy to fix problem on my end but just in case it's something larger I wanted to make a bug report.
If it is super easy to fix, the README is unclear then on first time setup and I recommend adding more instructions to it.
Reproduction Steps
Screenshots and Videos
Crash Report or Log
No response
Operating System
Ubuntu 20.04.6 LTS x86_64
Minecraft Version
1.19
Modloader
Forge
Modpack Version
1.19.2 v18
Optifine
No
Other Mods
Not applicable