Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Line not working on the item lore of pipe in/output, settings book... #10

Open
BijuuKrunos opened this issue Nov 29, 2024 · 8 comments

Comments

@BijuuKrunos
Copy link

What is happening?

Using newest Version on paper 1.21.1, i am not sure if that even worked in the past but how ever i try i cant get it to work.

Tried:

lore: '&bItem&8-&bOutput for an Item&8-&bPipe&8. \n &7You can find help at &8/&6pipe'

lore: -|
'&bItem&8-&bOutput for an Item&8-&bPipe&8.'
'&7You can find help at &8/&6pipe'

lore: |
&bItem&8-&bOutput for an Item&8-&bPipe&8.
&7You can find help at &8/&6pipe

What did you expect to happen?

that the text of the item lore get to a new line.

Version

Pipe 324

Config

pipeCacheDuration: 600 #s
pipeCacheSize: 1000 #number of cached inputs
transferCooldown: 60 #ticks
transferCount: 10 #max amounts of stacks that one pipe can transfer
inputToOutputRatio: 0.0 #ratio for max transfers per pipe per move task
pistonUpdateCheck: true
convertToBlockInfoOnChunkLoad: false
customModelDataOffset: 1
defaultLocale: en
dispenserRecipe:
  DISPENSER: 1
  HOPPER: 1
  BOOK: 1
dropperRecipe:
  DROPPER: 1
  HOPPER: 1
  BOOK: 1
chunkLoaderRecipe:
  FURNACE: 1
  OBSIDIAN: 1
  GOLD_BLOCK: 1
maxPipeLength: 256
maxPipeOutputs: 128
gui:
  true: "PRISMARINE_SHARD:63"
  false: "PRISMARINE_SHARD:67"
  input: "PRISMARINE_SHARD:62"
  whitelist:
    true: "PRISMARINE_SHARD:23"
    false: "PRISMARINE_SHARD:21"
  filler: "PRISMARINE_SHARD:1"
  copy: "WRITABLE_BOOK"

Server/system Version

paper-196

Log

[Put your log here]

What other programs/plugins are you running?

dont think you need this :)

Additional context

Ohh and how do i use the language key feature you added in? For Ressourcepacks? tried it, but did not worked.

@BijuuKrunos
Copy link
Author

BijuuKrunos commented Nov 29, 2024

another example:

settings-book:
      name: '&e{0} Settings book'
      lore: |
        &bSettings for a &a{0}&8:
        {1}

        &7Sneak and leftclick with this book on a
        &a{0} &7to apply them&8!

image

@Phoenix616
Copy link
Member

Phoenix616 commented Nov 29, 2024

The format used should work (and is the same in the default config)

From the screenshot it looks like your file-encoding is wrong. Make sure you use UTF8.

@BijuuKrunos
Copy link
Author

Just used the default settings-book config.
I am using Notepad++ and the encoding is UTF-8.
Is still wrong :)
image
image

@Phoenix616
Copy link
Member

Also make sure your line-endings are lf, not crlf. Windows tends to mess with those.

@BijuuKrunos
Copy link
Author

image
looks fine to me ;P

@Phoenix616
Copy link
Member

No idea how you managed that then. Make sure your java also expects lf and utf8 I guess. The default config included in the jar works fine on a normal Debian as well as Windows with -Dfile.encoding=UTF8 to enforce UTF8.

@BijuuKrunos
Copy link
Author

but why does i only have this problem with pipes? no other plugin has a problem with something like that. Using Pterodactyl paper Egg. Java 21

startup command:
java -Xms24576M -Xmx24576M -Dterminal.jline=false -Dterminal.ansi=true -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper-1.21.1-132.jar

dont see a reason why it should not work mhhhh

@Phoenix616
Copy link
Member

Phoenix616 commented Nov 29, 2024

I don't use Pterodactyl so I wouldn't know. (From my experience it causes several really weird issues though) Try forcing it to use UTF8 for all files via the system property I guess.

Also make sure whatever way you are using to upload that file doesn't mess with the content or edit the default one directly in pterodactyl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants