Specifying a file to include in the server pack fails. Only directories are accepted. #618

Closed
opened 2026-06-26 21:15:48 +02:00 by Griefed · 8 comments
Owner

@kreezxil on GitHub · https://github.com/Griefed/ServerPackCreator/issues/85

  • What is the current behavior?

if you tell it some filenames, it'll say invalid config

  • If the current behavior is a bug, please provide the steps to reproduce

after selecting dirs to include, type in a file to include too. like server-icon.png, it does't like that.

  • What is the expected behavior?

to love it

  • Please tell us about your environment:

Linux KDE

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
<!-- repoman:origin --> > **@kreezxil** on **GitHub** · https://github.com/Griefed/ServerPackCreator/issues/85 <!-- Failure to use this template will result in the new issue being immediately closed without comment. --> * **What is the current behavior?** <!-- Issues like "doesn't work" and then not providing information as to WHAT isn't working, may be closed without further comment.--> if you tell it some filenames, it'll say invalid config * **If the current behavior is a bug, please provide the steps to reproduce** <!-- providing steps to reproduce is vital in order to verify that it is indeed a bug in the software, and not just a misconfiguration on your part. It helps us track down the source of the problem. --> after selecting dirs to include, type in a file to include too. like server-icon.png, it does't like that. * **What is the expected behavior?** <!-- How is it supposed to work, but currently isn't? What's the expected outcome of what you are currently trying to do? --> to love it * **Please tell us about your environment:** <!-- Failing to provide this information slows down reacting on your issue. Withholding this information may lead to us not being able to reproduce your problem to find the source of the problem. --> Linux KDE - Your Operating System: Manjaro KDE Plasma - Your Java version: 1.8 - Your ServerPackCreator version: got it from the pipeline released on Octover 5 2021 - Your config file: <!-- Upload your config-file to https://gist.github.com/ --> https://haste.zneix.eu/moxybimefo - Your latest log file: <!-- Upload your log-file to https://gist.github.com/ --> https://haste.zneix.eu/uqerosylen * **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Author
Owner

@Griefed on GitHub

Did you specify the file with a destination as well? If you want to include a single file from somplace, the format is path/to/source;path/to/destination/in/serverpack

<!-- repoman:origin --> > **@Griefed** on **GitHub** Did you specify the file with a destination as well? If you want to include a single file from somplace, the format is `path/to/source;path/to/destination/in/serverpack`
Author
Owner

@Griefed on GitHub

The help should also state this:

These are the directories or explicit source/file;destination/file-combinations which are to be included in the generated server pack. The simplest example is the "mods"-folder, as without it, the server would have no mods. As with Clientside mods, every entry must be separated by a "," and NOT contain special characters such as [ ] ( ) / ; The exception being files, as the source and destination must be separated by a ";". In order to exclude a file or directory from the server pack to be generated prefix the entry with an !. All directories and files must in the modpack directory, therefore relative paths must be used.

<!-- repoman:origin --> > **@Griefed** on **GitHub** The help should also state this: > These are the directories or explicit source/file;destination/file-combinations which are to be included in the generated server pack. The simplest example is the "mods"-folder, as without it, the server would have no mods. As with Clientside mods, every entry must be separated by a "," and NOT contain special characters such as [ ] ( ) / ; The exception being files, as the source and destination must be separated by a ";". In order to exclude a file or directory from the server pack to be generated prefix the entry with an !. All directories and files must in the modpack directory, therefore relative paths must be used.
Author
Owner

@kreezxil on GitHub

the gui text says explicitly that it accepts dirs and files to add.

image

<!-- repoman:origin --> > **@kreezxil** on **GitHub** the gui text says explicitly that it accepts dirs and files to add. ![image](https://user-images.githubusercontent.com/3880072/136637260-4a0c9b72-1ddc-48ba-ba21-415b8af342c0.png)
Author
Owner

@kreezxil on GitHub

no i just gave it the filename, not a full path. i assume because the dirs don't use a full path, that all pathing is implied to be relative.

<!-- repoman:origin --> > **@kreezxil** on **GitHub** no i just gave it the filename, not a full path. i assume because the dirs don't use a full path, that all pathing is implied to be relative.
Author
Owner

@Griefed on GitHub

the gui text says explicitly that it accepts dirs and files to add.

image

It explicity says that you can add files as well, yes, however, the tooltip states
image

Here is an example:
image

Hope this helps!

Cheers,
Griefed

<!-- repoman:origin --> > **@Griefed** on **GitHub** > the gui text says explicitly that it accepts dirs and files to add. > > ![image](https://user-images.githubusercontent.com/3880072/136637260-4a0c9b72-1ddc-48ba-ba21-415b8af342c0.png) It explicity says that you can add files as well, yes, however, the tooltip states ![image](https://user-images.githubusercontent.com/44273438/136645874-77cbce77-636d-4c2f-9639-b05c01132c10.png) Here is an example: ![image](https://user-images.githubusercontent.com/44273438/136646043-be54da8d-3b72-4ed0-b203-e68ba0877c20.png) Hope this helps! Cheers, Griefed
Author
Owner

@kreezxil on GitHub

i can't see that tooltip, it blends so well with the background of the gui.

<!-- repoman:origin --> > **@kreezxil** on **GitHub** i can't see that tooltip, it blends so well with the background of the gui.
Author
Owner

@Griefed on GitHub

Simple file connotations will be available in the next alpha release. See #86

<!-- repoman:origin --> > **@Griefed** on **GitHub** Simple file connotations will be available in the next alpha release. See #86
Author
Owner

@Griefed on GitHub

See alpha.7

<!-- repoman:origin --> > **@Griefed** on **GitHub** See [alpha.7](https://github.com/Griefed/ServerPackCreator/releases/tag/3.0.0-alpha.7)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Griefed/ServerPackCreator#618
No description provided.