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

Fails to pull from/save to yml files on 1.21.3? #60

Open
GentlemanCheesy opened this issue Nov 26, 2024 · 4 comments
Open

Fails to pull from/save to yml files on 1.21.3? #60

GentlemanCheesy opened this issue Nov 26, 2024 · 4 comments

Comments

@GentlemanCheesy
Copy link

GentlemanCheesy commented Nov 26, 2024

On 1.21.3 the plugin leaves a bunch of errors in console and cannot use/make yml files.

Example of this as a snippet of my latest logs: https://pastebin.com/pXhqh1hi

Paper Version 1.21.3
Skript version 2.9.4

@EquipableMC
Copy link
Contributor

Hello, I spoke with the developer, part of it is an issue with skript-yaml itself while the other part is an issue with my fork. I plan on fixing it in the coming days. You can view the entire conversation here

@Shurelia
Copy link

dont know if this is related but i also getting the fail to reload/save yml problem too, but for me its an OOB exception
https://pastebin.com/PuxC2sEt

@Sashie
Copy link
Owner

Sashie commented Jan 4, 2025

dont know if this is related but i also getting the fail to reload/save yml problem too, but for me its an OOB exception https://pastebin.com/PuxC2sEt

Not sure its the same issue but if you can reproduce this error can you send me the yaml file so I can test on my end? It appears to be tripping within snakeyaml

@Shurelia
Copy link

Shurelia commented Jan 14, 2025

dont know if this is related but i also getting the fail to reload/save yml problem too, but for me its an OOB exception https://pastebin.com/PuxC2sEt

Not sure its the same issue but if you can reproduce this error can you send me the yaml file so I can test on my end? It appears to be tripping within snakeyaml

function createbpdata(p:player):
	load yaml "plugins/.data/backpack/%uuid of {_p}%.yml" as "bp.%uuid of {_p}%"
	yaml path "data.name" in "bp.%uuid of {_p}%" does not exist
	set yaml value "data.name" from "bp.%uuid of {_p}%" to name of {_p}
	save yaml "bp.%uuid of {_p}%" with an indentation of 2

command /backpack:
	trigger:
        	createbpdata(player)
        	set metadata tag "bp" of player to chest inventory with 3 row named "&cBackpack"
        	loop 29 times:
            		set slot (loop-value-2)-1 of metadata tag "bp" of player to yaml value "data.%loop-value-2%" from "bp.%uuid of player%"
        	open metadata tag "bp" of player to player
    
on inventory close:
    event-inventory = metadata tag "bp" of player
    loop 27 times:
        set yaml value "data.%loop-value%" from "bp.%uuid of player%" to slot (loop-value)-1 of event-inventory
    save yaml "bp.%uuid of player%" with an indentation of 2

its just a simple backpack skript though, nothing fancy, but yeah i shouldve saved each slot in a separate yml instead in 1 file, so that if its start throwing errors my players wouldnt have to lose an entire chest of items

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

4 participants