#(pogzy_) Hello, I need help with a script
41 messages · Page 1 of 1 (latest)
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!info paste debug
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
Content of Server Log Paste #129564: Denizen Debug Logs From .... pasted 2025/01/01 03:24:04 UTC-08:00, Paste length: 2256 characters across 31 lines, Content: Java Version: 21.0.3 Up-time: 3m 9s Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1390), Spigot: 1.3.1-SNAPSHOT (build 7104-DEV) Script Containers: 6, Events: 1
could you upload your scripts too please
From the error here ^, it says that your custom_enderchests_command script missing the name key
I don't know how to solve this problem, can you help me?
# The name of the command. This will be the default method for running the command, and will show in '/help'.
# | All command scripts MUST have this key!
name: mycmd
Set the name of the command lol
can you upload the uh
script here
!pastescript
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
Content of Denizen Script Paste #129567: Edit of paste 129566: custom_enderchest.dsc... pasted 2025/01/01 05:00:57 UTC-08:00, Paste length: 1251 characters across 39 lines, Content: custom_enderchest: type: command name: customenderchest description: "Ouvre un Enderchest personnalisé basé sur la permission ...
I can't understand the problem, for me, everything should work fine ...
CUSTOM_ENDERCHESTS_COMMANDS
This is a different script
Did you rename it after recording the debug?
Or have multiple similar scripts?
I tried to do it in 1 file and separate that's why. Wait, I'll send you back the debug
Content of Server Log Paste #129568: Denizen Debug Logs From .... pasted 2025/01/01 05:10:17 UTC-08:00, Paste length: 5917 characters across 54 lines, Content: Java Version: 21.0.3 Up-time: 1h 2m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1390), Spigot: 1.3.1-SNAPSHOT (build 7104-DEV) Script Containers: 5, Events: 0
you have the code and the debugging
there are 2 problems that I can't solve, the 1st is that it doesn't synchronize, if I open, drop an item and exit then reopen there is no longer the item.
Secondly, I've set the role to tavern keeper (the highest rank) and it's showing me the default role, because the default luckperms role is assigned to all players, so no matter what the role, it's showing the default one.
I tried to modify the code but there was an error.
Content of Denizen Script Paste #129569: custom_enderchest.dsc... pasted 2025/01/01 05:18:22 UTC-08:00, Paste length: 1715 characters across 56 lines, Content: custom_enderchest: type: command name: customenderchest description: "Ouvre un Enderchest personnalisé basé sur la permission ...
You need to set the required keys in your script containers
Do you use ChatGPT or something?
Content of Server Log Paste #129571: Denizen Debug Logs From .... pasted 2025/01/01 05:19:30 UTC-08:00, Paste length: 9028 characters across 105 lines, Content: Java Version: 21.0.3 Up-time: 1h 11m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1390), Spigot: 1.3.1-SNAPSHOT (build 7104-DEV) Script Containers: 0, Events: 0
yes
Copilot IA for generate and to correct the code
!chatgpt
No, ChatGPT cannot write working scripts.
ChatGPT is known to often be "confidently wrong", meaning- It will try, it will output something that looks like a script, it will assure it it works, and it will not work.
ChatGPT is a cool tool, and it can do a lot of cool things, but it is not sufficiently intelligent enough to write working code as of yet, especially not in smaller languages like Denizen script (as opposed to huge languages like C or Python).
(GitHub Copilot, which supplies single lines at a time based on the surrounding code you've already written, can sometimes be accurate and helpful).
!guide
View the Denizen Beginner's Guide at https://guide.denizenscript.com/
Please dont use AI to fix errors
I give up, have a nice day, sorry for the inconvenience.